.card { background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--bg))); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card > h2, .card > .card-head { margin-bottom: 14px; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); cursor: pointer; font-weight: 700; transition: transform .12s, background .18s, box-shadow .18s, border-color .18s; white-space: nowrap; touch-action: manipulation; }
.btn:hover { background: #1B2A48; border-color: #3A4F78; } .btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); } .btn.primary:hover { background: linear-gradient(135deg, #4A8DFF, #2F6FF0); }
.btn.accent { background: var(--blue-2); border-color: var(--blue-2); color: var(--navy); } .btn.accent:hover { background: #7DB6FF; }
.btn.dark { background: #1A2846; border-color: #2A3B5E; color: #fff; } .btn.dark:hover { background: #22345A; }
.btn.danger { color: var(--bad); border-color: rgba(248,113,113,.35); background: transparent; } .btn.danger:hover { background: var(--bad-soft); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.icon { padding: 0; width: 48px; } .btn.sm.icon { width: 40px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.menu-btn { background: transparent; border: 0; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }

/* KPI */
.kpi { display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; isolation: isolate; }
.kpi::after { content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--kc, var(--blue)) 22%, transparent), transparent); z-index: -1; }
.kpi .k-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--kc, var(--blue)) 16%, transparent); color: var(--kc, var(--blue-2)); border: 1px solid color-mix(in srgb, var(--kc, var(--blue)) 30%, transparent); margin-bottom: 10px; }
.kpi .k-val { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.1; direction: ltr; text-align: start; color: #fff; }
.kpi .k-val small { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 500; margin-inline-start: 6px; }
.kpi .k-lbl { color: var(--muted); font-size: 14.5px; }
.kpi { --kc: #2F7BFF; } .kpi.alt { --kc: #60A5FF; } .kpi.ok { --kc: #34D399; } .kpi.info { --kc: #A78BFA; }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.form .span2 { grid-column: 1 / -1; } .form .sect { grid-column: 1 / -1; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--blue-2); border-bottom: 1px dashed var(--line-2); padding-bottom: 4px; margin-top: 6px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 15px; font-weight: 700; color: #C9D4EA; } .field > label .req { color: var(--blue-2); }
.field .hint { font-size: 14px; color: var(--muted); } .field .hint.warn { color: var(--warn); font-weight: 700; }
input, select, textarea { width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #0C1528; color: var(--ink); font-size: 17px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #6B7A99; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.22); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.8); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA8C2' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-inline-end: 14px; padding-left: 38px; }
select option { background: #101A2E; color: var(--ink); }
.form-error { background: var(--bad-soft); color: #FCA5A5; border: 1px solid rgba(248,113,113,.3); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.seg { display: inline-flex; background: #0C1528; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button, .seg a { display: inline-flex; align-items: center; text-decoration: none; border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--muted); transition: background .18s, color .18s; }
.seg button:hover, .seg a:hover { color: #fff; }
.seg button.on, .seg a.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.search { max-width: 300px; }

/* tables */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-sm); border: 1px solid var(--line); background: #0D1629; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; }
.tbl th { background: #111D34; text-align: start; font-size: 13px; font-weight: 700; color: #8FA0C2; padding: 12px 14px; white-space: nowrap; position: sticky; top: 0; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:nth-child(even) td { background: rgba(255,255,255,.012); }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: rgba(47,123,255,.08); }
.tbl td.num, .tbl th.num { text-align: end; }
.tbl .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; direction: ltr; unicode-bidi: embed; display: inline-block; font-weight: 600; color: #BFD6FF; }
.perm-tbl select { min-height: 40px; font-size: 15px; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty svg { color: var(--blue-2); margin-bottom: 8px; } .empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #1A2640; color: #B4C2DC; border: 1px solid #26365A; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(52,211,153,.28); } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(251,191,36,.28); }
.badge.bad { background: var(--bad-soft); color: #FCA5A5; border-color: rgba(248,113,113,.3); } .badge.info { background: var(--info-soft); color: var(--blue-2); border-color: rgba(96,165,255,.3); }

/* detail */
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 20px; }
.kv div { display: flex; flex-direction: column; } .kv span { font-size: 13.5px; color: var(--muted); } .kv b { font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 34px; background: linear-gradient(var(--blue-2), var(--blue)); border-radius: 8px 8px 3px 3px; min-height: 3px; box-shadow: 0 6px 18px rgba(47,123,255,.25); }
.bar small { font-size: 11px; color: var(--muted); direction: ltr; } .bar em { font-style: normal; font-size: 11px; font-weight: 700; direction: ltr; }
.list { display: flex; flex-direction: column; } .list > a, .list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 6px; border-top: 1px solid var(--line); color: inherit; align-items: center; border-radius: 8px; transition: background .18s; } .list > :first-child { border-top: 0; }
.list > a:hover { background: rgba(47,123,255,.07); }
.alert { padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); border: 1px solid rgba(251,191,36,.25); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.alert.info { background: var(--info-soft); color: var(--blue-2); border-color: rgba(96,165,255,.28); }
.progress { height: 8px; border-radius: 8px; background: #0C1528; border: 1px solid var(--line); overflow: hidden; }
.progress > span, .progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 8px; }

/* trace chain */
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .chain { grid-template-columns: 1fr; } }
.chain h3 { margin-bottom: 10px; display: flex; gap: 8px; align-items: center; color: var(--blue-2); }
.node { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #0D1629; }
.node.focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47,123,255,.2); }
.node .kv { grid-template-columns: repeat(2, 1fr); gap: 8px 12px; margin-top: 8px; font-size: 14px; }

/* modal + toast */
.backdrop { position: fixed; inset: 0; background: rgba(3,7,16,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 100; overflow-y: auto; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; width: min(760px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.modal.wide { width: min(1000px, 100%); }
.modal-head { background: linear-gradient(90deg, rgba(47,123,255,.16), transparent 70%); border-radius: 18px 18px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 19px; }
.modal-body { padding: 20px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; background: rgba(0,0,0,.12); border-radius: 0 0 18px 18px; }
@media (max-width: 700px) { .backdrop { padding: 0; align-items: end; } .modal { border-radius: 18px 18px 0 0; max-height: 94dvh; } }
#toasts { position: fixed; bottom: 20px; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: #15223B; border: 1px solid var(--line-2); border-inline-start: 4px solid var(--blue); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5); font-weight: 700; max-width: 90vw; }
.toast.err { background: #3A1820; border-color: rgba(248,113,113,.4); border-inline-start-color: var(--bad); } .toast.ok { background: #0F2E2A; border-color: rgba(52,211,153,.35); border-inline-start-color: var(--ok); }
.input-rows { display: flex; flex-direction: column; gap: 10px; }
.input-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 10px; align-items: end; padding: 12px; background: #0D1629; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 760px) { .input-row { grid-template-columns: 1fr 1fr; } }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; } @media (max-width: 760px) { .score-grid { grid-template-columns: repeat(2, 1fr); } }
.score-total { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--blue-2); direction: ltr; }

.grid > *, .card > * { min-width: 0; }

/* charts */
.areachart svg { width: 100%; height: auto; display: block; }
.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.donut { width: 190px; height: 190px; }
.legend { display: flex; flex-direction: column; gap: 12px; font-weight: 700; } .legend div { display: flex; align-items: center; gap: 10px; font-size: 16px; } .legend i { width: 14px; height: 14px; border-radius: 4px; } .legend b { margin-inline-start: auto; padding-inline-start: 16px; }

/* ---- Warehouse / distribution / branches ---- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.topsearch { display: flex; align-items: center; gap: 6px; background: #0C1528; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 10px; min-height: 42px; width: min(320px, 34vw); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.topsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,123,255,.22); }
.topsearch input { border: 0; background: transparent; outline: 0; min-height: 40px; padding: 0; width: 100%; font: inherit; color: var(--ink); box-shadow: none; }
@media (max-width: 640px) { .topsearch { width: 42px; padding: 0; justify-content: center; } .topsearch input { width: 0; } .topsearch:focus-within { position: absolute; inset-inline: 12px; width: auto; z-index: 5; padding: 0 10px; background: #0C1528; } .topsearch:focus-within input { width: 100%; } }
.lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.lines .line { display: grid; grid-template-columns: 1fr 120px auto; gap: 8px; align-items: center; }
.lines .line small { grid-column: 1 / -1; }
@media (max-width: 640px) { .lines .line { grid-template-columns: 1fr 90px auto; } }
.scan { display: flex; flex-direction: column; gap: 12px; border: 2px dashed rgba(96,165,255,.4); }
.scan-head { display: flex; gap: 12px; align-items: flex-start; }
.scan-head i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ember-soft); color: var(--blue-2); flex: none; }
.scan-head p { margin: 2px 0 0; font-size: 14px; }
.scan-row { display: flex; gap: 8px; flex-wrap: wrap; }
.scan-input { flex: 1 1 220px; min-height: 48px; font-size: 18px; font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; direction: ltr; text-align: center; }
.scan-cam { width: 100%; max-width: 420px; margin-inline: auto; border-radius: 12px; overflow: hidden; background: #000; }
.scan-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scan-log li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; font-size: 14px; flex-wrap: wrap; }
.scan-log li.ok { background: var(--ok-soft); color: var(--ok); } .scan-log li.bad { background: var(--bad-soft); color: #FCA5A5; font-weight: 700; }
.tline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tline li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #0D1629; border: 1px solid var(--line); color: var(--muted); position: relative; }
.tline li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); margin-bottom: 4px; }
.tline li.done { color: var(--ink); border-color: rgba(52,211,153,.35); }
.tline li.done i { background: var(--ok); color: #06231C; }
.tline li.bad i { background: var(--bad); color: #fff; }
.tline.v { grid-template-columns: 1fr; gap: 0; border-inline-start: 2px solid var(--line-2); margin-inline-start: 11px; }
.tline.v li { background: none; border: 0; border-radius: 0; padding: 4px 18px 14px; }
.tline.v li i { position: absolute; inset-inline-start: -13px; top: 4px; }
.unit-card .kv { margin-top: 8px; }
.print-only { display: none; }
.ulabels { display: grid; grid-template-columns: repeat(auto-fill, minmax(100mm, 1fr)); justify-items: center; }
.label.ulabel .l-qr img { width: 26mm; height: 26mm; }
.label.ulabel .l-bar { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 1mm; border-top: 1px solid #111; padding-top: 2mm; }
.label.ulabel .l-bar img { height: 13mm; max-width: 100%; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

/* ---- dashboard welcome ---- */
.welcome { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 26px 30px; border-radius: 20px; background: linear-gradient(120deg, #13264A, #0F1A30 60%); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.welcome small { color: var(--blue-2); font-size: 14.5px; font-weight: 700; } .welcome h2 { font-size: 27px; font-weight: 800; margin: 4px 0; color: #fff; } .welcome p { margin: 0; color: var(--muted); font-size: 16.5px; }
.w-art { flex: none; width: 130px; height: 130px; order: 2; background: url("/brand/mihwar-mark.svg") center / contain no-repeat; opacity: .95; }
.welcome > div:last-child { flex: 1; order: 1; }
.welcome.photo { padding: 0; min-height: 200px; }
.welcome.photo .w-txt { flex: 1; padding: 28px 32px; order: 1; position: relative; z-index: 1; }
.welcome.photo .w-pic { flex: 0 0 44%; align-self: stretch; order: 2; position: relative; }
.welcome.photo .w-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.75); }
.welcome.photo .w-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 35%, #112142 100%), linear-gradient(160deg, rgba(47,123,255,.45), rgba(11,18,32,.25) 70%); mix-blend-mode: normal; }
[dir=ltr] .welcome.photo .w-pic::after { background: linear-gradient(to left, transparent 35%, #112142 100%), linear-gradient(200deg, rgba(47,123,255,.45), rgba(11,18,32,.25) 70%); }
.welcome.photo .w-logo { position: absolute; inset-block-end: 16px; inset-inline-end: 18px; z-index: 1; height: 54px; width: 54px; border-radius: 15px; background: url("/brand/mihwar-mark.svg") center / 36px no-repeat, rgba(11,18,32,.72); border: 1px solid rgba(96,165,255,.35); backdrop-filter: blur(6px); }
.w-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #CFE0FF; background: rgba(47,123,255,.14); border: 1px solid rgba(96,165,255,.28); }
.w-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.2); }
@media (max-width: 700px) { .w-art { display: none; } .welcome h2 { font-size: 22px; } .welcome.photo { flex-direction: column; } .welcome.photo .w-pic { order: -1; flex: none; height: 120px; width: 100%; } .welcome.photo .w-pic::after, [dir=ltr] .welcome.photo .w-pic::after { background: linear-gradient(to top, #12203E, transparent 60%), linear-gradient(160deg, rgba(47,123,255,.4), transparent 70%); } .welcome.photo .w-txt { padding: 14px 18px 20px; } }

/* ---- section tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; } @media (min-width: 1100px) { .tiles { grid-template-columns: repeat(7, 1fr); } } @media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { --acc: var(--blue); position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 132px; line-height: 1.35; padding: 14px 16px; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; font-weight: 700; font-size: 15.5px; border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; isolation: isolate; background: var(--surface); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s; filter: saturate(.4) brightness(.7); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,14,26,.96) 15%, rgba(11,18,32,.45) 75%), linear-gradient(135deg, color-mix(in srgb, var(--acc) 50%, transparent), transparent 65%); }
.tile i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 85%, #000); box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 40%, transparent); }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 16px 34px rgba(0,0,0,.45); } .tile:hover img { transform: scale(1.06); }
.tile:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 2px; }
.empty-pic { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; border: 3px solid var(--line-2); filter: saturate(.5); box-shadow: 0 6px 18px rgba(0,0,0,.35); }

/* ---- section hero: photo + accent per section, tinted to the navy identity ---- */
.hero { --acc: var(--blue); position: relative; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 168px; border-radius: 22px; background: linear-gradient(120deg, var(--surface), #0E1830); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 0; width: 4px; border-radius: 0 4px 4px 0; background: var(--acc); box-shadow: 0 0 16px var(--acc); z-index: 2; }
.hero-txt { padding: 24px 30px; display: flex; flex-direction: column; justify-content: center; gap: 6px; position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: color-mix(in srgb, var(--acc) 70%, #fff); font-weight: 700; font-size: 14.5px; }
.hero-kicker i { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: color-mix(in srgb, var(--acc) 22%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 35%, transparent); }
.hero h2 { font-size: 28px; font-weight: 800; margin: 2px 0 0; color: #fff; } .hero p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 46ch; }
.hero-pic { position: relative; min-height: 168px; }
.hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.45) brightness(.72); }
.hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 40%, #0F1A30 100%), linear-gradient(135deg, color-mix(in srgb, var(--acc) 45%, transparent), rgba(11,18,32,.2) 65%); }
[dir=ltr] .hero-pic::after { background: linear-gradient(to left, transparent 40%, #101B32 100%), linear-gradient(225deg, color-mix(in srgb, var(--acc) 45%, transparent), rgba(11,18,32,.2) 65%); }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.hero-tags li { font-size: 13.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: color-mix(in srgb, var(--acc) 45%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); }
.hero.flip .hero-txt { order: 2; } .hero.flip .hero-pic { order: 1; }
.hero.flip::before { inset-inline-start: auto; inset-inline-end: 0; border-radius: 4px 0 0 4px; }
.hero.flip .hero-pic::after { background: linear-gradient(to left, transparent 40%, #101B32 100%), linear-gradient(225deg, color-mix(in srgb, var(--acc) 45%, transparent), rgba(11,18,32,.2) 65%); }
[dir=ltr] .hero.flip .hero-pic::after { background: linear-gradient(to right, transparent 40%, #0F1A30 100%), linear-gradient(135deg, color-mix(in srgb, var(--acc) 45%, transparent), rgba(11,18,32,.2) 65%); }
.hero.dark { display: block; min-height: 190px; background: var(--espresso); }
.hero.dark .hero-pic { position: absolute; inset: 0; min-height: 0; }
.hero.dark .hero-pic::after { background: linear-gradient(to left, rgba(8,14,26,.97) 22%, rgba(11,18,32,.7) 60%, rgba(11,18,32,.3)), linear-gradient(0deg, color-mix(in srgb, var(--acc) 40%, transparent), transparent 55%); }
[dir=ltr] .hero.dark .hero-pic::after { background: linear-gradient(to right, rgba(8,14,26,.97) 22%, rgba(11,18,32,.7) 60%, rgba(11,18,32,.3)), linear-gradient(0deg, color-mix(in srgb, var(--acc) 40%, transparent), transparent 55%); }
.hero.dark .hero-txt { position: relative; max-width: 640px; padding: 30px 34px; }
.hero.dark p { color: #C3CFE6; }
.hero.dark .hero-kicker i { background: var(--acc); color: #fff; }
.hero.dark .hero-tags li { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; } .hero::before, .hero.flip::before { inset-block: auto 0; inset-block-start: 0; inset-inline: 18px; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .hero-pic { order: -1; min-height: 120px; max-height: 130px; }
  .hero-pic::after, [dir=ltr] .hero-pic::after, .hero.flip .hero-pic::after, [dir=ltr] .hero.flip .hero-pic::after { background: linear-gradient(to top, #0F1A30 0%, transparent 55%), linear-gradient(135deg, color-mix(in srgb, var(--acc) 40%, transparent), transparent 70%); }
  .hero.flip .hero-txt { order: 0; } .hero.flip .hero-pic { order: -1; }
  .hero-txt { padding: 14px 18px 18px; } .hero h2 { font-size: 23px; }
  .hero.dark .hero-pic { position: absolute; max-height: none; }
  .hero.dark .hero-pic::after, [dir=ltr] .hero.dark .hero-pic::after { background: linear-gradient(0deg, rgba(8,14,26,.97) 40%, rgba(11,18,32,.45)); }
  .hero.dark .hero-txt { padding: 80px 18px 18px; }
}
