/* Workspace screens use the shared Durable Intelligence controls and colors. */
body:has(#shell[inert]) { overflow: hidden; }
.entry {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 64px);
  background: linear-gradient(110deg, #201b2a 5%, #211947dc 55%, #25185944),
    url(assets/my-work-relief.webp) center / cover;
  color: var(--brand-chalk);
}
.entry-shell { width: min(100%, 690px); padding: clamp(28px, 6vw, 68px); border: 1px solid #e3d4ff42; border-radius: 16px; background: #231f2bed; }
.entry-brand { font-weight: 660; }
.entry-brand i { display: inline-block; margin-left: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-verm); }
.entry h1 { margin: 24px 0 10px; color: #fff; font: 550 clamp(47px, 9vw, 84px)/.98 "Durable Intelligence Serif", Georgia, serif; letter-spacing: -.05em; }
.entry p { max-width: 43ch; line-height: 1.6; margin: 0 0 22px; }
.entry .btn { min-height: 44px; padding-inline: 17px; background: var(--brand-gold); border-color: var(--brand-gold); color: var(--ink); }
.entry .btn:hover { background: #ffdf6b; }
.entry .btn:focus-visible { outline-color: #fff; }
.profile-name { min-width: 0; overflow-wrap: anywhere; }
.signout { min-height: 32px; margin-top: 9px; padding-left: 7px; font-size: 12px; }
.sidebar a:focus-visible { outline-color: var(--brand-gold); }
#site-shortcuts .project-nav { min-width: 0; }
.nav-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 24px; }
.page-heading h1 { margin: 0 0 7px; overflow-wrap: anywhere; }
.page-description { margin: 0; color: var(--muted); line-height: 1.5; }
.workspace-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.workspace-actions .btn { min-height: 39px; }
.workspace-section { margin: 0 0 23px; }
.section-label { margin: 0 0 11px; font-size: 22px; letter-spacing: -.04em; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 11px; }
.projects-grid .project-card { justify-content: flex-start; min-height: 62px; text-align: left; padding: 12px 13px; }
.projects-grid .project-card strong { font-size: 13px; overflow-wrap: anywhere; }
.projects-grid .project-card > .icon { margin-left: auto; }
.results-status,.status-panel { padding: 13px 14px; line-height: 1.5; }
.status-panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.status-error { color: #8d202c; }
.status-panel p { margin: 0 0 8px; }
.status-panel p:last-child { margin: 0; }
.workspace-link { color: var(--contrast); text-decoration: underline; text-underline-offset: 3px; }
.recents-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.recents-list li + li { border-top: 1px solid var(--line); }
.recents-list .recent-name { text-align: left; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.recents-list .recent-date { color: var(--quiet); font-size: 11.5px; }
.recents-list .my-work-row { padding-inline: 12px; }
.recents-list .my-work-row:hover { background: #f6f4fc; }
.site-header { align-items: flex-start; }
.site-header .project-icon { align-self: auto; margin: 0; }
.site-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.section-header .section-label { margin: 0; }
.project-list-heading { flex-wrap: wrap; }
.project-setup-list { margin: 0 0 12px; padding: 0; list-style: none; }
.project-setup-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.project-setup-list li + li { margin-top: 8px; }
.project-setup-list strong { overflow-wrap: anywhere; }
.project-setup-list .btn { min-height: 44px; }
.site-path { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; margin: 2px 0 12px; color: var(--quiet); font-size: 12px; min-height: 30px; overflow-wrap: anywhere; }
.site-path .icon { font-size: 16px; }
.site-path a { color: var(--contrast); text-decoration: underline; text-underline-offset: 3px; padding-block: 6px; }
.library-list { margin-bottom: 18px; }
.library-list .project-card[aria-current="true"] { border-color: #afa0e6; background: #f0ebfd; color: var(--contrast); }
.search-form { display: flex; align-items: end; gap: 8px; max-width: 720px; margin: 0 0 14px; }
.search-form label { display: grid; flex: 1; gap: 6px; min-width: 0; font-size: 12px; font-weight: 640; }
.search-form input,
.workspace-field :is(input, select) { min-height: 42px; width: 100%; min-width: 0; border: 1px solid #a79dab; border-radius: 7px; padding: 8px 10px; background: #fff; color: var(--ink); }
.search-form .btn { min-height: 42px; }
.workspace-field :is(input, select):disabled { background: var(--wash); }
.result-note { margin: 9px 0 12px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.file-grid th:first-child { width: 49%; }
.file-grid th:nth-child(2) { width: 24%; }
.file-grid th:nth-child(3) { width: 19%; }
.file-grid th:last-child { width: 8%; }
.file-grid .file-row-main { min-height: 38px; }
.file-grid .file-row-main .row-copy strong { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
.file-grid .file-row-main .row-copy small { font-size: 10.5px; }
.file-grid .file-action { text-align: right; }
.file-grid .file-action .icon-button { width: 30px; height: 30px; }
.file-grid .file-row-metadata { word-break: break-word; }
.file-grid .file-row-metadata time { white-space: nowrap; }
.page-more { display: flex; justify-content: center; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.work-dialog,.file-dialog { padding: 0; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 15px 55px #211a3840; width: min(94vw, 590px); max-height: calc(100dvh - 28px); }
.work-dialog::backdrop,.file-dialog::backdrop { background: #231a43a6; }
.workspace-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 20px 15px; border-bottom: 1px solid var(--line); }
.workspace-dialog-header h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; line-height: 1.1; letter-spacing: -.046em; }
.workspace-dialog-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.workspace-form,.workspace-details { padding: 17px 20px; }
.workspace-field { min-width: 0; display: grid; gap: 6px; margin: 0 0 12px; color: var(--ink); font-size: 12px; font-weight: 650; }
.workspace-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 11px; }
.workspace-types { border: 0; padding: 0; margin: 0 0 12px; }
.workspace-types legend { padding: 0; margin: 0 0 7px; font-size: 12px; font-weight: 650; }
.workspace-options { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.workspace-option { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); font-size: 12px; font-weight: 630; }
.workspace-option:has(input:checked) { border-color: #a99ad9; background: #f0ebfd; }
.workspace-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.workspace-option input { accent-color: var(--accent); margin: 0; }
.workspace-helper { margin: 1px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workspace-form-error { min-height: 1em; margin: 0; color: #8d202c; line-height: 1.5; }
.workspace-form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); }
.workspace-form-actions .btn { min-height: 40px; }
.file-dialog-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workspace-details dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 15px; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.workspace-details dt { font-weight: 650; color: var(--ink); }
.workspace-details dd { margin: 0; color: var(--muted); }
.workspace-details .workspace-actions { margin-top: 21px; }
.copy-fallback { display: grid; gap: 7px; margin-top: 14px; }
.copy-fallback input { min-height: 34px; width: 100%; }
.file-dialog.has-preview { width: min(980px, calc(100% - 32px)); }
.file-preview:not([hidden]) { margin-top: 16px; }
.file-preview iframe { display: block; width: 100%; height: min(58vh, 640px); border: 1px solid var(--line); border-radius: 8px; }
.notice { position: fixed; inset: auto 16px 16px auto; max-width: min(540px, calc(100vw - 32px)); border-radius: 9px; background: #292236; color: #fff; padding: 11px 14px; z-index: 12; box-shadow: var(--shadow); }
.notice:empty { display: none; }

@media (max-width: 720px) {
  .page-heading { margin-bottom: 16px; }
  .workspace-actions .btn { min-height: 44px; }
  .site-header { flex-direction: column; gap: 7px; }
  .site-title { gap: 9px; }
  .site-header .workspace-actions { padding-left: 0; }
  .search-form input,.search-form .btn,.workspace-field :is(input, select) { min-height: 44px; }
  .file-grid th:first-child { width: 60%; }
  .file-grid th:nth-child(2) { width: 24%; }
  .file-grid th:nth-child(3),.file-grid td:nth-child(3) { display: none; }
  .file-grid th:last-child { width: 16%; }
  .file-grid .file-action .icon-button { width: 36px; height: 36px; }
}
@media (max-width: 450px) {
  .entry-shell { padding: 24px 19px; }
  .workspace-fields { grid-template-columns: 1fr; }
  .workspace-dialog-header,.workspace-form,.workspace-details { padding-inline: 13px; }
  .workspace-option { min-height: 44px; }
  .recents-list .recent-date { display: none; }
  .file-grid .file-row-metadata time { white-space: normal; }
}
@media (forced-colors: active) {
  .entry, .entry-shell { background: Canvas; color: CanvasText; }
  .entry h1 { color: CanvasText; }
  .entry .btn { background: ButtonFace; color: ButtonText; }
  .workspace-option:has(input:checked) { outline: 1px solid Highlight; }
}

.content { max-width: 1450px; }
.my-work { max-width: none; }
.page-heading { flex-wrap: wrap; padding-bottom: clamp(16px, 2vw, 26px); border-bottom: 1px solid #d9d3cd; }
.page-heading h1, .site-title h1 { font: 550 clamp(40px, 4vw, 66px)/1.03 "Durable Intelligence Serif", Georgia, serif; letter-spacing: -.055em; }
.section-label,.workspace-dialog-header h2 { font-family: "Durable Intelligence Serif", Georgia, serif; font-weight: 580; letter-spacing: -.034em; }
.section-label { font-size: clamp(23px, 2.1vw, 31px); }
.my-work-grid > section { border-top: 2px solid var(--ink); padding-top: 13px; }
.projects-grid .project-card { border-radius: 8px; background: #fffefa; border-color: #ddd6cd; min-height: 68px; }
.projects-grid .project-card:hover { background: #fbf3d7; border-color: #bdad82; }
.projects-grid .project-icon { background: #faedbd; color: #65511f; border-radius: 5px; }
.recents-list { overflow: hidden; border-radius: 8px; }
.workspace-actions .btn, .btn { border-radius: 6px; }
.btn-secondary { border-color: #d6cfd7; }
.btn-primary:not(.my-work-new):not(.entry .btn) { background: #342d40; border-color: #342d40; }
.btn-primary:not(.my-work-new):not(.entry .btn):hover { background: #4d405e; }
.workspace-dialog-header { background: #f8f6f2; }
.workspace-dialog-header h2 { font-size: 29px; }
.hud-layout { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 2fr); border: 1px solid #d9d3cd; background: #fffefa; border-radius: 10px; overflow: hidden; }
.hud-mailbox { background: #f6f3ee; border-right: 1px solid #d9d3cd; min-width: 0; }
.hud-label { margin: 0; padding: 16px; font: 650 13px Inter, sans-serif; border-bottom: 1px solid #d9d3cd; }
.hud-messages { max-height: 600px; overflow: auto; }
.hud-messages:not(:has(button)) { padding: 16px; }
.hud-message { display: grid; width: 100%; text-align: left; gap: 5px; padding: 14px 16px; background: transparent; border: 0; border-bottom: 1px solid #ded9d2; overflow-wrap: anywhere; }
.hud-message:hover { background: #efebe3; }
.hud-message[aria-pressed="true"] { background: #ece6f2; box-shadow: inset 3px 0 #69547b; }
.hud-message:focus-visible { outline-offset: -3px; }
.hud-message strong { font-weight: 550; line-height: 1.38; }
.hud-message.unread strong { font-weight: 730; }
.hud-sender,.hud-message small,.hud-letterhead p,.hud-reminder span { color: var(--muted); font-size: 12px; }
.hud-message.unread .hud-sender::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #685078; }
.hud-reader { padding: clamp(18px, 3vw, 40px); min-width: 0; overflow-wrap: anywhere; scroll-margin: 12px; }
.hud-reader:focus-visible { outline-offset: -3px; }
.hud-letterhead h2 { font: 540 clamp(26px, 2.7vw, 40px)/1.12 "Durable Intelligence Serif", Georgia, serif; letter-spacing: -.04em; }
.hud-letterhead p { margin: 10px 0 17px; line-height: 1.6; }
.hud-actions { padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.hud-body { margin: 20px 0; white-space: pre-wrap; line-height: 1.65; max-height: 54vh; overflow: auto; }
.hud-reminders { margin-top: 27px; border-top: 2px solid var(--ink); padding-top: 14px; }
.hud-reminder-list { color: var(--muted); line-height: 1.5; }
.hud-reminder { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hud-reminder strong { color: var(--ink); overflow-wrap: anywhere; }
.hud-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; margin: 12px 0; padding: 16px; background: #fffefa; border: 1px solid var(--line); border-radius: 8px; }
.hud-form .workspace-field { flex: 1 1 190px; min-width: 0; margin: 0; }
.hud-form .btn { min-height: 42px; }
.hud-form .workspace-form-error:empty { display: none; }
@media (max-width: 840px) {
  .hud-layout { grid-template-columns: 1fr; }
  .hud-mailbox { border: 0; border-bottom: 1px solid #d9d3cd; }
  .hud-messages { max-height: 215px; }
}
@media (forced-colors: active) {
  .hud-message[aria-pressed="true"], .nav-item[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -3px; }
}
.hud-people { margin: -4px 0 15px; color: var(--muted); font-size: 12px; }
.hud-people summary { width: fit-content; cursor: pointer; padding-block: 4px; color: var(--ink); }
.hud-people ul { margin: 6px 0; padding-left: 20px; line-height: 1.65; }

.my-work-heading { min-height: clamp(142px, 13vw, 184px); flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.follow-section { margin: 0 0 clamp(23px, 3vw, 40px); }
.follow-section > .section-header { align-items: baseline; margin-bottom: 12px; }
.follow-section .workspace-link { font-size: 13px; }
#follow-ups { border-block: 1px solid #cfc8bf; line-height: 1.5; }
#follow-ups:not(:has(.follow-row)) { padding: 16px 0; color: var(--muted); }
.follow-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 23px; align-items: center; padding: 15px clamp(12px, 1.6vw, 24px); background: #fffefa; }
.follow-row + .follow-row { border-top: 1px solid #e2dcd2; }
.follow-copy { min-width: 0; overflow-wrap: anywhere; }
.follow-title { font: 600 clamp(18px, 1.6vw, 24px)/1.25 "Instrument Sans", Inter, sans-serif; letter-spacing: -.035em; }
.follow-state { display: block; color: #4d6352; font-size: 11px; font-weight: 680; margin-bottom: 4px; }
.follow-state::before { content: ""; display: inline-block; width: 7px; height: 7px; background: #548464; border-radius: 50%; margin-right: 6px; }
[data-state="unmatched"] .follow-state { color: #7d551c; }
[data-state="unmatched"] .follow-state::before { background: #b07e39; }
[data-state="unavailable"] .follow-state { color: var(--muted); }
[data-state="unavailable"] .follow-state::before { background: #837888; }
.follow-source,.follow-evidence { font-size: 12px; color: var(--muted); line-height: 1.5; }
.follow-source { margin-top: 5px; }
.follow-evidence { margin: 3px 0 0; }
.follow-thread { text-decoration: underline; text-underline-offset: 3px; }
.follow-row > .btn { color: #fff; background: #403548; border-color: #403548; }
.follow-row > .btn:hover { background: #55455d; }
.reader-follow { margin-bottom: 14px; }
.reader-follow .follow-row { border-left: 3px solid #8a7594; background: #f5f0f5; }
@media (max-width: 680px) {
  .my-work-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .follow-row { grid-template-columns: 1fr; gap: 10px; }
  .follow-row > .btn { justify-self: start; min-height: 44px; }
}
.more-follow-ups summary { width: fit-content; cursor: pointer; padding: 12px 16px; color: var(--contrast); font-weight: 600; font-size: 13px; }
.more-follow-ups { border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .sidebar:not(.open) { visibility: hidden; }
}
