:root {
  --bg: #eef2f6; --card: #fff; --ink: #0f172a; --muted: #5b6b80; --line: #d8e0ea; --brand: #0b2239;
  --accent: #2563eb; --ok: #16a34a; --warn: #d97706; --err: #dc2626; --pink: #db2777;
  --radius: 8px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 6px; }
button:hover { filter: brightness(1.08); }
button.ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .35); }
button.light { background: #fff; color: var(--accent); }
button.small { padding: 3px 8px; font-size: 12px; }
button.ok { background: var(--ok); border-color: var(--ok); }
button.err { background: var(--err); border-color: var(--err); }
button.mute { background: #fff; color: var(--muted); border-color: var(--line); }
input, select, textarea { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fff; color: var(--ink); }
textarea { width: 100%; min-height: 90px; resize: vertical; }
label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 15px; }
h3 { font-size: 13px; }
small, .muted { color: var(--muted); }

header#top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 8px 16px; background: var(--brand); color: #e2e8f0; }
.brand { color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .3px; }
.brand span { font-weight: 400; color: #93c5fd; margin-left: 6px; font-size: 13px; }
nav { display: flex; gap: 4px; }
nav a { color: #cbd5e1; padding: 6px 10px; border-radius: 6px; }
nav a.active, nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.spacer { flex: 1; }
.shot { background: #1e3a5f; padding: 3px 8px; border-radius: 12px; font-size: 12px; }
.me { font-weight: 600; color: #fff; }

main { padding: 14px 16px 40px; max-width: 1900px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; min-width: 0; }
.card > header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }

/* вход */
.login { max-width: 380px; margin: 12vh auto; }
.login h1 { font-size: 20px; margin-bottom: 4px; }
.login form { display: grid; gap: 10px; margin-top: 14px; }
.login .code { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; font-size: 18px; width: 120px; }

/* поле */
.wells-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.wells-table th { position: sticky; top: 0; background: #f8fafc; text-align: right; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; user-select: none; }
.wells-table th:first-child, .wells-table td:first-child { text-align: left; }
.wells-table td { text-align: right; padding: 5px 8px; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.wells-table tr { cursor: pointer; }
.wells-table tbody tr:hover { background: #f1f5ff; }
.wells-table .sorted { color: var(--ink); }
.table-scroll { max-height: calc(100vh - 170px); overflow: auto; }
.up { color: var(--ok); } .down { color: var(--err); }
.type { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.type.prod { background: var(--ok); } .type.inj { background: var(--accent); } .type.off { background: #9ca3af; }
.layers { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.layers label { display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; }

/* скважина */
.well-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.well-head h1 { font-size: 22px; }
.well-head select { font-weight: 600; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #e2e8f0; color: #334155; font-size: 11px; font-weight: 600; }
.badge.prod { background: #dcfce7; color: #166534; } .badge.inj { background: #dbeafe; color: #1e40af; }
.kpis { display: flex; gap: 8px; flex-wrap: wrap; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; min-width: 92px; }
.kpi small { display: block; font-size: 11px; }
.kpi b { font-size: 16px; font-variant-numeric: tabular-nums; }
.well-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 12px; margin-top: 12px; align-items: start; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px -4px 10px; }
.tabs button { background: none; color: var(--muted); border: none; border-bottom: 2px solid transparent; border-radius: 0; padding: 6px 10px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.side { position: sticky; top: 58px; max-height: calc(100vh - 70px); overflow: auto; }

/* графики */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { display: block; }
.lp-wrap { overflow-x: auto; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; user-select: none; }
.chart-legend span.off { opacity: .35; }
.chart-legend span.ev { cursor: default; }
.chart-legend i { width: 18px; height: 3px; display: inline-block; border-radius: 2px; }
.chart-legend b { width: 15px; height: 15px; border-radius: 3px; color: #fff; display: inline-grid; place-items: center; font-size: 10px; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(15, 23, 42, .92); color: #f8fafc; padding: 6px 9px; border-radius: 6px; font-size: 12px; line-height: 1.5; max-width: 340px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.tip small { color: #cbd5e1; }
.hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.wheel-hint { position: absolute; left: 50%; top: 45%; transform: translate(-50%, calc(-100% - 12px)); z-index: 6; pointer-events: none; background: rgba(15, 23, 42, .8); color: #fff; padding: 7px 14px; border-radius: 7px; font-size: 13px; opacity: 0; transition: opacity .25s; }
.wheel-hint.on { opacity: 1; }
.chart-legend span.muted { color: #94a3b8; cursor: default; }
.fmap canvas { cursor: grab; border-radius: 6px; }

/* заявки */
.claim { border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 6px; padding: 8px 10px; background: #fff; cursor: pointer; }
.claim:hover { background: #f8fbff; }
.claim.k-gtm { border-left-color: var(--pink); } .claim.k-interference { border-left-color: var(--accent); }
.claim.k-zkc { border-left-color: var(--err); } .claim.k-observation { border-left-color: var(--warn); }
.claim .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.claim .title { font-weight: 600; margin: 3px 0; }
.claim .text { color: #334155; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st { padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #e2e8f0; color: #334155; }
.st.accepted { background: #dcfce7; color: #166534; } .st.rejected { background: #fee2e2; color: #991b1b; }
.st.deferred { background: #fef3c7; color: #92400e; } .st.withdrawn { background: #f1f5f9; color: #94a3b8; }
.st.done { background: #e0e7ff; color: #3730a3; }
.ent { padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #fef3c7; color: #92400e; }
.ent.on { background: #dcfce7; color: #166534; }
.zgrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 1100px) { .zgrid { grid-template-columns: 1fr; } }
.zside { min-width: 0; overflow-x: auto; }
.zside h3 { margin: 6px 0 4px; font-size: 14px; }
.zt { font-size: 12px; } .zt td, .zt th { padding: 3px 6px; white-space: nowrap; }
.zt tr.tot td { font-weight: 700; border-top: 2px solid var(--line); }
.zt tr.core td { background: #fff7ed; color: #7c2d12; }
.zw th[data-sk] { cursor: pointer; user-select: none; } .zw th.asc::after { content: ' ▲'; } .zw th.desc::after { content: ' ▼'; }
.zw td.fl { white-space: normal; min-width: 180px; font-size: 11px; color: #92400e; }
.sat { padding: 0 6px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.sat.oil { background: #f3e8de; color: #7c2d12; } .sat.mixed { background: #fef3c7; color: #92400e; } .sat.water { background: #dbeafe; color: #1e40af; } .sat.none { background: #f1f5f9; color: #64748b; } .sat.inj { background: #cffafe; color: #155e75; }
.zrules { margin: 6px 2px 0; color: var(--muted); }
.mfix { font-size: 12px; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 2px 8px; cursor: help; }
.zt .lk { display: inline-block; width: 18px; height: 5px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.zlinks { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #f8fafc; }
.zl-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 13px; } .zl-row b { width: 26px; }
.zl-row label { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; } .zl-row small { color: var(--muted); }
label.inl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.chart-legend .zhint { flex-basis: 100%; font-size: 11px; color: #64748b; display: block; cursor: default; }
.chart-legend .zhint .zm { display: inline; cursor: pointer; padding: 0 6px; border-radius: 8px; border: 1px solid #cbd5e1; color: #334155; }
.chart-legend .zhint .zm.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.claim .exp { font-size: 12.5px; color: #334155; margin: 2px 0 3px; }
.warnline { margin: 4px 0 8px; padding: 6px 10px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 13px; }
.v { padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; color: #fff; }
.v.ok { background: var(--ok); } .v.warn { background: var(--warn); } .v.error { background: var(--err); } .v.unverifiable { background: #64748b; } .v.none { background: #cbd5e1; color: #475569; }
.kind-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kind-btns button { padding: 8px 4px; font-size: 12px; }
.selection { background: #eff6ff; border: 1px dashed var(--accent); border-radius: 6px; padding: 8px; }
.comments { display: grid; gap: 6px; }
.comment { background: #f8fafc; border-radius: 6px; padding: 6px 9px; }
.comment.llm { background: #faf5ff; border: 1px solid #e9d5ff; }
.comment .who { font-size: 11px; color: var(--muted); }
.flags { margin: 6px 0 0; padding-left: 18px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.facts-table th, .facts-table td { padding: 4px 6px; border-bottom: 1px solid #eef2f6; text-align: left; }
.facts-table th { color: var(--muted); font-weight: 600; background: #f8fafc; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; cursor: zoom-in; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.thumbs img { width: 100%; height: 96px; object-fit: contain; background: #fff; display: block; }
.thumbs figcaption { font-size: 11px; padding: 3px 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.form-grid .full { grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 10px; }
.list { display: grid; gap: 8px; }
.captain-well { display: grid; gap: 6px; }
.captain-well h3 { display: flex; gap: 8px; align-items: center; }

/* модальное окно, тост */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .45); display: grid; place-items: center; padding: 20px; }
.modal-box { position: relative; background: #fff; border-radius: 10px; width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: 18px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal-box.wide { width: min(1200px, 100%); }
.modal-x { position: absolute; right: 10px; top: 8px; background: none; border: none; color: var(--muted); font-size: 18px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; background: #0f172a; color: #fff; padding: 9px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.toast.err { background: #991b1b; }
.empty { color: var(--muted); padding: 16px; text-align: center; }
/* карта поля */
.field2 { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 12px; align-items: start; }
.field2 aside .table-scroll { max-height: calc(100vh - 170px); min-height: 300px; }
.maptools { flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { background: #fff; color: var(--muted); border: none; border-right: 1px solid var(--line); border-radius: 0; padding: 3px 10px; font-weight: 600; }
.seg button:last-child { border-right: none; }
.seg button.on { background: var(--accent); color: #fff; }
label.inl { display: flex; align-items: center; gap: 6px; }
label.inl select { padding: 2px 4px; }
.fmap .chart-wrap { height: calc(100vh - 190px); min-height: 520px; }
.fmap .tip { font-size: 11.5px; padding: 4px 8px; max-width: 260px; line-height: 1.4; }
.wells-table.compact th, .wells-table.compact td { padding: 4px 6px; font-size: 12px; }
.mapcard > .layers { margin: -2px 0 8px; }
.mdate { display: inline-flex; align-items: center; gap: 4px; }
.mdate input[type=range] { width: 210px; padding: 0; }
.mdate b { min-width: 58px; font-variant-numeric: tabular-nums; }
.wells-table th.cb, .wells-table td.cb { width: 24px; padding-left: 6px; padding-right: 0; text-align: center; }
/* сравнение */
.cmphead { flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 12px; padding: 1px 2px 1px 9px; font-weight: 600; }
.chip a { color: #5b21b6; }
.chip button { background: none; border: none; color: #7c3aed; padding: 0 6px; font-size: 15px; line-height: 1; }
.cmpchart .chart-wrap canvas { cursor: crosshair; }
.cmp-status { margin-bottom: 4px; }
/* интерпретации */
.thumbs figure { position: relative; }
.ib { position: absolute; top: 4px; right: 4px; background: #4f46e5; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ib.llm { background: #7c3aed; }
.lb-bar { display: flex; align-items: center; gap: 8px; margin: -4px 30px 8px 0; }
.ip { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ip.noimg { grid-template-columns: 1fr; }
.ip-img { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.ip-img img { display: block; width: 100%; height: auto; }
.ip-img svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ip-img svg [data-h] { stroke-width: 2; transition: opacity .15s; }
.ip-img svg .hot { stroke-width: 3.5; }
.ip.nohl .ip-img svg, .ip.nohl .ip-badge { display: none; }
.ip.focus .ip-img [data-h]:not(.hot) { opacity: .15; }
.ip-badge { position: absolute; transform: translate(-50%, -50%); width: 19px; height: 19px; border-radius: 50%; color: #fff; font: 700 11px system-ui; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); border: 1.5px solid #fff; }
.ip-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-top: 8px; color: #334155; }
.ip-legend span { display: inline-flex; align-items: center; gap: 5px; cursor: default; padding: 1px 4px; border-radius: 4px; }
.ip-legend span.hot { background: #eef2ff; }
.ip-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ip-toggle { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin-top: 6px; }
.ip-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-right: 26px; }
.ip-src { font-size: 11px; padding: 1px 8px; border-radius: 10px; background: #eef2ff; color: #4338ca; font-weight: 600; }
.ip-src.llm { background: #f5f3ff; color: #6d28d9; }
.sig { color: #6d28d9; font-weight: 600; }
.ip-sum { font-size: 14px; line-height: 1.55; background: #f8fafc; border-left: 3px solid #6366f1; padding: 8px 12px; border-radius: 4px; margin: 10px 0; }
.ip-right h4 { margin: 14px 0 5px; font-size: 13px; }
.ip-items, .ip-checks, .ip-recs, .ip-cav { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 3px; }
.ip-items li { padding: 4px 6px; border-radius: 4px; line-height: 1.45; }
.ip-items li:hover, .ip-items li.hot { background: #eef2ff; }
.ip-ref { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 9px; color: #fff; font: 700 10px system-ui; margin-right: 6px; padding: 0 4px; vertical-align: 1px; }
.ip-checks li { display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; }
.ip-checks b { width: 17px; height: 17px; border-radius: 9px; display: inline-grid; place-items: center; color: #fff; font-size: 10px; flex: none; margin-top: 1px; }
.ip-checks .ok b { background: var(--ok); } .ip-checks .warn b { background: var(--warn); } .ip-checks .info b { background: #64748b; } .ip-checks .error b { background: var(--err); }
.ip-recs li { padding-left: 16px; position: relative; } .ip-recs li::before { content: '›'; position: absolute; left: 4px; color: #6366f1; font-weight: 700; }
.ip-cav li { color: var(--muted); font-size: 12px; }
.ip-params td, .ip-params th { font-size: 12px; vertical-align: top; }
.ip-foot { margin-top: 12px; }
@media (max-width: 1000px) { .ip { grid-template-columns: 1fr; } }
/* планшет */
.lp-tools { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.lp-tools .seg button:disabled { opacity: .45; cursor: not-allowed; }
.lp-status { min-height: 22px; font-size: 12px; color: #334155; padding: 4px 2px; border-bottom: 1px dashed var(--line); }
.lp-status .g, .hint .g { color: #15803d; font-weight: 600; } .lp-status .r { color: #b91c1c; font-weight: 600; }
i.tri { display: inline-block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid; margin: 0 3px 0 6px; vertical-align: -1px; }
i.tri.g { border-left-color: #22c55e; } i.tri.r { border-left-color: #dc2626; }
@media (max-width: 1250px) { .field2, .well-grid, .grid2 { grid-template-columns: 1fr; } .side { position: static; max-height: none; } .fmap .chart-wrap { height: 70vh; } }
/* окно события: эффект ГТМ и разбор LLM */
.ev-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 30px; }
.ev-head h2 { margin-right: auto; }
.ev-llm { border-left: 3px solid #7c3aed; background: #f5f3ff; padding: 8px 12px; margin: 6px 0 10px; border-radius: 0 6px 6px 0; }
.ev-llm p { margin: 4px 0 0; white-space: pre-wrap; }
.facts-table.ef { width: auto; min-width: min(640px, 100%); }
.facts-table.ef td:not(:first-child), .facts-table.ef th:not(:first-child) { text-align: right; white-space: nowrap; }
.facts-table.ef th small { font-weight: 400; color: #64748b; }
.ef-d { font-weight: 600; color: #475569; }
.ef-d.up { color: #15803d; }
.ef-d.down { color: #b91c1c; }
.ef-flags { margin: 6px 0 0; padding-left: 18px; color: #92400e; font-size: 12.5px; }
/* капитан: бюджет хода, чек-лист, правила сессии */
.card.budget { margin-bottom: 12px; }
.kpi.bad b { color: #b91c1c; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 4px 16px; }
.checklist label { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; }
.rules { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #334155; }
.rules li { margin-bottom: 4px; }
.price-hint { color: #475569; }
#rulerbtn.on { background: #0f172a; color: #fff; border-color: #0f172a; }
/* проект скважины на «Поле» */
.mapcard { position: relative; }
.drill-panel { position: absolute; top: 96px; right: 14px; width: 400px; max-height: calc(100% - 120px); overflow: auto; z-index: 6;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 10px 12px; font-size: 13px; }
.drill-panel header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.drill-panel .drow { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 5px 0; }
.drill-panel .dl { display: flex; gap: 6px; align-items: center; margin: 5px 0; }
.drill-panel button.on { background: #dc2626; color: #fff; border-color: #dc2626; }
.drill-panel .dpts table { border-collapse: collapse; margin: 4px 0; }
.drill-panel .dpts td { padding: 1px 2px; }
.drill-panel .dpts input { width: 82px; padding: 3px 4px; }
.drill-panel .dres { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.drill-panel .dres .facts-table { margin: 4px 0; font-size: 12px; }
.drill-panel textarea { width: 100%; min-height: 54px; margin-top: 6px; }
.dpc { background: #f8fafc; border: 1px solid var(--line); border-radius: 6px; padding: 6px; font-size: 12px; white-space: pre-wrap; }
.drill-panel .drow label { display: inline-flex; flex-direction: row; gap: 4px; align-items: center; margin: 0; font-weight: 400; }
.drill-panel .dl { flex-direction: row; }
