:root {
  --ink: #12263a;
  --navy: #142b43;
  --dim: #435a6d;
  --line: #cad9e8;
  --cloud: #edf4fa;
  --white: #fff;
  --orange: #64a6df;
  --dark-orange: #103b70;
  --peach: #dfedfb;
  --blue: #134d95;
  --sky: #e5eff9;
  --green: #2f5f4b;
  --green-bg: #e9f0e6;
  --radius: 7px;
  --editorial: "SSS Editorial", Georgia, serif;
  --sans: "SSS Sans", "Segoe UI", sans-serif;
  font-family: var(--sans);
}

@media screen {
  h1 {
    font-family: var(--editorial);
    font-size: clamp(2.9rem, 5vw, 5.15rem);
    font-weight: 510;
    letter-spacing: -0.017em;
    line-height: 0.98;
  }

  h2, h3 { letter-spacing: -0.025em; }
  p, .muted-line { line-height: 1.5; }

  :is(button, a, input, textarea, select, summary):focus-visible {
    outline: 3px solid #0879b8;
    outline-offset: 3px;
  }

  .rail :is(button, a):focus-visible,
  .signin-art :is(button, a):focus-visible {
    outline-color: #8ac5fa;
  }

  .btn {
    border-radius: 5px;
    background: var(--navy);
    color: #fff;
  }

  .btn:hover { background: #103b70; }
  .btn.signal { background: var(--blue); color: var(--white); }
  .btn.signal:hover { background: #103b70; color: var(--white); }
  .btn.light, .btn.light:hover { color: var(--ink); }
  .btn.light:hover, .text-btn:hover { background: #e5eff9; }
  .btn.light:active, .btn.signal:active { border-color: #418ed3; }

  .form-label :is(input, select), .pk-work :is(input:not([type=checkbox]), select, textarea),
  .finance-workspace input, .billing-workspace :is(input, select, textarea) {
    border-color: #809bb7;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    width: fit-content;
  }

  .brand-emblem {
    flex: none;
    width: 38px;
    height: 38px;
  }

  .brand-wordmark { display: grid; gap: 0.05rem; }

  .brand strong {
    font-family: var(--editorial);
    font-size: 1.85rem;
    font-weight: 570;
    letter-spacing: 0;
    line-height: 0.95;
  }

  .brand small {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    line-height: 1.3;
  }

  .signin {
    grid-template-columns: minmax(0, 1.09fr) minmax(340px, 0.91fr);
    background: var(--cloud);
  }

  .signin-art {
    min-width: 0;
    min-height: 100dvh;
    justify-content: flex-start;
    padding: clamp(32px, 4.2vw, 74px);
    background: var(--navy);
    color: var(--cloud);
  }

  .signin-art::before { content: none; }
  .signin-art .brand { padding: 0; background: transparent; }

  .signin-art .brand-emblem {
    width: 46px;
    height: 46px;
  }

  .signin-art .brand strong { font-size: 2.2rem; }
  .signin-art .brand small { font-size: 0.69rem; }

  .signin-art h1 {
    font-size: clamp(4.15rem, 7.9vw, 8.5rem);
    letter-spacing: -0.018em;
    line-height: 0.87;
    margin: clamp(45px, 8vh, 88px) 0 clamp(27px, 5vh, 52px);
  }

  .signin-art h1 span { color: #8ac5fa; font-weight: inherit; }

  .signin-photo {
    flex: 1 0 clamp(240px, 31vh, 380px);
    max-height: 480px;
    width: 100%;
    border-top: 1px solid var(--orange);
    background: url("/office-workplace.webp") center 46% / cover no-repeat;
  }

  .signin-panel {
    justify-content: stretch;
    align-content: center;
    padding: clamp(30px, 6vw, 108px);
  }

  .signin-box {
    width: min(100%, 440px);
    margin-block: 0;
    margin-inline: auto;
  }

  .signin-box h2 {
    margin-bottom: 0.55rem;
    font-family: var(--editorial);
    font-size: clamp(3rem, 4.5vw, 4.8rem);
    font-weight: 520;
    line-height: 0.97;
    letter-spacing: -0.012em;
  }

  .signin-box .named-login h2 {
    margin: 16px 0;
    font: 650 1.3rem var(--sans);
  }

  .signin-box .section-tag {
    color: var(--dark-orange);
    font-size: 0.71rem;
    letter-spacing: 0.095em;
  }

  .signin-box #profile-purpose {
    min-height: 2.35rem;
    margin-block: 0.5rem 0.65rem;
    font-size: 0.86rem;
  }

  .signin-box > .btn { min-height: 47px; }
  .signin-box .named-login { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }

  .shell { grid-template-columns: 222px minmax(0, 1fr); }

  .rail {
    background: var(--navy);
    color: var(--cloud);
    border-color: #345775;
    padding: 20px 13px 14px;
  }

  .rail .brand { padding: 5px 9px 24px; }
  .rail nav { display: block; overscroll-behavior: contain; scrollbar-color: #6887a3 transparent; }
  .nav-group { display: grid; padding: 4px 0 9px; }

  .nav-group p {
    color: #c4daef;
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 650;
    padding: 5px 13px 4px;
  }

  .nav-item {
    width: 100%;
    min-height: 33px;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    border-inline-start: 2px solid transparent;
    color: #f1f7fc;
    font-size: 0.84rem;
    font-weight: 560;
  }

  .nav-item .ico { width: 16px; height: 16px; color: #c6ddf1; }
  .nav-item:hover { background: #284968; color: #fff; }

  .nav-item[aria-current=page] {
    border-inline-start-color: #8ac5fa;
    background: #2b5075;
    color: #f7fbff;
    font-weight: 700;
  }

  .nav-item[aria-current=page] .ico { stroke: #8ac5fa; }
  .nav-unread {
    margin-inline-start: auto;
    min-width: 1.35em;
    border-radius: 0.7rem;
    padding: 0.1rem 0.32rem;
    background: #d6eaff;
    color: var(--ink);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
  }

  .chat-count-description {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rail-footer { border-color: #477099; padding: 12px 5px 0; }
  .rail-user span { color: #c4daef; }
  .rail .avatar { background: #315a7f; color: #e3f1fc; }
  .rail-footer .icon-btn { color: #edf4fa; }
  .rail-footer .icon-btn:hover { background: #2b5075; color: #fff; }

  .topbar {
    min-height: 64px;
    background: #fff;
    padding-inline: clamp(20px, 3.25vw, 54px);
  }

  .top-status { gap: 7px; }
  .breadcrumb, .top-status { font-size: 0.78rem; }
  .breadcrumb b { font-weight: 700; }

  .top-status .demo-tag {
    background: transparent;
    border-color: #bfd4ea;
    color: #103b70;
    font-weight: 620;
  }

  .desk-search,
  .tutorial-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 35px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: transparent;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 660;
    white-space: nowrap;
  }

  .desk-search kbd {
    padding: 1px 4px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--dim);
    font: 0.7rem var(--sans);
  }

  .desk-search .ico, .tutorial-shortcut .ico { width: 16px; height: 16px; }
  .desk-search:hover, .tutorial-shortcut:hover, .tutorial-shortcut[aria-current=page] { background: var(--sky); }
  .top-status .office-sara-trigger.btn { background: var(--navy); border-color: transparent; color: var(--cloud); }
  .top-status .office-sara-trigger.btn:hover { background: #103b70; }
  .mobile-environment { display: none; }

  .page {
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding: clamp(28px, 4.2vw, 64px) clamp(22px, 4.4vw, 68px) 4rem;
  }

  .page-head, .finance-heading, .billing-heading, .pk-head {
    margin-bottom: 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
  }

  .page-head h1, .finance-heading h1, .billing-heading h1, .pk-head h1 {
    font-family: var(--editorial);
    font-size: clamp(2.85rem, 4.75vw, 4.85rem);
    font-weight: 520;
    letter-spacing: -0.012em;
    line-height: 1;
  }

  .page-head p, .finance-heading p, .billing-heading p, .pk-head p { margin-top: 0.55rem; color: var(--dim); }

  .desk-masthead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.45rem;
    margin-bottom: 1.55rem;
    border-bottom: 1px solid #cad9e8;
  }

  .desk-masthead time {
    display: block;
    margin-bottom: 0.52rem;
    color: var(--dim);
    font-size: 0.82rem;
    font-weight: 650;
  }

  .desk-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(212px, 264px);
    grid-template-areas: "week attention" "agenda attention";
    align-items: start;
    gap: 1.55rem clamp(17px, 3vw, 48px);
  }

  .desk-agenda, .desk-attention { min-width: 0; }
  .desk-agenda { grid-area: agenda; }

  .desk-attention {
    grid-area: attention;
    padding: 0 0 0 clamp(17px, 2.1vw, 34px);
    border-inline-start: 1px solid #cad9e8;
  }

  .desk-attention > h2, .week-board h2, .desk-agenda .panel-head h2 {
    font-size: clamp(1.32rem, 1.8vw, 1.69rem);
    font-weight: 650;
    letter-spacing: -0.024em;
  }

  .desk-attention > h2 { margin-bottom: 0.46rem; }

  .desk-item {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 0.32rem 0.65rem;
    align-items: center;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
  }

  .desk-item h3 { font-size: 0.96rem; }
  .desk-item p { margin-top: 0.17rem; color: var(--dim); font-size: 0.76rem; }

  .desk-value {
    color: var(--navy);
    font: 530 2.5rem / 0.95 var(--editorial);
    font-variant-numeric: tabular-nums lining-nums;
  }

  .desk-link {
    grid-column: 1 / -1;
    width: fit-content;
    border-radius: 3px;
    padding: 0.15rem 0.3rem;
    margin-inline-start: -0.3rem;
    color: var(--blue);
    font-size: 0.8rem;
  }

  .desk-link .ico { width: 15px; height: 15px; }
  #inbox-summary:not(:empty) { color: var(--dim); font-size: 0.82rem; }

  .week-board { min-width: 0; grid-area: week; }
  .week-board header { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.62rem; }
  .week-board header span, .week-day span, .week-day small { color: var(--dim); font-size: 0.79rem; }

  .week-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0,1fr));
    border-block: 1px solid var(--line);
  }

  .week-day {
    display: grid;
    align-content: start;
    min-width: 0;
    min-height: 94px;
    gap: 0.17rem;
    padding: 0.68rem 0.6rem;
    border: 0;
    border-inline-end: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-align: left;
  }

  .week-day:first-child { border-inline-start: 1px solid var(--line); }
  .week-day:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
  .week-day:hover { background: #e5eff9; }
  .week-day.today { box-shadow: inset 0 2px #327cb9; background: #dfedfb; }
  .week-day.open small { color: #103b70; font-weight: 700; }
  .week-day.covered small { color: #2f5f4b; font-weight: 700; }

  .week-day strong {
    font: 530 2.03rem / 1 var(--editorial);
    font-variant-numeric: tabular-nums lining-nums;
  }

  .page .panel,
  .page .finance-panel,
  .page .billing-panel,
  .page .ti-panel,
  .page .cp-pane,
  .page .access-card {
    border-radius: 0;
    border-inline: 0;
    box-shadow: none;
  }

  .desk-agenda .panel { background: transparent; }
  .desk-agenda .panel-head { padding-inline: 0; }
  .desk-agenda .shift-row { padding-inline: 0.3rem; }
  .desk-agenda .shift-row:hover { background: #edf4fa; }
  .desk-agenda .shift-row strong { font-weight: 690; }
  .desk-agenda .date-tile { background: transparent; border-radius: 0; border-inline-end: 1px solid var(--line); }
  .desk-agenda .date-tile b { font-family: var(--editorial); font-size: 1.35rem; font-weight: 570; }

  .page :is(table) { font-variant-numeric: tabular-nums; }
  .page :is(.finance-table, .billing-table, .table-scroll table, .cp-root table) th {
    background: #edf4fa;
    color: #225985;
  }

  .page :is(.finance-table, .billing-table, .table-scroll table) tbody tr th {
    background: transparent;
    color: var(--ink);
  }

  .page :is(.finance-table, .billing-table, .table-scroll table) tbody tr:hover { background: #f4f8fc; }
  .page :is(.finance-period, .billing-selection) input { border-color: #809bb7; }
  .ti-metrics { gap: 0; border-block: 1px solid var(--line); background: #fff; }
  .ti-metrics button {
    display: grid;
    gap: 0.3rem;
    align-content: start;
    border: 0;
    border-inline-end: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }
  .ti-metrics button:last-child { border-inline-end: 0; }
  .ti-metrics button:hover, .ti-metrics button[aria-pressed=true] { background: #e5eff9; }
  .ti-metrics button[aria-pressed=true] { box-shadow: inset 0 2px #327cb9; }
  .ti-metrics strong { font: 560 2rem / 1 var(--editorial); font-variant-numeric: tabular-nums lining-nums; }
  .ti-ticket:hover { background: #f4f8fc; }
  .finance-heading, .billing-heading { margin-bottom: 0.2rem; }
  .finance-period { border-radius: 0; border-inline: 0; padding-inline: 0.8rem; background: #f7faff; }

  .finance-metrics {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-inline: 0;
    border-radius: 0;
    background: #f7faff;
  }

  .finance-metric {
    min-height: 7.5rem;
    border: 0;
    border-radius: 0;
    border-inline-end: 1px solid var(--line);
    background: transparent;
  }

  .finance-metric:last-child { border-inline-end: 0; }
  .finance-metric.primary { border-color: #418ed3; border-inline-start: 3px solid var(--orange); }
  .finance-metric.primary small { color: #d8e9f8; }

  .finance-metric strong,
  .billing-totals strong {
    font-family: var(--editorial);
    font-size: clamp(1.75rem, 3.4vw, 3rem);
    font-weight: 560;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums lining-nums;
  }

  .billing-review-heading { border-radius: 0; }
  .billing-review-heading p { color: #d8e9f8; }
  .billing-ref { color: #b8dcff; }
  .billing-totals { background: #e5eff9; }
  .billing-history-list li:hover { background: #f4f8fc; }

  .cp-weekbar {
    padding: 0.65rem 0 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .cp-weekbar h2 {
    font-family: var(--editorial);
    font-size: clamp(1.6rem, 2.6vw, 2.5rem);
    font-weight: 540;
  }

  .cp-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .cp-day, .cp-day[data-today=true] {
    display: grid;
    grid-template-columns: 118px minmax(0,1fr);
    min-width: 0;
    gap: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .cp-day > header {
    display: grid;
    justify-content: start;
    align-content: start;
    gap: 0.19rem;
    padding: 0.78rem 0.65rem 0.64rem 0.12rem;
  }

  .cp-day[data-today=true] > header { box-shadow: inset 2px 0 #327cb9; padding-inline-start: 0.56rem; }
  .cp-day > header h2 { font-size: 0.94rem; }
  .cp-day > header time { color: var(--dim); }

  .cp-day-body {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(16rem,100%),1fr));
    gap: 0;
    min-width: 0;
    border-inline-start: 1px solid var(--line);
    background: #f7faff;
  }

  .cp-day[data-empty=true] .cp-day-body { align-content: center; background: transparent; }
  .cp-day[data-empty=true] .cp-day-body p { margin: 0; padding: 0.52rem 0.75rem; }

  .cp-shift {
    padding: 0.8rem 0.85rem 0.95rem;
    border: 0;
    border-inline-end: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .cp-shift:last-child { border-inline-end: 0; }
  .cp-shift h3 { font-size: 1.03rem; }
  .cp-time { font-variant-numeric: tabular-nums; }
  .cp-time span:first-child { color: #225985; font-weight: 680; }

  .cp-finder {
    border: 1px solid #cad9e8;
    border-inline-start: 3px solid var(--blue);
    border-radius: 0;
  }

  .pk-follow-up, .pk-find, .pk-create, .pk-row, .pk-doc {
    border-radius: 0;
    border-inline: 0;
    border-color: var(--line);
  }

  .pk-follow-up { border-top: 2px solid #327cb9; }
  .pk-follow-up-group { border-radius: 0; background: #f4f8fc; }
  .pk-follow-up-group button[aria-pressed=true] { border-color: #91b7df; background: #dfedfb; }
  .pk-create-row { column-gap: 0.6rem; }
  .pk-row:hover, .pk-doc[open] { border-color: #91b7df; }
  .pk-work a { color: #103b70; }
  .pk-share, .pk-proof { background: #e5eff9; }

  .tutorial { max-width: none; }
  .tutorial-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.53rem;
    padding: 0 0 1.1rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
  }

  .tutorial-head h1 { font-family: var(--editorial); font-size: clamp(2.9rem, 5.2vw, 5rem); }
  .tutorial-role, .tutorial-mode { color: var(--dim); }
  .tutorial-mode { border-color: var(--line); }
  .tutorial-assistant { border-radius: 0; border-inline: 0; }
  .tutorial-module { border-inline: 0; border-radius: 0; }
  .tutorial-module[open] > summary { background: #edf4fa; }
  .tutorial-answer { border-color: var(--line); border-radius: 0; background: #f4f8fc; }
  .tutorial-answer progress { accent-color: var(--green); }

  .office-sara {
    background: #fff;
    border-color: #cad9e8;
    border-radius: 8px;
    box-shadow: 0 14px 45px #12263a28;
  }

  .office-sara-head { border-top: 2px solid var(--orange); }
  .office-sara-head p { color: #d8e9f8; }
  .office-sara-history li { border-radius: 5px; }
  .office-sara-history .office-sara-user { background: #e5eff9; }
  .office-sara-footer { border-color: var(--line); background: #f4f8fc; }

  .date-filter, .dir-search, .handoff-form, .handoff-detail { padding: 16px 22px; }
  .date-filter, .dir-search div, .handoff-pages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .dir-search { border-bottom: 1px solid var(--line); }
  .dir-search label { display: block; font-size: 0.82rem; font-weight: 650; margin-bottom: 5px; }

  .dir-search input, .desk-finder input {
    min-height: 40px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid #809bb7;
    border-radius: 5px;
    padding: 8px 10px;
    max-width: 100%;
  }

  .desk-finder { padding: 23px; display: grid; gap: 15px; }
  .desk-finder header, .handoff-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .desk-finder h3 { margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--dim); }
  #finder-results { max-height: 50dvh; overflow: auto; }

  .finder-result, .handoff-list button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    width: 100%;
    text-align: left;
    padding: 11px 8px;
  }

  .finder-result:hover, .handoff-list button:hover { background: #edf4fa; }
  .finder-result small, .handoff-list small, .handoff-detail li small { display: block; font-size: 0.8rem; color: var(--dim); margin-top: 3px; }
  .handoff-feedback:empty { display: none; }
  .handoff-feedback { background: var(--sky); padding: 10px 16px; border-radius: 4px; margin: 12px 0; }
  .handoff-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .handoff-form h2, .handoff-title, .handoff-form .actions { grid-column: 1 / -1; }
  .handoff-list { list-style: none; padding: 0 15px; margin: 0; }
  .handoff-list button { padding: 14px 6px; }
  .handoff-list strong, .handoff-detail h2 { overflow-wrap: anywhere; }
  .handoff-meta { text-align: right; flex-shrink: 0; }
  .handoff-meta b { font-size: 0.8rem; font-weight: 650; }
  .handoff-pages { padding: 10px 15px; justify-content: flex-end; }
  .handoff-detail { display: grid; gap: 12px; }
  .handoff-detail ol { margin: 0; padding-left: 22px; }
  .handoff-detail li { padding: 7px 0; }
  .handoff-work > .text-btn { margin: 8px 0; }

  .practice-launch, .practice-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 17px;
    border: 1px solid #bfd4ea;
    border-inline-start: 3px solid #327cb9;
    background: #e1eefc;
    margin-bottom: 15px;
  }

  .practice-launch h2, .practice-bar h2 { font-size: 1.08rem; }
  .practice-launch p, .practice-bar p { margin-top: 4px; color: var(--dim); line-height: 1.45; }
  .practice-controls { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
  .practice-caption { font-size: 0.73rem; color: var(--dark-orange); font-weight: 650; margin-bottom: 5px; }
}

@media screen and (max-width: 1100px) {
  .shell { grid-template-columns: 194px minmax(0, 1fr); }
  .top-status time { display: none; }
  .desk-layout { grid-template-columns: minmax(0, 1fr) minmax(175px, 210px); }
}

@media screen and (max-width: 900px) {
  .shell { display: block; }
  .rail {
    display: none;
    position: fixed;
    inset: 58px 0 auto 0;
    z-index: 6;
    width: 100%;
    max-height: min(74dvh, 660px);
    height: auto;
    padding: 13px 17px;
    border-bottom: 1px solid #477099;
    box-shadow: 0 13px 36px #12263a39;
  }

  .rail.open { display: flex; }
  .rail .brand { display: none; }
  .rail nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; align-items: start; }
  .rail-footer { margin-top: 9px; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 58px;
    padding-inline: 12px;
  }

  .mobile-toggle { display: inline-flex; }
  .mobile-brand-logo { display: block; width: 29px; height: 29px; object-fit: contain; }
  .workspace-name { display: none; }
  .desk-search kbd { display: none; }
  .nav-item, .desk-search, .top-status button, .mobile-toggle { min-height: 42px; }
  .page { padding: 35px 24px 3rem; }
  .practice-bar, .practice-launch { align-items: flex-start; flex-direction: column; }
}

@media screen and (max-width: 750px) {
  .signin {
    grid-template-columns: minmax(0,1fr);
    align-content: start;
  }

  .signin-art { min-height: 0; padding: 23px 25px 29px; }
  .signin-art .brand-emblem { width: 37px; height: 37px; }
  .signin-art .brand strong { font-size: 1.7rem; }
  .signin-art .brand small { font-size: 0.61rem; }
  .signin-art h1 { margin: 1.19rem 0 0; font-size: clamp(2.6rem,9vw,4.05rem); line-height: 0.95; }
  .signin-photo { display: none; }
  .signin-panel { padding: 28px 25px 42px; }
  .signin-box h2 { font-size: 3.1rem; }

  .page { padding: 24px 16px 3rem; }
  .page-head, .finance-heading, .billing-heading, .pk-head { padding-bottom: 13px; margin-bottom: 15px; }

  .desk-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "week" "attention" "agenda";
    gap: 1.35rem;
  }

  .desk-attention {
    padding: 0;
    border-inline-start: 0;
  }

  .desk-masthead { gap: 0.86rem; padding-bottom: 0.95rem; margin-bottom: 1rem; }
  .desk-masthead h1 { font-size: clamp(2.7rem,9.4vw,4.1rem); }
  .desk-masthead time { margin-bottom: 0.33rem; font-size: 0.75rem; }
  .desk-masthead .btn { min-height: 37px; }
  .week-day { min-height: 75px; padding: 0.52rem 0.18rem; text-align: center; }
  .week-day span, .week-day small { font-size: 0.67rem; }
  .week-day strong { font-size: 1.62rem; }
  .desk-agenda .panel-head { padding-block: 0.6rem; }
  .desk-agenda .shift-row { padding-block: 0.72rem; }

  .top-status { gap: 3px; }
  .desk-search { min-width: 40px; justify-content: center; padding: 6px; }
  .desk-search span, .tutorial-shortcut span, .top-status .demo-tag { display: none; }
  .tutorial-shortcut { justify-content: center; min-width: 39px; }
  .tutorial-shortcut .ico { display: block; }
  .top-status .office-sara-trigger.btn, .top-status .icon-btn { padding-inline: 7px; }
  .top-status .office-sara-mark { width: 18px; }
  .mobile-environment { display: block; margin: 0 0 0.42rem; color: var(--dark-orange); font-size: 0.73rem; font-weight: 650; }

  .cp-day, .cp-day[data-today=true] { grid-template-columns: 78px minmax(0,1fr); }
  .cp-shift { border-inline-end: 0; }
  .cp-shift + .cp-shift { border-top: 1px solid var(--line); }
  .cp-day-body { grid-template-columns: minmax(0,1fr); }
  .handoff-form { grid-template-columns: minmax(0,1fr); }
  .dir-search div input { min-width: 0; flex: 1; }
  .finance-metrics { border-top: 0; }
  .finance-metric { min-height: 5.8rem; }
  .finance-metric.primary { border-inline-end: 0; }
  .finance-metrics > .finance-metric:nth-child(2) { border-inline-end: 1px solid var(--line); }
  .ti-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ti-metrics button { padding: 0.6rem 0.48rem; font-size: 0.76rem; }
  .ti-metrics button:nth-child(3n) { border-inline-end: 0; }
  .ti-metrics button:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media screen and (max-width: 440px) {
  .breadcrumb .mobile-brand-logo { display: none; }
  .breadcrumb b { max-width: 7.5rem; font-size: 0.73rem; }
  .office-sara { inset-inline: 10px; inset-block-end: 10px; width: auto; }
  .finance-metric { padding: 0.7rem; }
}

@media print {
  .week-board, .desk-search, .dir-search, .handoff-compose, .handoff-pages { display: none; }
}

/* Sample workspaces use the presentation's ice-blue panels and white records. */
@media screen {
  .signin-demo {
    display: block;
    background: var(--cloud);
  }

  .signin-demo .signin-art {
    min-height: 0;
    align-items: flex-start;
    padding: 0.75rem max(1rem, calc((100% - 72rem) / 2));
    border-bottom: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
  }

  .signin-demo .signin-art .brand-emblem { width: 40px; height: 40px; }
  .signin-demo .signin-art .brand strong { font-size: 1.9rem; }
  .signin-demo .signin-photo { display: none; }
  .signin-demo .signin-panel { display: block; padding: clamp(1rem, 4vw, 3rem) 1rem; }

  .signin-demo .signin-box {
    width: min(100%, 72rem);
    padding: clamp(1rem, 3.1vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faff;
  }

  .signin-demo .signin-box h1 { margin-bottom: 0.55rem; }
  .signin-demo .signin-desc { margin-bottom: 1.55rem; }
  .signin-demo .section-tag { margin-bottom: 0.6rem; }

  .demo-role-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .demo-role-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.24rem;
    width: 100%;
    height: 100%;
    min-height: 4.8rem;
    padding: 0.75rem 2.2rem 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    text-align: start;
  }

  .demo-role-card:hover { border-color: #91b7df; background: var(--sky); }
  .demo-role-card strong { font-size: 1.03rem; }
  .demo-role-card span { color: var(--dim); font-size: 0.9rem; }
  .demo-role-card .ico { position: absolute; top: 0.82rem; right: 0.75rem; color: var(--blue); }
  .demo-role-card[aria-current=true] { border-color: #91b7df; background: var(--sky); cursor: default; opacity: 1; }
  .demo-role-card .demo-role-current { color: var(--blue); font-weight: 700; }
  .demo-role-dialog { padding-bottom: 1.1rem; }
  .demo-role-dialog .error:not(:empty) { margin-top: 0.7rem; }
  .demo-quick-select { margin-top: 0.9rem; }
  .demo-quick-select summary { cursor: pointer; width: fit-content; padding-block: 0.3rem; }
  .demo-quick-select .form-label { max-width: 22rem; margin-top: 0.55rem; }

  .demo-workspace-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.8rem;
    margin-bottom: clamp(1rem, 2vw, 1.6rem);
    padding: 0.45rem 0.75rem;
    border-inline-start: 4px solid #327cb9;
    border-radius: 4px;
    background: #dcecf9;
    font-size: 0.88rem;
  }

  .demo-workspace-bar p { margin-inline-end: auto; }
  .demo-workspace-bar p span { margin-inline-start: 0.3rem; color: var(--dim); }
  .demo-workspace-bar .btn { min-height: 36px; }
  .demo-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.05rem 0.85rem; }
  .demo-links a { padding-block: 0.45rem; color: var(--blue); font-size: 0.86rem; font-weight: 700; text-underline-offset: 3px; }
  .signin-demo .demo-links { margin-top: 0.65rem; }

  .rail { border-color: var(--line); background: var(--white); color: var(--ink); }
  .rail :is(button, a):focus-visible { outline-color: #0879b8; }
  .nav-group p, .rail-user span { color: var(--dim); }
  .nav-item, .rail-footer .icon-btn { color: var(--ink); }
  .nav-item .ico { color: var(--dim); }
  .nav-item:hover, .rail-footer .icon-btn:hover { background: var(--cloud); color: var(--ink); }
  .nav-item[aria-current=page] { border-inline-start-color: #327cb9; background: #dfedfb; color: #103b70; }
  .nav-item[aria-current=page] .ico { stroke: var(--blue); }
  .rail-footer { border-color: var(--line); }
  .rail .avatar { background: var(--sky); color: var(--blue); }

  .shift-market .market-list { border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
  .shift-market .market-row { padding-inline: 0.8rem; }
  .shift-market .market-row:last-child { border-bottom: 0; }
}

@media screen and (max-width: 530px) {
  .demo-role-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-workspace-bar p span { display: block; margin-inline-start: 0; }
  .demo-workspace-bar .demo-links { flex-basis: 100%; }
}

@media print {
  .demo-workspace-bar { display: none; }
}
