:root {
    --orange: #fb8c0b;
    --orange-dark: #c65b00;
    --orange-soft: #fff0de;
    --navy: #19354d;
    --ink: #17212b;
    --muted: #637181;
    --beige: #e8daca;
    --beige-shadow: rgba(165, 126, 82, .16);
    --beige-soft: #f6ede3;
    --blue: #3568dc;
    --blue-soft: #eaf0ff;
    --green: #16875e;
    --green-soft: #e7f5ef;
    --amber: #9f6500;
    --amber-soft: #fff2cf;
    --red: #bd4141;
    --red-soft: #fdeaea;
    --grey-soft: #f2f4f5;
    --radius-xl: 26px;
    --radius-lg: 20px;
    --radius-md: 15px;
    --topbar-height: 76px;
    --sidebar-width: 238px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow: hidden; background: #fff; color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.ui-icon { width: 20px; height: 20px; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.page-backdrop { position: fixed; inset: 0 0 0 var(--sidebar-width); z-index: 0; pointer-events: none; background: #fff url("time-tink-bg-circles-v1.png") center / cover no-repeat; opacity: 1; filter: saturate(1.14) contrast(1.01); }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 24; width: var(--sidebar-width); padding: 24px 18px 20px; display: flex; flex-direction: column; gap: 24px; border-right: 1px solid rgba(232,218,202,.82); background: rgba(255,255,255,.9); box-shadow: 12px 0 34px rgba(25,53,77,.045); }
.sidebar-label { margin: 8px 12px -10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.1px; font-size: 11px; font-weight: 800; }
.sidebar-placement { margin-top: auto; padding: 18px; display: grid; grid-template-columns: 1fr; gap: 4px 12px; border: 1px solid rgba(220,204,187,.72); border-radius: 18px; background: rgba(255,250,245,.82); }
.sidebar-placement > div { display: grid; gap: 5px; }
.sidebar-placement small, .sidebar-placement span { color: var(--muted); font-size: 12px; }
.sidebar-placement strong { color: var(--navy); }
.sidebar-placement button { grid-column: 1 / -1; margin-top: 12px; min-height: 38px; border: 0; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); cursor: pointer; font-weight: 750; }

.topbar {
    height: var(--topbar-height); display: flex; align-items: center; gap: 24px; padding: 0 clamp(18px, 3vw, 46px);
    margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width));
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(232, 218, 202, .8); position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; color: var(--navy); text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--orange); color: white; border-radius: 14px; font-size: 21px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.primary-nav { display: flex; flex-direction: column; align-items: stretch; gap: 7px; margin: 0; }
.nav-link { min-height: 48px; padding: 0 16px; border-radius: 15px; display: flex; align-items: center; color: var(--muted); text-decoration: none; font-weight: 650; transition: background .22s ease, color .22s ease, transform .22s ease; }
.nav-link:hover { background: rgba(246, 237, 227, .65); color: var(--ink); }
.nav-link.is-active { color: var(--orange-dark); background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange), inset 0 1px 0 rgba(255,255,255,.8); transform: translateX(2px); }
.top-context { display: grid; gap: 3px; margin-right: auto; }
.top-context strong { color: var(--navy); }
.top-context span { color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 44px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--orange); color: white; border-color: var(--orange); box-shadow: 0 8px 18px rgba(251, 140, 11, .18), inset 0 1px 0 rgba(255,255,255,.4); }
.button-secondary { background: rgba(255,255,255,.72); color: var(--ink); border-color: var(--beige); box-shadow: 0 5px 14px rgba(165, 126, 82, .07), inset 0 1px 0 #fff; }
.button-soft { background: var(--orange-soft); color: var(--orange-dark); }
.button.full { width: 100%; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--grey-soft); color: var(--navy); cursor: pointer; position: relative; font-weight: 800; }
.icon-button > img { width: 20px; height: 20px; }
.icon-button b { position: absolute; right: -2px; top: -4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; }
.profile-trigger { border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 4px; cursor: pointer; border-radius: 16px; }
.profile-trigger:hover { background: var(--beige-soft); }
.profile-trigger.is-account-active { background: var(--orange-soft); box-shadow: inset 0 0 0 1px rgba(251,140,11,.2); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--navy); color: #fff; font-weight: 800; }
.avatar-soft { background: var(--green-soft); color: var(--green); }
.avatar-grey { background: var(--grey-soft); color: var(--muted); }
.profile-copy { display: grid; text-align: left; gap: 2px; }
.profile-copy strong { white-space: nowrap; }
.profile-copy small { color: var(--muted); }
.profile-menu { position: absolute; right: 36px; top: 68px; width: 230px; padding: 20px; display: grid; gap: 7px; z-index: 30; }
.profile-menu[hidden] { display: none; }
.profile-menu small { color: var(--muted); }
.profile-menu hr { width: 100%; border: 0; border-top: 1px solid var(--beige); }
.profile-menu button { border: 0; background: transparent; padding: 10px 8px; text-align: left; border-radius: 10px; cursor: pointer; }
.profile-menu button:hover { background: var(--beige-soft); }
.profile-menu .danger, .text-danger { color: var(--red); font-weight: 750; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left center; will-change: transform; }

.app-scroll, .account-scroll { position: relative; z-index: 1; height: calc(100dvh - var(--topbar-height)); width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: rgba(193, 158, 119, .55) transparent; background: transparent; }
.app-scroll { scroll-snap-type: y proximity; scroll-padding-top: 14px; }
.app-scroll.is-programmatic-scroll, .account-scroll.is-programmatic-scroll { scroll-snap-type: none; }
.screen { min-height: auto; padding: clamp(30px, 3vw, 46px) clamp(24px, 4vw, 58px) clamp(38px, 4vw, 60px); display: flex; flex-direction: column; justify-content: flex-start; scroll-margin-top: 14px; scroll-snap-align: start; scroll-snap-stop: normal; }
.screen + .screen { border-top: 1px solid rgba(232, 218, 202, .55); }
.screen > * { transition: opacity .34s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.screen:not(.is-near) > * { opacity: .9; transform: translateY(10px) scale(.997); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 0 28px; }
.section-heading h1 { margin: 2px 0 7px; color: var(--navy); font-size: clamp(31px, 3vw, 46px); line-height: 1.05; letter-spacing: -1.5px; }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 16px; }
.eyebrow { margin: 0 0 8px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; font-weight: 800; }
.orange-text { color: var(--orange-dark); }
.subsection-title { margin: 30px 0 16px; color: var(--navy); font-size: 22px; }

.glass-panel { background: rgba(255,255,255,.88); border: 1px solid rgba(220, 204, 187, .82); border-radius: var(--radius-lg); box-shadow: 0 10px 24px rgba(165, 126, 82, .09), inset 0 1px 0 rgba(255,255,255,.9); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metric { min-height: 132px; display: flex; align-items: center; gap: 18px; padding: 26px; }
.metric-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-size: 28px; font-weight: 700; }
.metric-icon img { width: 27px; height: 27px; }
.metric-icon.orange { background: var(--orange-soft); color: var(--orange); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric p { margin: 0 0 5px; color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .4px; }
.metric strong { color: var(--navy); font-size: 31px; margin-right: 10px; }
.metric span:last-child { color: var(--muted); font-size: 14px; }
.dashboard-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); gap: 20px; align-items: stretch; }
.placement-summary, .attention-card { padding: 28px; }
.placement-summary { grid-column: 1; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading h2, .chat-heading h2, .conversations h2 { margin: 0; color: var(--navy); font-size: 22px; }
.card-heading p { margin: 22px 0 7px; }
.card-heading span:not(.status) { color: var(--muted); }
.status { min-height: 34px; padding: 0 18px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; width: max-content; font-size: 13px; font-weight: 750; white-space: nowrap; }
.status-active { color: var(--blue); background: var(--blue-soft); }
.status-pending, .status-awaiting-approval { color: var(--amber); background: var(--amber-soft); }
.status-approved { color: var(--green); background: var(--green-soft); }
.status-changes-requested { color: var(--red); background: var(--red-soft); }
.status-draft { color: var(--muted); background: var(--grey-soft); }
.progress-content { display: grid; grid-template-columns: 165px 1fr; align-items: center; gap: 30px; margin: 25px 0 20px; }
.progress-ring { width: 138px; height: 138px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, rgba(255,255,255,.98) 78%, transparent 79%), conic-gradient(var(--orange) calc(var(--progress) * 1%), var(--beige) 0); }
.progress-ring strong { color: var(--navy); font-size: 26px; }
.progress-ring span { color: var(--muted); }
.progress-details h3 { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.progress-track { height: 14px; border-radius: 999px; overflow: hidden; background: var(--beige); }
.progress-track span { height: 100%; display: block; border-radius: inherit; background: var(--orange); }
.progress-labels { display: flex; justify-content: space-between; gap: 15px; margin-top: 12px; font-size: 14px; }
.progress-labels span { color: var(--muted); }
.progress-details dl { display: flex; gap: 55px; margin: 28px 0 0; }
dt { color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 800; }
dd { margin: 5px 0 0; font-weight: 750; }
.attention-card { display: flex; flex-direction: column; }
.attention-item { width: 100%; display: grid; grid-template-columns: 60px 1fr 20px; align-items: center; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid rgba(232,218,202,.75); background: transparent; text-align: left; cursor: pointer; }
.attention-item time { width: 54px; height: 54px; display: grid; place-content: center; text-align: center; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); font-size: 12px; }
.attention-item time.returned { background: var(--red-soft); color: var(--red); }
.attention-item time b { font-size: 16px; }
.attention-item span { display: grid; gap: 6px; }
.attention-item small { color: var(--muted); }
.attention-card .full { margin-top: auto; }
.feedback-card { grid-column: 1 / -1; padding: 22px 28px; display: flex; align-items: center; gap: 18px; }
.feedback-card > div { min-width: 0; flex: 1; }
.feedback-card p { margin: 0 0 8px; display: flex; justify-content: space-between; }
.feedback-card small, .feedback-card > div > span { color: var(--muted); }

.dashboard-calendar { grid-column: 2; grid-row: 1 / span 2; padding: 26px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calendar-heading h2 { margin: 0; color: var(--navy); }
.calendar-actions { display: flex; gap: 6px; }
.calendar-actions button { min-height: 34px; padding: 0 9px; border: 1px solid var(--beige); border-radius: 10px; background: rgba(255,255,255,.72); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.month-grid { width: 100%; margin: 22px 0 18px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.month-grid th { padding-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 800; }
.month-grid td { height: 38px; text-align: center; }
.month-grid button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.month-grid button:hover { background: var(--beige-soft); }
.month-grid .is-today { background: var(--navy); color: #fff; font-weight: 800; }
.month-grid .has-review { position: relative; background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; }
.month-grid .has-review::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--orange); }
.calendar-event { width: 100%; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 14px; border: 0; border-radius: 14px; background: var(--orange-soft); color: var(--ink); text-align: left; cursor: pointer; }
.calendar-event > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #fff; color: var(--orange-dark); font-weight: 800; }
.calendar-event > span:last-child { display: grid; gap: 4px; }
.calendar-event small { color: var(--muted); }

.placement-hero { min-height: 390px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; padding: 36px 38px 32px 50px; position: relative; overflow: hidden; }
.placement-accent { position: absolute; inset: 0 auto 0 0; width: 10px; background: var(--orange); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.placement-main h2 { margin: 18px 0 7px; color: var(--navy); font-size: clamp(27px, 3vw, 38px); }
.placement-subtitle { color: var(--muted); }
.placement-subtitle span { margin: 0 7px; }
.status-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.placement-meta { display: grid; grid-template-columns: repeat(4, minmax(115px, 1fr)); gap: 18px; margin: 0; }
.placement-meta div { min-width: 0; }
.placement-meta dd { overflow-wrap: anywhere; }
.placement-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hours-card { align-self: stretch; border-radius: 20px; background: rgba(245,246,246,.88); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.hours-card h3 { color: var(--navy); margin: 0 0 14px; }
.hours-card > p { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; color: var(--muted); }
.hours-card > p strong { color: var(--orange-dark); font-size: 44px; }
.hours-card .progress-labels b { color: var(--green); }
.hours-card .progress-labels strong { color: var(--amber); }
.hours-card dl { display: flex; justify-content: space-between; margin: 34px 0 0; }
.project-table { overflow: hidden; }
.project-row { display: grid; grid-template-columns: 2fr .8fr 1.2fr .8fr 1fr; gap: 20px; align-items: center; min-height: 78px; padding: 12px 28px; border-top: 1px solid rgba(232,218,202,.72); }
.project-row:first-child { border-top: 0; }
.project-row > span:first-child { display: grid; gap: 5px; }
.project-row small { color: var(--muted); }
.project-header { min-height: 52px; color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 800; }

.filter-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 20px; scrollbar-width: none; }
.filter { min-height: 44px; padding: 0 22px; border: 1px solid var(--beige); background: rgba(255,255,255,.75); border-radius: 24px; white-space: nowrap; cursor: pointer; }
.filter b { margin-left: 5px; }
.filter.is-active { color: white; background: var(--navy); border-color: var(--navy); }
.activity-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .95fr); gap: 20px; }
.submission-list, .submission-detail { padding: 28px; }
.submission-head, .submission-row { display: grid; grid-template-columns: .75fr 1.8fr .6fr 1.15fr; gap: 18px; align-items: center; }
.submission-head { padding: 24px 16px 14px; color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 800; }
.submission-row { width: 100%; min-height: 82px; padding: 15px 16px; border: 0; border-top: 1px solid rgba(232,218,202,.72); background: transparent; text-align: left; cursor: pointer; border-radius: 15px; }
.submission-row.is-selected { background: var(--orange-soft); border-top-color: transparent; }
.submission-row > span { display: grid; gap: 6px; }
.submission-row small { color: var(--muted); }
.submission-row[hidden] { display: none; }
.empty-filter { color: var(--muted); padding: 28px 16px; }
.submission-detail hr, .settings-panel hr { border: 0; border-top: 1px solid rgba(232,218,202,.8); margin: 26px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.detail-grid div:first-child { grid-column: 1 / -1; }
.submission-detail h3 { margin: 28px 0 8px; color: var(--muted); text-transform: uppercase; font-size: 12px; }
.next-note { display: grid; gap: 8px; padding: 18px; margin-top: 28px; border-radius: 15px; background: var(--amber-soft); }
.next-note strong { color: var(--amber); }
.button-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin-top: 18px; }

.messages-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; min-height: 640px; }
.conversations { padding: 26px 18px; }
.conversations h2 { margin: 0 12px 18px; }
.conversation { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 16px 12px; border-radius: 17px; text-align: left; cursor: pointer; }
.conversation.is-active { background: var(--orange-soft); }
.conversation > span:nth-child(2) { display: grid; gap: 7px; min-width: 0; }
.conversation small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation time { color: var(--muted); font-size: 12px; }
.chat-panel { padding: 28px; display: flex; flex-direction: column; }
.chat-heading { display: flex; align-items: start; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--beige); }
.chat-heading p { color: var(--muted); }
.chat-messages { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 36px 0; overflow-y: auto; }
.message { max-width: 68%; padding: 18px 22px; background: var(--grey-soft); border-radius: 20px; }
.message.mine { align-self: flex-end; background: var(--orange-soft); }
.message p { margin: 0 0 10px; line-height: 1.5; }
.message time { display: block; color: var(--muted); font-size: 11px; text-align: right; }
.message-form { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.message-form input, .search-field, .field-grid input, .modal-fields input, .modal-fields select, .modal-fields textarea { width: 100%; border: 1px solid var(--beige); background: rgba(255,255,255,.74); border-radius: 15px; color: var(--ink); outline: none; }
.message-form input { min-height: 50px; padding: 0 18px; border-radius: 25px; }
input:focus, textarea:focus, select:focus { border-color: var(--orange) !important; box-shadow: 0 0 0 3px rgba(251,140,11,.12); }

.help-search { padding: 32px; }
.help-search h2 { color: var(--navy); }
.search-field { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.search-field > img { width: 22px; height: 22px; }
.search-field input { flex: 1; border: 0; outline: 0; background: transparent; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help-topic { overflow: hidden; }
.help-topic > button { width: 100%; min-height: 116px; padding: 24px; border: 0; background: transparent; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 18px; text-align: left; cursor: pointer; }
.topic-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--orange-dark); background: var(--orange-soft); font-weight: 800; }
.help-topic button > span:nth-child(2) { display: grid; gap: 8px; }
.help-topic small { color: var(--muted); }
.topic-toggle { transition: transform .22s ease; }
.help-topic.is-open .topic-toggle { transform: rotate(180deg); }
.topic-answer { padding: 0 28px 22px 90px; color: var(--muted); }
.help-topic[hidden] { display: none; }

.account-scroll { background: transparent; scroll-snap-type: y proximity; scroll-padding-top: 72px; }
.account-shell { width: min(1060px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 54px; }
.account-heading { max-width: 760px; }
.account-heading h1 { margin: 3px 0 10px; color: var(--navy); font-size: clamp(34px, 4vw, 52px); letter-spacing: -1.8px; }
.account-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.back-link { min-height: 42px; margin: 0 0 28px; padding: 0 14px 0 4px; border: 0; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--orange-dark); cursor: pointer; font-weight: 750; }
.back-link:hover { background: var(--orange-soft); }
.account-nav { position: sticky; top: 0; z-index: 12; display: flex; gap: 7px; width: max-content; max-width: 100%; margin: 24px auto 8px; padding: 8px; overflow-x: auto; border: 1px solid rgba(220,204,187,.82); border-radius: 999px; background: rgba(255,255,255,.98); box-shadow: 0 8px 20px rgba(165,126,82,.09); scrollbar-width: none; }
.account-nav-link { min-height: 42px; padding: 0 20px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); text-decoration: none; font-weight: 700; white-space: nowrap; }
.account-nav-link.is-active { background: var(--orange-soft); color: var(--orange-dark); }
.account-section { min-height: auto; padding: 16px 0 40px; display: flex; flex-direction: column; justify-content: flex-start; scroll-margin-top: 72px; scroll-snap-align: start; scroll-snap-stop: normal; }
.account-section + .account-section { padding-top: 28px; border-top: 1px solid rgba(232,218,202,.52); }
.account-section > * { transition: opacity .34s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.account-section:not(.is-near) > * { opacity: .9; transform: translateY(10px) scale(.997); }
.profile-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
.profile-sidebar { padding: 32px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.avatar-large { width: 94px; height: 94px; font-size: 28px; }
.profile-sidebar h2 { margin: 15px 0 4px; }
.profile-sidebar > p { color: var(--muted); font-size: 13px; }
.profile-summary { width: 100%; margin: 30px 0 0; display: grid; gap: 0; text-align: left; }
.profile-summary div { display: flex; justify-content: space-between; gap: 14px; padding: 15px 0; border-top: 1px solid rgba(220,204,187,.7); }
.profile-summary dt { color: var(--muted); }
.profile-summary dd { margin: 0; font-weight: 750; }
.text-danger { margin-top: auto; width: 100%; }
.settings-panel { padding: 34px 38px; }
.settings-panel h2 { margin: 0 0 6px; color: var(--navy); }
.settings-panel > p { color: var(--muted); }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.panel-title .eyebrow { margin-bottom: 4px; }
.panel-title h2 { font-size: 27px; }
.panel-title p:not(.eyebrow) { margin: 0; color: var(--muted); }
.account-card, .preferences-form { max-width: 900px; margin: 0 auto; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 25px; }
.field-grid label, .modal-fields label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.field-grid input { min-height: 54px; padding: 0 16px; }
.preference-list { display: grid; gap: 18px; margin: 25px 0; }
.preference-list label, .confirm { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.preference-list label > span { display: grid; gap: 4px; }
.preference-list label small { color: var(--muted); font-weight: 500; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); }
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border-radius: 15px; background: var(--blue-soft); }
.settings-footer p { margin: 0; color: var(--blue); }
.setting-rows { display: grid; }
.setting-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-top: 1px solid rgba(220,204,187,.72); }
.setting-row > div, .setting-toggle > span { display: grid; gap: 5px; }
.setting-row span, .setting-toggle small { color: var(--muted); font-weight: 500; }
.setting-toggle { cursor: pointer; }
.setting-toggle input { flex: 0 0 auto; }

.toast { position: fixed; top: 90px; right: 24px; z-index: 50; min-height: 50px; max-width: 410px; display: flex; align-items: center; gap: 20px; padding: 12px 14px 12px 18px; border: 1px solid var(--beige); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 16px 36px var(--beige-shadow); }
.toast-success { color: var(--green); }
.toast-error { color: var(--red); }
.toast button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }

.hours-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-xl); background: transparent; overflow: visible; }
.hours-dialog::backdrop { background: rgba(25,53,77,.25); backdrop-filter: blur(8px); }
.dialog-shell { max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px; border: 1px solid var(--beige); border-radius: var(--radius-xl); background: rgba(255,255,255,.95); box-shadow: 0 30px 80px rgba(80,60,40,.24); }
.dialog-heading { display: flex; justify-content: space-between; gap: 24px; }
.dialog-heading h2 { margin: 0 0 5px; color: var(--navy); font-size: 30px; }
.dialog-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.dialog-close { border: 0; background: var(--grey-soft); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 25px; }
.stepper { display: flex; gap: 18px; padding: 0; margin: 28px 0; list-style: none; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); flex: 1; }
.stepper li::after { content: ""; height: 2px; background: var(--beige); flex: 1; }
.stepper li:last-child::after { display: none; }
.stepper b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--grey-soft); }
.stepper li.is-active { color: var(--orange-dark); font-weight: 750; }
.stepper li.is-active b { background: var(--orange); color: #fff; }
.modal-fields { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr; gap: 20px; }
.modal-fields .wide { grid-column: span 2; }
.modal-fields .reflection { grid-column: span 3; }
.modal-fields .evidence { grid-column: span 1; }
.modal-fields input, .modal-fields select { min-height: 50px; padding: 0 14px; }
.modal-fields select { appearance: none; padding-right: 44px; background-image: url("icons/chevron-down.svg"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px; cursor: pointer; }
.modal-fields textarea { min-height: 105px; padding: 14px; resize: vertical; }
.modal-fields label > span { color: var(--red); }
.modal-fields small { font-weight: 500; text-align: right; }
.date-guidance { color: var(--muted); }
.modal-fields label > .custom-select { position: relative; display: block; color: inherit; }
.custom-select-trigger { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--beige); border-radius: 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: rgba(255,255,255,.88); color: var(--ink); cursor: pointer; text-align: left; font-weight: 700; }
.custom-select-trigger[aria-expanded="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(251,140,11,.12); }
.custom-select-menu { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 8; padding: 7px; display: grid; gap: 3px; border: 1px solid var(--beige); border-radius: 15px; background: #fff; box-shadow: 0 18px 42px rgba(80,60,40,.2); }
.custom-select-menu[hidden] { display: none; }
.custom-select-menu button { min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-weight: 650; }
.custom-select-menu button:hover, .custom-select-menu button[aria-selected="true"] { background: var(--orange-soft); color: var(--orange-dark); }
.break-guidance { grid-column: 1 / -1; min-height: 58px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 16px; border: 1px solid rgba(53,104,220,.12); border-radius: 15px; background: rgba(234,240,255,.72); font-size: 13px; }
.break-guidance strong { color: var(--navy); }
.break-guidance span { color: var(--muted); line-height: 1.45; }
.break-guidance a { color: var(--blue); font-weight: 750; text-decoration: none; white-space: nowrap; }
.break-guidance a:hover { text-decoration: underline; }
.confirm { margin: 22px 0; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.dialog-actions > span { margin-right: auto; color: var(--green); font-size: 13px; }

@media (max-width: 1180px) {
    :root { --topbar-height: 128px; }
    .topbar { flex-wrap: wrap; align-content: center; gap: 8px 18px; padding-block: 10px; }
    .brand { order: 1; }
    .top-actions { order: 2; margin-left: auto; }
    .primary-nav { order: 3; width: 100%; overflow-x: auto; justify-content: center; scrollbar-width: none; }
    .profile-copy { display: none; }
    .dashboard-grid, .activity-layout { grid-template-columns: 1fr; }
    .placement-hero { grid-template-columns: 1fr 260px; }
    .messages-layout { min-height: 610px; }
}

@media (max-width: 820px) {
    :root { --topbar-height: 122px; }
    .topbar { padding-inline: 16px; }
    .brand { font-size: 20px; }
    .brand-mark { width: 38px; height: 38px; }
    .top-actions .button { min-height: 40px; padding: 0 14px; }
    .icon-button { width: 40px; height: 40px; }
    .profile-trigger .avatar { width: 40px; height: 40px; }
    .primary-nav { justify-content: flex-start; }
    .nav-link { min-height: 38px; padding: 0 15px; }
    .screen { padding-inline: 20px; }
    .metric-grid, .help-grid { grid-template-columns: 1fr; }
    .metric { min-height: 104px; }
    .placement-hero { grid-template-columns: 1fr; padding: 30px 24px 28px 36px; }
    .placement-meta { grid-template-columns: 1fr 1fr; }
    .hours-card { min-height: 245px; }
    .project-table { overflow-x: auto; }
    .project-row { min-width: 760px; }
    .messages-layout { grid-template-columns: 1fr; min-height: auto; }
    .conversations { display: none; }
    .chat-panel { min-height: 600px; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-sidebar { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; text-align: left; align-items: center; }
    .profile-sidebar .avatar { grid-row: 1 / span 3; }
    .profile-sidebar h2, .profile-sidebar > p { margin: 0; }
    .profile-sidebar .status { grid-column: 2; }
    .profile-summary { grid-column: 1 / -1; }
    .modal-fields { grid-template-columns: 1fr 1fr; }
    .modal-fields .wide { grid-column: span 2; }
    .modal-fields .reflection { grid-column: span 2; }
    .modal-fields .evidence { grid-column: span 2; }
}

@media (max-width: 560px) {
    :root { --topbar-height: 112px; }
    .brand span:last-child { display: none; }
    .top-actions { gap: 6px; }
    .top-actions .button { font-size: 13px; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .section-heading .button { align-self: flex-start; }
    .screen { padding: 28px 14px 45px; }
    .metric { padding: 20px; }
    .dashboard-grid { grid-template-columns: minmax(0,1fr); }
    .placement-summary, .attention-card, .submission-list, .submission-detail, .chat-panel, .settings-panel { padding: 22px 18px; }
    .progress-content { grid-template-columns: 1fr; justify-items: center; }
    .progress-details { width: 100%; }
    .feedback-card { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
    .feedback-card .button { width: 100%; }
    .placement-meta, .field-grid, .detail-grid { grid-template-columns: 1fr; }
    .detail-grid div:first-child { grid-column: auto; }
    .placement-actions .button { flex: 1; }
    .submission-head { display: none; }
    .submission-row { grid-template-columns: 1fr auto; }
    .submission-row > span:nth-child(2) { grid-column: 1; }
    .submission-row > span:nth-child(3), .submission-row > span:nth-child(4) { grid-column: 2; }
    .message { max-width: 88%; }
    .message-form { grid-template-columns: 1fr; }
    .help-topic > button { grid-template-columns: 44px 1fr 16px; padding: 20px 14px; }
    .topic-answer { padding-left: 74px; }
    .settings-footer { align-items: stretch; flex-direction: column; }
    .account-shell { width: min(100% - 24px, 1180px); padding-top: 28px; }
    .account-heading h1 { font-size: 34px; }
    .account-nav { width: 100%; border-radius: 18px; }
    .account-nav-link { padding-inline: 16px; }
    .account-section { padding-top: 24px; }
    .panel-title { flex-direction: column; }
    .setting-row { align-items: flex-start; flex-direction: column; }
    .setting-toggle { flex-direction: row; align-items: center; }
    .modal-fields { grid-template-columns: 1fr; }
    .modal-fields .wide, .modal-fields .reflection, .modal-fields .evidence { grid-column: auto; }
    .break-guidance { grid-column: auto; grid-template-columns: 1fr; }
    .break-guidance a { white-space: normal; }
    .dialog-shell { padding: 24px 18px; }
    .stepper span { display: none; }
    .dialog-actions { flex-wrap: wrap; }
    .dialog-actions > span { width: 100%; }
    .dialog-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .app-scroll { scroll-snap-type: none; }
    .account-scroll { scroll-snap-type: none; }
}

body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { scroll-behavior: auto !important; transition: none !important; }
body.reduce-motion .app-scroll { scroll-snap-type: none; }
body.reduce-motion .account-scroll { scroll-snap-type: none; }

@media (max-width: 1180px) and (min-width: 901px) {
    :root { --sidebar-width: 210px; --topbar-height: 76px; }
    .sidebar { padding-inline: 14px; }
    .topbar { flex-wrap: nowrap; align-content: initial; padding-block: 0; }
    .top-actions { order: initial; margin-left: 0; }
    .primary-nav { order: initial; width: auto; overflow: visible; justify-content: initial; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .placement-summary, .attention-card, .dashboard-calendar { grid-column: 1; }
    .dashboard-calendar { grid-row: auto; }
}

@media (max-width: 900px) {
    :root { --sidebar-width: 0px; --topbar-height: 76px; }
    .topbar { width: 100%; margin-left: 0; flex-wrap: nowrap; align-content: initial; padding: 0 16px; }
    .top-context { display: none; }
    .top-actions { order: initial; margin-left: auto; }
    .sidebar { inset: var(--topbar-height) 0 auto; width: 100%; height: 48px; padding: 4px 12px; flex-direction: row; align-items: center; gap: 0; border-right: 0; border-bottom: 1px solid rgba(232,218,202,.82); box-shadow: 0 8px 20px rgba(25,53,77,.04); }
    .sidebar .brand, .sidebar-label, .sidebar-placement { display: none; }
    .primary-nav { order: initial; width: 100%; flex-direction: row; justify-content: flex-start; gap: 5px; overflow-x: auto; scrollbar-width: none; }
    .nav-link { min-height: 38px; padding: 0 15px; border-radius: 12px; white-space: nowrap; }
    .nav-link.is-active { box-shadow: inset 0 -3px 0 var(--orange); transform: none; }
    .app-scroll, .account-scroll { width: 100%; height: calc(100dvh - var(--topbar-height) - 48px); margin: 48px 0 0; }
    .profile-copy { display: none; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .placement-summary, .attention-card, .dashboard-calendar { grid-column: 1; }
    .dashboard-calendar { grid-row: auto; }
    .screen { padding-inline: 20px; }
}

@media (max-width: 560px) {
    :root { --topbar-height: 68px; }
    .topbar { padding-inline: 10px; }
    .top-actions .button { padding-inline: 12px; }
    .icon-button { width: 40px; height: 40px; }
    .profile-trigger .avatar { width: 40px; height: 40px; }
    .sidebar { height: 46px; }
    .app-scroll, .account-scroll { height: calc(100dvh - var(--topbar-height) - 46px); margin-top: 46px; }
    .dashboard-calendar { padding: 20px 14px; }
    .calendar-actions button { font-size: 0; width: 34px; padding: 0; }
    .calendar-actions button:first-child::after { content: "Prev"; font-size: 10px; }
    .calendar-actions button:last-child::after { content: "Next"; font-size: 10px; }
    .month-grid { border-spacing: 1px; }
    .month-grid td { height: 34px; }
    .month-grid button { width: 31px; height: 31px; }
}
