/* Kumo-inspired native presentation: layered surfaces, glass chrome, restrained motion. */
html { font-size:var(--type-body-size); }
body, button, input, select, textarea { font-family:var(--font-sans); }
body { color:var(--text); background:var(--theme-background); font-size:var(--type-body-size); letter-spacing:-.14px; line-height:var(--type-body-leading); }
p { line-height:1.5; }
button, input, select, textarea, .button { border-radius:var(--radius-md); }
button, a, input, select, textarea, summary { transition:background-color var(--duration-base) var(--ease-theme), border-color var(--duration-fast) var(--ease-theme), color var(--duration-fast) var(--ease-theme); }
:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.button.primary, .primary { color:var(--theme-on-primary); background:var(--cf-primary); font-weight:500; box-shadow:none; }
.button.primary:hover, .primary:hover { background:var(--cf-primary-hover); }
.button.primary:active, .primary:active { background:var(--cf-primary-active); color:var(--theme-on-dark); }
.button.secondary, .secondary, .row-actions button { color:var(--text); background:var(--surface); border:1px solid var(--line); box-shadow:none; }
.button.secondary:hover, .secondary:hover, .row-actions button:hover { background:var(--theme-surface); }
.button.danger, .row-actions button.danger { color:var(--cf-danger); border-color:var(--cf-danger-border); }
.button.danger:hover, .row-actions button.danger:hover { background:var(--cf-danger-hover); }
input, select, textarea, #hero-url { background:var(--theme-paper); color:var(--text); border-color:var(--line); font-size:14px; line-height:1.4; }
input::placeholder, textarea::placeholder { color:var(--muted); opacity:1; }
input:focus, select:focus, textarea:focus { border-color:var(--text); }
.sidebar, .topbar, .header { background:var(--theme-background); border-color:var(--line); }
.sidebar { padding-top:var(--space-8); }
.main-wrap .topbar { font-size:12px; }
.page-heading h1 { font-size:var(--type-display-size); font-weight:500; line-height:1.05; letter-spacing:-.8px; }
.page-heading p, .intro { color:var(--muted); }
.eyebrow, .brand-sub, .meta { color:var(--muted); }
.page-heading .eyebrow { font-size:11px; letter-spacing:1px; }
.enterprise-nav button { font-size:14px; padding:12px; min-height:40px; }
.enterprise-nav button.active { background:var(--theme-surface); color:var(--text); }
.company-context { background:var(--theme-paper); padding:var(--space-3); border-radius:var(--radius-md); }
.company-context-label, .company-context-role, .field-hint { font-size:12px; color:var(--muted); }
.company-context strong { font-size:14px; font-weight:500; }
.workspace-context-switch button[aria-pressed="true"] { color:var(--text); border-color:var(--cf-primary); background:var(--accent-soft); }
.box, .composer, .hero-tool, .link-list, .result, .profile-notice, .account-note, .link-preview, dialog { border:1px solid var(--line); border-radius:var(--radius-lg); }
.box, .composer, .link-list, .result { background:var(--surface); box-shadow:var(--shadow-card); }
.box { padding:var(--space-4); margin-bottom:var(--space-4); }
.box h2, .composer h2, .quick-composer h2 { font-size:var(--type-heading-size); line-height:1.2; font-weight:400; letter-spacing:-.48px; }
.box p { font-size:14px; line-height:1.5; }
.quick-composer { padding:var(--space-4); gap:var(--space-3); background:var(--theme-paper); }
.quick-composer label { font-size:12px; }
.quick-composer .field-hint { font-size:12px; }
.section-heading h2, .analytics-breakdowns h3, #analytics-report h3 { font-size:19px; font-weight:400; line-height:1.2; letter-spacing:-.48px; }
.link-row, .design-row { padding:var(--space-4); border-color:var(--line); }
.link-row:hover, .design-row:hover, tr:hover { background:var(--theme-paper); }
.link-body h3 { font-size:14px; font-weight:500; letter-spacing:-.14px; }
.short-link, .link-body .short-link, .link-body .destination, #result-link, #preview, #qr-preview-url, #qr-tracked-url, .qr-color-input output { font-family:var(--font-mono); font-size:var(--type-mono-size); line-height:1.5; letter-spacing:0; }
.row-actions button { font-size:12px; min-height:36px; padding:8px 12px; }
.button { font-size:14px; min-height:36px; }
.text-button { font-size:13px; }
th { color:var(--muted); font-size:11px; font-weight:500; letter-spacing:.6px; }
td { font-size:12px; }
.analytics-metrics .box { background:var(--theme-paper); }
.analytics-metrics strong { font-weight:500; font-size:32px; letter-spacing:-.8px; }
.analytics-metrics span { font-size:12px; }
#analytics-comparison, #analytics-status { font-size:14px; line-height:1.5; }
.qr-dialog, #account-dialog { box-shadow:var(--shadow-elevated); border-radius:var(--radius-xl); }
.qr-header h2 { font-size:24px; font-weight:500; letter-spacing:-.6px; }
.qr-preview-panel { background:var(--theme-surface); }
.qr-board { background:var(--surface); border-radius:var(--radius-md); }
.qr-controls select, .qr-section select, .qr-color-input, .qr-shape-art, .qr-quality-note, .qr-notice, #qr-profile, .qr-swatch { border-radius:var(--radius-md); }
.qr-controls label, .qr-shapes legend, .qr-section select { font-size:13px; }
.qr-controls .field-hint { font-size:12px; line-height:1.5; }
.qr-step { color:var(--cf-primary-active); }
.qr-step span { font-size:14px; }
.hero-tool { background:var(--surface); box-shadow:var(--shadow-card); }
.product-hero { min-height:560px; padding:32px 0; }
.product-hero .hero-copy { padding:48px 40px; }
.product-hero h1 { font-size:clamp(40px,4.8vw,56px); font-weight:500; line-height:1; letter-spacing:-1.4px; }
.product-hero h1 span { color:var(--cf-primary-active); }
.product-hero .intro { font-size:16px; line-height:1.5; }
.hero-tool-wrap { padding:32px 40px 32px 12px; }
.tool-body { padding:32px; }
.tool-body h2 { font-size:19px; font-weight:400; line-height:1.2; letter-spacing:-.48px; }
.tool-body p { font-size:14px; line-height:1.5; }
.tool-tabs { padding:0 32px; gap:32px; }
.tool-tabs button { font-size:14px; padding:16px 0; min-height:48px; }
#hero-create-form { gap:12px; }
#hero-create-form label { font-size:12px; }
#hero-create-submit { min-height:44px; }
.tool-body .tool-signin-note { font-size:12px; line-height:1.5; }
.tool-qr-feature { background:var(--theme-surface); padding:16px 32px; gap:16px; }
.tool-qr-feature strong { font-weight:500; font-size:16px; }
.tool-qr-feature p { font-size:12px; }
.statement, .company-section, .print-section, .faq { padding-left:40px; padding-right:40px; }
.statement > div h2, .company-intro h2, .print-copy h2, .faq h2, .closing h2 { font-size:32px; font-weight:500; line-height:1.1; letter-spacing:-.8px; }
.workflow-grid h3, .company-features h3 { font-size:19px; font-weight:400; line-height:1.2; letter-spacing:-.48px; }
.workflow-grid article { border-radius:var(--radius-sm); }
.company-section, .closing { background:var(--theme-paper); }
.print-visual, .workflow-grid .mini-table, .pattern { background:var(--theme-surface); }
footer { color:var(--muted); font-size:12px; }
.hero-actions .text-link, .header nav a, .sidebar-note, footer a { min-height:44px; display:inline-flex; align-items:center; }
@media(max-width:768px) {
  .product-hero { min-height:0; padding:0; grid-template-columns:minmax(0,1fr); }
  .product-hero .hero-copy { padding:40px 24px 32px; }
  .hero-tool-wrap { padding:0 24px 32px; }
  .tool-body { padding:24px; }
  .tool-tabs { padding:0 24px; }
  .tool-qr-feature { padding:16px 24px; }
  .statement, .company-section, .print-section, .faq, .closing { padding-left:24px; padding-right:24px; }
}
@media(max-width:550px) {
  .page-heading h1 { font-size:28px; line-height:1.1; }
  .product-hero h1 { font-size:40px; }
  .product-hero .hero-copy { padding:32px 16px; }
  .hero-tool-wrap { padding:0 16px 32px; }
  .tool-body { padding:16px; }
  .tool-tabs { padding:0 16px; gap:24px; }
  .tool-qr-feature { padding:16px; }
  .button, .text-button, .row-actions button, .enterprise-nav button, .tool-tabs button, .account-tabs button, .auth-actions button, summary { min-height:44px; }
  .button, .row-actions button { display:inline-flex; align-items:center; justify-content:center; }
  .icon-button { width:44px; height:44px; min-width:44px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height:44px; font-size:16px; }
  .qr-swatch { width:44px; height:44px; }
  .qr-color-input input[type="color"] { min-height:44px; width:44px; height:44px; }
  .enterprise-nav button { padding:8px; font-size:13px; }
  .row-actions { flex-wrap:wrap; }
  .statement, .company-section, .print-section, .faq, .closing { padding-left:16px; padding-right:16px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Surface hierarchy follows Kumo LayerCard; shell glass is a native CSS adaptation. */
.ui-icon { width:18px; height:18px; flex:none; fill:currentColor; display:inline-block; vertical-align:middle; }
.workspace-actions, .qr-window-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.workspace-actions { margin:-8px 0 20px; }
.workspace-actions:has(> .hidden:only-child) { display:none; }
#qr-resume { gap:8px; }
.sidebar, .topbar, .header, .qr-header { background:var(--glass-surface); backdrop-filter:blur(18px) saturate(120%); box-shadow:var(--glass-highlight); }
.topbar { position:sticky; top:0; z-index:4; }
#workspace-label { margin-right:auto; }
.enterprise-nav button { display:flex; align-items:center; gap:10px; color:var(--muted); transition:background-color 150ms, color 150ms, transform 150ms; }
.enterprise-nav button:hover { color:var(--text); transform:translateX(2px); }
.enterprise-nav button.active { color:var(--text); background:var(--theme-surface); box-shadow:inset 0 1px 0 #fff, 0 1px 2px #1c1c230a; }
.enterprise-nav button.active .ui-icon { color:var(--cf-primary-active); }
.company-context { background:var(--surface); box-shadow:var(--shadow-card); }
.quick-composer { background:linear-gradient(180deg,#fff,var(--theme-paper)); border:1px solid var(--line); box-shadow:var(--shadow-card), 0 0 0 5px #f0f0f280; }
.box, .link-list, .result, .profile-notice { border-radius:var(--radius-lg); }
.button, .icon-button, .text-button { transition:background-color 160ms var(--ease-theme), box-shadow 160ms var(--ease-theme), transform 160ms var(--ease-theme); }
.button.primary { box-shadow:inset 0 1px 0 #ffffff52, 0 2px 3px #b838001f; }
.button:hover { transform:translateY(-1px); }
.button:active, .icon-button:active { transform:translateY(1px); }
.button.secondary, .row-actions button, input, select, textarea { box-shadow:inset 0 1px 1px #1c1c2304, 0 1px 2px #1c1c2306; }
input:focus, select:focus, textarea:focus { border-color:#a3a3ab; }
:where(button, a, input, select, textarea, summary):focus:not(:focus-visible) { outline:none; }
:where(button, a, input, select, textarea, summary):focus-visible { outline:2px solid #595964; outline-offset:3px; }
.workspace-context-switch button[aria-pressed="true"] { border-color:var(--line); box-shadow:inset 0 1px 0 white, 0 1px 2px #1c1c2310; }
.qr-shape input:checked + .qr-shape-art { border-color:transparent; background:var(--accent-tint); box-shadow:none; }
.qr-shape input:checked ~ span:last-child { color:var(--text); font-weight:600; }
.qr-shape input:checked ~ span:last-child::after { content:" ✓"; color:var(--cf-primary-active); }
.qr-shape input:focus-visible + .qr-shape-art { outline:2px solid #595964; outline-offset:3px; }
.qr-swatch[aria-pressed=true] { outline:none; box-shadow:0 0 0 2px white, 0 0 0 3px #b0b0b7; }
.qr-dialog { width:min(940px,calc(100vw - 40px)); border-radius:var(--radius-xl); overflow:auto; }
.qr-dialog::backdrop, #account-dialog::backdrop { background:#20202b38; backdrop-filter:blur(6px); }
.qr-header { padding:16px 20px; }
.qr-header h2 { margin:0; font-size:21px; }
.qr-header .eyebrow { display:none; }
.qr-layout { grid-template-columns: minmax(240px,.85fr) minmax(0,1.15fr); background:var(--surface); }
.qr-layout.preview-hidden { grid-template-columns:minmax(0,1fr); }
.qr-preview-panel { position:static; min-height:0; padding:24px; align-self:stretch; background:linear-gradient(145deg,#f6f6f8,#ededf0); }
.qr-preview-label { margin-bottom:20px; }
.qr-preview-foot { display:none; }
.qr-board { max-width:280px; border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.qr-preview-url { margin-top:16px; }
.qr-scan-note { margin-bottom:0; }
.qr-controls { padding:16px 20px; }
.qr-tabs { display:flex; padding:4px; gap:4px; border-radius:10px; background:var(--theme-surface); }
.qr-tabs button { flex:1; min-height:36px; padding:8px; border:0; background:transparent; color:var(--muted); font:inherit; font-size:13px; }
.qr-tabs button[aria-selected="true"] { background:white; color:var(--text); box-shadow:0 1px 3px #1c1c231a; }
.qr-section { border:0; padding:16px 0 0; }
.qr-step { display:none; }
.qr-tracking-details, .qr-preset-controls { font-size:12px; line-height:1.5; margin:12px 0; }
.qr-tracking-details summary, .qr-preset-controls summary { cursor:pointer; color:var(--muted); }
.qr-tracking-details .field-hint { margin-bottom:0; }
.qr-footer { padding:12px 20px 16px; border-top:1px solid var(--line); background:var(--glass-surface); }
.qr-footer .qr-quality { margin:0 0 8px; font-size:12px; line-height:1.5; }
.qr-download-row { margin:0; }
.qr-private-note { margin:10px 0 0; }
#qr-profile { margin:16px 0 0; padding:12px; background:var(--theme-paper); }
.hero-tool { border-radius:var(--radius-xl); box-shadow:var(--shadow-card), 0 0 0 6px #ededf080; }
.site-frame { background:white; }
.hero-tool-wrap { padding-top:40px; padding-bottom:40px; }
.tool-qr-feature { background:var(--theme-paper); }
#creator-panel, [id^="view-"]:not(.hidden), .hero-tool, .qr-dialog[open], #account-dialog[open], .toast:not(.hidden) { animation:surface-enter 240ms var(--ease-theme) both; }
.qr-section:not([hidden]) { animation:surface-enter 180ms var(--ease-theme) both; }
@keyframes surface-enter { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
[hidden] { display:none!important; }
@media(min-width:901px) {
  .sidebar-collapsed .sidebar { width:68px; padding-left:12px; padding-right:12px; }
  .sidebar-collapsed .main-wrap { margin-left:68px; }
  .sidebar-collapsed .brand { width:42px; overflow:hidden; }
  .sidebar-collapsed .brand-logo { min-width:151px; }
  .sidebar-collapsed .brand-sub, .sidebar-collapsed .company-context, .sidebar-collapsed #library-contexts, .sidebar-collapsed #request-company, .sidebar-collapsed .sidebar-bottom { display:none!important; }
  .sidebar-collapsed .enterprise-nav .nav-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .sidebar-collapsed .enterprise-nav button { justify-content:center; padding:12px; }
}
@media(max-width:900px) { #sidebar-toggle { display:none; } }
@media(max-width:650px) {
  .qr-dialog { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); }
  .qr-header { padding:12px; gap:8px; }
  .qr-window-actions { flex-wrap:nowrap; gap:2px; }
  .qr-header h2 { font-size:18px; white-space:nowrap; }
  .qr-window-actions .text-button { font-size:12px; padding:4px; }
  .qr-layout { grid-template-columns:minmax(0,1fr); }
  .qr-preview-panel { padding:16px; border-right:0; border-bottom:1px solid var(--line); }
  .qr-preview-label { display:none; }
  .qr-board { max-width:180px; }
  .qr-preview-url { margin:10px 0 0; }
  .qr-scan-note { font-size:11px; }
  .qr-controls, .qr-footer { padding:12px; }
  .qr-tabs button { min-height:44px; }
  .workspace-actions { margin:0 0 16px; }
}
@media(prefers-reduced-transparency:reduce) {
  .sidebar, .topbar, .header, .qr-header, .qr-footer { background:#fff; backdrop-filter:none; }
  .qr-dialog::backdrop, #account-dialog::backdrop { backdrop-filter:none; background:#20202b60; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .button:hover, .button:active, .enterprise-nav button:hover { transform:none; }
}

.search:focus-within { outline:none; border-color:#a3a3ab; }
.search:has(input:focus-visible) { outline:2px solid #595964; outline-offset:3px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .qr-controls select:focus-visible { outline:2px solid #73737f; outline-offset:2px; }
@media(prefers-reduced-motion:no-preference) {
  .sidebar { transition:width 200ms var(--ease-theme); }
  .main-wrap { transition:margin-left 200ms var(--ease-theme); }
}

/* All orange-filled actions use the requested white foreground, including icons. */
.button.primary, .primary, .button.primary:hover, .primary:hover, .button.primary:active, .primary:active { color:var(--theme-on-primary); }
.button.primary svg, .primary svg { fill:currentColor; }
#workspace-description.hidden { display:none; }
#team-upgrade { margin:16px 0; font-size:13px; line-height:1.5; }
#team-upgrade summary { cursor:pointer; color:var(--muted); }
#team-upgrade .button { margin-top:12px; }
#link-status { width:auto; min-width:110px; }
#delete-link-dialog { width:min(440px,calc(100vw - 32px)); padding:24px; border-radius:var(--radius-xl); box-shadow:var(--shadow-elevated); }
#delete-link-dialog h2 { font-size:21px; font-weight:500; }
#delete-link-dialog p { line-height:1.5; overflow-wrap:anywhere; }
#delete-link-name { font-family:var(--font-mono); font-size:12px; }
#delete-link-error { color:var(--cf-danger); }
#delete-link-dialog::backdrop { background:#20202b38; backdrop-filter:blur(6px); }
@media(max-width:550px) { .toolbar { flex-wrap:wrap; } .toolbar input { flex-basis:100%; } }
@media(prefers-reduced-transparency:reduce) { #delete-link-dialog::backdrop { backdrop-filter:none; } }

.campaign-builder { min-width:0; margin:16px 0; }
.quick-composer > .campaign-builder { grid-column:1/-1; grid-row:auto; margin:4px 0 0; }
.campaign-builder summary { cursor:pointer; font-size:13px; color:var(--muted); padding:8px 0; }
.campaign-body { padding:12px; background:var(--theme-paper); border:1px solid var(--line); border-radius:var(--radius-lg); }
.campaign-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.campaign-builder label { display:block; margin:8px 0 6px; font-size:12px; }
.campaign-builder input, .campaign-builder select { width:100%; min-width:0; }
.campaign-builder .field-hint { margin:0 0 12px; line-height:1.5; }
.campaign-preview { display:block; overflow-wrap:anywhere; white-space:pre-wrap; margin:12px 0; font-family:var(--font-mono); font-size:12px; line-height:1.6; color:var(--text); }
.campaign-error { font-size:12px; line-height:1.5; color:var(--muted); margin:8px 0; }
@media(max-width:650px) { .campaign-grid { grid-template-columns:minmax(0,1fr); } }

.campaign-builder details { margin:0; padding:0; border:0; }

.resource-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:16px; }
.resource-card h3 { margin:0 0 8px; font-size:17px; font-weight:500; }
.resource-address { font:12px/1.6 var(--font-mono); overflow-wrap:anywhere; }
#resource-form { max-width:none; }
#resource-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.resource-item-editor { padding:12px; margin:12px 0; border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--theme-paper); }
.resource-item-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:12px; }
.resource-item-fields>div:last-child { grid-column:1/-1; }
.resource-item-fields label { margin-top:0; }
#resource-items .action-row { margin-top:8px; }
.resource-preview-item { display:grid; gap:4px; border-bottom:1px solid var(--line); padding:12px 0; overflow-wrap:anywhere; }
.resource-preview-item p { margin:0; }
#resource-editor details { margin:20px 0; padding:0; border:0; }
#resource-editor summary { cursor:pointer; font-size:13px; padding:8px 0; }
#resource-editor .check { font-size:13px; line-height:1.5; }
#resource-report-days { max-width:180px; margin-right:8px; }
@media(max-width:650px) { #resource-form .form-grid,.resource-item-fields { grid-template-columns:minmax(0,1fr); } }

#view-resources .button { width:auto; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; }
#view-resources .section-heading h2 { flex:1; }
#view-resources .section-heading .button { flex:none; }
#resource-publishing { margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }

.routing-dialog { width:min(940px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); padding:20px; border-radius:var(--radius-xl); box-shadow:var(--shadow-elevated); }
.routing-dialog .button { width:auto; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; }
.routing-dialog h2 { margin:0; font-size:22px; font-weight:500; }
.routing-dialog label { display:block; font-size:12px; margin:12px 0 6px; }
.routing-dialog .check { font-size:13px; }
.routing-dialog input { width:100%; min-width:0; }
.routing-dialog input[type=checkbox] { width:auto; }
.routing-rule { padding:12px; margin:12px 0; background:var(--theme-paper); }
.routing-rule .form-grid>div:last-child:has(input[data-routing-field=destination]) { grid-column:1/-1; }
.routing-test { margin-top:20px; padding:0; border:0; }
.routing-test summary { cursor:pointer; font-size:13px; padding:8px 0; }
.routing-test>.button { margin-top:12px; }
.routing-dialog::backdrop { background:#20202b38; backdrop-filter:blur(6px); }
@media(max-width:650px) { .routing-dialog { padding:16px; } .routing-dialog .form-grid { grid-template-columns:minmax(0,1fr); } }
@media(prefers-reduced-transparency:reduce) { .routing-dialog::backdrop { backdrop-filter:none; } }

#routing-enabled, #resource-consent { accent-color:var(--cf-primary-active); }
#routing-audiences .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:650px) { #routing-audiences .form-grid { grid-template-columns:minmax(0,1fr); } }

#people-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;padding:12px;border:1px solid var(--line)}#people-permissions legend{font-size:13px}#people-permissions .check,#people-consent-label{display:flex;gap:8px;align-items:center}#people-permissions input,#people-consent{width:16px;height:16px;accent-color:var(--accent)}#people-form .action-row{margin-top:16px}#people-fields{margin-top:16px}#people-fields textarea{min-height:90px}

#view-people .button{width:auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}#view-people .section-heading h2{flex:1}#view-people .section-heading .button{flex:none}#people-form{max-width:none}#people-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#people-fields>div:has(textarea){grid-column:1/-1}#people-editor details{margin:20px 0;padding:0;border:0}#people-editor summary{cursor:pointer;font-size:13px;padding:8px 0}#people-publishing{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}#people-resources .resource-item-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;gap:12px;align-items:end}@media(max-width:650px){#people-fields,#people-resources .resource-item-editor{grid-template-columns:minmax(0,1fr)}}

#people-company-tools{margin-bottom:20px}#people-company-tools details{border-bottom:1px solid var(--line);padding:8px 0}#people-company-tools summary{font-size:13px;cursor:pointer;padding:8px 0}#staff-template-form{max-width:none}#staff-template-permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;padding:12px;margin:16px 0;border:1px solid var(--line)}#staff-template-permissions .check{display:flex;align-items:center;gap:8px;font-size:13px}#staff-template-permissions input{width:16px;height:16px;accent-color:var(--accent)}.staff-import-results{max-height:420px;overflow:auto;margin:12px 0}.staff-import-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;overflow-wrap:anywhere}#staff-csv{width:100%;font-family:ui-monospace,monospace;font-size:12px}#staff-import-history{max-width:400px}@media(max-width:650px){.staff-import-row{grid-template-columns:minmax(0,1fr)}#staff-template-form .form-grid{grid-template-columns:minmax(0,1fr)}}

.staff-sharing-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--theme-paper);color:var(--text);overflow:auto}.staff-sharing-dialog::backdrop{background:#18181b66;backdrop-filter:blur(4px)}.staff-sharing-dialog .section-heading h2{flex:1}.staff-sharing-dialog .button{width:auto;display:inline-flex;align-items:center;justify-content:center}.staff-sharing-preview{margin:20px 0;min-height:160px;display:grid;place-items:center;background:var(--canvas);padding:16px;border:1px solid var(--line);border-radius:12px}.staff-sharing-preview img{width:100%;height:auto;max-height:440px;object-fit:contain}.staff-signature-preview{background:#fff;padding:24px;width:100%;overflow-wrap:anywhere}.staff-sharing-dialog #staff-sharing-type{max-width:400px}@media(max-width:650px){.staff-sharing-dialog{padding:16px}.staff-sharing-preview{padding:8px}.staff-signature-preview{padding:16px}}@media(prefers-reduced-transparency:reduce){.staff-sharing-dialog::backdrop{backdrop-filter:none}}

.people-photo-row{display:flex;align-items:center;gap:20px;padding:16px 0;border-bottom:1px solid var(--line);margin-bottom:16px}.people-photo-row>img{width:80px;height:80px;border-radius:50%;object-fit:cover;flex:none}.people-photo-row>div{min-width:0;flex:1}.people-photo-row label{margin-top:0}.people-photo-row input[type=file]{width:100%}@media(max-width:650px){.people-photo-row{align-items:flex-start;gap:12px;flex-wrap:wrap}}

.health-dialog{width:min(820px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--theme-paper);color:var(--text);overflow:auto}.health-dialog::backdrop{background:#18181b66;backdrop-filter:blur(4px)}.health-dialog .section-heading h2{flex:1}.health-dialog .button{width:auto;display:inline-flex;align-items:center;justify-content:center}.health-dialog .check{display:flex;align-items:center;gap:8px}.health-dialog input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent)}.health-dialog .action-row{margin:16px 0}.health-result{border:1px solid var(--line);border-radius:8px;padding:14px;margin:12px 0;overflow-wrap:anywhere}.health-result-state{display:inline-block;margin-left:12px;font-size:12px;font-weight:500}.health-healthy{color:#19744b}.health-broken{color:#b42318}.health-blocked,.health-unreachable,.health-unknown{color:#9a6700}.health-result p{margin:6px 0 0}.health-result .resource-address{font-size:12px}@media(max-width:650px){.health-dialog{padding:16px}.health-result-state{display:block;margin:6px 0 0}}@media(prefers-reduced-transparency:reduce){.health-dialog::backdrop{backdrop-filter:none}}

#health-error:empty{display:none}

.contact-inbox{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface,#fff);color:var(--text,#1e1e1e)}.contact-inbox::backdrop{background:rgb(0 0 0 / .3)}.contact-inbox .form-error:empty{display:none}.contact-controls,.contact-event,.contact-inbox-entry{border-bottom:1px solid var(--line);padding:16px 0}.contact-inbox-entry h4{margin:0 0 12px}.contact-inbox-entry dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:6px 12px}.contact-inbox-entry dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.contact-inbox-entry dt{color:var(--muted)}.contact-inbox-entry details{margin:12px 0}.contact-event-list form input{flex:1;min-width:160px}.contact-inbox .resource-address{overflow-wrap:anywhere}@media(max-width:520px){.contact-inbox{padding:14px}.contact-inbox-entry dl{grid-template-columns:1fr}.contact-inbox-entry dt{font-size:12px}}

.activity-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:end}.activity-filters>div{min-width:160px}.activity-table-wrap{overflow:auto;max-height:60vh}.activity-scroll-hint{display:none}.activity-table{min-width:520px;width:100%;border-collapse:collapse;font-size:13px}.activity-table th{white-space:nowrap;position:sticky;top:0;background:var(--surface);z-index:1;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:500}.activity-table th,.activity-table td{padding:12px;text-align:left;border:0;border-bottom:1px solid var(--line);vertical-align:top}.activity-table tbody tr:hover{background:var(--neutral-soft)}.activity-table code{display:block;overflow-wrap:anywhere;white-space:normal;font-size:12px;max-width:260px;margin:3px 0}.activity-table td:nth-child(2){min-width:80px;overflow-wrap:anywhere;max-width:200px}.activity-table td:nth-child(3){min-width:100px;word-break:normal;overflow-wrap:normal}.activity-table small{display:block}@media(max-width:600px){.activity-scroll-hint{display:block}.activity-table-wrap{max-height:45vh}.activity-table th,.activity-table td{padding:8px}.activity-table code{max-width:130px}.activity-table td:first-child{min-width:85px}}

.auth-pending .sidebar,.auth-pending .main-wrap{visibility:hidden}

.editor-details{border-top:1px solid var(--line);padding:12px 0;margin:16px 0}.editor-details>summary{font-size:13px;font-weight:500;cursor:pointer;padding:8px 0}.editor-details[open]>summary{margin-bottom:12px}#people-extra-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}#people-extra-fields>div:has(textarea){grid-column:1/-1}#people-editor #people-more,#people-editor #people-report{border-top:1px solid var(--line);padding-top:12px}#people-publishing .action-row,#resource-publishing .action-row{gap:8px}.contact-inbox-entry h4{font-size:15px;font-weight:500}#people-counts:empty,#resource-report:empty{display:none}@media(max-width:650px){#people-extra-fields{grid-template-columns:minmax(0,1fr)}}
