/* The backdrop supplies the light that shows through each glass surface. */
:root {
  color-scheme: dark;
  --studio-backdrop: #262626;
  --pane: rgb(65 65 65 / .21);
  --floating-pane: rgb(40 40 40 / .38);
  --sidebar: rgb(27 27 27 / .52);
  --chrome: rgb(34 34 34 / .25);
  --edge: rgb(255 255 255 / .18);
  --frost: blur(12px) saturate(1.04);
  --shine: 0 3px 12px #00000014;
  --butter: #ffda55;
  --apricot: #ffb186;
  --lilac: #d4b9fa;
  --ice: #a7dae6;
}
body {
  min-height: 100vh;
  background: var(--studio-backdrop);
}
.shell, #dialog, .boardShell .dock, .boardShell .notesRail, #boardMenu {
  --ink: #faf8f6;
  --muted: #cfcfcf;
  --line: rgb(255 255 255 / .16);
  color: var(--ink);
}
.side, .top, .activityItem, .activityEmpty, .directoryCard, .workFrame, .monthlyWork,
.tablewrap, .facts, .box, .projectcard, .panel, .empty, .galleryCard, .phaseTile,
dialog, .dock, .notesRail, #boardMenu {
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}
.side { background: var(--sidebar); border-color: var(--edge); }
.brand span { color: var(--butter); }
.sidecaption, .profile small { color: #d1cdd0; }
.nav { border-radius: 13px; color: #f4f0f0; }
.nav.active, .nav.active:hover {
  background: rgb(255 255 255 / .17);
  color: white;
  box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 #ffffff21;
}
.nav.active svg { color: var(--butter); }
.nav:hover:not(.active), .dirAction:hover, .shell .iconbtn:hover, .identity:hover { background: #ffffff18; }
.sidebottom { border-color: var(--edge); }
.avatar { background: var(--butter); color: #2d2725; }
.av1 { background: var(--lilac); }
.av2 { background: var(--ice); }
.av3 { background: var(--apricot); }
.top { background: var(--chrome); border-color: var(--line); }
.top :is(.iconbtn,.identity) { background: #ffffff0f; border: 1px solid var(--line); border-radius: 50px; }
.top .identity { padding: 6px 12px; }
.top .vr { background: var(--edge); }
.crumb > span, .pagehead .eyebrow { color: var(--muted); }
.notif.unread:after { background: var(--apricot); box-shadow: 0 0 0 2px #46434a; }
.pagehead h1 { font-weight: 550; }
.pagehead .eyebrow, .sidecaption { font-family: DM, sans-serif; font-weight: 650; letter-spacing: .09em; }
.shell :is(.button, .viewSwitch, select) { border-radius: 12px; }
.shell .button, .shell .viewSwitch, .shell select { background: #ffffff12; color: var(--ink); border-color: var(--edge); }
.shell .button:hover { background: #ffffff24; }
.shell .button:is(.dark,.lime), .deliveryFoot .button { color: #272528; background: #f3eee8; border-color: transparent; }
.shell .button:is(.dark,.lime):hover { color: #201e21; background: white; }
.shell .textbtn, .tab { color: #ede9ee; }
.tabs { gap: 4px; }
.tab, .viewSwitch button { border-radius: 10px; }
.tab:where(:not(.selected)):hover, .viewSwitch button:where(:not([aria-pressed="true"])):hover { background: #ffffff14; }
.tabs .selected, .viewSwitch [aria-pressed="true"] { background: #f4eee7; color: #252428; }
.shell :focus-visible { outline: 3px solid #ffe29a; outline-offset: 2px; }
.directoryOpen:focus-visible { outline-offset: -4px; }

/* A warm deadline card anchors the desk; the three tiles keep their own actions. */
.deskOverview { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr); align-items: start; gap: clamp(18px, 2vw, 32px); }
.homegrid { grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.deliveryHero {
  background: var(--butter);
  color: #30291e; border: 1px solid var(--edge); border-radius: 26px;
  box-shadow: var(--shine); min-height: 236px; gap: 19px; padding: clamp(19px, 2.15vw, 32px);
}
.deliveryKicker { font: 700 var(--type-small)/1.2 DM, sans-serif; letter-spacing: .07em; color: #443921; }
.deliveryClock { gap: 10px; max-width: 650px; }
.deliveryClock strong { font-size: clamp(33px, 12cqw, 90px); font-weight: 530; color: #29251d; }
.deliveryClock small { margin-top: 3px; color: #443921; font: 600 var(--type-caption) DM, sans-serif; letter-spacing: .035em; text-transform: none; }
.deliveryFoot { border-color: #4e381b33; padding-top: 12px; align-items: center; }
.deliveryFoot h2 { font-size: clamp(20px, 3.4cqw, 26px); }
.deliveryFoot p { color: #443921; }
.shell .deliveryFoot .button { background: #302b24; color: white; border: 0; border-radius: 50px; }
.shell .deliveryFoot .button:hover { background: #4c4132; color: white; }
.deliveryHero :focus-visible, .desk .metric:focus-visible { outline-color: #28242b; outline-offset: -4px; }
.desk { display: block; background: none; border: 0; padding: 0; }
.desk h2, .deskActivity h2 { display: block; margin: 0; font-size: 21px; font-weight: 590; letter-spacing: -.04em; }
.deskMetrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 11px; margin-top: 10px; }
.desk .metric {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  gap: 5px 3px; align-content: start; align-items: center; padding: 15px 17px;
  border: 1px solid var(--edge); border-radius: 20px; background: var(--lilac); color: #27242a;
  box-shadow: var(--shine); min-height: 116px;
}
.desk .metric:nth-child(2) { background: var(--apricot); }
.desk .metric:nth-child(3) { background: var(--ice); }
.desk .metric .metricicon { display: grid; width: 26px; height: 26px; border-radius: 9px; background: #ffffff4d; color: inherit; }
.metric .metricicon svg { width: 16px; height: 16px; }
.desk .metric > svg { display: block; grid-column: 2; grid-row: 1; color: #3b343e; }
.desk .metric b { grid-column: 1/-1; margin-top: 3px; font: 550 clamp(31px, 3vw, 45px)/1 DM, sans-serif; letter-spacing: -.065em; }
.desk .metric span:not(.metricicon) { grid-column: 1/-1; font: 620 var(--type-ui)/1.2 DM, sans-serif; }

.portalOverview { display: block; }
.portalOverview .homegrid { grid-template-columns: minmax(0, 1.65fr) minmax(230px, 1fr); }
.portalOverview .desk { display: flex; flex-direction: column; }
.portalOverview .deskMetrics { flex: 1; }
.portalOverview .metric { align-content: center; }
.deskActivity { min-width: 0; }
.deskActivity header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.deskActivity header .textbtn { padding: 2px 0; font-size: var(--type-small); }
.deskActivity .notificationList { gap: 9px; }
@media (min-width: 991px) {
  .deskOverview:not(.portalOverview) { align-items: stretch; row-gap: 16px; }
  .deskOverview:not(.portalOverview) > .pagehead { margin: 0; grid-area: 1 / 1; }
  .deskOverview:not(.portalOverview) > .homegrid { grid-area: 2 / 1; grid-template-rows: 1fr auto; }
  .deskActivity { grid-area: 1 / 2 / 3 / 3; display: grid; grid-template-rows: subgrid; }
  .deskActivity header { align-self: end; margin: 0; padding-bottom: 4px; }
  .deskActivity .notificationList { align-self: start; }
  .deskActivity .notificationList:has(li:nth-child(4)) { align-self: stretch; grid-auto-rows: 1fr; }
  .deskActivity .activityCard { height: 100%; }
  .deskActivity .activityEmpty { align-self: start; }
}
.activityItem, .activityEmpty {
  background: var(--pane); border: 1px solid var(--edge); border-radius: 20px;
  box-shadow: var(--shine); width: 100%; color: var(--ink);
}
.activityCard { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 10px; text-align: left; padding: 13px 15px; width:100%; border:0; border-radius:inherit; color:inherit; background:transparent; }
.activityAvatar { grid-row: 1/4; display: grid; place-items: center; align-self: start; width: 32px; height: 32px;
  border-radius: 50%; color: #302c2e; background: #ddd9d5; font-weight: 700; font-size: var(--type-caption); }
.deskActivity [data-role="Chief"] .activityAvatar { background:#ffe396; }
.deskActivity [data-role="Director"] .activityAvatar { background: var(--butter); }
.deskActivity [data-role="Architect"] .activityAvatar { background: #cbe2ae; }
.deskActivity [data-role="Coordinator"] .activityAvatar { background: var(--ice); }
.deskActivity [data-role="Client"] .activityAvatar { background: var(--lilac); }
.activityIdentity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: var(--type-ui); line-height: 1.25; overflow-wrap: anywhere; }
.activitySubject { grid-column: 2; overflow-wrap: anywhere; font-size: var(--type-ui); line-height: 1.3; }
.activityProject { grid-column: 2; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--type-small); overflow-wrap: anywhere; }
.activityStamp { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; padding-top: 4px; color: var(--muted); font-size: var(--type-caption); }
.activityStamp .noticeCategory { border-radius: 100px; padding: 3px 8px; font-size: var(--type-compact); }
.activityEmpty { display: flex; gap: 12px; align-items: center; padding: 20px; }

/* Project rooms, production and commercial views share the same glass material. */
.shell :is(.tablewrap,.box,.projectcard,.panel,.facts,.empty,.galleryCard,.phaseTile,.monthlyWork,.workFrame,.directoryCard) {
  background: var(--pane); border: 1px solid var(--edge); border-radius: 18px; box-shadow: var(--shine);
}
.shell .empty { border-style: dashed; }
.shell th { background: #3c3c3c; color: #ede9ee; }
.shell td, .shell th, .shell .fact { border-color: var(--line); }
.shell .itemrow:hover { background: #ffffff0b; }
.shell .queueWrap th[aria-sort] { color: #fff; }
.shell :is(.queueWrap th span, td small, .rowlink small, .projecttext small,.itemrow small,.assetrow small,
  .directoryStatus,.directoryClient,.box p,.workTask small,.workClock,.monthlyTotal,.laneEmpty svg) { color: var(--muted); }
.shell .workClock.late, .shell .deleteAction, .directoryDelivery.late .directoryClock { color: #ffb5a8; }
.directoryArrow { background: #ffffff14; color: #fff; border-radius: 50%; }
.directoryOpen:hover .directoryArrow { background: var(--butter); color: #332d20; }
.directoryStatus[data-status="Active"]::before { background: #bedc9a; }
.directoryStatus[data-status="On hold"]::before { background: var(--apricot); }
.directoryDelivery, .directoryDelivery.noPlan, .issueCard .issueDates, .workTaskDue { background: #17171740; }
.directoryMilestone > svg, .directoryClock { color: var(--butter); }
.directoryGroup h2 small, .workFrame header span { background: #ffffff16; color: white; }
.shell .phaseTile.current { background: var(--butter); color: #342d21; }
.shell .phaseTile.viewing { box-shadow: inset 0 3px var(--butter); }
.phaseTools button { background: #ffffff12; }
.phaseTile.current .phaseTools button, .phaseTile.current .activePhase { color: #383024; background: #fff5; }
.workFrame header { background: #ffffff09; }
.workFrame h2::before { background: var(--lilac); }
.workFrame[data-work-status="In progress"] h2::before { background: var(--ice); }
.workFrame[data-work-status="In review"] h2::before { background: var(--apricot); }
.workTask { background: var(--pane); border-color: var(--edge); border-radius: 13px; }
.workTaskPhase { background: #f0e1ff; }
.projectTaskHead { display: grid; gap: 13px; padding: 14px 16px 0; }
.taskPhaseCycle { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: var(--type-small); color: var(--muted); }
.projectTaskIdentity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.projectTaskIdentity img { width: 45px; height: 41px; flex: none; border-radius: 8px; }
.projectTaskIdentity strong { font-size: clamp(20px, 7cqw, 28px); letter-spacing: -.045em; }
.projectTaskCard .workTaskFacts { padding-block: 12px; }
.projectTaskCard:hover .directoryArrow { color: #30291e; background: var(--butter); }
.projectTaskCard:focus-visible { outline-offset: -3px; }
.projectTaskDeadline {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px; margin-top: auto;
  background: #18181860; border-top: 1px solid var(--line); color: var(--butter);
}
.deadlineIcon { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #ffffff0e; }
.projectTaskTiming {
  flex:1; min-width:0; display:flex; flex-wrap:wrap;
  align-items:baseline; gap:.2rem .75rem;
}
.projectTaskTiming > small { flex-basis:100%; }
.projectTaskCard .projectTaskTiming .workClock {
  font: 620 clamp(18px, 6.5cqw, 26px)/1.1 DM, sans-serif; font-variant-numeric: tabular-nums;
  letter-spacing: -.035em; white-space: nowrap; color: var(--butter);
}
.projectTaskTiming .clockOverdue { font-size: .74em; letter-spacing: -.015em; }
.projectTaskTiming .workClock:not(.late)::after { content: ' left'; font-size: .65em; }
.projectTaskCard .projectTaskTiming .workClock.late, .projectTaskDeadline:has(.late) .deadlineIcon { color: #ffb5a8; }
.projectTaskTiming time { flex:1 1 7.5em; margin-inline-start:auto; text-align:right; font-size:var(--type-small); line-height:1.35; color:var(--muted); }
@container (max-width:22rem) {
  .workTaskFacts { grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .workTaskFacts > :nth-child(3) { grid-column:1/-1; }
}
@container (max-width:16rem) {
  .projectTaskDeadline { padding-inline: .65rem; }
  .projectTaskDeadline .deadlineIcon { display:none; }
  .projectTaskCard .projectTaskTiming .workClock { font-size:clamp(15px,8.5cqw,19px); }
}
.monthlyWork dl div { border-color: var(--line); }
.monthlyWork dd { color: var(--butter); }
.galleryCard.isSelected { outline: 2px solid var(--butter); outline-offset: -2px; }
.tag { border-radius: 30px; }
.shell .group { border-color: var(--line); }

/* Artwork and note paper keep their own colors underneath the floating controls. */
.boardShell, .login {
  --ink: #25242b; --muted: #5f5b62; --line: #ceccd0; color: var(--ink); color-scheme: light;
}
.boardShell { border-radius: 18px; }
#dialog, .boardShell :is(.dock,.notesRail), #boardMenu, #toast {
  color-scheme: dark; background: var(--floating-pane); border-color: var(--edge);
  box-shadow: 0 12px 42px #00000026;
}
#dialog { border-radius: 23px; box-shadow: 0 18px 60px #00000040; }
#dialog::backdrop { background: #14141459; backdrop-filter: blur(6px); }
#dialog > header { background: #ffffff08; border-bottom-color: var(--line); }
#dialog > header .iconbtn { border-radius: 50%; background: #ffffff0d; }
#dialog :is(.button, input, select, textarea) { border-radius: 10px; }
#dialog :is(input, select, textarea):not([type=checkbox],[type=radio],[type=range],[type=color]),
.shell .boardShell .dock select {
  background: #17171750; color: var(--ink); border-color: #ffffff3a;
}
#dialog ::placeholder { color: #c7c2c9; }
#dialog :focus-visible { outline: 2px solid var(--butter); outline-offset: 2px; }
#dialog input, .boardShell .penpanel input, .boardShell .notesRail input { accent-color: var(--butter); }
#dialog input::file-selector-button { background: #ffffff14; color: inherit; border: 1px solid var(--edge); border-radius: 7px; padding: 4px 9px; }
#dialog .button { background: #ffffff12; color: var(--ink); border-color: var(--edge); }
#dialog .button:is(.dark,.lime) { background: var(--butter); border-color: transparent; color: #30291e; }
#dialog .button.danger { background: #ffb8aa; border-color: transparent; color: #411f19; }
#dialog .button:hover { filter: brightness(1.1); }
#dialog :is(.textbtn,.tab) { color: #f1ebf3; }
#dialog :is(.box,.facts,.tablewrap,.panel,.empty,.group,.cycleReview,.phaseDates) {
  background: #ffffff09; border-color: var(--line); border-radius: 13px;
}
#dialog :is(.box p,.submissionStamp,.itemrow small,.assetrow small,td small,.rowlink small) { color: var(--muted); }
#dialog :is(.fact,td,th) { border-color: var(--line); }
#dialog th { background: #353535; color: var(--muted); }
#dialog :is(.itemrow:hover,.iconbtn:hover) { background: #ffffff12; }
#dialog .error { color: #ffb5a8; }
.boardShell .dock, #boardMenu { border-radius: 13px; }
.boardShell .notesRail .railNote small { color:var(--ink); }
.boardShell :is(.boardlabel svg,.noteCounts dt,.counters), #boardMenu kbd { color: var(--muted); }
.boardShell .counters b { color: var(--ink); }
.boardShell .notesRail header { background: #353535; }
.boardShell :is(.noteCounts,.notesRail summary small) { color: var(--ink); background: #ffffff12; }
.boardShell .noteCounts div + div { border-color: var(--line); }
.boardShell :is(.wbtool:hover,.zoomlabel:hover), #boardMenu button:enabled:is(:hover,:focus-visible) { background: #ffffff1c; }
.boardShell .wbtool.active { background: var(--butter); color: #30291e; }
.notificationRow { background: var(--pane); color: var(--ink); border-radius: 17px; border-inline-start: 1px solid var(--edge); }
.noticeResults .textbtn { color: var(--butter); }
.noticeCategory, .noticeRole { border-radius: 50px; }
.noticeRole { border: none; padding: 2px 7px; }
.login.box { background: rgb(249 248 246 / .95); }
#toast { border-radius: 30px; border: 1px solid var(--edge); backdrop-filter: var(--frost); }
@media (max-width: 990px) {
  .deskOverview { grid-template-columns: minmax(0, 1fr); }
  .deskOverview:not(.portalOverview) > .pagehead { margin-bottom: 0; }
  .deskActivity .notificationList { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .activityCard { height: 100%; }
}
@media (max-width: 600px) {
  .portalOverview .homegrid { grid-template-columns: minmax(0, 1fr); }
  .deskActivity .notificationList { grid-template-columns: 1fr; }
  .desk, .portalOverview .desk { display: block; padding: 0; }
  .deliveryHero { min-height: 215px; border-radius: 21px; }
  .deskMetrics { gap: 7px; }
  .desk .metric { min-height: 108px; padding: 12px 9px; border-radius: 15px; }
  .desk .metric span:not(.metricicon) { font-size: var(--type-small); }
  .menuopen .side { background: var(--floating-pane); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --pane: #363636; --floating-pane: #353535; --chrome: #393939; --sidebar: #292929; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --frost: none; --pane: #353535; --chrome: #373737; --sidebar: #292929; }
  :root { --floating-pane: #353535; }
  #dialog::backdrop { backdrop-filter: none; }
}

.notificationFilters { grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); }
.noticeResults { flex-wrap:wrap; gap:.5rem; }
.noticeReadActions { display:flex; align-items:center; justify-content:space-between; padding:0 .55rem .35rem; font-size:var(--type-small); }
.noticeReadActions .textbtn { font-size:inherit; }
.notificationList [data-status="unread"] .noticeReadActions>span { font-weight:700; }
.deskActivity .activityEmpty { align-self:stretch; min-height:185px; padding:clamp(1.3rem,3vw,2.4rem); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:1.3rem; }
.activityEmpty .quietIcon { border:1px solid currentColor; border-radius:50%; width:48px; height:48px; display:grid; place-items:center; transform:rotate(-8deg); }
.activityEmpty h3 { margin:0; font-size:clamp(1.4rem,2.2vw,2rem); letter-spacing:-.05em; }
.activityEmpty p { margin:.45rem 0 0; font-size:var(--type-body); line-height:1.45; }
.noticeInboxBar, .noticeHistoryBar, .noticeHistoryBar label { display:flex; align-items:center; gap:.7rem; }
.noticeInboxBar, .noticeHistoryBar { justify-content:space-between; flex-wrap:wrap; margin-bottom:1rem; }
.noticeHistoryBar { max-width:64rem; color:var(--muted); font-size:var(--type-ui); }
.noticeHistoryBar select { width:auto; }
.noticeTimeline { max-width:64rem; list-style:none; padding:0; margin:0; }
.noticeDay { position:relative; padding:0 0 1.8rem 1.8rem; }
.noticeDay:not(:last-child)::before { content:""; position:absolute; left:.32rem; top:.85rem; bottom:-.85rem; width:1px; background:var(--muted); opacity:.6; }
.noticeDay::after { content:""; position:absolute; left:0; top:.5rem; width:.7rem; aspect-ratio:1; border-radius:50%; background:var(--ink); }
.noticeDay h2 { margin:0 0 .85rem; font-size:clamp(1.05rem,2vw,1.4rem); letter-spacing:-.035em; }
.noticeDayItems { gap:0; padding:0 1rem; background:var(--pane); border:1px solid var(--edge); border-radius:18px; }
.noticeHistoryItem { display:flex; align-items:center; gap:1rem; }
.noticeHistoryItem + .noticeHistoryItem { border-top:1px solid var(--edge); }
.noticeHistoryOpen { flex:1; min-width:0; border:0; color:inherit; background:transparent; display:flex; align-items:baseline; text-align:left; gap:1.25rem; padding:1rem 0; cursor:pointer; font:inherit; }
.noticeHistoryOpen:hover strong { text-decoration:underline; text-underline-offset:.2em; }
.noticeHistoryStamp { min-width:3.2rem; font-size:var(--type-ui); font-variant-numeric:tabular-nums; color:var(--muted); }
.noticeHistoryBody { display:grid; gap:.35rem; min-width:0; overflow-wrap:anywhere; }
.noticeHistoryBody .noticeCategory { justify-self:start; }
.noticeHistoryBody small { color:var(--muted); }
.noticeHistoryItem>.textbtn { font-size:var(--type-small); }
@media(max-width:640px) {
  .noticeDay { padding-left:1.25rem; }
  .noticeHistoryItem { display:block; padding:.85rem 0; }
  .noticeHistoryOpen { padding:0; width:100%; gap:.65rem; }
  .noticeHistoryItem>.textbtn { margin:.35rem 0 0 3.85rem; }
}
