[hidden] { display: none !important; }
.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; border-radius: 6px; padding: 11px 22px; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.ec-btn-primary { color: #fff; background: var(--slate-500); border-color: var(--slate-500); }
.ec-btn-primary:hover { color: #fff; background: var(--slate-700); border-color: var(--slate-700); }
.ec-btn-secondary { color: var(--slate-700); background: transparent; border-color: var(--border-strong); }
.ec-btn-secondary:hover { color: var(--slate-700); background: var(--slate-100); }
.ec-btn-ghost { color: var(--text-muted); background: transparent; border-color: var(--border-subtle); }
.ec-btn-ghost:hover { color: var(--slate-700); border-color: var(--slate-500); }
.ec-btn-danger { color: #fff; background: var(--red-500); border-color: var(--red-500); }
.ec-btn-danger:hover { color: #fff; background: var(--red-700); border-color: var(--red-700); }
.ec-btn-danger-outline { color: var(--red-700); background: transparent; border-color: var(--red-400); }
.ec-btn-danger-outline:hover { color: var(--red-700); background: var(--red-200); }
.ec-btn.sm { padding: 9px 14px; font-size: 10.5px; letter-spacing: 0.12em; }
.ec-btn.lg { padding: 13px 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.18em; }
.ec-btn-text { background: none; border: none; color: var(--slate-500); font-family: var(--font-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; cursor: pointer; padding: 0; }
.ec-btn-text:hover { color: var(--slate-700); }
.ec-iconbtn { width: 34px; height: 34px; border: 1px solid var(--border-subtle); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-page); color: var(--text-muted); font-size: 15px; cursor: pointer; flex: none; text-decoration: none; }
.ec-iconbtn:hover { border-color: var(--slate-500); color: var(--slate-700); }

.ec-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.13em; padding: 5px 10px; border-radius: 3px; white-space: nowrap; width: fit-content; }
.ec-chip.slate { background: var(--slate-100); color: var(--slate-700); }
.ec-chip.outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-muted); }
.ec-chip.muted { background: var(--gray-100); color: var(--text-muted); }
.ec-chip.amber { background: var(--amber-100); color: var(--amber-700); }
.ec-chip.red { background: var(--red-700); color: #fff; }
.ec-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-muted); white-space: nowrap; }
.ec-status.amber { color: var(--amber-700); }
.ec-status.faint { color: var(--text-faint); }
.ec-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; display: inline-block; }
.ec-dot.slate { background: var(--slate-500); }
.ec-dot.slate3 { background: var(--slate-300); }
.ec-dot.amber { background: var(--amber-500); }
.ec-dot.gray { background: var(--gray-400); }
.ec-dot.gray3 { background: var(--gray-300); }
.ec-dot.red { background: var(--red-500); }

.ec-label { display: block; font-family: var(--font-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 6px; }
.ec-input, .ec-select { width: 100%; font-size: 14px; color: var(--text-body); padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-page); }
.ec-select { cursor: pointer; }
.ec-help { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }

.ec-card { border: 1px solid var(--border-subtle); border-radius: 10px; padding: 20px 22px; }
.ec-panel { border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; }
.ec-th { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); }
.ec-head { background: var(--gray-100); border-bottom: 1px solid var(--border-subtle); }
.ec-head.dark { background: var(--slate-900); border-bottom: none; }
.ec-head.dark .ec-th { color: rgba(255, 255, 255, 0.7); letter-spacing: 0.12em; font-size: 9.5px; }
.ec-row { border-bottom: 1px solid var(--border-subtle); }
.ec-row.hoverable:hover { background: var(--gray-100); }

.ec-callout { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 8px; font-size: 13.5px; }
.ec-callout.amber { background: var(--amber-100); color: var(--amber-900); }
.ec-callout.amber a { color: var(--amber-700); text-decoration: underline; }
.ec-callout.red { background: var(--red-100); color: var(--red-700); }
.ec-callout.slate { background: var(--slate-100); color: var(--slate-900); }
.ec-callout.dashed { border: 1px dashed var(--border-subtle); background: transparent; color: var(--text-muted); }

.ec-job { border: 1px solid var(--slate-300); border-radius: 10px; overflow: hidden; animation: ec-fade var(--dur-med) var(--ease); }
.ec-job-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--slate-100); }
.ec-job-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--slate-700); flex: none; }
.ec-job-text { font-size: 14px; color: var(--slate-900); }
.ec-job-link { margin-left: auto; font-family: var(--font-display); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--slate-700); white-space: nowrap; }
.ec-spinner { width: 16px; height: 16px; border: 2px solid var(--slate-300); border-top-color: var(--slate-700); border-radius: 50%; animation: ec-spin 0.7s linear infinite; flex: none; }
.ec-check { width: 18px; height: 18px; border-radius: 50%; background: var(--slate-700); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }

.ec-meter { display: flex; flex-direction: column; gap: 5px; }
.ec-meter-fig { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ec-meter-pct { color: var(--text-faint); }
.ec-meter-pct.warn { color: var(--amber-700); }
.ec-meter-bar { height: 4px; background: var(--gray-200); border-radius: 999px; overflow: hidden; }
.ec-meter-bar i { display: block; height: 100%; background: var(--slate-500); border-radius: 999px; }

.ec-rail { display: flex; align-items: center; }
.ec-rail-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 70px; }
.ec-rail-dot { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-family: var(--font-display); font-weight: 600; flex: none; }
.ec-rail-dot.done { background: var(--slate-500); color: #fff; }
.ec-rail-dot.current { background: var(--surface-page); border: 2px solid var(--slate-500); color: var(--slate-500); }
.ec-rail-dot.future { background: var(--gray-100); border: 1px solid var(--gray-300); color: var(--gray-400); }
.ec-rail-label { font-family: var(--font-display); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); text-align: center; }
.ec-rail-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 -2px 26px; }
.ec-rail-line.done { background: var(--slate-500); }

.ec-toast { position: fixed; right: 28px; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--slate-900); border-radius: 10px; box-shadow: var(--shadow-lg); animation: ec-toast var(--dur-med) var(--ease); max-width: 420px; color: #fff; font-size: 13.5px; }
.ec-toast.error { background: var(--red-700); }
.ec-toast a { color: var(--slate-300); font-family: var(--font-display); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }

.ec-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(32, 42, 50, 0.45); display: flex; align-items: center; justify-content: center; padding: 40px; animation: ec-fade var(--dur-fast) var(--ease); }
.ec-overlay.top { align-items: flex-start; padding-top: 76px; }
.ec-modal { background: var(--surface-page); border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; max-height: 88vh; }

.ec-search { width: 560px; max-width: 100%; background: var(--surface-page); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; animation: ec-fade var(--dur-med) var(--ease); }
.ec-search-input { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--gray-200); }
.ec-search-input svg { width: 17px; height: 17px; stroke: var(--slate-500); flex: none; }
.ec-search-input input { flex: 1; border: none; font-size: 16.5px; color: var(--text-body); background: none; padding: 0; }
.ec-search-input input:focus { outline: none; box-shadow: none; }
.ec-search-body { max-height: 320px; overflow-y: auto; padding: 4px 8px 8px; }
.ec-search-group { font-family: var(--font-display); font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-faint); padding: 9px 10px 4px; }
.ec-search-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.ec-search-row.active { background: var(--gray-100); }
.ec-search-row.active .ec-search-go { opacity: 1; }
.ec-search-ico { flex: none; width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); }
.ec-search-ico svg { width: 14px; height: 14px; stroke: var(--slate-700); }
.ec-search-ico.res { background: var(--slate-100); }
.ec-search-ico.fac { background: var(--amber-100); }
.ec-search-ico.fac svg { stroke: var(--amber-700); }
.ec-search-ico.sheet { background: var(--green-100); }
.ec-search-ico.sheet svg { stroke: var(--slate-900); }
.ec-search-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ec-search-label { font-size: 14px; color: var(--text-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-search-label mark { background: none; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--slate-300); text-underline-offset: 2px; }
.ec-search-sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-search-chip { margin-left: auto; flex: none; font-family: var(--font-display); font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; border-radius: 999px; padding: 3px 9px; }
.ec-search-chip.draft { background: var(--amber-100); color: var(--amber-700); }
.ec-search-chip.approved { background: var(--green-100); color: #2f5138; }
.ec-search-chip.mirrored { background: var(--slate-100); color: var(--slate-700); }
.ec-search-go { margin-left: auto; flex: none; font-size: 11px; color: var(--text-faint); opacity: 0; }
.ec-search-chip ~ .ec-search-go { margin-left: 8px; }
.ec-search-empty { padding: 18px 12px; font-size: 13.5px; color: var(--text-faint); text-align: center; }
.ec-search-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 10px 10px; }
.ec-search-quick a { font-family: var(--font-display); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-700); background: var(--gray-100); border-radius: 999px; padding: 6px 13px; }
.ec-search-quick a:hover { background: var(--slate-100); }
.ec-search-footer { display: flex; gap: 14px; justify-content: flex-end; border-top: 1px solid var(--gray-200); padding: 9px 16px; background: var(--gray-100); font-size: 11px; color: var(--text-faint); }
.ec-search-footer span { display: flex; align-items: center; gap: 5px; }
