:root {
    --bg: #0b1020;
    --bg-elevated: #101733;
    --panel: rgba(18, 25, 51, 0.88);
    --panel-2: rgba(24, 34, 67, 0.96);
    --panel-3: rgba(255,255,255,0.03);
    --text: #eef3ff;
    --muted: #aeb9d6;
    --muted-strong: #d6def0;
    --accent: #6aa4ff;
    --accent-2: #8ce1ff;
    --accent-soft: rgba(106,164,255,.12);
    --border: rgba(255,255,255,.10);
    --border-strong: rgba(255,255,255,.18);
    --ok: #3ddc97;
    --warn: #ffcc66;
    --danger: #ff7b7b;
    --shadow: 0 18px 50px rgba(0,0,0,.28);
    --shadow-soft: 0 8px 24px rgba(0,0,0,.14);
    --radius: 24px;
    --radius-sm: 16px;
    --input-height: 48px;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(127,127,127,.55) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(127,127,127,.45);
    border-radius: 999px;
    border: 2px solid transparent;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(127,127,127,.65);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(106,164,255,.18), transparent 28%),
        radial-gradient(circle at top right, rgba(140,225,255,.10), transparent 18%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
    color: var(--text);
}

body {
    min-height: 100vh;
}

.sysimple-quick-links {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--panel-2);
    backdrop-filter: blur(8px);
}

.sysimple-quick-links button {
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
}

.wrap {
    max-width: 1520px;
    margin: 0 auto;
    padding: 24px;
}

.hero-shell {
    margin-bottom: 18px;
}

.hero-main {
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(106,164,255,.18), transparent 18%),
        radial-gradient(circle at 15% 0%, rgba(140,225,255,.10), transparent 24%);
    pointer-events: none;
}

.hero-topline,
.hero-grid,
.card-header-wide,
.card-body {
    position: relative;
    z-index: 1;
}

.hero-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--muted-strong);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.section-kicker {
    margin-bottom: 10px;
}

.title {
    font-size: 34px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 12px;
}

.subtitle {
    margin: 0;
    max-width: 860px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 15px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, .95fr);
    gap: 24px;
    align-items: start;
}

.hero-side-panel {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    padding: 16px;
}

.hero-stepper {
    display: grid;
    gap: 10px;
}

.hero-step {
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,.025);
}

.hero-step span {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    font-weight: 800;
}

.hero-step strong {
    font-size: 14px;
}

.hero-step small {
    color: var(--muted);
    font-size: 12px;
}

.hero-step.is-active {
    border-color: rgba(106,164,255,.45);
    background: linear-gradient(180deg, rgba(106,164,255,.17), rgba(106,164,255,.07));
}

.hero-step.is-active span {
    background: linear-gradient(180deg, rgba(106,164,255,.36), rgba(106,164,255,.18));
}

.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.main-tabs {
    display: flex;
    gap: 10px;
    margin: 14px 0 18px;
    flex-wrap: wrap;
}

.main-tab,
.tab,
button,
.btn {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text);
    cursor: pointer;
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease, filter .15s ease;
}

.main-tab {
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    padding: 10px 15px;
}

.main-tab.active,
.tab.active,
button.primary,
.btn.primary {
    background: linear-gradient(180deg, rgba(106,164,255,.36), rgba(106,164,255,.18));
    border-color: rgba(106,164,255,.48);
    box-shadow: 0 10px 24px rgba(52, 113, 214, .18);
}

button:hover,
.btn:hover,
.main-tab:hover,
.tab:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

button:disabled,
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.ocr-panel {
    display: none;
}

.ocr-panel.active {
    display: block;
}

.import-only {
    display: none;
}

body.is-import-mode .import-only {
    display: grid;
}

body.is-import-mode .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
}

body.is-import-mode .process-grid {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
}

body.is-import-mode .preview-card,
body.is-import-mode .insight-card,
body.is-import-mode .ocr-raw-card,
body.is-import-mode #tabCamera,
body.is-import-mode .controls-compact > div:first-child,
body.is-import-mode .controls-compact > div:nth-child(2),
body.is-import-mode .controls-wide {
    display: none !important;
}

body.is-import-mode .controls-compact {
    grid-template-columns: minmax(0, 1fr);
}

body.is-import-mode .upload-card {
    min-height: 260px;
    display: grid;
    align-content: center;
    border-style: solid;
    border-color: rgba(106,164,255,.28);
    background:
        radial-gradient(circle at 18% 0%, rgba(106,164,255,.12), transparent 30%),
        var(--panel-2);
}

body.is-import-mode .upload-visual {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
}

body.is-import-mode .upload-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
}

body.is-import-mode .main-tabs {
    justify-content: center;
}

body.is-import-mode .main-tab:disabled {
    opacity: .45;
}

.import-welcome {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .75fr);
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(106,164,255,.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(106,164,255,.08), rgba(106,164,255,.035));
    padding: 16px;
}

.import-welcome h3 {
    margin: 3px 0 6px;
    font-size: 22px;
    line-height: 1.15;
}

.import-welcome p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.import-flow {
    display: grid;
    gap: 8px;
}

.import-flow span {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel-2);
    padding: 6px 8px;
    font-weight: 800;
}

.import-flow b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
}

.section-stack {
    display: grid;
    gap: 18px;
}

.grid {
    display: grid;
    grid-template-columns: 1.3fr .92fr;
    gap: 18px;
}

.process-grid {
    align-items: start;
}

.results-grid {
    align-items: start;
}

.side-column {
    display: grid;
    gap: 18px;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-emphasis {
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.04);
}

.card-hero {
    padding: 20px 22px 22px;
}

.card-header {
    padding: 18px 20px 0;
}

.card-header-wide {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.card-header-note {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.05);
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
}

.card-header-note.subtle {
    color: var(--muted);
}

.card-header-note[data-tone="processing"] {
    border-color: rgba(106,164,255,.35);
    background: rgba(106,164,255,.12);
    color: var(--muted-strong);
}

.card-header-note[data-tone="success"] {
    border-color: rgba(61,220,151,.35);
    background: rgba(61,220,151,.12);
    color: #d7ffef;
}

.card-header-note[data-tone="warn"] {
    border-color: rgba(255,204,102,.35);
    background: rgba(255,204,102,.10);
    color: #ffe8b3;
}

.card-header-note[data-tone="danger"] {
    border-color: rgba(255,123,123,.35);
    background: rgba(255,123,123,.10);
    color: #ffd3d3;
}

.card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.01em;
}

.card-desc {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
    max-width: 880px;
}

.card-body {
    padding: 18px 20px 20px;
}

.compact-body {
    padding-top: 14px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: .02em;
}

input[type="text"],
select,
textarea {
    width: 100%;
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

input[type="text"],
select {
    min-height: var(--input-height);
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    border-color: rgba(106,164,255,.52);
    box-shadow: 0 0 0 4px rgba(106,164,255,.14);
}

textarea {
    resize: vertical;
    min-height: 200px;
}

.raw-textarea {
    min-height: 420px;
}

.compact-textarea {
    min-height: 110px;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.controls-wide {
    grid-template-columns: .9fr 2.1fr;
    margin-bottom: 18px;
}

.controls-compact {
    align-items: end;
}

.tabs {
    display: flex;
    gap: 8px;
}

.tab {
    flex: 1;
}

.dropzone {
    position: relative;
    border: 1px dashed rgba(255,255,255,.20);
    background:
        radial-gradient(circle at top, rgba(106,164,255,.10), transparent 30%),
        rgba(255,255,255,.02);
    border-radius: 22px;
    padding: 22px;
    text-align: left;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dropzone.dragover {
    border-color: rgba(106,164,255,.55);
    background:
        radial-gradient(circle at top, rgba(106,164,255,.16), transparent 30%),
        rgba(106,164,255,.06);
    transform: translateY(-1px);
}

.upload-visual {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
}

.upload-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(106,164,255,.28), rgba(106,164,255,.12));
    border: 1px solid rgba(106,164,255,.35);
}

.upload-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.upload-subtitle,
.dropzone-footnote,
.insight-note,
.status-subtext {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.dropzone-footnote {
    margin-top: 16px;
    border-top: 1px dashed rgba(255,255,255,.10);
    padding-top: 12px;
}

.camera-card,
.upload-card {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.card-subtitle-row {
    margin-bottom: 14px;
}

.camera-actions {
    margin-bottom: 14px;
}

.camera-stage {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(0,0,0,.22);
    padding: 12px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview {
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
        rgba(255,255,255,.02);
}

.preview-placeholder {
    color: var(--muted);
    font-size: 14px;
}

.preview img,
.preview canvas,
.preview video,
video {
    max-width: 100%;
    max-height: 540px;
    object-fit: contain;
    display: block;
}

video {
    width: 100%;
    background: #000;
    border-radius: 18px;
}

.status {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255,255,255,.035);
}

.status-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.status-text {
    font-weight: 800;
    font-size: 14px;
}

.status-percent {
    font-size: 20px;
    font-weight: 800;
}

.progress {
    height: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width .25s ease;
}

.callout,
.error,
.info {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.error {
    border: 1px solid rgba(255,123,123,.35);
    background: rgba(255,123,123,.10);
    color: #ffd3d3;
}

.info {
    border: 1px solid rgba(255,204,102,.24);
    background: rgba(255,204,102,.08);
    color: #ffe8b3;
}

.summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-stat {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    padding: 14px;
    display: grid;
    gap: 8px;
    min-height: 96px;
}

.summary-stat strong {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.summary-stat-wide {
    min-height: 88px;
}

.summary-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.field-list {
    max-height: 330px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-list-large {
    max-height: 640px;
}

.field-item,
.match-card,
.stat,
.preview-form-shell {
    border: 1px solid var(--border);
    background: rgba(255,255,255,.025);
    border-radius: 18px;
    padding: 14px;
}

.field-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.field-label {
    font-weight: 800;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip,
.preview-subform-badge,
.match-score,
.preview-mini-btn {
    font-size: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
}

.kv,
.preview-meta,
.hint-item,
.mapping-item {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.hint-list,
.mapping-list,
.result-preview {
    display: grid;
    gap: 10px;
}

.preview-form-shell {
    padding: 16px;
}

.preview-form-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.preview-form-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
}

.preview-form-subtitle {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.preview-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
    padding: 14px;
    margin-bottom: 12px;
}

.preview-section h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.preview-section p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

.preview-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.preview-field {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,.03);
}

.preview-field.full {
    grid-column: 1 / -1;
}

.preview-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.preview-required {
    color: #ffd3d3;
    font-size: 12px;
}

.preview-input,
.preview-textarea,
.preview-select,
.preview-checkbox-row {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.03);
    color: var(--muted);
    padding: 10px 12px;
    font-size: 13px;
}

.preview-textarea {
    min-height: 88px;
    resize: none;
}

.preview-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-subform-shell {
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 16px;
    background: rgba(255,255,255,.02);
    padding: 12px;
    margin-top: 14px;
}

.preview-subform-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 800;
}

.preview-grid-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,.02);
}

.preview-grid-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.preview-grid-table th,
.preview-grid-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.06);
    text-align: left;
    font-size: 13px;
    vertical-align: top;
}

.preview-grid-table th:last-child,
.preview-grid-table td:last-child {
    border-right: 0;
}

.preview-grid-table thead th {
    background: rgba(255,255,255,.05);
    font-weight: 700;
}

.preview-grid-table tbody tr:last-child td {
    border-bottom: 0;
}

.preview-grid-empty {
    padding: 12px;
    color: var(--muted);
    font-size: 13px;
}

.preview-subform-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-linked-form {
    margin-top: 12px;
    border-top: 1px dashed rgba(255,255,255,.12);
    padding-top: 12px;
}

.mapping-item strong {
    color: var(--text);
}

.toolbar-actions {
    align-items: center;
    flex-wrap: wrap;
}

.target-picker {
    min-width: 180px;
}

.sticky-toolbar-card {
    position: sticky;
    top: 10px;
    z-index: 5;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-row-centered {
    justify-content: center;
}

.hidden,
.dropzone input.hidden {
    display: none !important;
}

:root[data-theme="light"] {
    --bg: #eef4fb;
    --bg-elevated: #f6f9fd;
    --panel: rgba(255,255,255,0.90);
    --panel-2: rgba(247,249,252,0.98);
    --panel-3: rgba(15,23,42,.02);
    --text: #1f2937;
    --muted: #6b7280;
    --muted-strong: #334155;
    --accent: #2563eb;
    --accent-2: #38bdf8;
    --accent-soft: rgba(37,99,235,.10);
    --border: rgba(15,23,42,.10);
    --border-strong: rgba(15,23,42,.18);
    --shadow: 0 16px 34px rgba(15,23,42,.10);
    --shadow-soft: 0 8px 24px rgba(15,23,42,.08);
}

:root[data-theme="dark"] {
    --bg: #111827;
    --bg-elevated: #0f172a;
    --panel: rgba(31,41,55,0.88);
    --panel-2: rgba(17,24,39,0.96);
    --panel-3: rgba(255,255,255,.03);
    --text: #eef3ff;
    --muted: #9ca3af;
    --muted-strong: #e5edf8;
    --accent: #60a5fa;
    --accent-2: #22d3ee;
    --accent-soft: rgba(96,165,250,.10);
    --border: rgba(255,255,255,.10);
    --border-strong: rgba(255,255,255,.18);
    --shadow: 0 18px 38px rgba(0,0,0,.35);
    --shadow-soft: 0 8px 24px rgba(0,0,0,.20);
}

:root[data-theme="sysimple"] {
    --bg: #0f172a;
    --bg-elevated: #0b1220;
    --panel: rgba(17,24,39,0.88);
    --panel-2: rgba(11,18,32,0.96);
    --panel-3: rgba(255,255,255,.03);
    --text: #eef3ff;
    --muted: #94a3b8;
    --muted-strong: #dbeafe;
    --accent: #00c0ef;
    --accent-2: #38bdf8;
    --accent-soft: rgba(0,192,239,.10);
    --border: rgba(255,255,255,.10);
    --border-strong: rgba(255,255,255,.18);
    --shadow: 0 18px 38px rgba(0,0,0,.35);
    --shadow-soft: 0 8px 24px rgba(0,0,0,.20);
}

@media (max-width: 1180px) {
    .hero-grid,
    .grid,
    .controls,
    .controls-wide,
    .summary-grid,
    .summary-grid.compact {
        grid-template-columns: 1fr;
    }

    .sticky-toolbar-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .wrap {
        padding: 16px;
    }

    .title {
        font-size: 28px;
    }

    .card,
    .card-hero {
        border-radius: 20px;
    }

    .card-header,
    .card-body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .upload-visual {
        grid-template-columns: 1fr;
    }

    .field-top,
    .card-header-wide,
    .hero-topline,
    .status-line {
        align-items: stretch;
    }
}


.field-help{margin-top:6px;font-size:.78rem;opacity:.78;line-height:1.35;}
.toolbar-hint{margin-top:0;padding:10px 12px;border:1px solid rgba(127,127,127,.18);border-radius:12px;background:rgba(127,127,127,.06);font-size:.82rem;line-height:1.4;}
html[data-theme="dark"] .toolbar-hint,html[data-theme="sysimple"] .toolbar-hint{background:rgba(255,255,255,.04);}
