/* Local workspace UI shares the landing's paper, type and controls. */
body[data-view="workspace"] { height: 100svh; overflow: hidden; background: var(--paper); }
body[data-view="workspace"] .page-footer { display: none; }
.workspace-screen { --ws-item-height: 36px; --ws-item-radius: 10px; --ws-item-highlight: #f1efe9; --ws-line: rgba(21, 17, 13, .08); --ws-shadow: 0 4px 20px rgba(49, 81, 128, .025), 0 0 0 1px rgba(20, 5, 5, .07); display: grid; grid-template-columns: 248px minmax(0, 1fr); width: 100%; height: 100svh; min-height: 0; overflow: hidden; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 20px; }
.workspace-screen button, .workspace-screen input, .workspace-screen textarea { font: inherit; }
.workspace-screen button { color: inherit; }
.workspace-screen .primary-cta { color: #fff; }
.workspace-screen button:focus-visible, .workspace-screen input:focus-visible, .workspace-screen textarea:focus-visible { outline: 2px solid #8b8172; outline-offset: 3px; }
.ws-icon { display: block; flex: none; object-fit: contain; }
.ws-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 6px; border: 0; border-radius: 9px; background: transparent; }
.ws-icon-button:hover { background: rgba(21, 17, 13, .055); }
.ws-icon-button:active { background: rgba(21, 17, 13, .09); }
.ws-sidebar { position: relative; z-index: 4; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 8px; background: var(--paper); }
.ws-sidebar-top { display: flex; flex: none; align-items: center; gap: 4px; margin-bottom: 12px; }
.ws-workspace-switch { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; width: max-content; max-width: 100%; min-height: var(--ws-item-height); padding: 4px 8px 4px 4px; border: 0; border-radius: var(--ws-item-radius); background: transparent; text-align: left; font-weight: 500 !important; }
.ws-workspace-switch:hover { background: var(--ws-item-highlight); }
.ws-nav-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-workspace-mark { position: relative; display: grid; place-items: center; justify-self: center; width: 26px; height: 26px; overflow: hidden; border-radius: 8px; }
.ws-workspace-mark > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ws-workspace-copy { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ws-workspace-copy > .ws-nav-label { flex: 0 1 auto; font-size: 16px; line-height: 24px; }
.ws-chevron { flex: none; width: 12px; height: 12px; }
#workspace-apps > .ws-icon { width: 16px; height: 16px; }
.ws-navigation { display: flex; flex: 1; flex-direction: column; gap: 0; min-height: 0; overflow: hidden; }
.ws-navigation > .ws-nav-item { flex: none; }
.ws-nav-static { display: flex; flex: none; flex-direction: column; gap: 0; }
.ws-nav-static > .ws-nav-item { flex: none; }
.ws-nav-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 6px; min-width: 0; width: 100%; min-height: var(--ws-item-height); padding: 4px; border: 0; border-radius: var(--ws-item-radius); background: transparent; text-align: left; }
.ws-nav-item:hover { background: var(--ws-item-highlight); }
.ws-nav-item[aria-current="page"] { background: var(--ws-item-highlight); font-weight: 400; }
.ws-nav-item > .ws-icon { justify-self: center; width: 20px; height: 20px; }
.ws-new-room > .ws-icon, .ws-search-item > .ws-icon, .ws-automations-item > .ws-icon, .ws-room-row .ws-nav-item > .ws-icon { width: 16px; height: 16px; }
.ws-personal-mark { --ws-personal-size: 22px; position: relative; display: grid; place-items: center; justify-self: center; width: var(--ws-personal-size); height: var(--ws-personal-size); overflow: hidden; border-radius: 7px; background: linear-gradient(180deg, #fdc200 0%, #fd9800 80%, #fdb500 100%); }
/* Keep the inner edge above each image and clipped to its colored tile. */
.ws-workspace-mark::after, .ws-personal-mark::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(21, 17, 13, .16); pointer-events: none; }
.ws-workspace-mark::after { box-shadow: inset 0 0 0 1px rgba(21, 17, 13, .10); }
.ws-inline-mark { display: block; width: 20px; height: 20px; }
.ws-room-groups { display: flex; flex: 1; flex-direction: column; gap: 20px; min-height: 0; margin-top: 18px; overflow-x: hidden; overflow-y: auto; }
.ws-room-group { flex: none; }
.ws-rooms-label { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 4px; color: #78756f; font-size: 14px; line-height: 20px; font-weight: 500; }
.ws-rooms-label .ws-icon-button { width: 28px; height: 28px; border-radius: 6px; }
.ws-rooms-label .ws-icon-button:hover { background: var(--ws-item-highlight); }
.ws-rooms-label .ws-icon-button:active { background: var(--ws-item-highlight); }
.ws-section-toggle { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 28px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.ws-section-chevron, .ws-section-action { visibility: hidden; }
.ws-rooms-label:hover .ws-section-chevron, .ws-rooms-label:focus-within .ws-section-chevron, .ws-rooms-label:hover .ws-section-action, .ws-rooms-label:focus-within .ws-section-action, .ws-section-toggle[aria-expanded="false"] .ws-section-chevron { visibility: visible; }
.ws-section-toggle[aria-expanded="false"] .ws-section-chevron { transform: rotate(-90deg); }
.ws-room-list { display: flex; flex-direction: column; gap: 0; overflow: visible; }
.ws-room-row { position: relative; }
.ws-room-row:hover > .ws-nav-item { background: var(--ws-item-highlight); }
.ws-room-row .ws-icon-button:hover { background: #e4e1d9; }
.ws-room-row .ws-icon-button:active { background: #ddd9cf; }
.ws-room-row .ws-nav-item { position: relative; padding-right: 64px; }
.ws-room-more { position: absolute; top: 50%; right: 4px; width: 28px; height: 28px; padding: 6px; border-radius: 6px; visibility: hidden; transform: translateY(-50%); }
.ws-room-pin-toggle { position: absolute; top: 50%; right: 32px; width: 28px; height: 28px; padding: 6px; border-radius: 6px; visibility: hidden; transform: translateY(-50%); }
.ws-room-more .ws-icon, .ws-room-pin-toggle .ws-icon { width: 16px; height: 16px; }
.ws-room-row:hover .ws-room-more, .ws-room-row:focus-within .ws-room-more, .ws-room-more[aria-expanded="true"], .ws-room-row:hover .ws-room-pin-toggle, .ws-room-row:focus-within .ws-room-pin-toggle { visibility: visible; }
.ws-room-empty { margin: 6px 4px; color: #78756f; font-size: 13px; line-height: 20px; }
.ws-room-menu { position: fixed; z-index: 24; width: max-content; min-width: 112px; max-width: calc(100vw - 16px); }
.ws-popover.ws-room-menu { z-index: 24; }
.ws-room-menu .ws-icon { width: 16px; height: 16px; }
.ws-room-menu .ws-menu-item:hover, .workspace-screen .ws-room-menu .ws-menu-item:focus-visible { background: #f6f5f1; }
.ws-sidebar-bottom { flex: none; margin-top: auto; padding-top: 16px; }
/* The standalone room list continues underneath the floating download card. */
@media (min-width: 761px) {
  html:not([data-embed="landing"]) .ws-sidebar { background: transparent; }
}
html:not([data-embed="landing"]) .ws-sidebar-top { position: relative; z-index: 5; background: var(--paper); }
html:not([data-embed="landing"]) .ws-navigation { margin-bottom: max(0px, calc(var(--ws-sidebar-footer-height, 284px) - 16px)); overflow: visible; }
html:not([data-embed="landing"]) .ws-nav-static { position: relative; z-index: 3; padding-bottom: 18px; background: var(--paper); }
html:not([data-embed="landing"]) .ws-navigation[data-rooms-scrolled] .ws-nav-static { padding-bottom: 8px; }
html:not([data-embed="landing"]) .ws-navigation[data-rooms-scrolled] .ws-nav-static::after { content: ""; position: absolute; z-index: -1; inset: 0 -8px; box-shadow: 0 .5px 1px rgba(134, 119, 96, .18); clip-path: inset(100% 0 -2px); pointer-events: none; }
html:not([data-embed="landing"]) .ws-navigation[data-rooms-scrolled] .ws-room-groups { padding-top: 10px; }
html:not([data-embed="landing"]) .ws-room-groups { margin-top: 0; padding-bottom: 24px; scroll-padding-bottom: 24px; }
html:not([data-embed="landing"]) .ws-sidebar-bottom { position: absolute; z-index: 4; right: 8px; bottom: 8px; left: 8px; margin-top: 0; padding-top: 0; background: linear-gradient(to top, var(--paper) 40px, transparent 40px); pointer-events: none; }
html:not([data-embed="landing"]) .ws-sidebar-bottom > * { pointer-events: auto; }
.ws-main { position: relative; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 16px 0 0 16px; background: #fff; box-shadow: 0 0 0 .5px #d1ccbf; outline: 0; }
.ws-sidebar-toggle { position: absolute; z-index: 2; top: 16px; left: 16px; display: none; }
.ws-popover { --ws-menu-spacing: 4px; --ws-menu-radius: 8px; z-index: 8; padding: var(--ws-menu-spacing); border-radius: calc(var(--ws-menu-radius) + var(--ws-menu-spacing)); background: #fff; box-shadow: 0 12px 36px rgba(21, 17, 13, .08), 0 0 0 1px rgba(21, 17, 13, .08); }
.ws-workspace-menu { position: absolute; top: 56px; left: 12px; right: 12px; }
.ws-workspace-menu > p { margin: 6px 10px 10px; font-size: 12px; line-height: 18px; }
.ws-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px; border: 0; border-radius: var(--ws-menu-radius, 8px); background: transparent; text-align: left; white-space: nowrap; }
.ws-menu-item:hover, .workspace-screen .ws-menu-item:focus-visible { outline: 0; background: var(--ws-item-highlight); }
.ws-dialog { --ws-dialog-padding: 24px; --ws-field-radius: var(--control-radius); width: min(420px, calc(100vw - 32px)); max-height: min(680px, calc(100svh - 48px)); margin: auto; padding: var(--ws-dialog-padding); overflow-y: auto; border: 0; border-radius: calc(var(--ws-field-radius) + var(--ws-dialog-padding)); color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(21, 17, 13, .15), 0 0 0 1px rgba(21, 17, 13, .06); }
.ws-dialog::backdrop { background: rgba(21, 17, 13, .2); }
.ws-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px -4px 8px 0; }
.ws-dialog h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; }
.ws-dialog > p, .ws-dialog form > p { margin: 0; font-size: 14px; line-height: 22px; }
.ws-dialog-field { display: grid; gap: 8px; margin-top: 24px; }
.ws-dialog-field > label { font-size: 13px; line-height: 18px; }
.ws-dialog-field input { min-width: 0; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: var(--ws-field-radius); color: var(--ink); background: #eeece5; font-size: 16px; line-height: 24px; box-shadow: none; }
.ws-dialog-field input:focus, .ws-dialog-field input:focus-visible { outline: 0; background: #fff; }
.ws-dialog-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 .5px var(--error); }
.ws-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.ws-dialog-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 16px; border: 0; border-radius: var(--control-radius); font-size: 14px !important; line-height: 20px; font-weight: 500 !important; }
.ws-apps-dialog { width: min(440px, calc(100vw - 32px)); }
.ws-app-list { display: grid; gap: 8px; margin-top: 24px; }
.ws-app-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 12px; color: var(--ink); background: var(--paper); text-align: left; }
.ws-app-option:hover { background: #eeece5; }
.ws-app-option > img { display: block; flex: none; width: 28px; height: 28px; object-fit: contain; }
.ws-app-option > div { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.ws-app-option strong { font-size: 14px; line-height: 20px; font-weight: 500; }
.ws-app-option span { font-size: 12px; line-height: 18px; }
.ws-app-selection { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px rgba(21, 17, 13, .12); }
.ws-app-selection > img { visibility: hidden; }
.ws-app-option[aria-pressed="true"] .ws-app-selection { background: var(--ink); box-shadow: none; }
.ws-app-option[aria-pressed="true"] .ws-app-selection > img { visibility: visible; filter: invert(1); }
.ws-scrim, .ws-sidebar-close { display: none; }
@media (hover: none) {
  .ws-room-more, .ws-room-pin-toggle, .ws-section-chevron, .ws-section-action { visibility: visible; }
}
@media (max-width: 760px) {
  .workspace-screen { grid-template-columns: minmax(0, 1fr); }
  .ws-main { border-radius: 16px; }
  .ws-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 21; width: min(280px, calc(100vw - 48px)); height: 100svh; padding-top: 8px; visibility: hidden; transform: translateX(-100%); transition: transform 180ms ease, visibility 180ms; }
  .ws-sidebar-top { gap: 0; }
  .ws-sidebar-close { display: inline-flex; width: 28px; height: 32px; padding: 4px; }
  .workspace-screen[data-sidebar-open="true"] .ws-sidebar { visibility: visible; transform: translateX(0); }
  .ws-scrim { position: fixed; inset: 0; z-index: 20; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(21, 17, 13, .2); }
  .ws-sidebar-toggle { display: inline-flex; }
}
@media (max-width: 380px) {
  .ws-dialog { --ws-dialog-padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-sidebar { transition: none; }
}

/* The new-room view stays quiet until the visitor starts a brief. */
.ws-home { display: grid; place-items: center; min-height: 100%; padding: 56px 40px 104px; }
.ws-home[hidden], .ws-room-content[hidden] { display: none; }
.ws-home-inner { display: flex; flex-direction: column; align-items: center; width: min(620px, 100%); }
.ws-home h1 { margin: 0 0 16px; color: var(--ink); font-size: 30px; line-height: 40px; font-weight: 500; letter-spacing: -.025em; text-align: center; text-wrap: balance; }
.ws-room-content { width: min(720px, 100%); margin: 0 auto; padding: 56px 32px; }
.ws-brief-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.ws-brief-heading h1 { min-width: 0; margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; overflow-wrap: anywhere; }
.ws-brief { padding: 24px; border: 1px solid var(--ws-line); border-radius: 20px; }
.ws-brief-label, .ws-brief-visibility { margin: 0; color: #78756f; font-size: 13px; line-height: 20px; }
.ws-brief-text { margin: 12px 0 20px; font-size: 16px; line-height: 26px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-brief-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.ws-brief-files li { min-width: 0; max-width: 100%; padding: 6px 10px; border-radius: 8px; background: #f3f1ec; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .ws-home { padding: 80px 20px 100px; }
  .ws-home h1 { font-size: 26px; line-height: 36px; margin-bottom: 16px; }
  .ws-room-content { padding: 80px 20px 32px; }
}
@media (max-width: 380px) {
  .ws-home { padding-left: 16px; padding-right: 16px; }
  .ws-home h1 { font-size: 24px; line-height: 32px; }
}
