/* Navigation glue. The sidebar, top bar, menus, buttons, dock and avatar are the approved mockup's own styles (redesign-v3.css, verbatim); this file only adapts them to a real page:
 * a sticky sidebar and top bar, the fold (the mockup's .frame.mini), the phone dock fixed to the screen, the Menu sheet, the tab strip and the help and tour modals. Never restyle a mockup class here. */
body { container: f / inline-size; }                         /* the mockup's @container f rules answer to the window, not to a frame */
.app { height: auto; min-height: 100dvh; background: var(--rail); } /* the rail's colour runs the full page height, however long the page; the sticky .sb rides on top of it */
.sb { position: sticky; top: 0; height: 100dvh; overflow: hidden auto; z-index: 20; }
.crumb .pop a.mi { display: flex; padding: calc(7px * var(--s1-scale, 1)) calc(9px * var(--s1-scale, 1)); }  /* the mockup's .crumb a rule is for path links, not the menu rows inside the path */
.sb .brand { display: block; margin: 2px 10px 18px; color: #fff; text-decoration: none; --wmq: var(--rail-accent); flex: none; }
.sb .brand-mark { display: inline-flex; color: #fff; overflow: visible; }
.sb .brand-mark .s1-logo--rail { width: 26px; height: 26px; object-fit: contain; border-radius: 7px; }
.s1n-rail { display: contents; }
.main { min-height: 100dvh; }
.tb { position: sticky; top: 0; }
.srch button.search-submit { display: grid; place-items: center; flex: none; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.srch input { flex: 1; min-width: 0; height: 28px; border: 0; background: none; box-shadow: none; color: var(--ink); font: 400 var(--s1-fs-2) var(--ui); }
.srch input::placeholder { color: var(--mute); }
.srch:focus-within { background: var(--panel); border-color: var(--ink); }
.tb .topbar-search-button { display: none; }
.main-site[hidden] { display: none; }
.dock-wrap { display: contents; }
/* the fold (the mockup's .frame.mini) */
body.s1n-mini .app { grid-template-columns: 54px minmax(0, 1fr); }
body.s1n-mini .sbi span, body.s1n-mini .sbi .n, body.s1n-mini .sb .wm .t, body.s1n-mini .sb .rwt-wordmark .t, body.s1n-mini .sb .mh { display: none; }
body.s1n-mini .sbl { height: 1px; padding: 0; margin: 10px; background: var(--rail-line); overflow: hidden; color: transparent; }
body.s1n-mini .sb .brand { margin-inline: 11px; } body.s1n-mini .sbc .ic { transform: rotate(180deg); }
.sbi .n[hidden], .dock .s1n-badge[hidden] { display: none; }
.dock a { position: relative; }
.dock .s1n-badge { position: absolute; top: 2px; right: calc(50% - 22px); font: 650 var(--s1-fs-1)/1 var(--ui); color: #fff; }
.sbi .apex { width: 18px; height: 18px; flex: none; }
/* the phone: the dock is fixed to the screen; the top bar keeps search, New, Ask and the avatar */
@container f (max-width: 600px) {
  .mobile-dock { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; }
  .app { display: block; }
  .tb { padding-left: var(--gut); }
  .tb .topbar-search-button { display: inline-flex; }
  .tb .srch { display: none; }
  .crumb { flex: 1 1 0; overflow: hidden; }
  .crumb .ws { min-width: 0; } .s1ws-trigger-name { overflow: hidden; text-overflow: ellipsis; }
  /* the controls keep the mockup's 32px look; the touch target is 44px (a transparent hit area around each) */
  .tbr { gap: 14px; } /* 14px between the 30px controls leaves each 7px of hit area on every side without touching its neighbour */
  .tb .btn.icon, .tb .btn.ask, .tb .btn.new, .tb .avb { position: relative; }
  .tb .btn.icon::after, .tb .btn.ask::after, .tb .btn.new::after, .tb .avb::after { content: ""; position: absolute; inset: -7px; width: auto; height: auto; transform: none; }
  .main > main, .main > #student-page-root { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.s1ws-trigger-name { max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .sb { display: none; } }

/* the Menu sheet (the phone's Menu is the rest of the sidebar, with search): a full-screen page over the app */
.s1n-droot { position: fixed; inset: 0; z-index: 95; visibility: hidden; transition: visibility 0s linear var(--d2); }
.s1n-droot.is-open { visibility: visible; transition-delay: 0s; }
.s1n-dshade { position: absolute; inset: 0; background: rgba(17, 19, 24, .4); opacity: 0; transition: opacity var(--d2) var(--ease); }
.s1n-droot.is-open .s1n-dshade { opacity: 1; }
.s1n-drawer { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 calc(10px * var(--s1-scale, 1)) env(safe-area-inset-bottom, 0px); background: var(--panel); color: var(--ink); transform: translateY(12px); opacity: 0; transition: transform var(--d2) var(--ease), opacity var(--d2) var(--ease); }
.s1n-droot.is-open .s1n-drawer { transform: none; opacity: 1; }
@media (min-width: 601px) { .s1n-droot { display: none; } }
.s1n-dhead { display: flex; align-items: center; justify-content: space-between; min-height: var(--s1-tb-h, 48px); padding: 0 2px 0 calc(8px * var(--s1-scale, 1)); }
.s1n-dhead b { font: 750 var(--s1-fs-4) var(--display); letter-spacing: -.01em; }
.s1n-dsearch { margin: 4px 4px 10px; }
.s1n-dsearch input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 400 var(--s1-fs-4) var(--ui); }
.s1n-dnav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; padding-bottom: calc(12px * var(--s1-scale, 1)); }
/* The Menu sheet never moves sideways (owner, 2026-11-20): it scrolls up and down only, and a long hint ("People, Announcements, Deadlines") shortens instead of widening the row. */
.s1n-drawer { overflow-x: clip; touch-action: pan-y; } .s1n-dnav .mi { min-width: 0; max-width: 100%; } .s1n-dnav .mi > .s1n-label { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1n-dnav .mi small { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .s1n-dnav .ms, .sheet .ms { margin: 5px 0; } .sheet { overflow-x: hidden; touch-action: pan-y; } /* the shared divider reaches 6px past each side (margin -6px): inside the sheet that alone let the list pan sideways */
.s1n-dnav .mi { padding: calc(11px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); font-size: var(--s1-fs-3); } .s1n-dnav .mi .ic { width: 19px; height: 19px; }
.s1n-dnav .mi[hidden], .s1n-dgroup[hidden] { display: none; }
.s1n-droot.is-finding .ms, .s1n-droot.is-finding .s1n-ver, .s1n-droot.is-finding .mh { display: none; }
.s1n-ver { margin: 8px 10px 0; }

/* tab strip: Projects Mine | Find | Partner | Personal, Tasks | Calendar, Feed | Requests. */
.s1n-tabs { display: flex; gap: 4px; margin: 4px var(--s1-gutter) 0; padding: 0; border-bottom: 1px solid var(--s1-line); overflow-x: auto; scrollbar-width: none; }
.s1n-tabs[hidden] { display: none; }
.s1n-tab { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 calc(14px * var(--s1-scale, 1)); color: var(--s1-mute); font: 600 var(--s1-fs-3) var(--s1-font-ui); text-decoration: none; white-space: nowrap; }
.s1n-tab:hover { color: var(--s1-ink); }
.s1n-tab[aria-current="page"] { color: var(--s1-ink); }
.s1n-tab[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--s1-ink); }
.s1n-tab:focus-visible {   border-radius: 6px; }
body.s1-shell.s1-project-mode .s1n-tabs { display: none; }


/* Help modal (Kit.modal body): link rows */
.s1n-help-intro { margin: 0 0 12px; color: var(--s1-ink-2); font: var(--s1-text-small)/1.5 var(--s1-font-ui); }
.s1n-help { display: grid; gap: calc(6px * var(--s1-scale, 1)); }
.s1n-help-row { display: flex; align-items: center; gap: calc(12px * var(--s1-scale, 1)); width: 100%; min-height: 56px; padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: var(--s1-radius-control); background: var(--s1-panel); color: var(--s1-ink); text-align: left; text-decoration: none; cursor: pointer; font: inherit; }
.s1n-help-row:hover { background: var(--s1-panel-head); border-color: var(--s1-checkbox); }
.s1n-help-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.s1n-help-text strong { font: 650 var(--s1-text-base) var(--s1-font-ui); }
.s1n-help-text small { color: var(--s1-mute); font: var(--s1-text-small) var(--s1-font-ui); }
.s1n-help-go { color: var(--s1-mute); display: inline-grid; }

/* Tour modal (portal-guide.js) */
.s1-tour { display: flex; gap: calc(14px * var(--s1-scale, 1)); align-items: flex-start; }
.s1-tour-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--s1-line); border-radius: var(--s1-radius-control); background: var(--s1-panel-head); color: var(--s1-ink); }
.s1-tour p { margin: 0; color: var(--s1-ink-2); font: var(--s1-text-base)/1.55 var(--s1-font-ui); }



/* Inbox pop-over: the title takes the room and wraps by word; a long wait note is cut with an ellipsis, never a column of its own. */
.pop.inbox { width: 360px !important; max-width: calc(100vw - 24px); }
.pop.inbox .mi { align-items: flex-start; }
.pop.inbox .mi > span:not(.av) { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.pop.inbox .mi > .av { flex: none; }
.pop.inbox .mi > small.wait { flex: 0 1 7em; margin-left: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
/* A long project name in the path gives way to the search box's left edge with an ellipsis instead of running under it. */
.crumb > .here { flex: 0 1 auto; max-width: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb > .pinb { flex: none; }
.crumb { flex: 0 1 auto; }
.tb .srch { min-width: 150px; }
/* ...but the workspace name is what gives way first, so the page's own name reads whole ("Announcements", not "Announcem…"). */
.crumb > .anchor { flex: 0 1 auto; min-width: 9em; display: flex; }
.crumb > .anchor > .ws { min-width: 0; max-width: 100%; }
.crumb > .anchor > .ws .s1ws-trigger-name { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Phone: the top bar names where you are. The workspace shrinks to its mark while a page name follows it, and the page name gets the room (it was cut to "Compliar"); the workspace name is on the sign-in, the menu and the switcher. */
@media (max-width: 640px) {
  .crumb:has(.here) > .anchor > .ws .s1ws-trigger-name { display: none; }
  .crumb > .anchor:first-child { min-width: 0; flex: 0 0 auto; }
  .crumb > .anchor.x:has(.here) { display: flex; }
  .crumb > .anchor:has(.here) { flex: 0 1 auto; min-width: 0; max-width: none; }
  .crumb .cbtn.here { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
.s1n-hits { display: flex; flex-direction: column; }
.s1n-hits:empty { display: none; }
.s1n-hit { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); min-height: 44px; }
.s1n-hit .s1n-kind { flex: none; min-width: 58px; font-size: var(--s1-fs-1); font-weight: 600; color: var(--mute, #6b7280); }
.s1n-hit .s1n-sub { display: block; font-size: var(--s1-fs-1); font-weight: 400; color: var(--mute, #6b7280); }
/* Where the bar has room, the workspace's name reads whole: it is the first thing that says whose portal this is. It only gives way to an ellipsis on a narrow bar. */
@media (min-width: 1100px) { .tb .srch { min-width: 210px; } .crumb { flex: 0 1 auto; min-width: 0; max-width: 52%; } .crumb > .anchor:first-child { flex: 0 0 auto; min-width: 0; } .crumb > .anchor:first-child > .ws { max-width: none; } .crumb > .anchor > .ws .s1ws-trigger-name { flex: none; max-width: 48ch; color: var(--ink); } }

/* The account menu is shifted back inside the screen by placeMenu() (s1-nav.js): on a phone its avatar is not at the right edge. */
.s1n-menu { margin-right: calc(var(--s1n-menu-dx, 0px) * -1); }

/* Key icon buttons carry a short visible word beside the icon (Pin, Inbox, More, New, Snooze, Preview): an icon alone does not say what it does, and there are no tooltips. The accessible name starts with the same word. */
.btn.icon.lb, .btn.icon.sm.lb { width: auto; padding: 0 8px; gap: 5px; }
.btn.icon.lb > .bl { font: 600 var(--s1-fs-1)/1 var(--s1-font-ui); white-space: nowrap; }
.tb .btn.icon.lb > .cnt { position: static; box-shadow: none; }
.hw .hw-act .btn.hw-sn { gap: 5px; padding: 0 8px; color: var(--mute); }
/* Round 3: on a desktop the long workspace name gives way before the page you are on. The page's own name ("Department insights", "Library")
 * kept shrinking under its own menu button and the pin overlapped it; now the workspace name ellipsizes and the current page stays whole. */
@media (min-width: 1100px) {
  .crumb > .anchor:first-child { flex: 0 1 auto; min-width: 8em; }
  .crumb > .anchor:first-child > .ws { min-width: 0; }
  .crumb > .anchor:first-child > .ws .s1ws-trigger-name { flex: 0 1 auto; min-width: 0; max-width: 48ch; }
  .crumb > .anchor.x, .crumb > a.x { flex: none; min-width: 0; }
  /* The page's own name stays whole while there is room; a long project name (up to 60 characters) ends in an ellipsis at the search box instead of running under it. */
  .crumb > .here { flex: 0 1 auto; min-width: 8em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Inbox tray: a non-person (Apex, a project's task, Publishing) has an icon in the avatar's place. */
.inbox .s1n-av-ico { display: inline-grid; place-items: center; background: var(--well); color: var(--ink-2); }
a.kt-pick-row { text-decoration: none; }
/* The search box stays in one place on every page (just left of the actions), instead of sliding with the length of the page name. */
@media (min-width: 1100px) { .tb > .crumb { flex: 1 1 auto; max-width: none; } .tb > .srch { flex: 0 0 300px; } }
/* A pinned page shows a filled pin in ink, not a red "Unpin": nothing is wrong. */
.crumb > .pinb.on { color: var(--ink); }
a.kt-pick-row { min-height: 40px; padding-block: 4px; }
