:root {
  --accent: #355cff;
  --accent-2: #14b8a6;
  --bg: #f4f7fb;
  --panel: rgba(255,255,255,.94);
  --panel-solid: #ffffff;
  --border: #d9e0ea;
  --border-strong: #c6d2e0;
  --text: #112033;
  --muted: #5f738c;
  --danger: #c0392b;
  --warn: #d97706;
  --ok: #0f766e;
  --sidebar-bg: linear-gradient(180deg, rgba(15,23,42,.98), rgba(22,33,61,.98));
  --shadow: 0 14px 34px rgba(17,32,51,.08);
  --shadow-soft: 0 8px 24px rgba(17,32,51,.06);
  --radius: 20px;
  --radius-sm: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: radial-gradient(circle at top right, rgba(53,92,255,.08), transparent 22%), var(--bg); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
body.modal-open { overflow: hidden; }
#app { min-height: 100vh; }

.app-shell { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--sidebar-bg);
  color: #f8fafc;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid rgba(255,255,255,.08);
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 16px; background: rgba(255,255,255,.08); padding: 7px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.brand-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.brand-title { font-size: 23px; font-weight: 750; margin: 3px 0 4px; }
.brand-subtitle { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.45; }

.user-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.user-row { display: flex; gap: 10px; align-items: start; justify-content: space-between; flex-wrap: wrap; }
.user-name { min-width: 0; flex: 1 1 160px; overflow-wrap: anywhere; font-weight: 700; }
.user-meta { color: rgba(255,255,255,.76); font-size: 12px; }
.user-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.user-chip-stack { display: grid; gap: 8px; justify-items: end; }
.user-chip-stack .chip { justify-content: center; }
.user-chip-stack a.chip { text-decoration: none; }

.nav-group { margin-top: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.03); overflow: hidden; }
.nav-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: transparent; color: #f8fafc; cursor: pointer; padding: 13px 14px; font-weight: 700;
}
.nav-toggle:hover { background: rgba(255,255,255,.06); }
.nav-toggle-icon { min-width: 20px; text-align: center; color: rgba(255,255,255,.76); font-size: 14px; }
.nav-links { padding: 0 8px 8px; }
.nav-group.collapsed .nav-links { display: none; }
.nav-link { display: block; padding: 11px 12px; border-radius: 12px; color: rgba(255,255,255,.88); margin-top: 4px; transition: background .18s ease, transform .18s ease; }
.nav-link small { display:block; color: rgba(255,255,255,.55); margin-top: 3px; line-height: 1.35; }
.nav-group.collapsed .nav-toggle-icon { color: rgba(255,255,255,.9); }
.nav-link.active, .nav-link:hover { background: rgba(255,255,255,.12); }
.nav-link:hover { transform: translateX(1px); }

.main { padding: 30px; min-width: 0; }
.page-header { display: flex; gap: 20px; justify-content: space-between; align-items: start; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 32px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; }
.page-subtitle { color: var(--muted); line-height: 1.6; max-width: 980px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.icon-button {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.92); color: var(--muted); cursor: pointer; box-shadow: var(--shadow-soft);
}
.icon-button:hover { color: var(--accent); border-color: rgba(53,92,255,.25); }

.btn, button, .btn-link {
  appearance: none; border: 1px solid var(--border); background: rgba(255,255,255,.96); color: var(--text);
  border-radius: 12px; padding: 10px 14px; cursor: pointer; box-shadow: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover, button:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); border-color: rgba(53,92,255,.25); }
.btn.primary, button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; border: none; }
.btn.danger, button.danger { background: var(--danger); color: white; border: none; }
.btn.ghost, button.ghost { background: transparent; }
.btn.small, button.small { padding: 7px 10px; font-size: 13px; }
.sidebar .btn, .sidebar button { color: #f8fafc; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); }
.sidebar .btn.ghost, .sidebar button.ghost { background: transparent; color: rgba(255,255,255,.94); }
.sidebar .btn:hover, .sidebar button:hover { border-color: rgba(255,255,255,.26); box-shadow: none; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.compact-grid { align-items: start; }
.panel, .audit-panel {
  background: var(--panel);
  border: 1px solid rgba(205,215,226,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}
.panel.panel-subtle { background: rgba(255,255,255,.84); }
.panel h2, .panel h3, .audit-panel h2 { margin-top: 0; }
.panel-head { display: flex; gap: 12px; justify-content: space-between; align-items: start; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head p { color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.metrics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.compact-metrics { margin-bottom: 18px; }
.metric {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.88));
  border: 1px solid rgba(205,215,226,.9); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.metric:hover { border-color: rgba(53,92,255,.25); }
.metric small { color: var(--muted); display: block; margin-bottom: 8px; }
.metric-value { font-size: 33px; font-weight: 760; letter-spacing: -.03em; }

.badge, .chip, .status {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700;
  border: 1px solid rgba(17,32,51,.08); background: #eef3ff; color: var(--text);
}
.badge-soft { background: rgba(53,92,255,.08); color: #2447c6; border-color: rgba(53,92,255,.14); }
.chip-contrast { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.08); }
.status-APPROVED, .status-ISSUED, .status-DONE, .status-COMPLETED { background: #ecfdf5; color: var(--ok); }
.status-REJECTED, .status-REVOKED, .status-DELETED, .status-BLOCKED { background: #fef2f2; color: var(--danger); }
.status-IN_REVIEW, .status-PENDING_ISSUANCE, .status-SUBMITTED, .status-OPEN, .status-IN_PROGRESS { background: #fff7ed; color: var(--warn); }

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(205,215,226,.82);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
}
.data-grid { display: grid; gap: 10px; }
.data-grid-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.data-grid-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.data-grid-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.field-inline select { width: auto; min-width: 76px; padding: 8px 10px; }
.data-grid-filter { width: min(320px, 100%); }
.table-counter { font-size: 13px; color: var(--muted); }
.grid-sort { all: unset; cursor: pointer; color: inherit; font: inherit; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.grid-sort::after { content: ''; color: var(--muted); }
.grid-sort[data-sort-dir='asc']::after { content: ' ▲'; }
.grid-sort[data-sort-dir='desc']::after { content: ' ▼'; }
.schema-form { align-items: start; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid rgba(217,224,234,.92); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: rgba(248,250,252,.86); position: sticky; top: 0; z-index: 1; }
tbody tr { transition: background .15s ease, box-shadow .15s ease; }
tbody tr:nth-child(even) { background: rgba(248,250,252,.56); }
tr.clickable:hover, tr.clickable:focus-visible { background: rgba(53,92,255,.07); cursor: pointer; outline: none; }
.table-action-cell { white-space: nowrap; }

.empty-state { border: 1px dashed rgba(205,215,226,.92); border-radius: 16px; padding: 18px; background: rgba(255,255,255,.7); }

.stack { display: grid; gap: 12px; }
.info-list { display: grid; gap: 10px; }
.info-row { display: grid; gap: 10px; grid-template-columns: 180px minmax(0, 1fr); align-items: start; padding-bottom: 8px; border-bottom: 1px dashed rgba(217,224,234,.92); }
.info-key { font-size: 13px; color: var(--muted); }
.info-value { min-width: 0; overflow-wrap: anywhere; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.schema-section { display: grid; gap: 14px; margin-bottom: 4px; padding-top: 8px; }
.schema-section-title { font-size: 16px; font-weight: 700; color: var(--text); padding-bottom: 8px; border-bottom: 1px solid rgba(217,224,234,.92); }
.schema-section-grid { display: grid; gap: 12px; grid-template-columns: inherit; }
.request-create-layout > .panel { width: 100%; }
.request-entry-form .schema-section-grid, .request-entry-form .form-grid.one { grid-template-columns: 1fr; }
.request-entry-form .field, .request-entry-form .checkbox-line { max-width: 100%; }
.field-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
label.field { display: grid; gap: 6px; font-size: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; background: white; border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(53,92,255,.16); border-color: rgba(53,92,255,.28); }
textarea { min-height: 120px; resize: vertical; }
.checkbox-line { display: inline-flex; align-items: start; gap: 10px; flex-wrap: wrap; }
.checkbox-line input { margin: 2px 0 0; }

.filter-chip-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.94); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.filter-chip:hover { transform: translateY(-1px); border-color: rgba(53,92,255,.25); }
.filter-chip input { margin: 0; }
.filter-chip.selected, .filter-chip:has(input:checked) { background: rgba(53,92,255,.08); border-color: rgba(53,92,255,.26); }

.list { display: grid; gap: 10px; }
.list-item {
  border: 1px solid rgba(217,224,234,.94); border-radius: 16px; padding: 12px 14px; background: rgba(255,255,255,.96);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.list-item:hover { border-color: rgba(53,92,255,.24); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.list-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(53,92,255,.12); }
.modal-list { max-height: 52vh; overflow: auto; padding-right: 4px; }
.muted { color: var(--muted); }
pre.code { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 14px; overflow: auto; }
.notice { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; border: 1px solid var(--border); background: rgba(255,255,255,.96); }
.notice.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice.success { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }

.audit-panel { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)); }
.audit-shell { display: grid; gap: 12px; }
.audit-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.audit-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.audit-timeline { display: grid; gap: 12px; }
.audit-entry { border: 1px solid rgba(217,224,234,.92); border-radius: 16px; background: #fff; padding: 14px; }
.audit-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.audit-meta span { color: var(--muted); font-size: 13px; }
.audit-body { color: var(--text); display: grid; gap: 6px; }
.audit-footer { display: flex; justify-content: flex-end; }
.audit-mini-input { width: min(180px, 100%); }
.workspace { display: grid; gap: 18px; }
.workspace-wide { grid-template-columns: 1fr; }
.workspace-master-detail { grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.35fr); align-items: start; }
.workspace-master, .workspace-detail { min-width: 0; }
.full-width-panel { width: 100%; }
.align-end { align-items: end; }

.modal-shell {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px;
  background: rgba(15,23,42,.44);
}
.modal-card {
  width: min(860px, 100%); max-height: min(88vh, 900px); overflow: auto;
  background: rgba(255,255,255,.98); border: 1px solid rgba(205,215,226,.92); border-radius: 22px; box-shadow: 0 28px 60px rgba(15,23,42,.25);
}
.modal-wide { width: min(1040px, 100%); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 20px 20px 0; }
.modal-body { padding: 20px; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 28px; }
.login-brand { text-align: center; margin-bottom: 18px; }
.login-brand img { max-width: 110px; max-height: 110px; object-fit: contain; }
.key-value-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kv-card { padding: 13px; border: 1px solid rgba(217,224,234,.92); border-radius: 16px; background: rgba(255,255,255,.96); }
.kv-card strong { display: block; margin-bottom: 6px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn.active, button.active {
  background: rgba(53,92,255,.16);
  border-color: rgba(53,92,255,.38);
  color: var(--accent);
}
.sidebar .btn.active, .sidebar button.active {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.global-audit-launcher {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 35;
}

.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.subnav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  color: var(--muted);
  font-weight: 600;
}
.subnav-link.active, .subnav-link:hover {
  color: var(--accent);
  border-color: rgba(53,92,255,.28);
  background: rgba(53,92,255,.08);
}

.checkbox-list {
  display: grid;
  gap: 10px;
}
.checkbox-list .checkbox-line {
  border: 1px solid rgba(217,224,234,.94);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.96);
}

.panel-detail {
  display: grid;
  gap: 12px;
}
.json-editor { width: 100%; min-height: 320px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.footer-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.search-snippet b { color: var(--accent); }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; max-height: none; }
}

@media (max-width: 980px) {
  .workspace-master-detail { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main { padding: 18px; }
  .grid.two, .grid.three, .form-grid, .form-grid.three, .info-row { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
  table { min-width: 560px; }
  .modal-shell { padding: 14px; }
  .modal-head { padding: 16px 16px 0; }
  .modal-body { padding: 16px; }
}

.full-item-link { display: block; }

.ceremony-selection-shell { max-width: 240px; }
.ceremony-selection-shell .list-item { padding: 10px 12px; }
.ceremony-selection-shell .list-item strong { font-size: 14px; }

.ceremony-workspace-layout > .panel,
.ceremony-workspace-layout > .audit-panel,
.ceremony-workspace-layout > section { margin-top: 18px; }
.editor-list-stack { display: grid; gap: 12px; }
.sortable-list { min-height: 80px; }
.sortable-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.sort-handle { color: var(--muted); cursor: grab; font-size: 18px; line-height: 1; padding-top: 2px; }
.sortable-item.dragging { opacity: .55; }
.ca-task-row { align-items: stretch; }
.ca-task-row .badge { align-self: start; }
.ca-task-row textarea { min-height: 88px; }
.ca-task-row .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-create-button { margin-bottom: 14px; }
.reorder-form { margin-top: 2px; }
.auto-submit-filter { align-items: end; }


.application-detail-stack { max-width: 1120px; }
.field-group-block + .field-group-block { margin-top: 6px; }
.detail-subheading { margin: 0 0 10px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table-wrap-compact table.detail-table { min-width: 0; }
.detail-table th { width: 280px; position: static; background: rgba(248,250,252,.72); }
.detail-table td, .detail-table th { padding: 11px 12px; }
.signature-block { padding: 14px; border: 1px dashed var(--border-strong); border-radius: 16px; background: rgba(248,250,252,.72); }
.signature-pad { width: 100%; max-width: 100%; height: 180px; border: 1px solid var(--border); border-radius: 14px; background: #fff; touch-action: none; display: block; }
.full-item-link { display: block; }


.selectable-list-shell { min-width: 0; }
.selectable-list-toolbar { margin-bottom: 2px; }
.selectable-list-filter { width: 100%; max-width: 100%; }
.selectable-list { max-height: min(62vh, 780px); overflow: auto; padding-right: 4px; }
.selectable-list-shell .empty-state { margin-top: 6px; }
.selectable-list .list-item .footer-note { margin-top: 6px; }
.selectable-list .list-item .muted + .footer-note { margin-top: 4px; }
.data-grid tbody tr[data-grid-empty] td { text-align: center; }
.data-grid tbody tr[data-grid-empty] p { margin: 10px 0; }
.table-action-cell .inline-actions { justify-content: flex-start; }
.data-grid tbody tr[data-grid-empty] td { background: rgba(255,255,255,.96); }
.phase-list-item { background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.96)); }
.phase-list-item strong::after { content: ' · Phase'; color: var(--muted); font-weight: 600; font-size: 12px; }

.ceremony-selection-shell { max-width: none; }
.ceremony-master-detail { align-items: start; grid-template-columns: minmax(240px, 0.55fr) minmax(520px, 1.45fr); }
.ceremony-master-detail > .panel,
.ceremony-master-detail > .audit-panel,
.ceremony-master-detail > section { min-width: 0; }

.workflow-progress {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.workflow-progress-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
}
.workflow-progress-marker {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
}
.workflow-progress-done {
  border-color: #bbf7d0;
  background: #ecfdf5;
}
.workflow-progress-done .workflow-progress-marker {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.workflow-progress-current {
  border-color: #fdba74;
  background: #fff7ed;
}
.workflow-progress-current .workflow-progress-marker {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
}
.workflow-progress-upcoming {
  background: #f8fafc;
}
.workflow-progress-title {
  font-weight: 700;
}
.workflow-progress-meta {
  color: var(--muted);
  font-size: 13px;
}
.application-field-table td:last-child,
.application-field-table th:last-child {
  width: 180px;
}
.field-action-cell {
  white-space: nowrap;
  text-align: right;
}
.field-value-stack {
  display: grid;
  gap: 8px;
}
.field-change-note {
  display: grid;
  gap: 4px;
}
.workflow-comment-form {
  max-width: 720px;
}

.report-download-form { align-items: end; }
.align-end { align-self: end; }
.report-download-form .field.full { grid-column: span 2; }
@media (max-width: 900px) {
  .report-download-form .field.full { grid-column: span 1; }
}

.page-pattern {
  display: grid;
  gap: 18px;
}
.page-pattern-list .workspace,
.page-pattern-list .grid.two,
.page-pattern-list .grid.three {
  align-items: start;
}
.page-pattern-master-detail .workspace-master-detail {
  grid-template-columns: minmax(280px, 0.95fr) minmax(420px, 1.35fr);
}
.page-pattern-wide .workspace-wide,
.page-pattern-wide .full-width-panel,
.page-pattern-wide .audit-panel {
  width: 100%;
}
.audit-toolbar-actions a.btn.small {
  text-decoration: none;
}
.audit-toolbar-actions {
  align-items: end;
}
@media (max-width: 1100px) {
  .page-pattern-master-detail .workspace-master-detail,
  .ceremony-master-detail {
    grid-template-columns: 1fr;
  }
}


.workflow-progress-rejected {
  border-color: rgba(185, 28, 28, 0.22);
  background: rgba(254, 242, 242, 0.96);
}
.workflow-progress-rejected .workflow-progress-marker {
  background: #b91c1c;
  color: #fff;
}
.notice {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.notice-body {
  flex: 1;
}
.notice-list {
  margin: 8px 0 0 18px;
  padding: 0;
}
.notice-list li + li {
  margin-top: 4px;
}
.notice-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: inherit;
  opacity: 0.72;
}
.notice-close:hover {
  opacity: 1;
}
.ceremony-master-detail {
  grid-template-columns: minmax(260px, 28%) minmax(0, 72%);
}
.section-create-button {
  margin-bottom: 20px;
}


.lifecycle-tree-item { border-left: 4px solid transparent; }
.lifecycle-tree-head { display:flex; align-items:center; gap:10px; }
.lifecycle-tree-marker { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; font-weight:700; flex:0 0 22px; }
.lifecycle-tree-open { border-left-color: #f59e0b; background: rgba(255,247,237,.92); }
.lifecycle-tree-open .lifecycle-tree-marker { background:#f59e0b; color:#fff; }
.lifecycle-tree-done { border-left-color: #16a34a; background: rgba(236,253,245,.96); }
.lifecycle-tree-done .lifecycle-tree-marker { background:#16a34a; color:#fff; }
.lifecycle-tree-blocked { border-left-color: #dc2626; background: rgba(254,242,242,.96); }
.lifecycle-tree-blocked .lifecycle-tree-marker { background:#dc2626; color:#fff; }


.ceremony-single-column { grid-template-columns: 1fr; }
.ceremony-single-column .ceremony-selection-shell { max-width: none; }
.ceremony-single-column .ceremony-selection-shell .panel-head { padding-bottom: 8px; }
.ceremony-single-column .ceremony-selection-shell .panel-head h2 { font-size: 15px; }
.ceremony-minimal-list-shell { min-width: 0; }
.ceremony-minimal-list-shell .table-counter { font-size: 12px; }
.ceremony-minimal-list-shell .selectable-list-toolbar { gap: 8px; align-items: center; margin-bottom: 0; }
.ceremony-minimal-list { max-height: min(22vh, 220px); overflow: auto; padding-right: 2px; display: grid; gap: 6px; }
.ceremony-minimal-list .list-item { padding: 7px 9px; border-radius: 12px; }
.ceremony-minimal-list .list-item strong { font-size: 13px; line-height: 1.25; }
.ceremony-minimal-list .list-item .muted { font-size: 12px; margin-top: 2px; }
.ceremony-workspace-layout { min-width: 0; }
.multiline-cell { line-height: 1.5; white-space: normal; }


.entity-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent, #2563eb);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entity-link:hover {
  opacity: 0.88;
}
.link-indicator {
  font-size: 0.9em;
  opacity: 0.8;
}


.field select[multiple] { min-height: 10rem; }
.notice-slot:empty { display:none; }
.route-slot { min-width: 0; }
