/* Shared Masonwood controls. Native semantics, one visual language. */
:root {
  --ink: #263c34;
  --forest: #244c42;
  --muted: #607266;
  --border: #dfe6df;
  --surface: #fff;
  --surface-soft: #f0f4ef;
  --canvas: #f6f7f4;
  --radius: 12px;
  --focus: #ad8e52;
  color: var(--ink);
  background: var(--canvas);
}
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background: var(--canvas); -webkit-font-smoothing: antialiased; }
h1 { font-size: clamp(27px, 2.5vw, 34px); letter-spacing: -.9px; }
.page-heading { align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.page-heading p { max-width: 620px; line-height: 1.65; }
.eyebrow { color: #667e70; letter-spacing: 1.5px; }
.main { padding: 36px 36px 48px; }

/* Navigation stays inside its own green surface, even in a short window. */
.sidebar { padding: 24px 14px 16px; overflow: hidden; }
.brand { flex: none; gap: 10px; padding: 0 6px 20px; font-size: 22px; }
.brand > span { white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.sidebar > nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #557365 transparent; }
.nav-item { gap: 11px; min-height: 44px; padding: 11px 14px; margin-bottom: 2px; font-size: 13px; line-height: 1.45; }
.nav-item > svg { flex: none; }
.sidebar-bottom { margin-top: 0; padding-top: 16px; flex: none; }
.workspace-note { padding: 8px 12px 16px; font-size: 11px; }
.workspace-note .status-dot { background: #c9ac74; }
.account-row { display: flex; align-items: center; gap: 4px; border-top: 1px solid #355044; margin-top: 12px; padding-top: 14px; }
.account { flex: 1; min-width: 0; border: 0; margin: 0; padding: 4px; gap: 10px; border-radius: 8px; }
.account > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.account:hover { background: #284338; }
.account-signout { flex: none; color: #b9cdc1; }
.account-signout:hover { background: #284338; color: #fff; }
.topbar { min-height: 76px; padding: 14px 28px; }

/* Fields retain native keyboard, touch and validation behavior. */
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
input, select, textarea { border-color: #d8e1d8; border-radius: 8px; background-color: var(--surface); box-shadow: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #708b78; outline: 2px solid var(--focus); outline-offset: 3px; }
input[readonly] { background-color: #f3f5f0; color: #5c7163; }
select:not([multiple]) { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566f60' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select:not(:disabled):hover { border-color: #94a797; }
.scope-control select { padding-left: 8px; padding-right: 28px; background-position: right 5px center; border-color: transparent; border-radius: 8px; }
.scope-control select:hover { background-color: var(--surface-soft); border-color: transparent; }
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; border: 1.5px solid #a2b1a2; border-radius: 5px; flex: none; background-position: center; background-repeat: no-repeat; cursor: pointer; }
input[type=checkbox]:checked { border-color: var(--forest); background-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 10 3 3 7-7'/%3E%3C/svg%3E"); }
input[type=checkbox]:indeterminate { border-color: var(--forest); background-color: var(--forest); background-image: linear-gradient(#fff, #fff); background-size: 9px 2px; }
input[type=radio] { border-radius: 50%; }
input[type=radio]:checked { border-color: var(--forest); background-image: radial-gradient(var(--forest) 0 4px, transparent 4.5px); }
input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .6; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.field { gap: 8px; margin-bottom: 20px; }
.field > span { color: #354f40; }
.checkbox { gap: 10px; }

/* Disclosures all have the same quiet chevron and a full touch target. */
details > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; cursor: pointer; border-radius: 8px; color: #42614e; line-height: 1.5; }
summary::marker { content: ""; }
summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); flex: none; margin: 0 5px 0 auto; opacity: .75; }
details[open] > summary::after { transform: rotate(45deg); }
details > summary:hover { color: #244c42; background-color: #edf2ec; }
details > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.advanced > summary { padding: 12px 14px; border: 1px solid var(--border); background: #f5f7f2; font-size: 13px; }
.advanced + .advanced { margin-top: 12px; }
.advanced > .form-grid { padding-top: 20px; }
.role-tree > summary > span:first-child, .task-tree > summary > span:first-child { flex: 1; }
.role-tree > summary::after, .task-tree > summary::after { margin-left: 0; }
.timeline-dept > summary::after, .timeline-role > summary::after { order: -1; margin: 0 4px 0 0; }
.detail-section > summary, .detail-section details > summary { font-size: 13px; padding: 10px 12px; }
.evidence-card details > summary { padding: 10px 12px; background: #f5f7f2; font-size: 13px; }
.evidence-documents > summary { padding: 12px 14px; border: 1px solid var(--border); font-size: 14px; }

.button { min-height: 44px; border-radius: 8px; padding: 10px 16px; font-weight: 550; border-color: #dce4da; box-shadow: none; }
.button.secondary:hover { border-color: #a4b7a7; background: #f1f5ef; }
.text-button { border-radius: 7px; color: #365e48; }
.text-button:hover { background: #edf3eb; }
.button.primary { background: var(--forest); border-color: var(--forest); }
.button.primary:hover { background: #193f34; border-color: #193f34; }
.button:focus-visible, .text-button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.button:disabled:hover { border-color: #dce4da; }
.queue, .work-list, .settings-card, .project-card, .person-card, .ops-person, .ops-outcome, .ops-project-card, .ops-syllabus, .ops-feed, .ops-stat-list, .day-card, .integration-panel, .evidence-entry, .evidence-card, .evidence-setup { border-radius: var(--radius); border-color: var(--border); box-shadow: none; }
.queue.active { border-color: #7b9983; background: #eff4ed; box-shadow: inset 0 2px #52765b; }
.badge { border-radius: 6px; line-height: 1.5; }
.badge { color: #526b58; }
.badge.in_progress { color: #3e6345; }
.badge.submitted { color: #4e6180; }
.badge.changes_requested, .badge.warning { color: #856022; }
.badge.completed { color: #3f6843; }
.badge.cancelled { color: #756454; }
.work-meta, .queue small, .footnote, .metadata dt, .field > small, .due:not(.late) { color: var(--muted); }
.empty { padding: 44px 24px; }
.empty > svg { color: #8b9f85; margin-bottom: 12px; }
.empty h3 { font-size: 17px; font-weight: 550; }
.empty p { line-height: 1.65; margin-top: 9px; }
.notice { border-radius: 9px; }
dialog { border-radius: 16px; border-color: var(--border); color: var(--ink); box-shadow: 0 24px 80px #152d2630; padding: 30px; scroll-padding-block: 24px 100px; }
dialog::backdrop { background: #172f2966; backdrop-filter: blur(3px); }
dialog h2 { font-size: 24px; letter-spacing: -.5px; }
.modal-footer { position: sticky; bottom: 0; z-index: 2; gap: 12px; padding-top: 20px; margin-top: 24px; background: #fff; box-shadow: 0 -10px 14px #fffffff2; }
.requirements-disclosure .requirements-editor { margin: 12px 0; }
.settings-account-head { display: flex; align-items: center; gap: 14px; }
.settings-account-head .avatar { width: 44px; height: 44px; font-size: 14px; }
.settings-account-head h2 { margin: 0 0 4px; font-size: 20px; }
.settings-account-head p { margin: 0; color: var(--muted); font-size: 13px; }
.settings-card .action-row { margin-bottom: 0; }

/* Everyday connections show the available action; setup belongs to the owner. */
.connections-page, .integration-settings { max-width: 860px; }
.connections-page .page-heading, .integration-settings .page-heading { align-items: flex-start; margin-bottom: 28px; }
.connections-page .page-heading h1, .integration-settings .page-heading h1 { font-size: 30px; letter-spacing: -.8px; }
.connections-page .page-heading p { font-size: 14px; }
.connections-page .page-heading > .text-button { padding: 8px 10px; }
.connection-card { border-radius: 12px; border-color: var(--border); padding: 24px; margin-bottom: 14px; box-shadow: none; }
.connection-card-main { gap: 18px; }
.connection-title { gap: 10px; }
.connection-title h2 { font-size: 18px; font-weight: 600; }
.connection-status { font-size: 11px; border-radius: 6px; padding: 4px 8px; color: #5e6d58; background: #f0f2ec; }
.connection-status.is-connected { color: #3b6446; background: #eaf3e8; }
.connection-description { color: var(--muted); font-size: 12px; margin-top: 8px; }
.connection-hint { color: #5f7265; font-size: 13px; line-height: 1.7; max-width: 500px; }
.connection-card-action:empty { display: none; }
.connection-options { margin-top: 18px; padding-top: 12px; border-top: 1px solid #e8ece5; }
.connection-options > summary { padding: 10px 12px; margin-left: -12px; font-size: 13px; }
.connections-footer { padding: 6px 2px; gap: 12px; font-size: 12px; color: var(--muted); }
.connection-privacy { max-width: none; margin: 20px 0 0; font-size: 13px; color: #63776a; }
.connection-privacy > summary { padding: 12px 14px; color: #4b6753; background: #edf2eb; border: 1px solid #e0e7dc; font-size: 13px; font-weight: 500; }
.connection-privacy[open] > summary { border-radius: 9px 9px 0 0; }
.connection-privacy-copy { padding: 8px 16px 14px; background: #fafbf8; border: 1px solid #e0e7dc; border-top: 0; border-radius: 0 0 9px 9px; }
.connection-privacy-copy p { max-width: 650px; margin: 12px 0 0; font-size: 13px; line-height: 1.75; }
.account-technical > summary, .setup-reference > summary { padding: 10px 12px; }
.office-shortcut p { max-width: 600px; color: var(--muted); }

@media (min-width: 761px) and (max-width: 1100px) { .main { padding: 30px 24px 40px; } .sidebar { width: 208px; } .topbar { padding: 14px 22px; } }
@media (min-width: 1001px) and (max-width: 1350px) { .layout:has(.detail-panel) .account-row { justify-content: center; } .layout:has(.detail-panel) .account-signout { display: none; } }
@media (max-width: 760px) {
  .main { padding: 26px 18px 36px; }
  .topbar { min-height: 65px; padding: 10px 12px; }
  .sidebar.expanded { width: 244px; }
  .sidebar.expanded .brand { display: none; }
  .settings-breadcrumb { gap: 8px; font-size: 12px; }
  .connections-page .page-heading, .integration-settings .page-heading { gap: 8px; }
  .connections-page .page-heading h1, .integration-settings .page-heading h1 { font-size: 26px; }
  .connection-card { padding: 20px; }
  .connection-card-main { gap: 14px; flex-wrap: wrap; align-items: flex-start; }
  .connection-card-copy { flex-basis: calc(100% - 48px); }
  .connection-card-action { margin-left: 45px; max-width: calc(100% - 45px); }
  .connection-card-action .button { white-space: normal; text-align: left; }
  .connection-options { margin-left: 0; }
  .connection-title { gap: 7px 10px; }
  .connection-privacy { margin-top: 16px; }
  .connection-title h2 { font-size: 17px; }
  .connections-footer { flex-direction: column; }
  .settings-card { padding: 22px; }
  .ops-outcomes, .project-grid { grid-template-columns: minmax(0, 1fr); }
  dialog { padding: 26px 20px; }
}
@media (forced-colors: active) {
  input[type=checkbox], input[type=radio] { appearance: auto; -webkit-appearance: auto; }
  details > summary::after { color: ButtonText; }
}

/* Recovered company wordmark, shared by sign-in, setup and the work header. */
.brand img.brand-wordmark{width:104px;height:auto;aspect-ratio:504/166;object-fit:contain;flex:none;border-radius:0}.brand-product{font-size:20px;font-weight:400;letter-spacing:-.5px}.auth-story .brand{background:white;padding:12px 16px;border-radius:8px;align-self:flex-start;display:inline-flex;align-items:center;gap:12px;color:var(--ink)}.auth-story .brand-wordmark{width:110px}

/* Source destinations should look clickable before hover, including on touch screens. */
a[target="_blank"]:not(.button),a.outbound-link{color:var(--forest,#234d40);text-decoration-line:underline;text-decoration-thickness:1.5px;text-underline-offset:.22em;text-decoration-skip-ink:auto}
a.outbound-link{display:inline-flex;align-items:center;gap:.35em;min-height:36px;font-weight:600;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
a[target="_blank"]:not(.button):hover,a.outbound-link:hover{text-decoration-thickness:2px;color:#173b2d}
a[target="_blank"]:focus-visible,a.outbound-link:focus-visible{outline:2px solid var(--gold,#ad9252);outline-offset:4px;border-radius:3px}
