:root {
    --ink: #13243a;
    --muted: #69798d;
    --line: #dfe6ec;
    --canvas: #f4f7f8;
    --navy: #0d2943;
    --navy-deep: #071c30;
    --teal: #0f8b83;
    --teal-dark: #08716b;
    --white: #ffffff;
    --danger: #a94646;
    --shadow: 0 8px 25px rgba(22, 44, 65, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 26px 18px 20px;
    display: flex;
    flex-direction: column;
    color: white;
    background:
        radial-gradient(circle at 15% 8%, rgba(30, 132, 142, 0.2), transparent 26%),
        linear-gradient(165deg, var(--navy), var(--navy-deep));
}

.sidebar-brand {
    padding: 0 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: white;
    background: linear-gradient(145deg, #1aa89e, #0a7771);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-weight: 850;
    letter-spacing: -0.05em;
}

.sidebar-brand strong, .sidebar-brand small { display: block; }
.sidebar-brand strong { font-size: 19px; letter-spacing: 0.08em; }
.sidebar-brand small { margin-top: 2px; color: #95aabd; font-size: 10px; letter-spacing: 0.18em; }

.sidebar-nav {
    padding-top: 22px;
    display: grid;
    gap: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.nav-item {
    min-height: 43px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    color: #b9c8d5;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    transition: 160ms ease;
}

.nav-item:hover { color: white; background: rgba(255, 255, 255, 0.07); }
.nav-item.active { color: white; background: rgba(24, 160, 151, 0.18); box-shadow: inset 3px 0 #25b3aa; }
.nav-item.disabled { cursor: default; opacity: 0.52; }
.nav-item.disabled:hover { color: #b9c8d5; background: transparent; }
.nav-item small { color: #7f96a9; font-size: 8px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-icon { width: 21px; display: grid; place-items: center; font-size: 17px; }

.sidebar-progress {
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-progress span, .sidebar-progress strong, .sidebar-progress small { display: block; }
.sidebar-progress span, .sidebar-progress small { color: #9fb0bf; font-size: 10px; }
.sidebar-progress strong { margin: 5px 0 11px; font-size: 12px; }
.progress-track { height: 5px; margin-bottom: 7px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.progress-track i { display: block; width: 68%; height: 100%; background: #23a89f; }

.user-card {
    margin-top: 14px;
    padding: 13px 4px 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--teal-dark);
    background: #dcefeb;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.avatar.small { width: 36px; height: 36px; flex: 0 0 auto; }
.user-copy { min-width: 0; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: 11px; }
.user-copy small { margin-top: 3px; color: #91a5b6; font-size: 9px; }
.user-card form { margin: 0; }
.signout-button { width: 30px; height: 30px; border: 0; border-radius: 8px; color: #9fb0bf; background: transparent; font-size: 16px; }
.signout-button:hover { color: white; background: rgba(255, 255, 255, 0.08); }

.main-content { min-width: 0; padding: 24px 36px 48px; }
.content-topbar { min-height: 34px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.content-topbar-actions { display: flex; align-items: center; gap: 10px; }
.notification-button { position: relative; display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #395067; background: white; text-decoration: none; font-size: 15px; }
.notification-button:hover { border-color: #16968c; color: #087e76; }
.notification-button b { position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; color: white; background: #c33b45; font-size: 10px; line-height: 17px; text-align: center; }
.data-review-item { cursor: default; }
.data-review-item a { color: inherit; font-weight: 700; }
.email-value { overflow-wrap: anywhere; }
.back-to-platform { color: #728295; font-size: 11px; font-weight: 750; text-decoration: none; }
.back-to-platform:hover { color: var(--teal-dark); }
.secure-pill { padding: 7px 10px; border-radius: 99px; color: #17715d; background: #e6f4ef; font-size: 10px; font-weight: 780; }

.page-heading { margin-bottom: 22px; }
.page-heading .eyebrow { margin-bottom: 5px; }
.page-heading h1, .section-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.045em; }
.section-heading { margin-bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading p { margin-bottom: 0; }
.eyebrow { margin: 0 0 8px; color: #8390a0; font-size: 10px; font-weight: 820; letter-spacing: 0.14em; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--teal-dark); font-size: 11px; font-weight: 780; text-decoration: none; }

.welcome-panel {
    min-height: 190px;
    padding: 30px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-radius: 20px;
    color: white;
    background:
        radial-gradient(circle at 80% 15%, rgba(60, 195, 184, 0.2), transparent 24%),
        radial-gradient(circle at 95% 90%, rgba(44, 150, 167, 0.2), transparent 28%),
        linear-gradient(125deg, #123854, #0b253d 75%);
    box-shadow: 0 18px 40px rgba(18, 43, 65, 0.14);
}

.panel-kicker { display: inline-block; margin-bottom: 12px; color: #80d0c9; font-size: 10px; font-weight: 820; letter-spacing: 0.17em; text-transform: uppercase; }
.welcome-panel h2 { max-width: 610px; margin-bottom: 11px; font-size: clamp(25px, 3vw, 37px); line-height: 1.05; letter-spacing: -0.045em; }
.welcome-panel p { max-width: 590px; margin-bottom: 0; color: #b6c7d3; font-size: 13px; line-height: 1.55; }

.light-button, .button {
    min-height: 42px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 740;
}

.light-button { flex: 0 0 auto; color: #0b4f53; background: white; }
.button.primary { color: white; background: var(--teal); box-shadow: 0 7px 16px rgba(15, 139, 131, 0.18); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { color: #395067; background: white; border-color: var(--line); }
.button.danger { color: white; background: var(--danger); }
.button.full { width: 100%; }

.demo-safety-panel { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #b9d9ce; background: linear-gradient(135deg, #f1faf7, #fff); }
.demo-safety-panel h2 { margin: 3px 0 6px; font-size: 19px; }
.demo-safety-panel p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.demo-launch-panel { margin-bottom: 24px; }
.demo-launch-panel.form-panel { max-width: none; }
.demo-config-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.demo-config-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.demo-config-grid span, .demo-config-grid strong { display: block; }
.demo-config-grid span { margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.demo-config-grid strong { color: var(--navy); font-size: 11px; line-height: 1.45; }
.demo-launch-action { display: flex; justify-content: flex-end; }
.empty-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; }
.demo-activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.signal-heading { align-items: end; }
.signal-disclaimer { max-width: 430px; color: var(--muted); font-size: 10px; line-height: 1.45; text-align: right; }
.signal-radar-grid { margin-bottom: 14px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .8fr); gap: 15px; }
.signal-chart-card, .signal-decision-card { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.signal-chart-header { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.signal-chart-header h3, .signal-decision-card h3 { margin: 3px 0 0; color: var(--navy); font-size: 18px; letter-spacing: -.025em; }
.confluence-score { min-width: 80px; padding: 9px 11px; display: grid; grid-template-columns: auto 1fr; column-gap: 3px; align-items: baseline; border-radius: 12px; color: #8a5a1d; background: #fff3df; }
.confluence-score.confirmed { color: #167055; background: #e5f5ef; }
.confluence-score strong { font-size: 24px; letter-spacing: -.06em; }
.confluence-score span { font-size: 10px; font-weight: 800; }
.confluence-score small { grid-column: 1 / -1; color: currentColor; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.signal-chart { width: 100%; min-height: 220px; display: block; overflow: visible; }
.chart-gridline { stroke: #e6edf1; stroke-width: 1; }
.chart-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-price { stroke: #102d4b; stroke-width: 2.3; }
.chart-fast { stroke: #139b91; stroke-width: 1.7; }
.chart-slow { stroke: #dc9a3d; stroke-width: 1.5; }
.chart-trend { stroke: #7f77ae; stroke-width: 1.3; stroke-dasharray: 4 3; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: var(--muted); font-size: 9px; }
.chart-legend { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.chart-legend i { width: 11px; height: 2px; display: inline-block; border-radius: 1px; }
.legend-price { background: #102d4b; }.legend-fast { background: #139b91; }.legend-slow { background: #dc9a3d; }.legend-trend { background: #7f77ae; }
.signal-decision-card { background: linear-gradient(145deg, #fff, #f6fbfa); }
.signal-decision-card.confirmed { border-color: #a8d8c7; background: linear-gradient(145deg, #f2fbf7, #fff); }
.signal-decision-card > p { margin: 9px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.signal-facts { margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.signal-facts div { padding: 9px; border-radius: 9px; background: rgba(255,255,255,.75); }
.signal-facts dt { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.signal-facts dd { margin: 0; color: var(--navy); font-size: 10px; font-weight: 800; }
.condition-list { display: grid; gap: 6px; }
.condition { padding: 8px; display: grid; grid-template-columns: 19px 1fr; gap: 8px; border-radius: 9px; background: #f0f3f5; }
.condition.met { background: #e7f6ef; }
.condition i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #7f8b94; background: white; font-size: 10px; font-style: normal; font-weight: 900; }
.condition.met i { color: #147052; }
.condition strong, .condition small { display: block; }.condition strong { color: var(--navy); font-size: 10px; }.condition small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.signal-board-table { margin-bottom: 25px; }.confluence-inline { width: 72px; height: 5px; margin-right: 7px; display: inline-block; overflow: hidden; vertical-align: middle; border-radius: 99px; background: #e8edf0; }.confluence-inline i { height: 100%; display: block; border-radius: inherit; background: #d19a42; }.signal-board-table tr:has(.status.success) .confluence-inline i { background: #168d70; }
.empty-signal-panel { margin-bottom: 22px; }.empty-signal-panel h3 { margin: 0 0 6px; font-size: 15px; }.empty-signal-panel p { margin: 0; color: var(--muted); font-size: 11px; }

.metric-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.quant-focus-panel, .event-method-panel { margin: 20px 0 26px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #a5d6ce; border-radius: 17px; background: linear-gradient(130deg, #effaf8, #fff); box-shadow: var(--shadow); }
.quant-focus-panel h2, .event-method-panel h2 { margin: 3px 0 6px; font-size: 20px; }.quant-focus-panel p, .event-method-panel p { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.event-method-panel { align-items: flex-start; }.event-method-panel dl { min-width: 290px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }.event-method-panel dl div { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.75); }.event-method-panel dt { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }.event-method-panel dd { margin: 5px 0 0; color: var(--navy); font-size: 13px; font-weight: 850; }
.event-detail-grid { margin-bottom: 24px; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.75fr); gap: 15px; }.event-chart-card, .event-summary-card { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }.event-chart-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.event-chart-card h3, .event-summary-card h3 { margin: 3px 0 0; font-size: 17px; }.event-severity { padding: 9px 11px; display: grid; border-radius: 10px; color: #9a4335; background: #ffebe8; text-align: right; }.event-severity strong { font-size: 15px; }.event-severity small { font-size: 9px; font-weight: 800; }.event-chart { width: 100%; min-height: 190px; display: block; }.event-price-line { stroke: #a64d43; stroke-width: 2.3; }.event-chart-card footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.event-summary-card { background: linear-gradient(145deg,#fff,#fff8f6); }.event-summary-card p { margin: 10px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }.event-summary-rule { padding: 12px; display: grid; gap: 5px; border-radius: 10px; background: #fff0ed; }.event-summary-rule strong { color: #8e3e33; font-size: 10px; }.event-summary-rule span { color: #855f59; font-size: 10px; line-height: 1.45; }.event-context-table { margin-bottom: 26px; }.event-results-note { margin-bottom: 10px; padding: 11px 14px; display: flex; gap: 10px; border: 1px solid #ead8b7; border-radius: 10px; color: #795d28; background: #fffaf0; font-size: 10px; line-height: 1.45; }.event-results-note span { color: #96774b; }.event-results-table { margin-bottom: 13px; }.event-results-table small { color: var(--muted); font-size: 9px; }.event-severity-grid { margin-bottom: 27px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }.event-severity-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }.event-severity-grid span,.event-severity-grid strong,.event-severity-grid small { display:block; }.event-severity-grid span { color:var(--muted); font-size:9px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }.event-severity-grid strong { margin:7px 0 3px; font-size:24px; letter-spacing:-.04em; }.event-severity-grid small { color:var(--muted); font-size:10px; }
.metric-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.metric-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #5086b3; }
.metric-card.green::before { background: #2b9c79; }
.metric-card.amber::before { background: #d69235; }
.metric-card.violet::before { background: #7166ad; }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: 10px; font-weight: 680; }
.metric-card strong { margin: 9px 0 4px; font-size: 30px; letter-spacing: -0.04em; }
.metric-card small { color: #96a1ad; font-size: 9px; }

.operations-panel { margin-bottom: 18px; }
.operations-summary { padding: 7px 11px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.operations-summary.critical { color: #9d3c32; background: #fbe9e6; }
.operations-summary.clear { color: #18736d; background: #e4f4ef; }
.operations-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.operation-item { min-width: 0; padding: 14px; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; color: inherit; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; text-decoration: none; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.operation-item:hover { transform: translateY(-1px); border-color: #b6cbc7; box-shadow: 0 8px 20px rgba(17, 48, 67, .06); }
.operation-indicator { width: 9px; height: 9px; border-radius: 50%; background: #4d98c2; box-shadow: 0 0 0 4px #e6f1f7; }
.operation-item.warning .operation-indicator { background: #c58b28; box-shadow: 0 0 0 4px #fbf1dc; }
.operation-item.critical .operation-indicator { background: #c55347; box-shadow: 0 0 0 4px #fae8e5; }
.operation-copy { min-width: 0; display: grid; gap: 3px; }
.operation-copy small { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.operation-copy strong { color: var(--navy); font-size: 12px; }
.operation-copy span { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.operation-item time { color: var(--muted); font-size: 10px; font-weight: 700; }
.operations-empty { padding: 20px; display: flex; gap: 12px; align-items: center; border: 1px dashed #bfd0cc; border-radius: 14px; background: #f8fbfa; }
.operations-empty > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal); border-radius: 50%; background: #e4f4ef; font-weight: 900; }
.operations-empty strong { color: var(--navy); font-size: 12px; }
.operations-empty p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.help-role-panel { margin-bottom: 20px; padding: 24px; display: grid; grid-template-columns: 1fr minmax(280px, .65fr); gap: 22px; align-items: center; color: white; border-radius: 17px; background: linear-gradient(130deg, #103b51, #0c263c); box-shadow: var(--shadow); }
.help-role-copy { display: flex; gap: 15px; align-items: flex-start; }
.help-mark { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; color: #0d5d5d; border-radius: 14px; background: #dff6ef; font-size: 21px; font-weight: 900; }
.help-role-copy .eyebrow { color: #70d0bd; }
.help-role-copy h2 { margin: 2px 0 5px; font-size: 24px; }
.help-role-copy p { margin: 0 0 7px; color: #bfd0db; font-size: 11px; line-height: 1.5; }
.help-rule { padding: 17px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 13px; background: rgba(255, 255, 255, .06); }
.help-rule strong { display: block; margin-bottom: 5px; color: #8edcc9; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.help-rule p { margin: 0; color: #d1dce3; font-size: 10px; line-height: 1.55; }
.manual-heading { margin: 0 0 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.manual-heading h2 { margin: 2px 0 0; font-size: 20px; }
.manual-heading > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.manual-card { display: flex; flex-direction: column; }
.manual-card-heading { display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.manual-card-heading > span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--teal-dark); border-radius: 10px; background: #e5f4f0; font-size: 10px; font-weight: 900; }
.manual-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.manual-card-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.manual-card ul { margin: 16px 0 18px; padding: 0; display: grid; gap: 8px; list-style: none; }
.manual-card li { position: relative; padding-left: 16px; color: #4f6172; font-size: 10px; line-height: 1.5; }
.manual-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 900; }
.manual-card .button { width: 100%; margin-top: auto; }
.help-security { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.help-security > div { display: flex; align-items: center; gap: 12px; }
.help-security h2 { margin: 0 0 4px; font-size: 14px; }
.help-security p { margin: 0; color: var(--muted); font-size: 10px; }
.help-security > a { color: var(--teal-dark); font-size: 10px; font-weight: 800; }

.panel { padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.panel-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.panel-heading h2, .panel-heading h3 { margin-bottom: 4px; font-size: 17px; letter-spacing: -0.025em; }
.panel-heading p { margin-bottom: 0; color: var(--muted); font-size: 11px; }

.registry-panel { padding: 0; overflow: hidden; }
.registry-heading { margin: 0; padding: 20px 19px 16px; }
.registry-toolbar { padding: 14px 17px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-box { min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 8px; flex: 1 1 300px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.search-box input { width: 100%; padding: 10px 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.registry-toolbar select { min-height: 42px; padding: 9px 32px 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfd; }
.search-box:focus-within, .registry-toolbar select:focus { border-color: #5db7b0; box-shadow: 0 0 0 3px rgba(15, 139, 131, 0.1); outline: 0; }
.table-summary { padding: 12px 19px; display: flex; align-items: baseline; gap: 5px; color: var(--muted); border-bottom: 1px solid #edf1f4; font-size: 10px; }
.table-summary span { margin-left: auto; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 800px; border-collapse: collapse; }
th, td { padding: 12px 19px; text-align: left; border-bottom: 1px solid #edf1f4; font-size: 11px; }
th { color: #7d8996; background: #f8fafb; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr:hover { background: #fbfdfd; }
tbody tr:last-child td { border-bottom: 0; }
.person-cell { min-width: 220px; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.person-cell strong, .person-cell small { display: block; }
.person-cell strong { font-size: 11px; }
.person-cell small { margin-top: 3px; color: #8794a1; font-size: 9px; }
.table-link:hover strong { color: var(--teal-dark); }
.id-cell { color: #4d6275; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.contact-copy, td > small { display: block; }
.contact-copy { font-size: 10px; font-weight: 700; }
td > small { margin-top: 3px; color: #8794a1; font-size: 9px; }
.row-actions { display: flex; align-items: center; gap: 10px; }
.table-action { color: var(--teal-dark); font-size: 10px; font-weight: 780; text-decoration: none; }
.inline-action-form { display: inline; margin: 0; }
.table-action-button { padding: 0; border: 0; background: transparent; cursor: pointer; font-family: inherit; }
.danger-link { color: var(--danger); }
.table-action:hover { text-decoration: underline; }
.table-actions { display: grid; gap: 7px; justify-items: start; }
.empty-cell { padding: 42px; color: #83919d; text-align: center; }

.status { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #65727e; background: #edf0f3; font-size: 9px; font-weight: 800; }
.status.success { color: #247456; background: #e6f5ee; }
.status.suspended { color: #ac5623; background: #fff0e7; }
.workflow-checklist { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.evaluation-total { padding: 14px 20px; border-top: 1px solid var(--line); background: #f8fafb; color: var(--navy); text-align: right; font-size: 11px; }

.form-panel { max-width: 900px; padding: 27px; }
.narrow-form { max-width: 620px; }
.form-stack, .form-grid { display: grid; gap: 17px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.requirement-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.requirement-item:last-child { border-bottom: 0; }
.requirement-item strong, .requirement-item small { display: block; }
.requirement-item small { margin-top: 4px; color: var(--muted); }
.compliance-matrix select { min-width: 135px; }
.compliance-matrix th small { display: block; margin-top: 3px; font-weight: 500; }
.review-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.review-intro h2 { margin: 0 0 5px; font-size: 18px; }
.review-intro p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.bidder-review-card { padding: 0; overflow: hidden; }
.bidder-review-heading { padding: 19px 21px; display: flex; align-items: center; gap: 13px; color: white; background: linear-gradient(120deg, #103a52, #0b716d); }
.bidder-review-heading > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #075f5b; background: #dff4ef; font-size: 11px; font-weight: 900; }
.bidder-review-heading .eyebrow { margin-bottom: 3px; color: #90d8cf; }
.bidder-review-heading h2 { margin: 0; font-size: 17px; }
.bidder-review-heading small { display: block; margin-top: 4px; color: #c6d9df; font-size: 9px; }
.review-group { padding: 20px 21px; }
.review-group + .review-group { border-top: 1px solid var(--line); background: #fbfcfc; }
.review-group h3 { margin: 0 0 12px; color: var(--navy); font-size: 13px; }
.review-grid { min-height: 55px; padding: 8px 0; display: grid; grid-template-columns: minmax(180px, .85fr) minmax(145px, .45fr) minmax(280px, 1.25fr); align-items: center; gap: 12px; border-top: 1px solid #edf1f3; }
.review-grid-heading { min-height: auto; padding: 0 0 8px; color: #84919d; border-top: 0; font-size: 8px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.review-grid label { color: #2f4659; font-size: 10px; font-weight: 780; }
.review-grid label small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 600; }
.review-grid select, .review-grid input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d6e0e7; border-radius: 9px; color: var(--ink); background: white; outline: 0; font-size: 10px; }
.review-grid select:focus, .review-grid input:focus { border-color: #5db7b0; box-shadow: 0 0 0 3px rgba(15, 139, 131, .1); }
.review-grid input::placeholder { color: #9aa6b0; }
.requirement-source-text { margin: -2px 0 13px; padding: 11px 13px; color: #3e5968; border-left: 3px solid #3ea69d; border-radius: 0 8px 8px 0; background: #eef7f5; font-size: 10px; line-height: 1.55; white-space: pre-line; }
.requirement-source-text.pending { color: #816226; border-left-color: #d3a64c; background: #fff8ea; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 17px; padding-bottom: 13px; border-bottom: 1px solid #e8edf0; font-size: 15px; font-weight: 800; }
legend small { color: var(--muted); font-size: 10px; font-weight: 500; }
.field { display: grid; gap: 7px; }
.field label { color: #40566a; font-size: 10px; font-weight: 730; }
.field small { color: var(--muted); font-size: 9px; }
.field-error { color: var(--danger); font-size: 9px; font-weight: 700; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #d6e0e7;
    border-radius: 9px;
    color: var(--ink);
    background: #fbfcfd;
    outline: 0;
}
.field input[type="radio"], .field input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    padding: 0;
    accent-color: var(--teal);
}
#id_document_kind { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#id_document_kind > div label {
    min-height: 48px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d6e0e7;
    border-radius: 10px;
    background: #fbfcfd;
    cursor: pointer;
}
#id_document_kind > div label:has(input:checked) {
    color: var(--teal-dark);
    border-color: #5db7b0;
    background: #eef8f7;
    box-shadow: 0 0 0 3px rgba(15, 139, 131, 0.08);
}
.field textarea { resize: vertical; font: inherit; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #5db7b0; box-shadow: 0 0 0 3px rgba(15, 139, 131, 0.1); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.wide-field { grid-column: 1 / -1; }
.form-actions { margin-top: 24px; padding-top: 20px; display: flex; justify-content: end; gap: 9px; border-top: 1px solid var(--line); }

.detail-grid { margin-bottom: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.record-index { position: sticky; top: 12px; z-index: 4; width: fit-content; max-width: 100%; margin: 14px 0 18px; padding: 6px; display: flex; gap: 3px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.record-index a { padding: 8px 11px; color: #52677a; border-radius: 8px; font-size: 9px; font-weight: 790; text-decoration: none; white-space: nowrap; }
.record-index a:hover { color: var(--teal-dark); background: #e9f5f3; }
.record-metrics .metric-card strong { font-size: clamp(20px, 2.2vw, 30px); }
.record-section { margin-top: 26px; scroll-margin-top: 80px; }
.record-section-heading { margin: 0 2px 13px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.record-section-heading h2 { margin: 4px 0 0; font-size: 21px; }
.record-section-heading > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.record-panel { min-width: 0; }
.record-panel .panel-heading { align-items: start; }
.record-empty { padding: 18px 2px; color: var(--muted); font-size: 10px; }
.sensitive-panel { border-color: #d8d1e7; scroll-margin-top: 80px; }
.sensitive-panel .eyebrow { color: #625397; }
#beneficios, #resumen, #trayectoria { scroll-margin-top: 80px; }
.definition-list { margin: 14px 0 0; display: grid; gap: 10px; }
.definition-list div { padding-top: 10px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.definition-list dt { color: var(--muted); font-size: 10px; }
.definition-list dd { margin: 0; font-size: 11px; font-weight: 750; text-align: right; }
.history-panel { margin-top: 15px; }
.timeline { display: grid; }
.timeline-item { position: relative; min-height: 72px; padding: 12px 0 12px 44px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: 16px; top: 45px; bottom: -8px; border-left: 1px solid #dce5e9; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: absolute; left: 0; top: 12px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #e5f4f0; }
.timeline-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline-item p, .timeline-item small { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.heading-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 9px; }
.minute-number { color: var(--teal-dark); font-weight: 820; text-decoration: none; }
.minute-layout { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.28fr); gap: 15px; }
.minute-info-panel, .document-panel { min-width: 0; }
.minute-summary { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.minute-summary h3 { margin-bottom: 7px; font-size: 12px; }
.minute-summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.tag-list { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 6px 9px; border-radius: 99px; color: #176d68; background: #e5f4f1; font-size: 9px; font-weight: 750; }
.compact-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.compact-tag, .compact-tag-more { display: inline-block; padding: 4px 7px; border-radius: 99px; color: #176d68; background: #e5f4f1; font-size: 8px; font-style: normal; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.compact-tag-more { color: #566b80; background: #f0f3f6; cursor: help; }
.follow-up-steps { display: grid; gap: 5px; margin-top: 9px; }
.follow-up-step { display: flex; gap: 7px; align-items: center; color: #38526c; text-decoration: none; font-size: 11px; }
.follow-up-step b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #0c827a; background: #e5f4f1; font-size: 9px; }
.follow-up-step.completed { color: #728093; text-decoration: line-through; }
.document-panel { padding-bottom: 14px; }
.pdf-viewer { width: 100%; height: 520px; display: block; border: 1px solid var(--line); border-radius: 10px; background: #eef2f4; }
.document-empty { min-height: 320px; display: grid; place-items: center; color: var(--muted); border: 1px dashed #bdcbd3; border-radius: 10px; font-size: 11px; }
.version-list { display: grid; }
.version-item { padding: 15px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid var(--line); }
.version-item p, .version-item small { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.version-badge { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: #e5f4f1; font-size: 10px; font-weight: 850; }

.upload-layout { display: grid; grid-template-columns: minmax(400px, 0.9fr) minmax(300px, 0.6fr); align-items: start; gap: 15px; }
.format-guide h2 { margin-bottom: 9px; }
.format-guide > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.column-list { margin: 18px 0; display: grid; gap: 7px; }
.column-list span { padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; color: #496075; background: #fafcfc; font-size: 10px; }
.column-list strong { margin-right: 7px; color: var(--teal-dark); font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.campaign-list { display: grid; gap: 10px; }
.campaign-card { padding: 14px; display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfc; }
.campaign-card p, .campaign-card small { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.campaign-title, .campaign-title > div, .campaign-inventory { display: flex; align-items: center; gap: 8px; }
.campaign-title { justify-content: space-between; }
.campaign-title strong { font-size: 11px; }
.campaign-inventory { padding-top: 8px; justify-content: space-between; border-top: 1px solid var(--line); color: #52677a; font-size: 9px; }
.campaign-inventory b { color: var(--ink); font-size: 11px; }
.request-overview { margin-bottom: 15px; padding: 0; overflow: hidden; }
.request-overview .panel-heading { padding: 20px 21px 16px; }
.record-subsection + .record-subsection { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.record-subsection > h3 { margin-bottom: 8px; font-size: 12px; }
.guide-note { margin: 0; padding: 12px; border-radius: 9px; background: #eef7f4; }
.apply-panel { margin-bottom: 15px; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(280px, 0.8fr) auto; align-items: center; gap: 20px; }
.apply-panel h2 { margin-bottom: 5px; font-size: 17px; }
.apply-panel p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.confirmation-check { display: flex; align-items: flex-start; gap: 9px; color: #3f566a; font-size: 10px; line-height: 1.45; }
.confirmation-check input { margin-top: 2px; accent-color: var(--teal); }
.import-preview { margin-top: 15px; }
.row-error { background: #fff9f7; }
.error-copy { min-width: 240px; color: #9a4742; }
.error-copy span { display: block; margin-bottom: 3px; font-size: 9px; }
.financial-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 15px; }
.financial-grid > * { min-width: 0; }
.compact-table { min-width: 520px; }
.muted-copy { color: var(--muted); font-size: 10px; }
.financial-next-step { margin-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.financial-next-step h2 { margin-bottom: 6px; font-size: 17px; }
.financial-next-step p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.totals-strip { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.totals-strip h2 { margin: 0; font-size: 17px; }
.amount-total-list { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.amount-total-list span { min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfb; }
.amount-total-list small, .amount-total-list strong { display: block; }
.amount-total-list small { margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 800; }
.amount-total-list strong { color: var(--teal-dark); font-size: 12px; }
.amount-cell { min-width: 150px; }
.amount-cell span { display: block; margin-bottom: 3px; font-size: 9px; }
.money-metric { font-size: clamp(19px, 2.2vw, 27px) !important; }
.difference-alert { color: #a3483e; font-weight: 800; }
.difference-ok { color: #237557; font-weight: 800; }
.blocker-panel { margin-bottom: 15px; display: grid; grid-template-columns: minmax(230px, 0.65fr) minmax(340px, 1.35fr); gap: 28px; border-color: #ead6ad; background: #fffaf0; }
.blocker-panel h2 { margin-bottom: 0; font-size: 17px; }
.blocker-panel ul { margin: 0; padding-left: 18px; color: #75571f; font-size: 10px; line-height: 1.65; }
.reconciliation-panel { margin-top: 15px; }

.messages { margin-bottom: 14px; display: grid; gap: 7px; }
.message { padding: 11px 14px; border: 1px solid #cbe9dd; border-radius: 10px; color: #216a52; background: #eaf7f1; font-size: 11px; font-weight: 650; }
.message.error { color: #943e3e; background: #fff0ef; border-color: #f3ceca; }
.message.warning { color: #805d17; background: #fff6df; border-color: #ebd8a5; }

.platform-topbar { min-height: 72px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: white; }
.platform-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 820; text-decoration: none; }
.platform-brand .brand-mark { width: 38px; height: 38px; }
.user-nav { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }
.user-nav form { margin: 0; }
.text-button { padding: 0; border: 0; color: var(--teal-dark); background: transparent; font-weight: 750; }
.page-shell { width: min(1180px, 90vw); margin: 0 auto; padding: 4rem 0; }
.page-shell:has(.login-layout--network) { width: 100%; min-height: calc(100vh - 72px); margin: 0; padding: 0; }
.hero { margin-bottom: 2.5rem; }
.hero h1 { max-width: 18ch; margin-bottom: 0.8rem; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero p { color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app-card { min-height: 130px; padding: 20px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); text-decoration: none; }
.app-card:hover { transform: translateY(-2px); border-color: #a8c4b9; }
.app-card strong, .app-card small { display: block; }
.app-card small { margin-top: 4px; color: var(--muted); }
.app-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--teal); font-weight: 850; }
.arrow { color: var(--teal); font-size: 22px; }
.empty-state { padding: 32px; border: 1px dashed #b8c9c2; border-radius: 16px; }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.report-card { padding: 22px; }
.report-card > p { min-height: 42px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.report-card-heading { display: flex; align-items: center; gap: 12px; }
.report-card-heading h2 { margin: 3px 0 0; }
.report-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #285f83; background: #e7f2fa; font-weight: 800; }
.report-icon.green { color: #147461; background: #e3f4ef; }
.report-form { margin-top: 18px; display: grid; gap: 13px; }
.report-period-list { margin-top: 18px; display: grid; gap: 9px; }
.report-period-list > div { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 11px; }
.report-period-list span, .report-period-list strong, .report-period-list small { display: block; }
.report-period-list small { margin-top: 3px; color: var(--muted); }
.restricted-note { margin-top: 18px; padding: 13px; color: #5f6e7b; background: #f5f7f8; border-radius: 10px; font-size: 11px; }
.report-security { margin-top: 16px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.report-security > div { display: flex; align-items: center; gap: 12px; }
.report-security h2 { margin: 0 0 4px; font-size: 15px; }
.report-security p, .report-security small { margin: 0; color: var(--muted); font-size: 10px; }
.secure-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #147461; background: #e3f4ef; font-weight: 800; }
.audit-filters { padding: 14px 17px; display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(150px, 0.7fr)) repeat(2, minmax(125px, 0.55fr)) auto auto; align-items: end; gap: 9px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audit-filters select, .date-filter input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfcfd; }
.date-filter { display: grid; gap: 5px; }
.date-filter span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.audit-list { padding: 0 19px; }
.audit-event { position: relative; padding: 17px 0 17px 34px; border-bottom: 1px solid #edf1f4; }
.audit-event:last-child { border-bottom: 0; }
.audit-event::before { content: ""; position: absolute; left: 10px; top: 32px; bottom: -18px; border-left: 1px solid #dce5e9; }
.audit-event:last-child::before { display: none; }
.audit-dot { position: absolute; left: 4px; top: 22px; width: 13px; height: 13px; border: 3px solid #dff1ed; border-radius: 50%; background: var(--teal); }
.audit-copy { min-width: 0; }
.audit-title { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.audit-title strong { font-size: 12px; }
.audit-title > span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.audit-copy > p { margin: 5px 0 8px; color: #4e6275; font-size: 11px; }
.audit-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.audit-meta span, .audit-meta code { padding: 4px 7px; border-radius: 6px; color: #66778a; background: #f1f4f6; font-size: 8px; }
.audit-meta code { overflow-wrap: anywhere; }
.audit-details { margin-top: 10px; font-size: 9px; }
.audit-details summary { width: fit-content; cursor: pointer; color: var(--teal-dark); font-weight: 750; }
.audit-details dl { margin: 9px 0 0; padding: 10px; display: grid; gap: 6px; border-radius: 8px; background: #f8fafb; }
.audit-details dl div { display: grid; grid-template-columns: minmax(110px, 0.35fr) 1fr; gap: 10px; }
.audit-details dt { color: var(--muted); }
.audit-details dd { margin: 0; overflow-wrap: anywhere; }
.pagination { padding: 14px 19px; display: flex; align-items: center; justify-content: center; gap: 12px; border-top: 1px solid var(--line); }
.pagination span { color: var(--muted); font-size: 10px; }
.access-security-note { max-width: 620px; margin-top: 15px; display: flex; align-items: center; gap: 12px; }
.access-security-note h2 { margin: 0 0 4px; font-size: 14px; }
.access-security-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.assembly-overview { margin-bottom: 15px; display: grid; grid-template-columns: minmax(340px, 1.05fr) minmax(320px, 0.95fr); gap: 15px; }
.assembly-overview > * { min-width: 0; }
.attendance-counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.attendance-counts span { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfb; }
.attendance-counts strong, .attendance-counts small { display: block; }
.attendance-counts strong { color: var(--teal-dark); font-size: 23px; }
.attendance-counts small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 750; }
.assembly-document-actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.attendance-panel { margin-top: 15px; }

.budget-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.budget-heading h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.04; letter-spacing: -0.05em; }
.budget-heading p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.budget-template-state { flex: 0 0 auto; display: grid; justify-items: end; gap: 6px; }
.budget-template-state small { color: var(--muted); font-size: 9px; font-weight: 750; }
.budget-warning { margin-bottom: 16px; padding: 14px 17px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid #ead5a1; border-radius: 13px; color: #77561a; background: #fff9eb; }
.budget-warning > span { width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: #c68c28; font-size: 12px; font-weight: 900; }
.budget-warning strong { display: block; margin-bottom: 3px; font-size: 11px; }
.budget-warning p { margin: 0; font-size: 9px; line-height: 1.5; }
.budget-workspace { display: grid; grid-template-columns: minmax(520px, 1.08fr) minmax(360px, .92fr); align-items: start; gap: 16px; }
.budget-input-panel { min-width: 0; padding: 25px; }
.budget-input-panel fieldset { margin-bottom: 18px; }
.budget-step { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: #e6f4f1; font-size: 9px; font-weight: 900; }
.budget-form-grid { gap: 13px; }
.budget-input-with-unit { position: relative; }
.budget-input-with-unit input { padding-right: 44px; }
.budget-input-with-unit > span { position: absolute; top: 50%; right: 12px; color: #8b98a5; font-size: 9px; font-weight: 800; transform: translateY(-50%); pointer-events: none; }
.budget-assumptions { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.budget-assumptions summary { padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; color: #3d5368; font-size: 11px; font-weight: 800; list-style: none; }
.budget-assumptions summary::-webkit-details-marker { display: none; }
.budget-assumptions summary::before { content: "+"; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; color: var(--teal-dark); background: #e5f4f1; }
.budget-assumptions[open] summary::before { content: "−"; }
.budget-assumptions summary span { margin-left: auto; color: #a16f1f; font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.budget-assumptions[open] summary { border-bottom: 1px solid var(--line); }
.budget-assumptions .form-grid { padding: 15px; }
.budget-actions { margin-top: 18px; }
.budget-results-column { position: sticky; top: 20px; display: grid; gap: 14px; }
.budget-result-hero { position: relative; overflow: hidden; min-height: 260px; padding: 24px; color: white; border-radius: 18px; background: radial-gradient(circle at 88% 12%, rgba(46, 191, 177, .25), transparent 30%), linear-gradient(140deg, #123b54, #081f35); box-shadow: 0 18px 40px rgba(17, 43, 64, .15); }
.budget-result-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; }
.budget-result-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.budget-result-label span { color: #7dd5ca; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.budget-result-label small { color: #99adbb; font-size: 8px; }
.budget-area-result { margin: 31px 0 28px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; }
.budget-area-result small { grid-column: 1 / -1; color: #a8bac6; font-size: 9px; }
.budget-area-result strong { font-size: clamp(50px, 6vw, 72px); line-height: 1; letter-spacing: -.07em; }
.budget-area-result span { margin-left: 9px; color: #7dd5ca; font-size: 18px; font-weight: 800; }
.budget-result-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.budget-result-metrics div { padding: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(255, 255, 255, .06); }
.budget-result-metrics small, .budget-result-metrics strong { display: block; }
.budget-result-metrics small { margin-bottom: 5px; color: #91a7b6; font-size: 8px; }
.budget-result-metrics strong { font-size: 12px; }
.budget-materials .panel-heading { align-items: flex-start; }
.budget-resource-list { display: grid; }
.budget-resource-row { padding: 12px 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--line); }
.budget-resource-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--teal-dark); background: #e8f4f2; font-size: 10px; font-weight: 900; }
.budget-resource-row strong, .budget-resource-row small { display: block; }
.budget-resource-row > div:nth-child(2) strong { margin-bottom: 3px; font-size: 11px; }
.budget-resource-row small { color: var(--muted); font-size: 8px; }
.budget-resource-quantity { text-align: right; }
.budget-resource-quantity strong { color: var(--navy); font-size: 15px; }
.budget-trace-panel h3 { margin-bottom: 10px; font-size: 14px; }
.budget-trace-panel ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.budget-empty-result { min-height: 540px; padding: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #b9cbc7; border-radius: 18px; background: rgba(255, 255, 255, .65); }
.budget-empty-mark { width: 58px; height: 58px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 17px; color: var(--teal-dark); background: #e4f3f0; font-size: 25px; font-weight: 800; }
.budget-empty-result h2 { margin-bottom: 8px; font-size: 21px; letter-spacing: -.03em; }
.budget-empty-result p { max-width: 330px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.budget-preview-lines { width: min(260px, 100%); margin-top: 18px; display: grid; gap: 8px; }
.budget-preview-lines i { height: 8px; border-radius: 99px; background: #e6ecee; }
.budget-preview-lines i:nth-child(2) { width: 82%; }
.budget-preview-lines i:nth-child(3) { width: 62%; }

.budget-detail-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.budget-detail-heading h1 { margin: 2px 0 8px; font-size: clamp(31px, 4vw, 46px); line-height: 1; letter-spacing: -.055em; }
.budget-detail-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.budget-mode-switch { margin-bottom: 14px; padding: 5px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; border: 1px solid var(--line); border-radius: 14px; background: #e9eef0; }
.budget-mode { min-height: 62px; padding: 12px 15px; display: flex; flex-direction: column; justify-content: center; border-radius: 10px; color: #6d7c89; background: transparent; }
.budget-mode strong, .budget-mode small { display: block; }
.budget-mode strong { margin-bottom: 3px; font-size: 11px; }
.budget-mode small { font-size: 9px; }
.budget-mode.active { color: var(--navy); background: white; box-shadow: 0 4px 13px rgba(24, 47, 65, .07); }
.budget-mode.active strong { color: var(--teal-dark); }
.budget-mode.disabled { opacity: .68; }
.budget-mode[href] { text-decoration: none; transition: color .15s ease, background .15s ease; }
.budget-mode[href]:hover { color: var(--navy); background: rgba(255,255,255,.58); }
.budget-warning.compact { padding-top: 11px; padding-bottom: 11px; }
.budget-quick-note { margin-bottom: 14px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #b9ddd8; border-radius: 13px; color: #315d5a; background: #eaf6f4; }
.budget-quick-note > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--teal); font-size: 18px; font-weight: 850; }
.budget-quick-note strong { display: block; margin-bottom: 3px; font-size: 10px; }
.budget-quick-note p { margin: 0; font-size: 8.5px; line-height: 1.45; }
.budget-detail-form { display: grid; gap: 14px; }
.budget-definition-panel, .budget-geometry-panel { padding: 24px; }
.budget-system-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.budget-system-grid .field, .budget-geometry-fields .field, .budget-form-grid .field { align-content: start; }
.budget-system-grid .field > label, .budget-geometry-fields .field > label { min-height: 14px; display: flex; align-items: end; }
.budget-geometry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: stretch; gap: 22px; }
.budget-geometry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.budget-geometry-fields .field { grid-template-rows: 14px 43px minmax(24px, auto); }
.budget-form-grid .field > label { min-height: 26px; display: flex; align-items: end; line-height: 1.35; }
.budget-form-grid .budget-price-input, .budget-form-grid .field > input { min-height: 43px; }
.budget-formula { max-width: 330px; padding: 8px 11px; border-radius: 8px; color: #537083; background: #f0f5f6; font: 8px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
.budget-wall-diagram { min-height: 208px; margin: 0; padding: 13px 15px 12px; display: grid; place-items: center; align-content: center; gap: 5px; border: 1px solid #c9d9de; border-radius: 14px; background: linear-gradient(150deg, #fbfdfd, #eff5f6); box-shadow: inset 0 1px 0 white; }
.budget-wall-diagram svg { width: 100%; max-width: 330px; height: auto; overflow: visible; }
.budget-wall-diagram svg text { fill: #66808e; font: 700 7px/1 sans-serif; letter-spacing: .08em; }
.budget-wall-diagram svg .diagram-tag-title { fill: white; font-size: 6px; letter-spacing: .12em; }
.budget-wall-diagram svg .diagram-tag-copy { fill: white; font-size: 6.4px; letter-spacing: 0; }
.budget-wall-diagram figcaption { width: 100%; padding-top: 8px; display: grid; gap: 2px; border-top: 1px solid #dbe6e9; text-align: center; }
.budget-wall-diagram figcaption strong { color: #476372; font-size: 8px; }
.budget-wall-diagram figcaption span { color: #7b8e99; font-size: 7.5px; line-height: 1.35; }
.budget-quick-method { min-height: 208px; padding: 19px; border: 1px solid #c9d9de; border-radius: 14px; background: linear-gradient(150deg, #fbfdfd, #eff5f6); }
.budget-quick-method ol { margin: 13px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.budget-quick-method li { display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 10px; }
.budget-quick-method li i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--teal-dark); background: #dff1ee; font-size: 9px; font-style: normal; font-weight: 850; }
.budget-quick-method li span, .budget-quick-method li strong { display: block; }
.budget-quick-method li span { color: #758895; font-size: 8px; line-height: 1.4; }
.budget-quick-method li strong { margin-bottom: 2px; color: #29475a; font-size: 9px; }
.budget-geometry-preview { margin-top: 18px; padding-top: 17px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; border-top: 1px solid var(--line); }
.budget-geometry-preview > span { min-height: 59px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #dce6e9; border-radius: 10px; background: #f8fbfb; }
.budget-geometry-preview small, .budget-geometry-preview strong { display: block; }
.budget-geometry-preview small { margin-bottom: 5px; color: #7c8d99; font-size: 7.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.budget-geometry-preview strong { color: #29475a; font-size: 13px; }
.budget-geometry-preview > span.primary { border-color: #b9ddd8; background: #eaf6f4; }
.budget-geometry-preview > span.primary strong { color: var(--teal-dark); }
.budget-settings-grid { display: grid; grid-template-columns: 1fr; align-items: start; gap: 14px; }
.budget-config-panel { padding: 0; overflow: hidden; }
.budget-config-panel > summary { min-height: 74px; padding: 17px 20px; display: flex; align-items: center; gap: 13px; cursor: pointer; list-style: none; }
.budget-config-panel > summary::-webkit-details-marker { display: none; }
.budget-config-panel > summary::before { content: "+"; width: 27px; height: 27px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--teal-dark); background: #e5f4f1; font-weight: 850; }
.budget-config-panel[open] > summary::before { content: "−"; }
.budget-config-panel > summary span { min-width: 0; }
.budget-config-panel > summary small, .budget-config-panel > summary strong { display: block; }
.budget-config-panel > summary small { margin-bottom: 4px; color: #81909e; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.budget-config-panel > summary strong { font-size: 12px; }
.budget-config-panel > summary em { margin-left: auto; color: #a16f1f; font-size: 8px; font-style: normal; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.budget-config-panel[open] > summary { border-bottom: 1px solid var(--line); }
.budget-config-body { padding: 19px 20px 21px; }
.budget-settings-grid .budget-form-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.budget-config-body h3 { margin: 0 0 13px; font-size: 11px; }
.budget-config-body h3:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.budget-config-note { margin: 0 0 15px; padding: 10px 11px; color: #567084; border-radius: 9px; background: #f0f5f6; font-size: 9px; line-height: 1.5; }
.budget-price-input { position: relative; }
.budget-price-input > span { position: absolute; z-index: 1; top: 50%; left: 12px; color: #738390; font-size: 10px; font-weight: 800; transform: translateY(-50%); }
.budget-price-input input { padding-left: 28px; }
.budget-calculate-bar { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.budget-calculate-bar strong, .budget-calculate-bar span { display: block; }
.budget-calculate-bar strong { margin-bottom: 4px; font-size: 12px; }
.budget-calculate-bar span { color: var(--muted); font-size: 9px; }
.budget-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.budget-results-section { margin-top: 30px; }
.budget-summary-grid { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.budget-summary-card { min-height: 125px; padding: 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.budget-summary-card small, .budget-summary-card strong, .budget-summary-card span { display: block; }
.budget-summary-card small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.budget-summary-card strong { margin: 8px 0 3px; font-size: clamp(19px, 2.5vw, 30px); letter-spacing: -.045em; }
.budget-summary-card span { color: #8a98a4; font-size: 8px; }
.budget-summary-card.primary { color: white; border-color: #113a52; background: linear-gradient(135deg, #123e57, #09243a); }
.budget-summary-card.primary small, .budget-summary-card.primary span { color: #9fc0ca; }
.budget-breakdown-panel { padding: 0; overflow: hidden; }
.budget-breakdown-panel > .panel-heading { margin: 0; padding: 21px 22px 17px; }
.budget-material-table { min-width: 1160px; }
.budget-material-table th, .budget-material-table td { padding-right: 12px; padding-left: 12px; }
.budget-material-table td > strong, .budget-material-table td > small { display: block; white-space: nowrap; }
.budget-material-table td > strong { color: #263d51; font-size: 10px; }
.budget-material-table td > small { margin-top: 3px; }
.budget-material-name { min-width: 165px; display: flex; align-items: center; gap: 9px; }
.budget-material-name > i { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--teal-dark); background: #e5f4f1; font-size: 9px; font-style: normal; font-weight: 900; }
.budget-material-name strong, .budget-material-name small { display: block; }
.budget-material-name strong { font-size: 10px; }
.budget-material-name small { margin-top: 3px; color: #8c99a3; font-size: 7px; font-weight: 750; }
.budget-included { padding: 5px 7px; border-radius: 7px; color: #587084; background: #eef3f5; font-size: 8px; font-weight: 750; }
.budget-missing-price { color: #a16f1f; font-size: 8px; font-weight: 800; }
.budget-row-total { color: var(--teal-dark) !important; }

/* TARS Presupuestos · asistente Macro */
.macro-heading h1 { max-width: 820px; }
.macro-mode-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.macro-progress { margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; box-shadow: 0 8px 24px rgba(20, 46, 62, .05); list-style: none; }
.macro-progress li { min-height: 72px; padding: 13px 16px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; color: #82919d; border-right: 1px solid var(--line); }
.macro-progress li:last-child { border-right: 0; }
.macro-progress li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #78909c; background: #edf2f3; font-size: 11px; font-weight: 900; }
.macro-progress strong, .macro-progress small { display: block; }
.macro-progress strong { margin-bottom: 3px; font-size: 13px; }
.macro-progress small { font-size: 10px; }
.macro-progress li.active { color: var(--navy); background: linear-gradient(135deg, #f4fbfa, #fff); box-shadow: inset 0 3px 0 var(--teal); }
.macro-progress li.active > span { color: white; background: var(--teal); }
.macro-assistant-form { margin-top: 14px; }
.macro-assistant-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: start; gap: 16px; }
.macro-form-column { min-width: 0; display: grid; gap: 14px; }
.macro-section { padding: 24px; }
.macro-section-heading { margin-bottom: 20px; display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 12px; }
.macro-section-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--teal-dark); background: #e1f2ef; font-size: 12px; font-weight: 900; }
.macro-section-heading h2 { margin: 2px 0 5px; font-size: 20px; letter-spacing: -.025em; }
.macro-section-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.macro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.macro-grid-project { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.macro-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.macro-grid .field { align-content: start; }
.macro-grid .field > label { min-height: 15px; display: flex; align-items: end; }
.macro-grid .field small { line-height: 1.45; }
.macro-grid .field > label { font-size: 12px; }
.macro-grid .field small { font-size: 10px; }
.macro-layout-field { grid-column: 1 / -1; }
.macro-plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); align-items: stretch; gap: 20px; }
.macro-plan-figure { min-height: 235px; margin: 0; padding: 13px; display: grid; place-items: center; align-content: center; border: 1px solid #c8dade; border-radius: 14px; background: linear-gradient(145deg, #f9fcfc, #eff6f6); }
.macro-plan-figure svg { width: 100%; max-width: 330px; height: auto; }
.macro-plan-figure [hidden], .macro-house-visual [hidden] { display: none; }
.macro-plan-figure text { fill: #53727b; font: 750 7px/1 sans-serif; text-anchor: middle; letter-spacing: .025em; }
.macro-plan-figure .plan-circulation-label { font-size: 5.5px; fill: #0e887e; }
.macro-plan-figure figcaption { max-width: 310px; color: #687f89; font-size: 10px; line-height: 1.5; text-align: center; }
.macro-plan-figure figcaption strong { color: var(--navy); }
.macro-roof-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); gap: 20px; }
.macro-roof-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.macro-roof-card { min-height: 235px; padding: 14px; display: grid; grid-template-rows: 1fr auto; border: 1px solid #cadbdd; border-radius: 15px; background: linear-gradient(150deg, #fbfdfd, #f0f6f6); cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.macro-roof-card:hover { transform: translateY(-2px); border-color: #70bdb4; }
.macro-roof-card.selected { border: 2px solid #28a89b; background: linear-gradient(150deg, #f5fbfa, #e5f4f2); box-shadow: 0 10px 24px rgba(18, 104, 96, .1); }
.macro-roof-card > input { position: absolute; opacity: 0; pointer-events: none; }
.macro-roof-drawing { display: grid; place-items: center; }
.macro-roof-drawing svg { width: min(250px, 100%); height: auto; }
.macro-roof-drawing text { fill: #527078; font: 850 9px/1 sans-serif; text-anchor: middle; letter-spacing: .12em; }
.macro-roof-card > span:last-child { padding-top: 12px; border-top: 1px solid #c8dfdc; }
.macro-roof-card strong, .macro-roof-card small { display: block; }
.macro-roof-card strong { margin-bottom: 4px; color: var(--navy); font-size: 13px; }
.macro-roof-card small { color: #68808b; font-size: 10px; line-height: 1.4; }
.macro-roof-settings { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f9fbfb; }
.macro-checkbox { min-height: 54px; padding: 11px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfb; cursor: pointer; }
.macro-checkbox input { width: 17px; height: 17px; accent-color: var(--teal); }
.macro-checkbox strong, .macro-checkbox small { display: block; }
.macro-checkbox strong { margin-bottom: 2px; font-size: 12px; }
.macro-checkbox small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.macro-submit-panel { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #a7d4cf; background: linear-gradient(135deg, #f3faf9, #fff); }
.macro-submit-panel h2 { margin: 3px 0 5px; font-size: 17px; }
.macro-submit-panel p { margin: 0; color: var(--muted); font-size: 11px; }
.macro-submit-panel .button { flex: 0 0 auto; }
.macro-submit-panel .button:disabled { opacity: .48; cursor: not-allowed; }
.macro-preview-column { position: sticky; top: 18px; display: grid; gap: 14px; }
.macro-preview-card { overflow: hidden; padding: 22px; color: white; border-radius: 18px; background: radial-gradient(circle at 88% 9%, rgba(105, 211, 198, .22), transparent 30%), linear-gradient(145deg, #123e56, #071f34); box-shadow: 0 20px 45px rgba(16, 41, 58, .16); }
.macro-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.macro-preview-card .eyebrow { color: #9bb7c2; }
.macro-house-visual { height: 190px; display: grid; place-items: center; }
.macro-house-visual svg { width: 100%; max-width: 350px; height: auto; filter: drop-shadow(0 16px 15px rgba(0,0,0,.18)); }
.macro-primary-metric { display: flex; align-items: baseline; flex-wrap: wrap; }
.macro-primary-metric small { width: 100%; margin-bottom: 5px; color: #9db3bd; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.macro-primary-metric strong { font-size: clamp(35px, 4vw, 52px); line-height: 1; letter-spacing: -.06em; }
.macro-primary-metric > span { margin-left: 7px; color: #7ed5ca; font-size: 16px; font-weight: 800; }
.macro-preview-metrics { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.macro-preview-metrics div { padding: 10px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.055); }
.macro-preview-metrics small, .macro-preview-metrics strong { display: block; }
.macro-preview-metrics small { margin-bottom: 4px; color: #a9bdc5; font-size: 9px; }
.macro-preview-metrics strong { font-size: 12px; }
.macro-output-card { padding: 20px; }
.macro-output-card h3 { margin: 4px 0 13px; font-size: 15px; }
.macro-output-card ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.macro-output-card li { min-height: 68px; padding: 11px; display: flex; flex-direction: column; justify-content: center; color: #5e7480; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfb; font-size: 10px; line-height: 1.4; }
.macro-output-card li span { margin-bottom: 3px; color: var(--teal-dark); font-size: 17px; font-weight: 900; }
.macro-output-card p { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.macro-generated-section { margin-top: 30px; scroll-margin-top: 20px; }
.macro-generated-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.macro-generated-heading h2 { margin: 3px 0 5px; font-size: 26px; letter-spacing: -.04em; }
.macro-generated-heading p { margin: 0; color: var(--muted); font-size: 9px; }
.macro-generated-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); align-items: start; gap: 14px; }
.macro-chapter-list { padding: 0; overflow: hidden; }
.macro-chapter-list > .panel-heading { padding: 20px; margin: 0; }
.macro-chapter-list details { border-top: 1px solid var(--line); }
.macro-chapter-list summary { min-height: 58px; padding: 12px 18px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.macro-chapter-list summary::-webkit-details-marker { display: none; }
.macro-chapter-list summary > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--teal-dark); background: #e4f3f1; font-size: 8px; font-weight: 900; }
.macro-chapter-list summary strong { font-size: 10px; }
.macro-chapter-list summary small { color: var(--muted); font-size: 8px; }
.macro-chapter-list details > div { padding: 0 18px 12px 62px; }
.macro-chapter-list article { min-height: 39px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 9px; border-top: 1px solid #edf1f2; }
.macro-chapter-list article > span { color: #8a9aa4; font-size: 7px; font-weight: 800; }
.macro-chapter-list article strong { font-size: 9px; font-weight: 700; }
.macro-chapter-list article em { color: var(--teal-dark); font-size: 8px; font-style: normal; font-weight: 800; }
.macro-warning-list { padding: 20px; }
.macro-warning-list h3 { margin: 4px 0 13px; font-size: 14px; }
.macro-warning-list > div { padding: 9px 0; display: grid; grid-template-columns: 22px 1fr; gap: 8px; border-top: 1px solid var(--line); }
.macro-warning-list > div > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: white; background: #c78b27; font-size: 8px; font-weight: 900; }
.macro-warning-list p { margin: 0; color: #6e7e89; font-size: 8px; line-height: 1.45; }

@media (max-width: 1100px) {
    .macro-assistant-layout { grid-template-columns: 1fr; }
    .macro-preview-column { position: static; grid-template-columns: 1.1fr .9fr; }
    .macro-generated-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .macro-mode-switch, .macro-progress { grid-template-columns: 1fr; }
    .macro-progress li { border-right: 0; border-bottom: 1px solid var(--line); }
    .macro-progress li:last-child { border-bottom: 0; }
    .macro-grid-project, .macro-grid-three, .macro-plan-layout, .macro-roof-layout, .macro-roof-options, .macro-preview-column { grid-template-columns: 1fr; }
    .macro-grid { grid-template-columns: 1fr; }
    .macro-submit-panel, .macro-generated-heading { align-items: stretch; flex-direction: column; }
    .macro-submit-panel .button { width: 100%; }
}
.budget-table-total { padding: 16px 21px; display: flex; align-items: center; justify-content: flex-end; gap: 35px; border-top: 1px solid var(--line); background: #f8fafb; text-align: right; }
.budget-table-total small, .budget-table-total em { display: block; }
.budget-table-total small { margin-bottom: 3px; color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.budget-table-total em { color: #a16f1f; font-size: 8px; font-style: normal; }
.budget-table-total > strong { min-width: 145px; color: var(--navy); font-size: 20px; }
.budget-workflow-bar { margin-top: 14px; padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.budget-workflow-bar h2 { margin: 0 0 5px; font-size: 17px; }
.budget-workflow-bar p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.budget-quick-result { padding: 24px; display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: center; gap: 28px; }
.budget-quick-result h2 { margin: 5px 0 7px; font-size: 18px; }
.budget-quick-result p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.budget-quick-result-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.budget-quick-result-lists strong { display: block; margin-bottom: 7px; font-size: 9px; }
.budget-quick-result-lists ul { margin: 0; padding-left: 15px; color: var(--muted); font-size: 8px; line-height: 1.65; }
.budget-result-placeholder { margin-top: 25px; min-height: 120px; padding: 25px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 1px dashed #b9cbc7; border-radius: 15px; color: #566d7d; background: rgba(255,255,255,.5); }
.budget-result-placeholder > span { width: 45px; height: 45px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: var(--teal-dark); background: #e5f4f1; font-size: 20px; font-weight: 850; }
.budget-result-placeholder strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: 12px; }
.budget-result-placeholder p { margin: 0; font-size: 9px; }

.login-layout { min-height: calc(100vh - 200px); display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 7vw; }
.login-copy h1 { max-width: 17ch; margin-bottom: 14px; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -0.05em; }
.login-copy p { color: var(--muted); line-height: 1.65; }
.login-panel { padding: 32px; }

.login-layout--network {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: calc(100vh - 72px);
    margin: 0;
    padding: 4rem 8vw;
}

.login-layout--network::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    content: "";
    background: url("../images/login/work-network.png") center / cover no-repeat;
}

.login-layout--network::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(248, 250, 249, 0.78) 0%, rgba(248, 250, 249, 0.5) 49%, rgba(248, 250, 249, 0.2) 100%);
}

.login-layout--network .login-copy {
    position: relative;
    z-index: 1;
    max-width: 660px;
    padding: 26px 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    background: rgba(250, 252, 251, 0.4);
    box-shadow: 0 16px 40px rgba(17, 43, 66, 0.06);
    backdrop-filter: blur(3px);
    animation: login-copy-enter 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.login-layout--network .login-panel {
    position: relative;
    z-index: 1;
    animation: login-panel-enter 760ms 100ms cubic-bezier(.2, .8, .2, 1) both;
}

.login-network-motion {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: none;
    pointer-events: none;
}

.network-contour { fill: none; stroke: rgba(36, 112, 130, 0.08); stroke-width: 82; stroke-linecap: round; }
.network-routes use { fill: none; stroke: rgba(20, 139, 132, 0.38); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 8; }
.network-secondary-route { fill: none; stroke: rgba(51, 105, 142, 0.18); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 9; }
.network-module rect { fill: rgba(255, 255, 255, 0.46); stroke: rgba(77, 141, 151, 0.2); stroke-width: 1.5; }
.network-module path { fill: none; stroke: rgba(45, 105, 124, 0.45); stroke-width: 5; stroke-linecap: round; }
.network-module circle { fill: rgba(24, 160, 151, 0.78); }
.network-mini-nodes circle { fill: rgba(43, 151, 145, 0.56); stroke: rgba(255, 255, 255, 0.86); stroke-width: 2; }
.network-team { fill: #5f8794; stroke: rgba(255, 255, 255, 0.88); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform-box: fill-box; transform-origin: center; }
.team-origin { transform: translate(964px, 340px); animation: network-team-origin 7.2s ease-in-out infinite; }
.team-top { transform: translate(1298px, 190px); animation: network-team-top 7.2s ease-in-out infinite; }
.team-bottom { transform: translate(1220px, 530px); animation: network-team-bottom 7.2s 2.4s ease-in-out infinite; }
.team-destination { transform: translate(1490px, 350px); animation: network-team-destination 7.2s 4.8s ease-in-out infinite; }
.team-small-one, .team-small-two { fill: #7aa5ac; }
.network-signal { fill: #1fa99e; stroke: rgba(255, 255, 255, 0.92); stroke-width: 1.5; }

@keyframes network-team-origin { 0%, 8%, 18%, 100% { fill: #5f8794; filter: none; } 10%, 15% { fill: #1caaa0; filter: url(#network-signal-glow); } }
@keyframes network-team-top { 0%, 76%, 96%, 100% { fill: #5f8794; filter: none; } 80%, 93% { fill: #1caaa0; filter: url(#network-signal-glow); } }
@keyframes network-team-bottom { 0%, 76%, 96%, 100% { fill: #5f8794; filter: none; } 80%, 93% { fill: #1caaa0; filter: url(#network-signal-glow); } }
@keyframes network-team-destination { 0%, 76%, 96%, 100% { fill: #5f8794; filter: none; } 80%, 95% { fill: #1caaa0; filter: url(#network-signal-glow); } }

@keyframes login-copy-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes login-panel-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .login-layout--network::before,
    .login-layout--network .login-copy,
    .login-layout--network .login-panel,
    .login-network-motion { animation: none; }
    .login-network-motion { display: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.logo-upload { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px; border: 1px dashed #b8cfd1; border-radius: 13px; background: #f8fbfb; }
.logo-preview { height: 76px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d5e4e5; border-radius: 9px; background: white; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-preview span { color: #8ca0a6; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.logo-upload p { margin: 0 0 7px; color: var(--navy); font-size: 9px; font-weight: 750; }
.logo-upload input[type="file"] { width: 100%; }
.logo-upload small { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.table-logo { width: 70px; text-align: center; }
.table-logo img { width: 58px; height: 28px; object-fit: contain; vertical-align: middle; }
.attachment-list { padding: 0 20px 18px; }
.attachment-list > div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.attachment-list a { color: var(--teal-dark); font-size: 10px; font-weight: 750; }

@media (max-width: 1050px) {
    .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .audit-filters .search-box { grid-column: 1 / -1; }
    .report-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .operations-list { grid-template-columns: 1fr; }
    .help-role-panel { grid-template-columns: 1fr; }
    .manual-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .minute-layout { grid-template-columns: 1fr; }
    .financial-grid { grid-template-columns: 1fr; }
    .assembly-overview { grid-template-columns: 1fr; }
    .budget-workspace { grid-template-columns: 1fr; }
    .budget-results-column { position: static; }
    .budget-geometry-layout, .budget-settings-grid { grid-template-columns: 1fr; }
    .budget-quick-result { grid-template-columns: 1fr; align-items: start; }
    .budget-settings-grid .budget-form-grid, .budget-geometry-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .budget-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blocker-panel { grid-template-columns: 1fr; gap: 14px; }
    .apply-panel { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .app-shell { display: block; }
    .sidebar { position: static; height: auto; padding: 14px; }
    .sidebar-brand { padding: 0 2px 12px; border: 0; }
    .sidebar-nav { padding: 0; display: flex; gap: 4px; overflow-x: auto; }
    .nav-item { min-width: 48px; padding: 9px 7px; display: flex; justify-content: center; }
    .nav-item > span:not(.nav-icon), .nav-item small { display: none; }
    .nav-icon { font-size: 18px; }
    .sidebar-progress, .user-card { display: none; }
    .main-content { padding: 20px 15px 35px; }
    .welcome-panel { padding: 25px; align-items: flex-start; flex-direction: column; }
    .registry-heading, .registry-toolbar { align-items: stretch; flex-direction: column; }
    .registry-toolbar .search-box { flex-basis: auto; }
    .table-summary span { display: none; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .heading-actions { width: 100%; justify-content: flex-start; }
    .record-index { position: static; width: 100%; }
    .record-section-heading { align-items: start; flex-direction: column; gap: 5px; }
    .record-section-heading > p { text-align: left; }
    .upload-layout { grid-template-columns: 1fr; }
    .pdf-viewer { height: 440px; }
    .version-item { align-items: start; grid-template-columns: auto 1fr; }
    .version-item .row-actions { grid-column: 2; }
    .financial-next-step { align-items: flex-start; flex-direction: column; }
    .report-security { align-items: flex-start; flex-direction: column; }
    .manual-heading, .help-security { align-items: flex-start; flex-direction: column; }
    .audit-title { align-items: flex-start; flex-direction: column; gap: 4px; }
    .totals-strip { align-items: flex-start; flex-direction: column; }
    .amount-total-list { justify-content: flex-start; }
    .form-grid, .login-layout, .app-grid, .demo-config-grid, .demo-activity-grid, .event-detail-grid, .event-severity-grid { grid-template-columns: 1fr; }
    .demo-safety-panel, .quant-focus-panel, .event-method-panel { align-items: flex-start; flex-direction: column; }
    .event-method-panel dl { width: 100%; min-width: 0; }
    .budget-settings-grid .budget-form-grid, .budget-geometry-preview { grid-template-columns: 1fr; }
    .budget-quick-result-lists { grid-template-columns: 1fr; }
    .budget-heading { align-items: flex-start; flex-direction: column; }
    .budget-template-state { justify-items: start; }
    .budget-detail-heading, .budget-calculate-bar, .budget-workflow-bar { align-items: flex-start; flex-direction: column; }
    .budget-system-grid, .budget-geometry-fields { grid-template-columns: 1fr; }
    .budget-formula { max-width: none; }
    .budget-actions { width: 100%; justify-content: flex-start; }
    .wide-field { grid-column: auto; }
    .logo-upload { grid-template-columns: 1fr; }
    .review-intro { align-items: stretch; flex-direction: column; }
    .review-grid { grid-template-columns: 1fr; gap: 6px; }
    .review-grid-heading { display: none; }
}

@media (max-width: 540px) {
    .audit-filters { grid-template-columns: 1fr; }
    .audit-filters .search-box { grid-column: auto; }
    .metric-grid { grid-template-columns: 1fr; }
    .budget-mode-switch, .budget-summary-grid { grid-template-columns: 1fr; }
    .secure-pill { display: none; }
    .page-shell { padding: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

/* Analizador refinado de muro */
.wall-pilot-heading p { max-width: 800px; }
.wall-pilot-shell { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.wall-pilot-main { min-width: 0; display: grid; gap: 14px; }
.wall-pilot-sidebar { position: sticky; top: 18px; }
.wall-pilot-panel { padding: 24px; }
.wall-pilot-chip { padding: 8px 11px; color: #0a665f; border: 1px solid #b9ddd8; border-radius: 999px; background: #eaf6f4; font-size: 8px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.wall-pilot-geometry { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: stretch; }
.wall-pilot-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.wall-pilot-fields.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wall-pilot-fields .field { align-content: start; }
.wall-pilot-diagram { min-height: 280px; margin: 0; padding: 14px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid #c9d9de; border-radius: 16px; background: linear-gradient(150deg, #fbfdfd, #eef5f5); }
.wall-pilot-diagram svg { width: 100%; max-width: 410px; height: auto; }
.wall-pilot-diagram svg text { fill: #5d7785; font: 800 8px/1 sans-serif; letter-spacing: .05em; }
.wall-pilot-diagram .pilot-level { stroke: #78929c; stroke-width: 1; stroke-dasharray: 4 4; }
.wall-pilot-diagram .pilot-level.accent { stroke: #b07a28; stroke-width: 2; }
.wall-pilot-diagram .pilot-rebar { stroke: #b06d2a; stroke-width: 2.2; opacity: .78; }
.wall-pilot-diagram .pilot-beam { fill: none; stroke: #0f7775; stroke-width: 7; }
.wall-pilot-diagram figcaption { width: 100%; padding-top: 8px; display: grid; gap: 2px; border-top: 1px solid #dbe6e9; text-align: center; }
.wall-pilot-diagram figcaption strong { font-size: 9px; }
.wall-pilot-diagram figcaption span { color: var(--muted); font-size: 8px; line-height: 1.4; }
.wall-opening-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wall-opening-card { padding: 16px; border: 1px solid #d6e2e5; border-radius: 14px; background: #fbfdfd; transition: opacity .2s, background .2s; }
.wall-opening-card.is-disabled { opacity: .55; background: #f1f4f5; }
.wall-opening-card > header { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.wall-opening-card > header label { font-size: 11px; font-weight: 850; }
.wall-opening-card > header span { margin-left: auto; padding: 4px 6px; color: #8a6528; border-radius: 6px; background: #f7ecd8; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.compact-grid .field label { font-size: 8px; }
.wall-pilot-accordion { display: grid; grid-template-columns: 1fr; gap: 12px; }
.wall-spec-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.wall-spec-grid article { padding: 13px; border: 1px solid #dce7e9; border-radius: 11px; background: #f8fbfb; }
.wall-spec-grid small, .wall-spec-grid strong, .wall-spec-grid span { display: block; }
.wall-spec-grid small { color: #7e909a; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.wall-spec-grid strong { margin: 5px 0; font-size: 10px; }
.wall-spec-grid span { color: var(--muted); font-size: 8px; line-height: 1.35; }
.wall-face-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wall-face-columns > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.wall-live-summary { padding: 20px; color: white; border-color: #153e51; background: linear-gradient(145deg, #123e57, #09283c); }
.wall-live-summary h2 { margin: 5px 0 17px; font-size: 17px; }
.wall-live-summary dl { margin: 0; display: grid; }
.wall-live-summary dl div { padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.11); }
.wall-live-summary dt { color: #9fc2ca; font-size: 8px; text-transform: uppercase; }
.wall-live-summary dd { margin: 0; font-size: 9px; font-weight: 750; text-align: right; }
.wall-live-summary > p { color: #aac4cc; font-size: 9px; line-height: 1.55; }
.wall-live-total { margin-top: 16px; padding: 14px; border-radius: 11px; background: rgba(255,255,255,.09); }
.wall-live-total small, .wall-live-total strong, .wall-live-total span { display: block; }
.wall-live-total small { color: #a9c6cd; font-size: 7px; text-transform: uppercase; }
.wall-live-total strong { margin: 6px 0 3px; font-size: 20px; }
.wall-live-total span { color: #a9c6cd; font-size: 8px; }
.wall-result-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 14px; align-items: start; }
.wall-warning-panel { overflow: hidden; }
.wall-warning-count { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #8a5b1c; background: #f6e7cc; font-weight: 850; }
.wall-warning-list { padding: 0 20px 20px; display: grid; gap: 8px; }
.wall-warning-list article { padding: 11px; display: grid; grid-template-columns: 24px 1fr; gap: 9px; border: 1px solid #e3e8e9; border-radius: 10px; }
.wall-warning-list article > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #eef4f5; font-size: 8px; font-weight: 850; }
.wall-warning-list strong { font-size: 8px; }
.wall-warning-list p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.wall-warning-list .severity-review { border-color: #ead4b3; background: #fffaf1; }

@media (max-width: 1100px) {
    .wall-pilot-shell { grid-template-columns: 1fr; }
    .wall-pilot-sidebar { position: static; }
    .wall-live-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
    .wall-pilot-geometry, .wall-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .wall-opening-grid, .wall-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wall-pilot-fields.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wall-face-columns { grid-template-columns: 1fr; }
    .wall-face-columns > div + div { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
    .wall-opening-grid, .wall-spec-grid, .wall-pilot-fields, .wall-pilot-fields.four, .compact-grid { grid-template-columns: 1fr; }
    .wall-live-summary dl { grid-template-columns: 1fr; }
}

/* Oficina SICOP */
.sicop-hero {
    position: relative;
    min-height: 220px;
    margin-bottom: 18px;
    padding: clamp(28px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: 34px;
    overflow: hidden;
    color: white;
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 15%, rgba(76, 205, 190, .22), transparent 27%),
        radial-gradient(circle at 100% 100%, rgba(43, 151, 169, .2), transparent 32%),
        linear-gradient(125deg, #123b56, #0a263e 72%);
    box-shadow: 0 20px 45px rgba(15, 43, 64, .16);
}
.sicop-hero::after { content: ""; position: absolute; right: -75px; bottom: -120px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.sicop-hero-copy { position: relative; z-index: 1; }
.sicop-kicker { margin-bottom: 13px; display: inline-flex; align-items: center; gap: 8px; color: #81d8cd; font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.sicop-kicker > span { font-size: 7px; }
.sicop-hero h1 { max-width: 780px; margin: 0 0 13px; font-size: clamp(35px, 5vw, 58px); line-height: 1; letter-spacing: -.052em; }
.sicop-hero p { max-width: 680px; margin: 0; color: #bfd0da; font-size: 13px; line-height: 1.6; }
.sicop-source-card { position: relative; z-index: 1; min-width: 0; padding: 17px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; background: rgba(255,255,255,.075); backdrop-filter: blur(8px); }
.sicop-source-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #d8fff9; border-radius: 12px; background: rgba(39,181,164,.22); font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.sicop-source-card small, .sicop-source-card strong, .sicop-source-card span { display: block; }
.sicop-source-card small { margin-bottom: 3px; color: #8fb3c1; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sicop-source-card strong { font-size: 13px; }
.sicop-source-card div > span { margin-top: 3px; color: #aac3ce; font-size: 9px; line-height: 1.35; }
.sicop-source-card i { width: 9px; height: 9px; border-radius: 50%; background: #4ed4a8; box-shadow: 0 0 0 5px rgba(78,212,168,.12); }

.sicop-metrics { max-width: 690px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sicop-metric-card { min-height: 112px; display: grid; grid-template-columns: 43px 1fr; align-items: center; gap: 15px; box-shadow: 0 10px 28px rgba(23, 47, 65, .06); }
.sicop-metric-card::before { height: 4px; }
.sicop-metric-icon { width: 43px; height: 43px; display: grid !important; place-items: center; color: #117466 !important; border-radius: 13px; background: #e5f5f0; font-size: 13px !important; font-weight: 900 !important; }
.sicop-metric-icon.hierarchy { color: #356e9e !important; background: #e9f1f8; }
.sicop-metric-card strong { margin: 4px 0 2px; font-size: 27px; }

.sicop-catalog-panel { margin-top: 24px; }
.sicop-catalog-panel .registry-heading { align-items: center; }
.sicop-catalog-panel .registry-heading h2 { margin: 3px 0 5px; font-size: 21px; }
.sicop-catalog-panel .registry-heading p { color: var(--muted); font-size: 10px; }
.sicop-actions { align-items: center; }
.sicop-action { gap: 8px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.sicop-action > span { font-size: 16px; font-weight: 500; line-height: 1; }
.sicop-action:hover { transform: translateY(-1px); }
.sicop-action.button.secondary:hover { color: var(--teal-dark); border-color: #9bc9c4; background: #f5fbfa; box-shadow: 0 7px 18px rgba(22, 72, 74, .08); }
.sicop-toolbar { background: #fbfcfd; }
.sicop-search { max-width: 720px; background: white; }
.sicop-search-icon { position: relative; width: 15px; height: 15px; flex: 0 0 auto; border: 1.8px solid #6d8290; border-radius: 50%; }
.sicop-search-icon::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 6px; height: 2px; border-radius: 2px; background: #6d8290; transform: rotate(45deg); }
.sicop-search-button { min-width: 92px; }
.sicop-code { padding: 5px 7px; color: #315a70; border-radius: 6px; background: #edf4f6; font-size: 9px; font-weight: 750; }
.sicop-code-copy { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.sicop-copy-button { width: 27px; height: 27px; padding: 0; display: inline-grid; place-items: center; flex: 0 0 auto; color: #627785; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.sicop-copy-button:hover, .sicop-copy-button:focus-visible { color: var(--teal-dark); border-color: #b8d9d5; background: #eff8f6; outline: 0; }
.sicop-copy-button.copied { color: #197254; background: #e5f5ee; }
.sicop-copy-icon { position: relative; width: 11px; height: 12px; display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.sicop-copy-icon::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; background: white; }
.sicop-copy-button.copied .sicop-copy-icon::before { content: "✓"; inset: -3px auto auto -3px; width: 14px; height: 14px; display: grid; place-items: center; color: white; border: 0; border-radius: 50%; background: #24936d; font-size: 9px; }
.sicop-view-link { white-space: nowrap; }
.sicop-view-link span { margin-left: 3px; transition: margin .15s ease; }
.sicop-view-link:hover span { margin-left: 7px; }
.sicop-empty { max-width: 540px; margin: 0 auto; padding: 18px; display: grid; justify-items: center; }
.sicop-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #178d83; border: 1px solid #cbe5e1; border-radius: 15px; background: #ecf8f5; font-size: 20px; }
.sicop-empty h3 { margin: 13px 0 6px; color: var(--navy); font-size: 15px; }
.sicop-empty p { max-width: 430px; margin: 0 0 17px; color: var(--muted); font-size: 10px; line-height: 1.55; }

/* Componentes compartidos por las pantallas secundarias de SICOP. */
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.form-grid > .button-row { grid-column: 1 / -1; justify-content: flex-end; }
.primary-button, .secondary-button, .danger-button { min-height: 42px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; font-family: inherit; font-weight: 740; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease; }
.primary-button { color: white; background: var(--teal); box-shadow: 0 7px 16px rgba(15,139,131,.18); }
.primary-button:hover { transform: translateY(-1px); background: var(--teal-dark); box-shadow: 0 9px 20px rgba(15,139,131,.22); }
.secondary-button { color: #395067; border-color: var(--line); background: white; }
.secondary-button:hover { transform: translateY(-1px); color: var(--teal-dark); border-color: #9bc9c4; background: #f5fbfa; box-shadow: 0 7px 18px rgba(22,72,74,.08); }
.danger-button { color: white; background: var(--danger); }
.danger-button:hover { transform: translateY(-1px); filter: brightness(.93); }
.stats-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(23,47,65,.05); }
.stat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--teal); }
.stat-card span, .stat-card strong { display: block; }
.stat-card span { color: var(--muted); font-size: 10px; font-weight: 700; }
.stat-card strong { margin-top: 8px; color: var(--navy); font-size: 28px; letter-spacing: -.04em; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: #247456; background: #e6f5ee; font-size: 9px; font-weight: 800; }
.text-link { color: var(--teal-dark); font-size: 10px; font-weight: 780; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.search-form { margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.search-form input { min-height: 42px; padding: 9px 12px; flex: 1 1 420px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; }

@media (max-width: 900px) {
    .sicop-hero { grid-template-columns: 1fr; }
    .sicop-source-card { max-width: 390px; }
}
@media (max-width: 780px) {
    .sicop-hero { min-height: 0; padding: 28px 24px; }
    .sicop-metrics, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sicop-actions { width: 100%; }
    .sicop-actions .button { flex: 1 1 auto; }
    .sicop-toolbar { align-items: stretch; }
    .sicop-search { max-width: none; }
}
@media (max-width: 540px) {
    .sicop-metrics, .stats-grid { grid-template-columns: 1fr; }
    .sicop-source-card { grid-template-columns: 40px minmax(0, 1fr); }
    .sicop-source-card i { display: none; }
    .sicop-toolbar .button { width: 100%; }
}

/* Ficha visual de producto SICOP */
.sicop-product-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.sicop-product-heading h1 { max-width: 850px; margin: 4px 0 12px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.sicop-kicker.light { color: #668090; }
.sicop-product-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.sicop-product-meta code { padding: 5px 8px; color: #315a70; border-radius: 7px; background: #e9f1f4; font-weight: 750; }
.sicop-product-actions { flex: 0 0 auto; padding-bottom: 3px; }
.sicop-product-actions form { margin: 0; }

.sicop-product-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .72fr); gap: 16px; align-items: start; }
.sicop-product-main { min-width: 0; display: grid; gap: 16px; }
.sicop-product-sidebar { min-width: 0; display: grid; gap: 16px; position: sticky; top: 18px; }
.sicop-media-panel, .sicop-info-card { min-width: 0; padding: 0; overflow: hidden; }
.sicop-panel-heading { min-height: 78px; padding: 19px 20px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.sicop-panel-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 19px; letter-spacing: -.025em; }

.sicop-photo-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sicop-photo-grid.single { grid-template-columns: 1fr; }
.sicop-photo-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #dce6e9; border-radius: 15px; background: #f4f7f8; }
.sicop-photo-card > a { min-height: 260px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #edf3f4, #f9fbfb); }
.sicop-photo-grid.single .sicop-photo-card > a { min-height: 0; aspect-ratio: 16 / 9; }
.sicop-photo-card img { width: 100%; height: 100%; max-height: 440px; display: block; object-fit: contain; object-position: center; transition: filter .2s ease; }
.sicop-photo-grid.single .sicop-photo-card img { max-height: none; padding: 10px; object-fit: contain; object-position: center; }
.sicop-photo-card > a:hover img { filter: brightness(.985); }
.sicop-photo-card figcaption { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #dce6e9; background: white; }
.sicop-photo-card figcaption span, .sicop-photo-card figcaption strong, .sicop-photo-card figcaption small { min-width: 0; display: block; }
.sicop-photo-card figcaption strong { overflow: hidden; color: var(--navy); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sicop-photo-card figcaption small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.sicop-photo-card figcaption a { flex: 0 0 auto; color: var(--teal-dark); font-size: 9px; font-weight: 800; text-decoration: none; }
.sicop-photo-card figcaption a:hover { text-decoration: underline; }

.sicop-pdf-list { padding: 16px; display: grid; gap: 14px; }
.sicop-pdf-card { overflow: hidden; border: 1px solid #d9e3e6; border-radius: 14px; background: #f4f7f8; }
.sicop-pdf-card > header { padding: 12px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid #d9e3e6; background: white; }
.sicop-pdf-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #a1463e; border-radius: 11px; background: #fbe8e5; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.sicop-pdf-card header strong, .sicop-pdf-card header small { min-width: 0; display: block; }
.sicop-pdf-card header strong { overflow: hidden; color: var(--navy); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.sicop-pdf-card header small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.sicop-pdf-card iframe { width: 100%; height: 540px; display: block; border: 0; background: #e9edef; }
.sicop-media-empty { min-height: 170px; margin: 16px; padding: 25px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); border: 1px dashed #bfd0d3; border-radius: 14px; background: #fafcfc; }
.sicop-media-empty > span { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: #40847f; border-radius: 12px; background: #e5f4f1; font-size: 9px; font-weight: 900; }
.sicop-media-empty strong { color: var(--navy); font-size: 11px; }
.sicop-media-empty p { margin: 4px 0 0; font-size: 9px; line-height: 1.45; }
.sicop-attachment-list { margin: 0 16px 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.sicop-attachment-list h3 { margin: 0 0 8px; font-size: 11px; }
.sicop-attachment-list a { padding: 10px; display: flex; justify-content: space-between; color: var(--navy); border-radius: 9px; background: #f6f8f9; font-size: 9px; text-decoration: none; }
.sicop-attachment-list small { color: var(--muted); }

.sicop-info-list { margin: 0; padding: 5px 20px; display: grid; }
.sicop-info-list > div { padding: 13px 0; display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr); align-items: start; gap: 13px; border-bottom: 1px solid #edf1f3; }
.sicop-info-list > div:last-child { border-bottom: 0; }
.sicop-info-list dt { color: #7b8c97; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.sicop-info-list dd { margin: 0; color: var(--navy); font-size: 10px; font-weight: 720; text-align: right; overflow-wrap: anywhere; }
.sicop-info-list dd code { padding: 4px 6px; color: #315a70; border-radius: 6px; background: #edf4f6; font-size: 9px; }
.sicop-info-list dd small { margin-top: 6px; display: block; color: var(--muted); font-size: 8px; font-weight: 500; }
.sicop-info-section { margin: 0 20px; padding: 15px 0; border-top: 1px solid #edf1f3; }
.sicop-info-section > span { display: block; color: #7b8c97; font-size: 8px; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.sicop-info-section > p { margin: 8px 0 0; color: #4f6271; font-size: 10px; line-height: 1.55; }
.sicop-tags { margin-top: 9px; }
.sicop-tags small { color: var(--muted); font-size: 9px; }
.sicop-archive-card { padding: 17px; display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: start; gap: 11px; border-color: #ead5d1; background: linear-gradient(145deg, #fff, #fff9f8); }
.sicop-archive-icon { width: 35px; height: 35px; display: grid; place-items: center; color: #a54b42; border-radius: 10px; background: #fae9e6; font-weight: 900; }
.sicop-archive-card h2 { margin: 1px 0 5px; font-size: 13px; }
.sicop-archive-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.sicop-archive-card form { grid-column: 2; margin-top: 3px; }
.sicop-archive-card .button { min-height: 36px; padding: 8px 12px; font-size: 9px; }

@media (max-width: 1080px) {
    .sicop-product-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .sicop-product-layout { grid-template-columns: 1fr; }
    .sicop-product-sidebar { position: static; grid-row: 1; }
}
@media (max-width: 700px) {
    .sicop-product-actions { width: 100%; }
    .sicop-product-actions > *, .sicop-product-actions .button { flex: 1 1 auto; }
    .sicop-photo-grid { grid-template-columns: 1fr; }
    .sicop-photo-grid.single .sicop-photo-card > a { min-height: 0; aspect-ratio: 4 / 3; }
    .sicop-photo-card > a { min-height: 260px; }
    .sicop-pdf-card > header { grid-template-columns: 42px minmax(0, 1fr); }
    .sicop-pdf-card header .heading-actions { grid-column: 1 / -1; }
    .sicop-pdf-card iframe { height: 420px; }
}

/* Sistema visual compartido de formularios y operaciones SICOP */
.sicop-workspace-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.sicop-workspace-heading h1 { max-width: 850px; margin: 4px 0 10px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.sicop-workspace-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sicop-workspace-heading p code { padding: 4px 7px; color: #315a70; border-radius: 6px; background: #e9f1f4; font-size: 10px; }
.sicop-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .36fr); gap: 16px; align-items: start; }
.sicop-form-card { max-width: none; padding: 0; overflow: hidden; }
.sicop-form-card-heading { padding: 22px 24px 19px; display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #fff, #fbfdfd); }
.sicop-form-mark { width: 45px; height: 45px; display: grid; place-items: center; color: #137970; border-radius: 13px; background: #e4f4f0; font-size: 11px; font-weight: 900; letter-spacing: .03em; }
.sicop-form-card-heading h2 { margin: 3px 0 4px; color: var(--navy); font-size: 19px; letter-spacing: -.025em; }
.sicop-form-card-heading p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.sicop-form-body { padding: 24px; }
.sicop-form-grid { gap: 20px 16px; }
.sicop-form-grid .field label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 10px; }
.sicop-form-grid .field input, .sicop-form-grid .field select, .sicop-form-grid .field textarea { min-height: 46px; border-color: #cedbe1; border-radius: 10px; background: white; font-size: 11px; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.sicop-form-grid .field textarea { min-height: 120px; }
.sicop-form-grid #id_code16 { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .025em; }
.sicop-form-grid .field input:hover, .sicop-form-grid .field select:hover, .sicop-form-grid .field textarea:hover { border-color: #aebfc7; }
.sicop-required { padding: 3px 6px; color: #55707e; border-radius: 99px; background: #edf3f5; font-size: 7px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.sicop-form-actions { margin-top: 25px; }
.sicop-form-alert { margin-bottom: 18px; padding: 12px 14px; display: grid; gap: 4px; color: #99463e; border: 1px solid #ebc9c4; border-radius: 10px; background: #fff4f2; font-size: 9px; font-weight: 700; }
.sicop-file-field input[type="file"] { padding: 8px; color: var(--muted); background: #f8fbfb; cursor: pointer; }
.sicop-file-field input[type="file"]::file-selector-button { min-height: 31px; margin-right: 11px; padding: 7px 11px; color: #176c67; border: 1px solid #b8d8d4; border-radius: 7px; background: #eaf6f3; font-family: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.sicop-form-guide { position: sticky; top: 18px; padding: 23px; border-color: #c6ded9; background: linear-gradient(155deg, #f3fbf9, #fff 72%); }
.sicop-guide-icon { width: 45px; height: 45px; margin-bottom: 18px; display: grid; place-items: center; color: #176f69; border-radius: 13px; background: #dff2ed; font-size: 10px; font-weight: 900; }
.sicop-form-guide h2 { margin: 5px 0 8px; color: var(--navy); font-size: 17px; line-height: 1.2; letter-spacing: -.025em; }
.sicop-form-guide > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.sicop-form-guide ul { margin: 20px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.sicop-form-guide li { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 9px; color: #49616e; font-size: 9px; line-height: 1.45; }
.sicop-form-guide li > span { width: 24px; height: 24px; display: grid; place-items: center; color: #16746b; border-radius: 8px; background: #e3f3ef; font-size: 8px; font-weight: 900; }

.sicop-file-cell { min-width: 250px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 10px; }
.sicop-file-cell > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; color: #1b776e; border-radius: 10px; background: #e6f4f1; font-size: 8px; font-weight: 900; }
.sicop-file-cell strong, .sicop-file-cell small { display: block; }
.sicop-file-cell strong { color: var(--navy); font-size: 10px; }
.sicop-file-cell small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.sicop-file-cell code { font-size: 8px; }
.sicop-batch-heading h1 { max-width: 760px; overflow-wrap: anywhere; font-size: clamp(28px, 3.5vw, 43px); }
.sicop-batch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.sicop-batch-meta code { padding: 6px 8px; color: #536b79; border-radius: 7px; background: #eaf0f3; font-size: 8px; }
.sicop-batch-metrics { margin-bottom: 18px; }
.sicop-exception-panel { margin-bottom: 16px; display: grid; grid-template-columns: 38px 1fr; gap: 13px; color: #713f39; border-color: #ebc9c3; background: #fff8f7; }
.sicop-exception-panel > span { width: 38px; height: 38px; display: grid; place-items: center; color: #aa4f45; border-radius: 11px; background: #f9e5e2; font-weight: 900; }
.sicop-exception-panel h2 { margin: 3px 0 8px; font-size: 16px; }
.sicop-exception-panel ul { margin: 0; padding-left: 17px; font-size: 9px; line-height: 1.55; }
.sicop-import-preview { margin-bottom: 16px; }
.sicop-valid-row { display: inline-flex; align-items: center; gap: 5px; color: #267358; font-size: 9px; font-weight: 750; }
.sicop-valid-row > span { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #e4f4ed; font-size: 8px; }
.sicop-apply-panel { padding: 0; overflow: hidden; border-color: #b9d9d2; }
.sicop-apply-copy { padding: 22px 24px; display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 14px; border-bottom: 1px solid #d4e5e1; background: linear-gradient(145deg, #eff9f6, #fff); }
.sicop-apply-copy .sicop-guide-icon { margin: 0; }
.sicop-apply-copy h2 { margin: 3px 0 5px; font-size: 18px; }
.sicop-apply-copy p { margin: 0; color: var(--muted); font-size: 9px; }

@media (max-width: 960px) {
    .sicop-form-layout { grid-template-columns: 1fr; }
    .sicop-form-guide { position: static; }
}
@media (max-width: 700px) {
    .sicop-workspace-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
    .sicop-workspace-heading > .button { width: 100%; }
    .sicop-form-body, .sicop-form-card-heading { padding-left: 18px; padding-right: 18px; }
    .sicop-form-actions { align-items: stretch; flex-direction: column-reverse; }
    .sicop-form-actions .button { width: 100%; }
    .sicop-batch-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
