/* Shared workspace presentation. Legacy styles retain module-specific layouts.
   This file owns the palette, shell, controls and shared surfaces. No web fonts. */
:root {
  --navy: #132f3a;
  --navy-2: #1b4250;
  --navy-3: #285867;
  --teal: #087e83;
  --gold: #586b76;
  --ink: #20323e;
  --muted: #60717c;
  --line: #dce4e8;
  --border: var(--line);
  --bg: #f3f6f8;
  --white: #fff;
  --green: #18734f;
  --amber: #946019;
  --red: #b63e43;
  --radius: 12px;
  --shadow: 0 2px 5px #172f3c04;
  --surface-subtle: #f7f9fa;
  --accent-soft: #e8f4f3;
  --focus: #087e83;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body { background: var(--bg); font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { transition: background-color 140ms, border-color 140ms, color 140ms; }
button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: #fff; border: 2px solid var(--focus); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.layout { align-items: flex-start; }
.sidebar {
  position: sticky; top: 0; width: 258px; height: 100dvh;
  background: #13252e; border: 0; color: #d8e4e9;
  padding: 24px 14px 14px; overflow: hidden; flex-shrink: 0;
}
.logo-wrap { padding: 0 10px 24px; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  background: #1a4e57; color: #d0f0eb; border: 1px solid #32606b;
  font-family: inherit; font-size: 15px; font-weight: 750; letter-spacing: -1px;
}
.brand-title { color: #f3f7f9; font-size: 15px; letter-spacing: -.02em; }
.brand-sub { color: #98b0bc; font-size: 10px; letter-spacing: .04em; text-transform: none; }
.nav-search {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  margin: 0 6px 18px; padding: 0 11px; border: 1px solid #3b515c;
  border-radius: 8px; background: #1c323d; color: #a9bec8;
}
.nav-search .icon { width: 16px; height: 16px; }
.nav-search input { background: transparent; border: 0; outline: none; min-width: 0; width: 100%; min-height: 42px; color: #f0f6f9; font-size: 13px; }
.nav-search input::placeholder { color: #a9bec8; opacity: 1; }
.nav-search:focus-within { outline: 2px solid #65c6c6; outline-offset: 2px; }
.nav-search input:focus-visible { outline: 0; }
.nav-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #45616f transparent; padding: 0 6px 12px; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-heading { margin: 0 10px 8px; color: #9fb4bf; font-size: 10px; font-weight: 650; letter-spacing: .12em; line-height: 1.5; }
.nav-link { min-height: 44px; border-radius: 7px; margin: 2px 0; padding: 10px 12px; gap: 11px; font-size: 13px; line-height: 1.35; color: #c7d6de; font-weight: 450; }
.nav-link svg { width: 18px; height: 18px; color: #91aebc; }
.nav-link:hover { background: #203b47; color: #fff; transform: none; }
.nav-link.active { background: #264b57; color: #fff; font-weight: 650; box-shadow: inset 3px 0 #6bceca; }
.nav-link.active svg { color: #9ce2dd; }
.nav-link:focus-visible, .sidebar button:focus-visible { outline-color: #72d6d1; outline-offset: -2px; }
.nav-empty { color: #c7d6de; padding: 12px; font-size: 13px; }
.sidebar-bottom { flex-shrink: 0; margin-top: 0; border-top: 1px solid #354b56; padding: 15px 7px 0; }
.workspace-identity { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sidebar-bottom .status-dot { background: #78cbbb; width: 6px; height: 6px; margin: 0; }
.sidebar-version { margin-left: auto; color: #9fb4bf; font-size: 10px; }
.sidebar-bottom small { color: #a4bac5; font-size: 11px; margin: 8px 0 12px; }
.account-actions { display: flex; gap: 6px; }
.mini-logout { width: auto; flex: 1; padding: 8px 4px; min-height: 40px; border: 1px solid #3b5460; border-radius: 6px; background: transparent; color: #d2e0e7; font-size: 11px; }
.mini-logout:hover { background: #26424f; color: #fff; }
.sidebar-close { display: none !important; }
.main { width: 0; flex: 1; }
.topbar { height: 76px; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--line); gap: 20px; }
.topbar-location, .topbar-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.breadcrumb { display: flex; gap: 13px; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.breadcrumb #breadcrumb-page { color: var(--ink); font-weight: 600; }
.breadcrumb-divider { color: #9aaab4; }
.scope-control { display: flex; gap: 11px; align-items: center; min-width: 0; }
.scope-control label { font-size: 11px; color: var(--muted); }
.org-picker { max-width: 270px; width: 230px; min-height: 42px; padding: 9px 30px 9px 12px; font-size: 12px; border: 1px solid #cdd9df; border-radius: 7px; color: var(--ink); background: #fff; }
.user-chip { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #d3e1e5; background: #e9f1f4; color: #335665; font-size: 11px; border-radius: 50%; }
.mobile-menu { display: none; }
.content { max-width: 1560px; margin: 0 auto; padding: 32px 36px 40px; }
.content:focus { outline: none; }
.page-head, .dashboard-heading { margin: 0 0 26px; align-items: center; gap: 20px; }
.page-title, .dashboard-heading h1 { color: #20323e; font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -.035em; line-height: 1.2; font-weight: 650; margin: 8px 0 10px; }
.dashboard-date { font-size: 12px; color: var(--muted); }
.page-description, .dashboard-heading p { font-size: 13px; line-height: 1.65; color: var(--muted); }
.eyebrow { font-size: 10px; letter-spacing: .12em; color: #526d7b; }
.head-actions { flex-shrink: 0; gap: 8px; }
.btn, .table-action {
  min-height: 42px; padding: 10px 15px; border: 1px solid #cdd9df;
  border-radius: 7px; background: #fff; color: #304c5c;
  font-size: 12px; font-weight: 600; line-height: 1.4; box-shadow: none;
}
.btn:hover, .table-action:hover { background: #f0f5f7; border-color: #93aab6; transform: none; box-shadow: none; }
.btn:active, .table-action:active { background: #e3ecef; }
.btn.primary { color: #fff; background: #146573; border-color: #146573; }
.btn.primary:hover { background: #104f5b; border-color: #104f5b; }
.btn.primary:active { background: #0b3f49; }
.btn.accent { color: #155b60; background: #e8f4f3; border-color: #bdddda; }
.btn.danger { color: #a83239; background: #fff; border-color: #e7bfc2; }
.btn.danger:hover { background: #fff0f1; border-color: #c8777c; }
.btn.small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.btn svg.icon { width: 16px; height: 16px; }
.plain-link { min-height: 36px; padding: 6px 3px; color: #146573; font-size: 12px; }
.icon-button { width: 38px; height: 38px; min-height: 38px; border: 1px solid #cdd9df; border-radius: 7px; background: #fff; color: #466472; }
.icon-button:hover { background: #edf4f6; transform: none; }
.icon-button .icon { width: 17px; height: 17px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.section-title { color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.section-sub, .coverage-note { color: var(--muted); font-size: 12px; line-height: 1.65; }
.section-card { padding: 24px; }
.section-head { margin-bottom: 18px; gap: 16px; }
.workspace-status { padding: 12px 15px; margin-bottom: 24px; border: 1px solid #d6e2e9; border-radius: 8px; background: #edf3f7; gap: 12px; align-items: flex-start; }
.workspace-status p { color: #4b6473; font-size: 11px; line-height: 1.7; }
.test-badge { border-color: #c8d8e4; background: #fff; color: #486377; border-radius: 4px; }
.group-metrics { gap: 16px; margin-bottom: 20px; }
.group-metric { padding: 20px 22px; border-radius: 10px; position: relative; }
.group-metric:hover { transform: none; border-color: #6896a3; background: #fbfdfe; }
.group-metric>span { font-size: 12px; color: #506672; }
.group-metric>strong { color: #213b48; font-size: 36px; font-weight: 650; letter-spacing: -.04em; margin: 10px 0; font-variant-numeric: tabular-nums; }
.group-metric>small { color: var(--muted); font-size: 11px; }
.group-metric.urgent { background: #fff; border-color: #e3d4cf; border-top: 3px solid #c0785b; padding-top: 18px; }
.group-metric.urgent>strong { color: #a24d36; }
.group-metric.urgent:hover { background: #fffaf7; border-color: #c0785b; }
.group-work-grid { grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); gap: 20px; margin-bottom: 28px; }
.group-agenda, .group-next, .group-coverage, .group-company-detail { padding: 24px; }
.group-side { gap: 16px; }
.group-next p, .group-coverage p { color: var(--muted); font-size: 12px; line-height: 1.7; }
.group-coverage { background: #eef3f6; border-color: #d8e3e9; }
.quick-action { color: #345666; padding: 13px 8px; margin: 0 -8px; width: calc(100% + 16px); min-height: 46px; font-size: 13px; }
.quick-action:after { color: #688b9a; content: '→'; }
.quick-action:hover { color: #104f5b; background: #eef6f7; }
.agenda-row { grid-template-columns: 100px minmax(0,1fr) auto; padding: 16px 0; }
.agenda-body h3 { color: var(--ink); font-weight: 600; }
.agenda-body p, .agenda-day>small { color: var(--muted); font-size: 12px; }
.group-company-grid { gap: 18px; }
.group-company { padding: 22px; }
.group-company-heading h3 { font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.group-company-heading p, .company-foot, .company-stat-grid button { color: var(--muted); font-size: 12px; }
.company-stat-grid button { border-radius: 6px; min-height: 58px; background: #f5f8fa; border-color: #e4ebef; }
.company-stat-grid button:hover { background: #eaf3f5; border-color: #b8d2db; }
.company-stat-grid strong { color: #254957; }
.company-avatar, .company-avatar:is(.tone-0,.tone-1,.tone-2,.tone-3), .org-logo, .item-icon { border-radius: 9px; background: #eaf1f5; color: #3b6477; }
.group-workload { margin-top: 22px; }
.group-workload summary { color: #355565; padding: 18px 22px; min-height: 48px; }
.work-entry, .studio-entry, .education-entry { background: #fff; padding: 22px 24px; border: 1px solid var(--line); gap: 22px; margin: 0 0 20px; border-radius: 10px; box-shadow: none; }
.work-entry h2, .studio-entry h2, .education-entry h2 { font-size: 18px; color: #2c4857; letter-spacing: -.02em; margin: 4px 0 7px; }
.work-entry p, .studio-entry p, .education-entry p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.work-entry .eyebrow { font-size: 9px; margin: 0 0 7px; }
.studio-entry>div>.icon { color: #547986; }
.workspace-footer { color: var(--muted); margin: 24px 0; gap: 12px; flex-wrap: wrap; }
.empty { padding: 38px 18px; color: #667e8c; }
.empty strong { color: #405c6c; font-size: 14px; }
.empty p { color: var(--muted); font-size: 12px; }
.empty svg { opacity: 1; color: #8ca3af; }
.item-title, .org-name, .form-field label { color: #304b59; }
.item-sub, .org-type, .org-footnote { color: var(--muted); font-size: 12px; }
.pill { border-radius: 5px; padding: 4px 8px; font-size: 11px; color: #526a77; background: #edf2f5; }
.pill.green { color: #216749; background: #e8f4ed; }
.pill.amber { color: #8b5918; background: #fcf2df; }
.pill.red { color: #a63840; background: #fbecef; }
.pill.blue { color: #326783; background: #e9f2f8; }
.priority { border-radius: 5px; font-size: 12px; }
.workspace-tabs { padding: 0 0 10px; gap: 6px; flex-wrap: wrap; }
.workspace-tab { padding: 10px 15px; min-height: 42px; font-size: 12px; color: #5b7180; border-radius: 7px; }
.workspace-tab.selected { color: #155c68; background: #e1f0f2; }
.workspace-tab:hover { background: #eaf2f5; color: #155c68; }
.toolbar { gap: 12px; }
.management-toolbar select { min-height: 44px; padding: 10px 12px; font-size: 13px; color: #365262; border: 1px solid #cdd9df; border-radius: 7px; background: #fff; }
.filter-count { font-size: 12px; color: var(--muted); }
.search-field { border-color: #cdd9df; border-radius: 7px; }
.search-field:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px #087e8318; }
.search-field input:focus-visible { outline: none; }
.search-field input { font-size: 14px; min-height: 44px; }
.form-field label { font-size: 13px; font-weight: 600; }
.form-field input, .form-field textarea, .form-field select { min-height: 44px; font-size: 14px; border-color: #c9d6dd; border-radius: 7px; background: #fff; color: var(--ink); }
.form-field :is(input,select,textarea):focus { border-color: #087e83; box-shadow: 0 0 0 3px #087e8318; }
input[type=checkbox], input[type=radio] { accent-color: #146573; }
.data-table { font-size: 13px; }
.data-table th { background: #f4f7f9; color: #526c7a; font-size: 10px; padding: 14px 18px; }
.data-table td { padding: 16px 18px; border-bottom-color: #e7edf0; font-size: 13px; color: var(--ink); }
.data-table tr:hover td { background: #f4f9fa; }
.data-table .strong { color: #294452; }
.data-table .subtle { color: #60717c; font-size: 12px; }
.data-table tr:focus-within td { background: #edf6f7; }
.modal-backdrop { background: #10253299; backdrop-filter: blur(3px); padding: 24px; }
.modal { position: relative; border-radius: 12px; padding: 28px; box-shadow: 0 24px 80px #0f27353d; max-height: calc(100dvh - 48px); }
.modal-title { color: var(--ink); font-size: 21px; padding-right: 38px; }
.modal-sub { color: var(--muted); font-size: 13px; padding-right: 30px; }
.modal-close { position: absolute; top: 20px; right: 20px; }
.modal-actions { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; gap: 10px; }
.viewer, .muted-box { background: #f4f7f9; border-color: #dce5ea; color: #4f6675; border-radius: 8px; }
.notice, .calendar-notice { background: #fffbf1; border-color: #ecdfbf; border-radius: 8px; color: #82612d; }
.alert-error { border-radius: 7px; color: #a6323b; }
.auth-brand { background: #132b36; padding: 10vh 8vw; }
.auth-brand h1 { font-size: clamp(32px,4vw,56px); letter-spacing: -.045em; }
.auth-brand p, .auth-points { color: #b1c7d2; }
.auth-form-wrap { background: #f8fafb; }
.auth-form { max-width: 390px; }
.auth-form h2 { color: #20323e; font-size: 28px; }
.auth-form p { color: var(--muted); }
.auth-form .eyebrow { color: #526d7b; font-size: 11px; }
.auth-form .btn { min-height: 46px; }
.auth-form .form-field { margin-bottom: 20px; }
#toast>div { background: #183b49; font-size: 13px; border-radius: 8px; line-height: 1.6; }
/* Shared module surfaces; source/status colors retain their semantic purpose. */
:is(.work-intro,.work-source-summary,.work-link,.work-link-choices>div,.interest-evidence,.brand-card,.pipeline-stage,.pilot-next,.education-course,.marketing-post,.briefing-history-item) { border-color: var(--line); border-radius: 10px; }
:is(.work-intro,.work-source-summary,.interest-evidence,.pilot-next,.brand-card) { background: var(--surface-subtle); color: var(--ink); }
:is(.work-card-title p,.work-date small,.work-link p,.management-notes,.management-card-detail,.marketing-post p,.interest-evidence p) { color: var(--muted); }
:is(.work-source-label,.management-date,.management-card h3,.education-card h3,.marketing-post h3) { color: #365969; }
.kpi .label, .kpi .hint { color: var(--muted); }
.kpi .value { color: #274957; }
.kpi-ico { background: #edf3f6; color: #52778a; }
.details-hero { background: #183b49; border-radius: 10px; }
.details-hero p { color: #bfd3dc; }
/* Company profiles: concise register cards, complete details, grouped editing. */
.company-profile-tools { justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.company-profile-tools .search-field { max-width: 560px; min-width: min(100%,280px); }
.company-profile-tools>span { color: var(--muted); font-size: 12px; }
.company-profile-cards { align-items: stretch; gap: 20px; }
.company-profile-card { display: flex; flex-direction: column; padding: 24px; }
.company-profile-card .org-head { margin-bottom: 16px; align-items: flex-start; }
.company-profile-card .org-head>div:last-child { min-width: 0; }
.company-profile-card .org-name { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.profile-card-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0 16px; }
.profile-summary>div { min-width: 0; }
.profile-summary dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.profile-summary dd { color: var(--ink); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.profile-summary small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.profile-service-summary { margin: 0 0 22px; font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.company-profile-card .org-footer { margin-top: auto; padding-top: 18px; }
.company-profile-card .org-footer>div { display: flex; flex-wrap: wrap; gap: 8px; }
.modal:has(.company-profile-form), .modal:has(.company-profile-detail) { width: min(900px,100%); }
.company-profile-fieldset { border: 1px solid var(--line); border-radius: 9px; padding: 18px 20px 4px; margin: 24px 0; min-width: 0; }
.company-profile-fieldset legend { font-weight: 650; color: #315463; font-size: 15px; padding: 0 7px; }
.company-profile-fieldset>p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0 0 20px; }
.company-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
.company-profile-grid .form-field { min-width: 0; }
.company-profile-grid .profile-long-field { grid-column: 1 / -1; }
.company-profile-grid textarea { min-height: 90px; }
.profile-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin: 24px 0; }
.company-profile-section { padding: 22px 0; border-top: 1px solid var(--line); }
.company-profile-section h3 { color: #315463; font-size: 16px; margin: 0 0 16px; }
.company-profile-section dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; margin: 0; }
.company-profile-section dl>div { min-width: 0; }
.company-profile-section dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.company-profile-section dd { margin: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.profile-missing { color: #6a7b86; font-size: 13px; }
@media (max-width: 700px) {
  .company-profile-cards, .company-profile-grid, .company-profile-section dl { grid-template-columns: minmax(0,1fr); }
  .company-profile-card { padding: 20px; }
  .company-profile-fieldset { padding: 16px 12px 0; }
  .company-profile-card .org-footer .btn, .company-profile-card .org-footer .table-action { flex: 1 1 auto; }
  .company-profile-tools .search-field { max-width: none; width: 100%; }
  .profile-summary { grid-template-columns: minmax(0,1fr); gap: 14px; }
}
/* Local system register: metadata, provenance and deliberate mapping. */
.registry-notice { margin: 0 0 22px; background: var(--surface-subtle); border-color: var(--line); color: var(--ink); font-size: 13px; line-height: 1.75; }
.registry-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; color: var(--muted); font-size: 12px; }
.registry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.registry-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; }
.registry-card .section-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.registry-card .section-head>div { min-width: 0; }
.registry-card .section-title, .registry-card .section-sub { overflow-wrap: anywhere; }
.registry-disconnected { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.registry-summary, .registry-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 22px; margin: 0 0 22px; }
.registry-summary>div, .registry-facts>div { min-width: 0; }
.registry-summary dt, .registry-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.registry-summary dd, .registry-facts dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.registry-summary dd { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.registry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.registry-actions .btn { font-size: 12px; }
.modal:has(.registry-editor), .modal:has(.registry-facts) { width: min(900px,100%); }
.registry-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
.registry-editor .form-field { min-width: 0; }
.registry-editor .form-field:has(textarea), .registry-editor .registry-binding { grid-column: 1 / -1; }
.registry-editor textarea { min-height: 90px; }
.registry-binding { padding: 14px 16px; margin: 16px 0 22px; background: var(--surface-subtle); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.registry-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 13px; line-height: 1.7; cursor: pointer; }
.registry-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); }
.registry-history details { border-top: 1px solid var(--line); padding: 16px 0; }
.registry-history summary { min-height: 44px; padding: 10px 0; color: var(--ink); font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.registry-history details>p { color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.registry-history .registry-facts { margin-top: 20px; }
.registry-preparation { padding: 28px; }
.registry-preparation>p { color: var(--muted); line-height: 1.8; max-width: 80ch; }
.registry-preparation>h3 { margin: 26px 0 20px; color: var(--ink); font-size: 16px; }
.registry-portfolio { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; }
.registry-portfolio article { padding: 20px 0; border-top: 1px solid var(--line); min-width: 0; }
.registry-portfolio h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.registry-portfolio p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
@media (max-width: 900px) { .registry-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) {
  .registry-card, .registry-preparation { padding: 20px; }
  .registry-editor, .registry-summary, .registry-facts, .registry-portfolio { grid-template-columns: minmax(0,1fr); }
  .registry-actions .btn { flex: 1 1 auto; }
  .registry-preparation .section-head { flex-wrap: wrap; gap: 16px; }
  .registry-preparation .section-head>.btn { width: 100%; }
}
@media (hover: none), (pointer: coarse) {
  .btn.small, .table-action, .plain-link, .mini-logout, .icon-button { min-height: 44px; }
  .icon-button { width: 44px; }
}
@media (max-width: 1240px) {
  .sidebar { width: 240px; }
  .content { padding: 28px; }
  .topbar { padding: 0 28px; }
  .scope-control label { display: none; }
  .group-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .group-work-grid { grid-template-columns: minmax(0,1fr); }
  .group-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1080px) {
  .sidebar { position: fixed; width: 290px; max-width: calc(100vw - 38px); left: -310px; z-index: 40; visibility: hidden; transition: left 180ms ease; box-shadow: 8px 0 40px #13252e26; }
  .sidebar.open { left: 0; visibility: visible; }
  .sidebar-close { display: inline-flex !important; margin-left: auto; background: transparent; border-color: #49616d; color: #d2e0e7; flex-shrink: 0; }
  .logo-wrap { padding-left: 6px; padding-right: 0; gap: 9px; }
  .brand-title { font-size: 14px; }
  .brand-sub { font-size: 9px; }
  .mobile-mask.active { display: block; position: fixed; inset: 0; background: #13252e80; z-index: 39; }
  .mobile-menu { display: inline-flex; min-width: 42px; padding: 9px; }
  .navigation-open { overflow: hidden; }
  .main { width: 100%; }
}
@media (max-width: 700px) {
  .topbar { height: 70px; padding: 0 16px; gap: 10px; }
  .topbar-location, .topbar-right { gap: 10px; }
  .breadcrumb-root, .breadcrumb-divider { display: none; }
  .breadcrumb { font-size: 12px; }
  .scope-control { max-width: 40vw; }
  .org-picker { max-width: 100%; width: 160px; font-size: 12px; }
  .user-chip { display: none; }
  .content { padding: 24px 16px; }
  .page-head, .dashboard-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
  .page-title, .dashboard-heading h1 { font-size: 27px; }
  .head-actions { flex-wrap: wrap; width: 100%; }
  .workspace-status { flex-direction: column; gap: 8px; }
  .group-metrics { gap: 10px; }
  .group-metric { padding: 16px; }
  .group-metric.urgent { padding-top: 14px; }
  .group-metric>span { font-size: 11px; }
  .group-metric>strong { font-size: 30px; }
  .group-metric>small { font-size: 11px; align-items: flex-start; }
  .group-metric>small .icon { display: none; }
  .group-work-grid, .group-side { grid-template-columns: minmax(0,1fr); }
  .group-agenda, .group-next, .group-coverage, .group-company, .section-card { padding: 20px; }
  .group-company-grid { grid-template-columns: minmax(0,1fr); }
  .group-company-heading { flex-wrap: wrap; }
  .section-head { flex-wrap: wrap; gap: 12px; }
  .work-entry, .studio-entry { padding: 20px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .work-entry>.btn, .studio-entry>.btn { width: 100%; }
  .agenda-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .agenda-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .agenda-day { display: flex; gap: 8px; align-items: center; }
  .agenda-day>small { margin: 0; }
  .form-field :is(input,select,textarea), .search-field input { font-size: 16px; }
  .btn, .btn.small, .table-action, .plain-link { min-height: 44px; }
  .btn { white-space: normal; }
  .management-toolbar .search-field { flex: 1 0 100%; max-width: none; }
  .management-toolbar select { flex: 1; min-width: 0; }
  .table-card .data-table td { color: var(--ink); font-size: 13px; }
  .table-card .data-table td:before { color: var(--muted); font-size: 12px; }
  .modal-backdrop { padding: 10px; }
  .modal { padding: 22px 18px; max-height: calc(100dvh - 20px); border-radius: 10px; }
  .modal-close { top: 14px; right: 14px; }
  .modal-actions .btn { flex: 1; }
  .auth-screen { display: flex; flex-direction: column; }
  .auth-brand { padding: 32px 24px; gap: 16px; }
  .auth-brand h1 { font-size: 32px; margin: 20px 0 12px; }
  .auth-brand p { font-size: 13px; }
  .auth-points { font-size: 11px; line-height: 1.8; }
  .auth-form-wrap { padding: 32px 24px; }
  #toast { right: 16px; left: 16px; bottom: 16px; }
  #toast>div { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
