Spaces:
Running
Running
File size: 57,754 Bytes
6b7e4ba 25928a4 6b7e4ba 25928a4 6b7e4ba bfce42b 6b7e4ba bfce42b 6b7e4ba bfce42b 6b7e4ba 09b85ba 6b7e4ba 2c310c1 464ae11 2c310c1 464ae11 2c310c1 bfce42b 2c310c1 6b7e4ba 9fd9762 6b7e4ba 9fd9762 6b7e4ba 9fd9762 6b7e4ba 9fd9762 6b7e4ba acb3189 9fd9762 acb3189 9fd9762 6b7e4ba cf0c76c 6b7e4ba cf0c76c 6b7e4ba cf0c76c 73669f9 cf0c76c 73669f9 cf0c76c b59699b cf0c76c b59699b cf0c76c acb3189 cf0c76c acb3189 6b7e4ba 82a1b70 6b7e4ba 82a1b70 6b7e4ba 82a1b70 d615e74 82a1b70 0cb0e59 6b7e4ba 82a1b70 fec93ae f4fa8d3 fec93ae 464ae11 f4fa8d3 fec93ae c82849f fec93ae f73802e bfce42b 73669f9 4327a3c 5a759a9 cdd85a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 | /*
* Foresight UI prototype — styles + design tokens
* ------------------------------------------------
* The :root block is the "one-line change" surface for the walkthrough:
* palette, spacing, radii, and the four domain colors all live here.
*/
:root {
/* --- Four-domain palette (warm four + VU-gold brand anchor) --- */
--d-strengths: #E0A83E; /* personal */
--d-crew: #E86A5C; /* social */
--d-future: #4A6FA5; /* professional */
--d-vu: #4C9A6E; /* academic */
--brand-gold: #866D4B; /* Vanderbilt gold anchor */
/* tint versions for backgrounds */
--d-strengths-soft: #FBF1DC;
--d-crew-soft: #FBE4E1;
--d-future-soft: #E4EBF4;
--d-vu-soft: #E2F0E8;
/* --- Neutral base --- */
--bg: #FAF8F4;
--surface: #FFFFFF;
--surface-2: #F3F0E9;
--ink: #2C2A26;
--ink-soft: #6B655C;
--line: #E7E2D8;
/* --- Shape & rhythm --- */
--radius: 16px;
--radius-sm: 10px;
--gap: 20px;
--shadow: 0 1px 2px rgba(44,42,38,.04), 0 6px 20px rgba(44,42,38,.06);
--font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
font-family: var(--font);
color: var(--ink);
background: var(--bg);
font-size: 15px;
line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.25; }
p { margin: 0 0 .6em; }
/* ============================ App shell ============================ */
#app { display: flex; min-height: 100vh; }
/* ---- Sidebar ---- */
.sidebar {
width: 232px;
flex: 0 0 232px;
background: var(--surface);
border-right: 1px solid var(--line);
padding: 20px 14px;
display: flex;
flex-direction: column;
gap: 4px;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
}
.brand {
display: flex; align-items: center; gap: 10px;
font-weight: 700; font-size: 20px; color: var(--brand-gold);
padding: 4px 8px 16px;
}
.brand .vmark {
width: 30px; height: 30px; border-radius: 8px;
background: var(--brand-gold); color: #fff;
display: grid; place-items: center;
font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 19px;
line-height: 1; box-shadow: var(--shadow);
}
.nav-group-label {
font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
color: var(--ink-soft); padding: 14px 10px 4px;
}
.nav-item {
display: flex; align-items: center; gap: 10px;
padding: 9px 12px; border-radius: var(--radius-sm);
color: var(--ink); text-decoration: none; font-size: 14.5px;
border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface-2); }
.nav-item.active { background: var(--surface-2); font-weight: 600; }
.nav-item .glyph { width: 20px; text-align: center; font-size: 15px; }
.nav-label { display: flex; flex-direction: column; line-height: 1.15; }
.nav-label .nav-name { font-size: 14.5px; }
.nav-label .nav-facet { font-size: 11px; color: var(--ink-soft); text-transform: capitalize; }
.nav-item.domain.active { box-shadow: inset 3px 0 0 var(--accent); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 6px; }
/* ---- Main column ---- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
height: 60px; flex: 0 0 60px;
display: flex; align-items: center; gap: 16px;
padding: 0 28px;
background: var(--surface); border-bottom: 1px solid var(--line);
position: sticky; top: 0; z-index: 5;
}
.topbar .affirm-dock {
flex: 1; min-width: 0;
display: flex; align-items: center; gap: 10px;
color: var(--ink-soft); font-size: 13.5px; font-style: italic;
}
.topbar .affirm-dock .spark { color: var(--brand-gold); font-style: normal; }
.topbar .affirm-dock span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .icons { display: flex; gap: 8px; align-items: center; }
.avatar {
width: 36px; height: 36px; border-radius: 50%;
background: var(--brand-gold); color: #fff;
display: grid; place-items: center; font-weight: 600;
/* it's a <button> now (opens the account menu), so reset button chrome */
border: 0; padding: 0; font-family: inherit; font-size: 13px;
letter-spacing: .02em; cursor: pointer;
}
.avatar:hover { filter: brightness(1.08); }
/* account menu — the only real session control in the shell */
.account { position: relative; }
.account-menu {
position: absolute; top: 44px; right: 0; z-index: 40; min-width: 190px;
background: var(--surface); border: 1px solid var(--line);
border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px;
}
.account-menu.hidden { display: none; }
.account-menu .am-who { padding: 8px 10px 0; font-weight: 600; font-size: 14px; }
.account-menu .am-sub { padding: 0 10px 8px; font-size: 12px; color: var(--ink-soft); }
.account-menu .am-item {
display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0;
border-top: 1px solid var(--line); background: none; font: inherit;
font-size: 14px; color: var(--ink); cursor: pointer; border-radius: 6px;
}
.account-menu .am-item:hover { background: var(--surface-2); }
.content { padding: 28px; max-width: 1080px; width: 100%; margin: 0 auto; }
/* ============================ Reusable bits ============================ */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--ink-soft); max-width: 60ch; }
.card {
background: var(--surface); border: 1px solid var(--line);
border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { font-size: 16px; }
.card.accent-l { border-left: 4px solid var(--accent, var(--brand-gold)); }
/* `minmax(0, 1fr)` rather than `1fr` (= `minmax(auto, 1fr)`): the `auto` floor is
the track's min-content, so a card with unshrinkable inline content would refuse
to narrow and blow the grid past the viewport on a phone. A `0` floor lets the
column shrink to its container and the card's own text wrap inside it. */
.grid { display: grid; gap: var(--gap); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
.grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chip {
display: inline-flex; align-items: center; gap: 6px;
font-size: 12px; font-weight: 600; padding: 3px 10px;
border-radius: 999px; background: var(--chip-bg, var(--surface-2));
color: var(--chip-ink, var(--ink-soft));
}
.chip .swatch { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 9px 16px; border-radius: var(--radius-sm);
border: 1px solid var(--line); background: var(--surface);
font-size: 14px; font-weight: 600; color: var(--ink);
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand-gold); color: #fff; border-color: var(--brand-gold); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.small { padding: 5px 12px; font-size: 12.5px; }
.muted { color: var(--ink-soft); }
.mock-tag {
font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;
color: var(--brand-gold); background: #F1EADF;
padding: 2px 7px; border-radius: 6px; font-weight: 700;
}
.stack > * + * { margin-top: 14px; }
/* ============================ Today / dashboard ============================ */
.affirm-hero {
background: linear-gradient(120deg, #FFF9EC, #FDF3F1 60%, #EEF3F8);
border: 1px solid var(--line); border-radius: var(--radius);
padding: 26px 28px; margin-bottom: var(--gap);
}
.affirm-hero .label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-gold); font-weight: 700; }
.affirm-hero .quote { font-size: 21px; line-height: 1.35; margin: 8px 0 0; max-width: 46ch; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }
.list-row .time { width: 58px; flex: 0 0 58px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); }
.list-row .body { flex: 1; min-width: 0; }
.list-row .body .t { font-weight: 600; }
.list-row .body .s { font-size: 13px; color: var(--ink-soft); }
.dot-domain { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 10px; }
.badge-urgent { font-size: 11px; font-weight: 700; color: #B4432F; background: #FBE4E1; padding: 2px 8px; border-radius: 999px; }
.rec-card { display: flex; flex-direction: column; gap: 8px; }
.rec-card .when { font-size: 12.5px; font-weight: 600; color: var(--accent); }
/* A feed card links out to the official page, so it's an <a> — strip the link look
and keep the card look. */
a.rec-card { text-decoration: none; color: inherit; }
a.rec-card:hover { border-color: var(--accent); transform: translateY(-2px); transition: transform .12s; }
.rec-card h3 { font-size: 15px; line-height: 1.35; }
.rec-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-star {
font-size: 11px; font-weight: 700; color: #6b5836; background: #F1EADF;
border: 1px solid var(--brand-gold); padding: 2px 8px; border-radius: 999px;
}
.cta-line { font-size: 13px; margin-top: 10px; }
/* ---- the Today feed carousel ---- */
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feed-nav { display: flex; align-items: center; gap: 6px; }
.feed-strip { min-height: 60px; }
.feed-arrow, .feed-dot {
border: 1px solid var(--line); background: var(--surface); cursor: pointer;
color: var(--ink-soft); padding: 0;
}
.feed-arrow { width: 24px; height: 24px; border-radius: 6px; font-size: 15px; line-height: 1; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; }
.feed-arrow:hover, .feed-dot:hover { border-color: var(--brand-gold); }
.feed-dot.on { background: var(--brand-gold); border-color: var(--brand-gold); }
.nudge { display: flex; gap: 14px; align-items: flex-start; }
.nudge .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--accent); }
.nudge .cta { margin-top: 6px; }
.tile {
display: flex; flex-direction: column; gap: 6px;
padding: 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink);
background: var(--tile-bg); border: 1px solid var(--line);
}
.tile:hover { transform: translateY(-2px); transition: transform .12s; }
.tile .icon { font-size: 22px; color: var(--accent); }
.tile .name { font-weight: 700; }
.tile .facet { font-size: 12px; color: var(--ink-soft); text-transform: capitalize; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 26px 0 12px; font-weight: 700; }
.src-chip {
display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
color: var(--d-crew); background: var(--d-crew-soft); padding: 2px 8px; border-radius: 6px;
}
/* Weekly schedule (My VU) */
.sched-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 720px) { .sched-grid { grid-template-columns: repeat(2, 1fr); } }
.sched-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; min-height: 120px; }
.sched-day { font-weight: 700; font-size: 12.5px; text-align: center; color: var(--ink-soft); padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sched-item { display: flex; flex-direction: column; border-left: 3px solid var(--accent); padding: 4px 8px; margin-bottom: 6px; background: var(--surface-2); border-radius: 6px; }
.sched-item .s-time { font-size: 11px; color: var(--ink-soft); }
.sched-item .s-course { font-size: 12.5px; font-weight: 600; }
/* 4-year plan */
.plan-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
.plan-term h4 { font-size: 13.5px; color: var(--d-vu); margin-bottom: 8px; }
.plan-courses { list-style: none; padding: 0; margin: 0; }
.plan-courses li { font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.plan-courses li:last-child { border-bottom: none; }
.plan-note { margin-top: 8px; font-size: 11.5px; color: var(--ink-soft); font-style: italic; }
/* ============================ Chat ============================ */
.chat-wrap { max-width: 720px; margin: 0 auto; }
.msg { display: flex; margin-bottom: 14px; }
.msg .bubble { padding: 12px 16px; border-radius: 16px; max-width: 80%; }
.msg.companion .bubble { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.student { justify-content: flex-end; }
.msg.student .bubble { background: var(--brand-gold); color: #fff; border-top-right-radius: 4px; }
.sources { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.source-chip { font-size: 11px; background: var(--surface-2); color: var(--ink-soft); padding: 2px 8px; border-radius: 6px; }
.suggested { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chat-input { display: flex; gap: 10px; margin-top: 20px; }
.chat-input input { flex: 1; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 14px; }
/* Markdown inside a bubble. The renderer in chat.js emits only these tags. */
.bubble-text p { margin: 0 0 8px; }
.bubble-text p:last-child { margin-bottom: 0; }
.bubble-text ul { margin: 6px 0 8px; padding-left: 20px; }
.bubble-text li { margin-bottom: 4px; }
.bubble-text code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.msg.student .bubble-text code { background: rgba(255,255,255,.22); }
.bubble-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
a.source-chip { text-decoration: none; }
a.source-chip:hover { background: var(--line); }
.source-chip.web { font-style: italic; }
.ask-suggest { margin-top: 10px; }
.ask-error { color: var(--d-crew); margin: 0; }
.ask-dim { color: var(--ink-soft); margin: 0; }
/* An answer the student navigated away from is saved as far as it got. */
.ask-cut { margin: 8px 0 0; font-size: 12px; font-style: italic; color: var(--ink-soft); }
/* Tool status: the wait is several seconds of real lookups, so say which one. */
.ask-status { display: flex; align-items: center; gap: 8px; font-size: 13px;
color: var(--ink-soft); padding: 4px 2px 10px; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-gold);
animation: askpulse 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes askpulse { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .6; } }
/* ==================== Ask Foresight — full page ==================== */
/* The thread list lives only here, not in the dock: a student stays in one
conversation until they pick another, and this is where they pick. */
.ask-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr);
gap: var(--gap); align-items: start; }
.ask-threads { position: sticky; top: var(--gap); background: var(--surface);
border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ask-threads-head { display: flex; align-items: center; justify-content: space-between;
gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ask-threads-head h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em;
text-transform: uppercase; color: var(--ink-soft); }
.ask-thread-list { max-height: min(60vh, 520px); overflow-y: auto; }
.ask-threads-empty { padding: 14px; margin: 0; font-size: 13px; }
.ask-thread { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.ask-thread:last-child { border-bottom: none; }
.ask-thread.current { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--brand-gold); }
.ask-thread-open { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 4px 10px 13px;
border: none; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ask-thread-open:hover { background: var(--surface-2); }
.ask-thread-title { font-size: 13.5px; font-weight: 600;
overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Two lines of the answer — one is too little of it to be worth the row. */
.ask-thread-preview { font-size: 12px; color: var(--ink-soft); line-height: 1.35;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* "Started", not "last message": the index stamp only moves when the ordering
does — see threads._touch_index. Don't relabel this without changing that. */
.ask-thread-when { font-size: 11px; color: var(--ink-soft); }
.ask-thread-del { border: none; background: none; padding: 0 11px; cursor: pointer;
font-size: 13px; color: var(--ink-soft); opacity: 0; transition: opacity .12s ease; }
.ask-thread:hover .ask-thread-del, .ask-thread-del:focus-visible { opacity: 1; }
.ask-thread-del:hover { color: var(--d-crew); }
@media (hover: none) { .ask-thread-del { opacity: 1; } } /* no hover to reveal it on touch */
.ask-threads-toggle { display: none; margin-bottom: 12px; }
/* Over the sticky header (5) and the profile menu (40), under the onboarding
overlay (50), which has to stay modal. */
.ask-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 45; }
.ask-scrim.hidden { display: none; }
/* No room for two columns on a phone, so the list slides over the conversation. */
@media (max-width: 820px) {
.ask-layout { grid-template-columns: minmax(0, 1fr); }
.ask-threads-toggle { display: inline-block; }
.ask-threads { position: fixed; top: 0; bottom: 0; left: 0; z-index: 46;
width: min(320px, 86vw); display: flex; flex-direction: column;
border-radius: 0; border-top: none; border-bottom: none; border-left: none;
transform: translateX(-100%); visibility: hidden;
transition: transform .18s ease, visibility 0s linear .18s; }
.ask-threads.open { transform: translateX(0); visibility: visible;
box-shadow: var(--shadow); transition: transform .18s ease; }
.ask-thread-list { flex: 1; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .ask-threads { transition: none; } }
/* ==================== Ask Foresight — Today card ==================== */
.ask-card { margin-bottom: var(--gap); border: 1px solid var(--line); }
.ask-card-row { display: flex; align-items: center; gap: 10px; }
.ask-card-row .spark { color: var(--brand-gold); font-size: 18px; }
.ask-card-row input { flex: 1; padding: 12px 14px; font-size: 15px;
border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.ask-card-row input:focus { outline: 2px solid var(--brand-gold); outline-offset: 1px; }
.ask-card .suggested { margin-top: 12px; }
/* ==================== Ask Foresight — floating dock ==================== */
/* Sits above page content but below the onboarding overlay, which must stay
modal. The dock is outside #view so navigation never destroys a live answer. */
#ask-dock { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
#ask-dock.hidden { display: none; }
.ask-fab { width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
background: var(--brand-gold); color: #fff; box-shadow: var(--shadow);
font-size: 22px; line-height: 1; display: grid; place-items: center;
transition: transform .15s ease; }
.ask-fab:hover { transform: scale(1.05); }
.ask-fab.open { opacity: 0; pointer-events: none; }
.ask-panel { position: absolute; right: 0; bottom: 0; width: 380px; height: 560px;
max-height: calc(100vh - 44px); display: flex; flex-direction: column;
background: var(--surface); border: 1px solid var(--line);
border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ask-panel.hidden { display: none; }
.ask-head { display: flex; align-items: center; justify-content: space-between;
padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ask-title { font-weight: 600; font-size: 14.5px; }
.ask-title .spark { color: var(--brand-gold); }
.ask-head-actions { display: flex; gap: 2px; }
.ask-icon { border: none; background: none; cursor: pointer; font-size: 15px;
color: var(--ink-soft); padding: 4px 7px; border-radius: 6px; text-decoration: none; }
.ask-icon:hover { background: var(--line); color: var(--ink); }
.ask-body { flex: 1; overflow-y: auto; padding: 14px; }
.ask-body .msg .bubble { max-width: 92%; font-size: 14px; }
.ask-empty { color: var(--ink-soft); font-size: 14px; }
.ask-empty p { margin: 0 0 4px; }
.ask-empty .suggested { margin-top: 12px; flex-direction: column; align-items: stretch; }
.ask-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-foot input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 14px;
border-radius: var(--radius-sm); border: 1px solid var(--line); }
/* On a narrow screen the dock panel goes full-width, while the FAB stays a
bottom-right bubble (a full-width FAB container would push it to the left). */
@media (max-width: 520px) {
#ask-dock { right: 12px; bottom: 12px; left: auto; }
.ask-panel { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto;
height: min(70dvh, 560px); max-height: calc(100dvh - 24px); }
}
/* ============================ Calendar ============================ */
.cal-layout { display: grid; grid-template-columns: 250px 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 820px) { .cal-layout { grid-template-columns: 1fr; } }
.layer-toggle { display: flex; align-items: center; gap: 10px; padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.layer-toggle:hover { background: var(--surface-2); }
.layer-toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.layer-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
flex-wrap: wrap; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-viewswitch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.cal-viewswitch button { border: none; background: var(--surface); padding: 6px 12px; font-size: 12.5px;
font-weight: 600; color: var(--ink-soft); border-left: 1px solid var(--line); }
.cal-viewswitch button:first-child { border-left: none; }
.cal-viewswitch button:hover { background: var(--surface-2); }
.cal-viewswitch button.on { background: var(--brand-gold); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding-bottom: 4px; }
.cal-cell { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 84px; padding: 6px; font-size: 12px; min-width: 0; }
.cal-cell.out { background: transparent; }
.cal-cell.out .num { opacity: .45; }
.cal-cell.today { border-color: var(--brand-gold); box-shadow: inset 0 0 0 1px var(--brand-gold); }
.cal-cell.today .num { color: var(--brand-gold); }
.cal-cell .num { font-weight: 700; color: var(--ink-soft); font-size: 11px; }
/* Event chips are buttons now (click → details + the official link). */
.cal-ev { display: block; width: 100%; text-align: left; border: none; margin-top: 4px; padding: 2px 6px;
border-radius: 5px; color: #fff; font-size: 10.5px; line-height: 1.25; font-family: inherit;
background: var(--accent); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { filter: brightness(1.08); }
.cal-ev.explain { text-decoration: underline dotted; }
.cal-ev.mine { box-shadow: 0 0 0 2px rgba(255,255,255,.6), 0 0 0 3px var(--accent); }
/* A recurring class or office hour is background context; an exam or a due date on the
same layer keeps the solid fill so it reads louder than the timetable around it. */
.cal-ev.soft { background: transparent; color: var(--accent); font-weight: 600;
box-shadow: inset 0 0 0 1px var(--accent); }
.cal-ev.soft:hover { background: var(--surface-2); }
.cal-ev-t { opacity: .85; font-weight: 600; }
.cal-more { display: block; border: none; background: none; padding: 2px 6px; margin-top: 2px;
font-size: 10.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; font-family: inherit; }
.cal-more:hover { color: var(--ink); }
.cal-empty { margin-top: 14px; padding: 16px 18px; border: 1px dashed var(--line);
border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-soft); font-size: 13.5px; }
/* Day view — a plannable list rather than a grid */
.cal-day-list { display: flex; flex-direction: column; gap: 6px; }
.cal-day-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
background: var(--surface); cursor: pointer; font-family: inherit; }
.cal-day-row:hover { background: var(--surface-2); }
.cal-day-row .time { width: 70px; flex: 0 0 70px; font-weight: 600; font-size: 12.5px; color: var(--ink-soft); }
.cal-day-row .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--accent); }
.cal-day-row .body { display: flex; flex-direction: column; min-width: 0; }
.cal-day-row .t { font-weight: 600; font-size: 14px; }
.cal-day-row .s { font-size: 12.5px; color: var(--ink-soft); }
/* Sidebar: upcoming rows + the undated deadlines panel */
.cal-up-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
border: none; background: none; padding: 8px 4px; border-bottom: 1px solid var(--line);
cursor: pointer; font-family: inherit; }
.cal-up-row:last-child { border-bottom: none; }
.cal-up-row:hover { background: var(--surface-2); border-radius: 8px; }
.cal-up-row .dot-domain { margin-top: 5px; }
.cal-up-row .body { display: flex; flex-direction: column; min-width: 0; }
.cal-up-row .t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.cal-up-row .s { font-size: 12px; color: var(--ink-soft); }
/* Sidebar: the My classes card — the layer's legend, and what it can't place */
.cal-layout > div > .card + .card { margin-top: var(--gap); }
.cal-course { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px;
border-bottom: 1px solid var(--line); }
.cal-course:last-child { border-bottom: none; }
.cal-course .dot-domain { margin-top: 5px; }
.cal-course .body { display: flex; flex-direction: column; min-width: 0; }
.cal-course .t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.cal-course .s { font-size: 12px; color: var(--ink-soft); }
.cal-note { background: var(--d-strengths-soft); border-left: 3px solid var(--brand-gold);
padding: 8px 10px; border-radius: var(--radius-sm); font-size: 12.5px; margin: 10px 0 0; }
/* Deadlines panel: full width under the grid, rows flowing into columns —
77 undated rows in the 250px sidebar column left a page of blank space. */
.cal-deadlines { margin-top: var(--gap); }
.dl-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 28px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dl-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-row .t { font-weight: 600; font-size: 13px; line-height: 1.3; }
.dl-row .s { font-size: 12px; color: var(--ink-soft); }
.dl-group summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 8px 0; }
.dl-group summary:hover { color: var(--brand-gold); }
/* Event detail popover */
.cal-pop { position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 24px);
display: flex; background: var(--surface); border: 1px solid var(--line);
border-radius: 12px; box-shadow: 0 10px 30px rgba(44,42,38,.22); overflow: hidden; }
.cal-pop .pop-accent { width: 5px; flex: 0 0 5px; }
.cal-pop .pop-body { padding: 14px 16px; min-width: 0; max-height: 70vh; overflow-y: auto; }
.cal-pop .pop-layer { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cal-pop h4 { margin: 2px 0 4px; font-size: 15.5px; }
.cal-pop .pop-when { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.cal-pop .pop-fact { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0; }
.cal-pop .pop-desc { font-size: 13px; margin: 8px 0 0; }
.cal-pop .pop-gloss { margin-top: 10px; padding: 9px 11px; border-radius: var(--radius-sm);
background: var(--d-strengths-soft); border-left: 3px solid var(--brand-gold); font-size: 12.5px; }
.cal-pop .pop-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
/* ============================ Campus map ============================ */
/* Real Leaflet map (see app/campus.js). Layout: a search/filter toolbar, then the
map beside a detail panel that answers what / who's inside / how to get there. */
.map-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.map-search { position: relative; flex: 1 1 340px; min-width: 240px; }
.map-search input {
width: 100%; box-sizing: border-box; padding: 9px 12px; font: inherit; font-size: 14px;
border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.map-search input:focus { outline: none; border-color: var(--brand-gold); }
.map-results {
position: absolute; z-index: 500; top: calc(100% + 4px); left: 0; right: 0;
max-height: 320px; overflow-y: auto; background: var(--surface);
border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.map-results.hidden { display: none; }
.map-result {
display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
padding: 8px 12px; background: none; border: none; border-bottom: 1px solid var(--line);
font: inherit; color: var(--ink); cursor: pointer;
}
.map-result:last-child { border-bottom: none; }
.map-result:hover { background: var(--surface-2); }
.map-result .mr-name { font-size: 14px; }
.map-count { white-space: nowrap; }
.map-layout { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); align-items: stretch; }
@media (max-width: 820px) { .map-layout { grid-template-columns: 1fr; } }
.map-host {
/* light neutral while tiles load / offline — matches the clean CARTO basemap
rather than the warm app beige */
height: 600px; border-radius: var(--radius); border: 1px solid var(--line);
overflow: hidden; background: #e8eaed; z-index: 0;
}
@media (max-width: 820px) { .map-host { height: 420px; } }
.map-detail { align-self: start; max-height: 600px; overflow-y: auto; }
@media (max-width: 820px) { .map-detail { max-height: none; } }
.map-detail .mp-empty { padding: 8px 2px; }
.map-detail .mp-name { margin: 8px 0 4px; }
.map-detail .mp-desc { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.map-detail .mp-addr { color: var(--ink-soft); font-size: 13px; margin: 0 0 8px; }
.mp-sec { margin-top: 14px; }
/* "Getting there" is now the first section, directly under the building name — it sits
closer than a section break, since the two read as one block. */
.map-detail .mp-go { margin-top: 10px; }
.mp-sec .section-title { margin: 0 0 8px; }
.mp-occ-list { list-style: none; margin: 0; padding: 0; }
.mp-occ { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.mp-occ:last-child { border-bottom: none; }
.mp-occ-name { font-size: 13.5px; font-weight: 600; }
.mp-occ-meta { font-size: 12px; color: var(--ink-soft); }
.mp-occ-contacts { font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; }
.mp-namesake { margin-top: 6px; line-height: 1.4; }
.mp-links { display: flex; gap: 8px; flex-wrap: wrap; }
/* Leaflet marker: a small domain-colored dot (no image-marker default-path gotcha). */
.map-pin { background: none; border: none; }
.map-pin-dot {
display: block; width: 14px; height: 14px; border-radius: 50%;
background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4);
transition: transform .1s ease;
}
.map-pin:hover .map-pin-dot { transform: scale(1.25); }
/* A building the student's own classes are in — the same gold as the calendar's My
classes layer. Before `.sel`, so selecting one still shows the selection ring. */
.map-pin-dot.mine {
box-shadow: 0 0 0 2px var(--brand-gold), 0 0 0 5px rgba(134,109,75,.28),
0 1px 3px rgba(0,0,0,.4);
}
.map-pin-dot.sel { transform: scale(1.5); box-shadow: 0 0 0 3px var(--brand-gold); }
.map-mine-toggle { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
white-space: nowrap; font-size: 13px; }
.map-mine-note { margin: -4px 0 12px; }
.mp-mine .mp-occ-name { color: var(--brand-gold); }
/* ============================ Prep ============================ */
.prep-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--gap); align-items: start; }
@media (max-width: 820px) { .prep-layout { grid-template-columns: 1fr; } }
.scenario-btn { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm);
border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }
.scenario-btn:hover { background: var(--surface-2); }
.scenario-btn.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.draft-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; white-space: pre-wrap;
font-size: 14px; margin: 12px 0; border: 1px dashed var(--line); }
.tips li { margin-bottom: 6px; }
/* ============================ My Story ============================ */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 22px; }
.tl-item::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
background: var(--accent); border: 2px solid var(--surface); }
.tl-item .when { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
/* ============================ Onboarding overlay ============================ */
.overlay {
position: fixed; inset: 0; z-index: 50;
background: rgba(44,42,38,.5); display: grid; place-items: center; padding: 24px;
}
.overlay.hidden { display: none; }
.wizard {
background: var(--surface); border-radius: 20px; width: 560px; max-width: 100%;
max-height: 90vh; overflow-y: auto; padding: 30px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.wizard .steps { display: flex; gap: 6px; margin-bottom: 18px; }
.wizard .steps .s { flex: 1; height: 4px; border-radius: 3px; background: var(--line); }
.wizard .steps .s.done { background: var(--brand-gold); }
.wizard h2 { font-size: 21px; }
.field { margin: 14px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field input[type=text], .field textarea, .field select {
width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: 14px; font-family: inherit;
}
.likert { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.likert button { flex: 1; padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; }
.likert button.sel { background: var(--brand-gold); color: #fff; border-color: var(--brand-gold); }
/* "Prefer not to say" is an answer, not a non-answer — it closes the completeness
gate. Kept visually quieter than the scale so it doesn't compete with it. */
.likert button.skip { flex: 0 0 auto; padding: 8px 10px; color: var(--ink-soft); border-style: dashed; }
.likert button.skip.sel { background: var(--ink-soft); color: #fff; border-style: solid; border-color: var(--ink-soft); }
.likert-row { margin: 12px 0; }
.likert-row .q { font-size: 13.5px; margin-bottom: 2px; }
/* Multi-select chips (the background question, in the wizard and in My Story) */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
/* 33 topics is a lot of chips — cap the height so the panel below stays reachable. */
.chip-wrap { max-height: 170px; overflow-y: auto; padding: 2px; }
.chip-toggle {
padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
background: var(--surface); font-size: 13px; font-family: inherit; cursor: pointer;
}
.chip-toggle:hover { border-color: var(--brand-gold); }
.chip-toggle.sel { background: var(--brand-gold); color: #fff; border-color: var(--brand-gold); }
/* A chosen major/minor is a chip you can take off again, so its × needs to read as
removable rather than decorative. */
.chip-row[data-wpicked] , .chip-row[data-ppicked] { margin-bottom: 8px; }
.chip-row[data-wpicked]:empty, .chip-row[data-ppicked]:empty { margin-bottom: 0; }
.chip-toggle[data-pick] span { margin-left: 5px; opacity: .75; font-weight: 700; }
.chip-toggle[data-pick]:hover { background: var(--d-crew); border-color: var(--d-crew); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 24px; text-align: center; color: var(--ink-soft);
background: var(--surface-2); }
.chips-input { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 22px; }
/* The permanent escape hatch. Nothing in the wizard is required for the app to work,
so every step offers a way to never see it again — see app.js. */
.wizard-optout { display: flex; align-items: center; gap: 7px; justify-content: flex-end;
margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); }
.wizard-optout input { width: auto; }
/* ---------- My Story: the editable profile ---------- */
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; }
.save-state { font-size: 12px; color: var(--ink-soft); }
.small { font-size: 12.5px; }
.prof-grid { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.prof-grid > * { flex: 1 1 240px; }
.prof-field { display: block; margin: 10px 0; }
.prof-field .lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.prof-field input[type=text], .prof-field input[type=password],
.prof-field textarea, .prof-field select {
width: 100%; padding: 9px 11px; border-radius: var(--radius-sm); border: 1px solid var(--line);
font-size: 14px; font-family: inherit; background: var(--surface); }
.prof-field.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.prof-field.check input { width: auto; }
/* Tone: two cards side by side rather than a dropdown — with only two options a
select hides half the choice behind a click, and each one needs its line of
explanation visible to be choosable at all. */
.tone-choice { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tone-opt { flex: 1 1 240px; display: grid; grid-template-columns: auto 1fr;
gap: 2px 9px; align-items: baseline; cursor: pointer; padding: 11px 13px;
border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.tone-opt:hover { border-color: var(--ink-soft); }
/* Driven by the radio, not by a class — choosing one doesn't redraw the page. */
.tone-opt:has(input:checked) { border-color: var(--brand-gold);
box-shadow: inset 0 0 0 1px var(--brand-gold); background: var(--surface-2); }
.tone-opt:has(input:focus-visible) { outline: 2px solid var(--brand-gold); outline-offset: 2px; }
.tone-opt input { width: auto; margin: 0; grid-row: span 2; align-self: center; }
.tone-label { font-weight: 600; font-size: 13.5px; }
.tone-note { grid-column: 2; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.row-tight { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
/* Closing an account is the one irreversible thing a student can do here, so it does
not look like the buttons next to it. */
.danger-zone { border-color: #E4C4BC; }
.btn.danger { color: #B4432F; border-color: #E4C4BC; }
.btn.danger:hover { background: #FBEFEC; }
/* ---------- Syllabus upload + review ---------- */
.syl-drop { display: block; cursor: pointer; }
.syl-drop:hover { border-color: var(--brand-gold); }
.syl-privacy { margin: 6px 0 12px; }
.syl-warn { background: var(--d-strengths-soft); border-left: 3px solid var(--brand-gold);
padding: 9px 12px; border-radius: var(--radius-sm); font-size: 13px; margin: 10px 0; }
.syl-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
margin: 8px 0; font-size: 13.5px; background: var(--surface); }
.syl-file .name { font-weight: 600; }
.syl-file .why { color: var(--ink-soft); font-size: 12.5px; flex: 1 1 100%; }
.syl-file .acts { margin-left: auto; display: flex; gap: 6px; }
.syl-status { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
background: var(--surface-2); color: var(--ink-soft); white-space: nowrap; }
.syl-status.parsing, .syl-status.saving { background: var(--d-vu-soft); color: var(--d-vu); }
.syl-status.review { background: var(--d-strengths-soft); color: var(--brand-gold); }
.syl-status.saved { background: var(--d-crew-soft); color: var(--d-crew); }
.syl-status.failed { background: #fdecec; color: #a3312b; }
.syl-review { border: 1px solid var(--line); border-radius: var(--radius);
padding: 14px 16px; margin: 12px 0; background: var(--surface); }
.syl-review-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.syl-review-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.syl-section { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.syl-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.syl-section-head h4 { margin: 0; font-size: 13.5px; }
.syl-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.syl-grid > * { flex: 1 1 160px; }
.syl-row { border: 1px solid var(--line); border-radius: var(--radius-sm);
padding: 10px 12px; margin: 8px 0; background: var(--surface-2); }
.syl-row-head { display: flex; align-items: center; justify-content: space-between;
font-size: 13px; margin-bottom: 6px; }
.syl-field { display: block; margin: 6px 0; }
.syl-field .lbl { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 3px; }
.syl-field input { width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
border: 1px solid var(--line); font-size: 13.5px; font-family: inherit; background: var(--surface); }
/* Flagged fields are what the review screen exists for: the reader wasn't sure,
so draw the eye rather than hiding it behind a "looks good!" summary. */
.syl-field.flagged input { border-color: var(--brand-gold); background: #fffdf6; }
.syl-field .note { display: block; font-size: 11.5px; color: #8a6d1f; margin-top: 3px; }
.syl-days { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 8px; }
.syl-days .day { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line);
background: var(--surface); font-size: 12px; cursor: pointer; }
.syl-days .day.on { background: var(--brand-gold); color: #fff; border-color: var(--brand-gold); }
.syl-conf { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; margin-left: 6px; }
.syl-conf.high { background: var(--d-crew-soft); color: var(--d-crew); }
.syl-conf.mid { background: var(--surface-2); color: var(--ink-soft); }
.syl-conf.low { background: var(--d-strengths-soft); color: #8a6d1f; }
.syl-pin { font-size: 11.5px; color: var(--ink-soft); }
/* Sub-heading inside a review section (office hours under Instructor). */
.syl-section h5 { margin: 0; font-size: 13px; }
.syl-saved-head { margin: 20px 0 6px; font-size: 13.5px; }
.syl-saved { display: flex; align-items: center; justify-content: space-between; gap: 10px;
padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
margin: 8px 0; background: var(--surface); }
.syl-saved .acts { display: flex; gap: 6px; }
.btn.small { padding: 5px 9px; font-size: 12px; }
/* ============================ My Crew (crew.js) ============================ */
/* The social domain over the real knowledge base. Coral accent throughout via
#crew-root { --accent: var(--d-crew) }. */
.crew-sub { margin: -6px 0 12px; max-width: 70ch; }
.crew-sub a, .crew-why a { color: var(--d-crew); font-weight: 600; }
/* --- org cards (Your orgs, Orgs for you, Browse) --- */
.crew-org { display: flex; flex-direction: column; }
.crew-org-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.crew-org-id { min-width: 0; }
.crew-org-id h3 { margin: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.crew-blurb { font-size: 13.5px; margin: 0 0 10px; }
.crew-org .crew-card-actions { margin-top: auto; padding-top: 10px; }
/* avatar: an initial tile with the org's picture layered on top; if the image
fails to load, .broken hides it and the tile shows through — never a broken image. */
.crew-ava {
position: relative; flex: 0 0 46px; width: 46px; height: 46px;
border-radius: 12px; overflow: hidden; display: grid; place-items: center;
background: hsl(var(--h, 20) 42% 88%);
}
.crew-ava .ini { font-weight: 700; font-size: 20px; color: hsl(var(--h, 20) 45% 34%); }
.crew-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crew-ava.broken img { display: none; }
.crew-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.crew-topic {
font-size: 11.5px; padding: 2px 8px; border-radius: 999px;
background: var(--d-crew-soft); color: var(--d-crew); font-weight: 600;
}
.crew-why {
font-size: 12.5px; color: var(--d-crew); font-weight: 600;
margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--d-crew);
}
.crew-next, .crew-mini-ev {
display: flex; gap: 8px; align-items: baseline; text-decoration: none; color: var(--ink);
font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line);
}
.crew-next { flex-direction: column; gap: 2px; margin-top: 6px; }
.crew-next-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.crew-next:hover span:not(.crew-next-label), .crew-mini-ev:hover { color: var(--d-crew); }
.crew-org-events { margin-top: 6px; }
.crew-mini-ev { align-items: center; }
.crew-mini-ev .dot-domain { flex: 0 0 8px; width: 8px; height: 8px; }
/* --- This week + row lists (intramurals, fitness) --- */
.crew-ev-row {
display: flex; align-items: center; gap: 12px;
padding: 10px 0; border-bottom: 1px solid var(--line);
}
.crew-ev-row:last-child { border-bottom: none; }
.crew-ev-row .body { flex: 1; min-width: 0; }
.crew-ev-row .body .t { font-weight: 600; }
.crew-ev-row .body .s { font-size: 13px; color: var(--ink-soft); }
.crew-ev-row.mine { background: var(--d-crew-soft); border-radius: var(--radius-sm);
padding: 10px 12px; margin: 4px 0; border-bottom: none; }
.crew-yours {
font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
color: #fff; background: var(--d-crew); padding: 1px 7px; border-radius: 999px; margin-left: 6px;
vertical-align: middle;
}
/* --- Browse controls --- */
.crew-browse-controls { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.crew-browse-controls #crew-search { flex: 1; min-width: 220px; }
.crew-browse-controls input, .crew-browse-controls select {
padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
font-family: inherit; font-size: 14px; background: var(--surface); color: var(--ink);
}
.crew-browse-controls #crew-search:focus, .crew-browse-controls select:focus {
outline: none; border-color: var(--d-crew); box-shadow: 0 0 0 3px var(--d-crew-soft);
}
.crew-browse-count { margin-bottom: 10px; }
.crew-more { text-align: center; margin: 16px 0 4px; }
/* --- Play & move --- */
.crew-play-group { margin-bottom: 20px; }
.crew-play-group h4 { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; font-weight: 700; }
.crew-rec h4 { font-size: 15px; }
.crew-fact { font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.crew-fact a { color: var(--d-crew); }
/* --- Family --- */
.crew-fam-events { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
/* ============================ Responsive / mobile ============================ */
/* The app shell was desktop-first (a persistent 232px sidebar rail). These rules
turn it into a phone-friendly layout: an off-canvas drawer, single-column
content, tighter spacing, and touch-sized targets. Breakpoint ladder:
900 cols-3/4 grids → 2 (see "Reusable bits" above)
820 shell → drawer nav; internal 2-col layouts (cal/map/prep) already stack
640 every card grid → 1 column; headings/padding shrink; modals go full-screen
520 the chat dock panel goes full-width */
/* Controls that exist only on mobile — hidden on the desktop rail. */
.nav-toggle, .topbar-brand { display: none; }
.nav-scrim { display: none; }
/* Tap highlight is distracting on a custom UI; keep focus-visible for keyboards. */
* { -webkit-tap-highlight-color: rgba(134,109,75,.18); }
@media (max-width: 820px) {
/* --- Sidebar becomes an off-canvas drawer --- */
.sidebar {
position: fixed; top: 0; left: 0; z-index: 70;
width: 272px; max-width: 84vw;
height: 100vh; height: 100dvh;
transform: translateX(-100%);
transition: transform .22s ease;
box-shadow: 0 0 40px rgba(44,42,38,.28);
will-change: transform;
}
body.nav-open .sidebar { transform: none; }
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
.nav-scrim {
display: block; position: fixed; inset: 0; z-index: 68;
background: rgba(44,42,38,.45); opacity: 0; pointer-events: none;
transition: opacity .22s ease;
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; } /* lock the page behind the drawer */
/* --- Topbar: hamburger + compact brand stand in for the affirmation dock ---
(`.topbar .affirm-dock` in the shell block is 2-class specificity, so match it) */
.topbar .affirm-dock { display: none; }
.topbar { padding: 0 14px; gap: 12px; }
.nav-toggle {
display: grid; place-items: center;
width: 40px; height: 40px; flex: 0 0 40px;
border: 1px solid var(--line); border-radius: var(--radius-sm);
background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1;
cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }
.topbar-brand {
display: flex; align-items: center; gap: 8px; margin-right: auto;
font-weight: 700; font-size: 17px; color: var(--brand-gold); text-decoration: none;
}
.topbar-brand .vmark {
width: 26px; height: 26px; border-radius: 7px; background: var(--brand-gold);
color: #fff; display: grid; place-items: center;
font-family: Georgia, "Times New Roman", serif; font-weight: 800; font-size: 15px; line-height: 1;
}
.content { padding: 20px 16px; }
}
@media (max-width: 640px) {
/* Every card grid becomes a single, shrinkable column. */
.grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
.content { padding: 16px 12px; }
.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 22px; }
.card { padding: 16px; }
.affirm-hero { padding: 20px; }
.affirm-hero .quote { font-size: 18px; }
.section-title { margin: 20px 0 10px; }
/* Roomier nav rows for thumbs. */
.nav-item { padding: 12px; }
/* Wide deadline/browse columns must not force horizontal scroll on a phone. */
.dl-cols { grid-template-columns: 1fr; }
/* --- Calendar: keep the 7-col month grid but make it legible at phone width --- */
.cal-grid { gap: 3px; }
.cal-cell { min-height: 56px; padding: 4px; border-radius: 6px; }
.cal-cell .num { font-size: 10.5px; }
.cal-ev { font-size: 9.5px; padding: 2px 4px; margin-top: 3px; }
.cal-dow { font-size: 10.5px; }
.cal-viewswitch { width: 100%; }
.cal-viewswitch button { flex: 1; padding: 8px 6px; }
.cal-nav { flex: 1; }
/* --- Onboarding + calendar modals use the whole screen --- */
.overlay { padding: 0; }
.wizard {
width: 100%; max-width: 100%; border-radius: 0;
min-height: 100vh; min-height: 100dvh;
max-height: 100vh; max-height: 100dvh;
padding: 22px 18px;
}
.wizard h2 { font-size: 19px; }
/* Chat page bubbles can use more width on a phone. */
.msg .bubble { max-width: 88%; }
}
/* --- My Crew refinements (search-populated browse, club-sport list) --- */
.crew-browse-hint { padding: 6px 2px; }
.crew-club-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.crew-club {
font-size: 13px; text-decoration: none; color: var(--ink);
background: var(--surface-2); border: 1px solid var(--line);
border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
a.crew-club:hover { border-color: var(--d-crew); color: var(--d-crew); }
/* --- My Crew: family nudge (rotating, literature-grounded) --- */
.crew-fam-nudge { background: var(--d-crew-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.crew-fam-tip { font-weight: 600; margin-bottom: 4px; }
.crew-fam-why { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.crew-fam-cite { font-style: italic; }
.crew-fam-when-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
color: var(--ink-soft); font-weight: 700; margin: 14px 0 6px; }
/* ====================================================================
* MY VU (vu.js) — schedule, deadlines, class search, plan, funding
* ==================================================================== */
.vu-day-date { display: block; font-weight: 400; font-size: 11px; color: var(--ink-soft); }
.sched-item.vu-exam { border-left-color: #C0392B; background: #FBEeeA; }
.vu-room { font-size: 11px; color: var(--ink-soft); }
.vu-kind {
font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
color: var(--d-vu); background: var(--d-vu-soft); padding: 1px 6px; border-radius: 6px;
margin-left: 6px;
}
.vu-weight { color: var(--brand-gold); font-weight: 600; }
/* Find classes */
.vu-search { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.vu-search input[type="text"] {
flex: 2 1 220px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line);
border-radius: var(--radius-sm); font: inherit; background: var(--surface);
}
.vu-search select {
flex: 1 1 140px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line);
border-radius: var(--radius-sm); font: inherit; background: var(--surface);
}
.vu-class-card { margin-bottom: 12px; border-left: 4px solid var(--accent); }
.vu-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.vu-attr { font-size: 11px; }
.vu-sections { border-top: 1px solid var(--line); margin-top: 8px; }
.vu-section-row {
display: grid; grid-template-columns: 90px 1.4fr 1.2fr 1fr; gap: 10px;
padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px;
align-items: baseline;
}
.vu-section-row:last-child { border-bottom: none; }
.vu-sec { font-weight: 700; display: flex; flex-direction: column; }
.vu-seats { color: var(--ink-soft); text-align: right; }
.vu-seats.vu-cancelled { color: #C0392B; font-weight: 600; }
.vu-class-actions { display: flex; gap: 8px; margin-top: 10px; }
.vu-note { margin-top: 6px; }
@media (max-width: 720px) {
.vu-section-row { grid-template-columns: 70px 1fr; }
.vu-section-row > :nth-child(3), .vu-section-row > :nth-child(4) { grid-column: 2; text-align: left; }
}
/* The editable 4-year plan (reuses .plan-grid / .plan-term / .plan-courses) */
.plan-courses li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vu-plan-del {
border: none; background: none; color: var(--ink-soft); font-size: 15px; cursor: pointer;
padding: 0 2px; line-height: 1; border-radius: 4px;
}
.vu-plan-del:hover { color: #C0392B; background: var(--surface-2); }
.vu-plan-add, .vu-plan-note {
width: 100%; margin-top: 8px; padding: 7px 9px; border: 1px dashed var(--line);
border-radius: var(--radius-sm); font: inherit; font-size: 12.5px; background: transparent;
}
.vu-plan-add:focus, .vu-plan-note:focus { border-style: solid; outline: none; border-color: var(--d-vu); }
.vu-plan-note { border-style: none; font-style: italic; color: var(--ink-soft); padding-left: 0; }
/* My VU week pager (shared by "Your week" and "Coming up") */
.vu-week-nav {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 10px; gap: 8px;
}
.vu-week-nav .vu-week-label { font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.vu-week-nav .btn { min-width: 34px; justify-content: center; }
|