:root {
    --ink: #14201b;
    --ink-soft: #35443d;
    --paper: #f4f5f1;
    --surface: #ffffff;
    --line: #dce1dc;
    --lime: #c8f14a;
    --lime-dark: #a9cf2d;
    --muted: #6d7973;
    --danger: #b42318;
    --warning: #986c00;
    --success: #18794e;
    --blue: #1456a0;
    --shadow: 0 18px 50px rgba(20, 32, 27, .08);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.public-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244, 245, 241, .94);
    border-bottom: 1px solid rgba(20, 32, 27, .1);
    backdrop-filter: blur(16px);
}
.public-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand__mark {
    width: 46px;
    height: 34px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: var(--ink);
    font-size: 13px;
    line-height: 1;
    letter-spacing: -.5px;
}
.brand__mark b { color: #fff; font-style: normal; }
.brand__mark i { color: var(--lime); font-weight: 800; font-style: normal; }
.brand__name { font-weight: 800; letter-spacing: .16em; font-size: 14px; }
.public-nav { display: flex; align-items: center; gap: 28px; }
.public-nav a { text-decoration: none; font-size: 14px; color: var(--ink-soft); }
.public-nav a:hover { color: var(--ink); }
.public-nav__login { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; }

.hero { min-height: 680px; display: grid; grid-template-columns: 1.22fr .78fr; gap: clamp(48px, 8vw, 110px); align-items: center; padding-block: 96px; }
.hero__copy { max-width: 690px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 720; }
.hero__lead { max-width: 650px; margin: 28px 0 0; color: var(--ink-soft); font-size: clamp(18px, 2vw, 22px); }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease, color .16s ease; }
.button:active { transform: scale(.98); }
.button--dark { color: #fff; background: var(--ink); }
.button--dark:hover { background: #26362f; }
.button--light { color: var(--ink); background: var(--lime); }
.button--light:hover { background: #d6fa65; }
.text-link { font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .16s ease; }
.text-link:hover span { transform: translateX(4px); }

.channels-panel { align-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.channels-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--success); }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.channel-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 15px; min-height: 96px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.channel-row:last-child { border-bottom: 0; }
.channel-row__index { color: var(--muted); font-size: 12px; }
.channel-row strong { font-size: 18px; }
.channel-row small { color: var(--muted); text-align: right; }

.section { padding-block: 105px; }
.section-heading { display: grid; grid-template-columns: .55fr 1.45fr; gap: 40px; margin-bottom: 54px; }
.section-heading h2, .structure h2, .contact-section h2 { margin: 0; max-width: 720px; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.service-card { min-height: 250px; padding: 27px 30px 35px 0; border-right: 1px solid var(--line); }
.service-card + .service-card { padding-left: 30px; }
.service-card:last-child { border-right: 0; }
.service-card > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 52px; }
.service-card h3 { margin: 0 0 13px; font-size: 21px; }
.service-card p { margin: 0; color: var(--muted); }

.section--dark { color: #fff; background: var(--ink); }
.structure { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 9vw, 130px); align-items: end; padding-block: 108px; }
.eyebrow--light { color: #aeb9b3; }
.structure__copy { max-width: 450px; }
.structure__copy p { margin: 0 0 30px; color: #cbd3cf; font-size: 19px; }

.contact-section { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 50px; padding-block: 105px; }
.contact-email { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 21px 0; border-bottom: 1px solid var(--ink); font-size: clamp(17px, 2vw, 24px); font-weight: 700; text-decoration: none; }
.contact-email:hover { color: var(--success); }
.public-footer { color: #cad2ce; background: #0b120f; }
.public-footer__inner { min-height: 150px; display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1.4fr; align-items: center; gap: 24px; }
.brand--footer { color: #fff; }
.public-footer p { margin: 0; font-size: 13px; }
.public-footer a { color: inherit; text-decoration: none; }

@media (max-width: 900px) {
    .hero { min-height: 0; grid-template-columns: 1fr; padding-block: 76px; }
    .channels-panel { max-width: 620px; }
    .section-heading, .structure, .contact-section { grid-template-columns: 1fr; }
    .structure { align-items: start; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card, .service-card + .service-card { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .service-card:last-child { border-bottom: 0; }
    .service-card > span { margin-bottom: 22px; }
    .public-footer__inner { grid-template-columns: 1fr 1fr; padding-block: 36px; }
}

@media (max-width: 640px) {
    .public-shell { width: min(100% - 28px, 1160px); }
    .public-header__inner { min-height: 70px; }
    .public-nav a:not(.public-nav__login) { display: none; }
    .public-nav__login { padding: 8px 12px; }
    .hero { padding-block: 58px 72px; gap: 44px; }
    .hero h1 { font-size: clamp(40px, 13vw, 58px); }
    .hero__actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .hero__actions .button { width: 100%; }
    .channel-row { grid-template-columns: 30px 1fr; }
    .channel-row small { grid-column: 2; text-align: left; }
    .section, .contact-section { padding-block: 72px; }
    .structure { padding-block: 72px; }
    .public-footer__inner { grid-template-columns: 1fr; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Aplicação interna */
.login-page { min-height: 100vh; background: linear-gradient(120deg, #edf0eb 0%, #f8f8f5 58%, #e8ede7 100%); }
.login-shell { width: min(100% - 32px, 460px); min-height: 100vh; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; padding-block: 48px; }
.login-brand { align-self: center; margin-bottom: 28px; }
.login-card { padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.login-card__heading { margin-bottom: 28px; }
.login-card__heading h1 { margin: 0 0 9px; font-size: 32px; letter-spacing: -.035em; }
.login-card__heading p { margin: 0; color: var(--muted); }
.login-back { display: block; margin-top: 24px; color: var(--muted); font-size: 14px; text-align: center; text-decoration: none; }

.form-stack { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd3ce;
    border-radius: 8px;
    outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 32, 27, .08); }
.button--full { width: 100%; }
.button--ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button--ghost:hover { background: #f1f3ef; }

.alert { margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: 9px; font-size: 14px; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert--success { color: #0f6841; background: #edf9f2; border-color: #b6e1c7; }
.alert--danger { color: #922018; background: #fff2f0; border-color: #f1c0ba; }
.alert--warning { color: #765500; background: #fff8df; border-color: #ead58c; }

.app-page { background: #f3f5f2; }
.app-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: 250px; display: flex; flex-direction: column; padding: 26px 18px; color: #fff; background: var(--ink); }
.sidebar__brand { color: #fff; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar__nav { display: grid; gap: 5px; margin-top: 24px; }
.sidebar__nav a { padding: 11px 13px; color: #bcc7c1; border-radius: 8px; font-size: 14px; font-weight: 650; text-decoration: none; }
.sidebar__nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar__nav a.is-active { color: var(--ink); background: var(--lime); }
.sidebar__nav a.sidebar__subnav { margin-left: 12px; padding: 8px 13px; font-size: 12px; }
.sidebar__nav a.sidebar__subnav:not(.is-active) { color: #93a29a; border-left: 1px solid rgba(255,255,255,.16); border-radius: 0 8px 8px 0; }
.sidebar__account { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar__account > div { display: grid; margin-bottom: 12px; }
.sidebar__account strong { font-size: 14px; }
.sidebar__account small { color: #9eaba4; }
.sidebar__logout { padding: 0; color: #ccd4d0; background: none; border: 0; font-size: 13px; }
.app-main { min-width: 0; margin-left: 250px; }
.app-topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 30px; background: #fff; border-bottom: 1px solid var(--line); }
.app-topbar > div { display: grid; }
.app-topbar__label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-topbar a { color: var(--muted); font-size: 13px; text-decoration: none; }
.sidebar-toggle { display: none; padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.app-content { width: min(100%, 1440px); margin-inline: auto; padding: 36px 30px 54px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; letter-spacing: -.04em; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.page-heading--compact { align-items: center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.metric-card { min-height: 138px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-card--money strong { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; }
.metric-note { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.metric-card--alert { border-color: #efb9b3; }
.metric-card--alert strong { color: var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 20px; }
.panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.panel__header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__header > div { display: grid; }
.panel__header span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel__header h2 { margin: 2px 0 0; font-size: 19px; }
.panel__header a { color: var(--ink-soft); font-size: 13px; }
.empty-state { padding: 44px 24px; color: var(--muted); text-align: center; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 16px; color: var(--muted); background: #fafbf9; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid #edf0ec; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td small { display: block; max-width: 260px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.align-right { text-align: right !important; }
.table-actions { display: flex; justify-content: flex-end; align-items: center; gap: 13px; white-space: nowrap; }
.table-actions form { display: inline; }
.table-actions a, .link-danger { color: var(--ink-soft); background: none; border: 0; font-size: 13px; text-decoration: underline; }
.link-danger { color: var(--danger); }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; color: var(--ink-soft); background: #eef1ed; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.badge--active, .badge--in { color: var(--success); background: #e9f7ef; }
.badge--inactive, .badge--out { color: var(--danger); background: #fff0ee; }
.badge--adjustment { color: var(--blue); background: #edf5ff; }
.compact-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid #edf0ec; text-decoration: none; }
.compact-list a:last-child { border-bottom: 0; }
.compact-list div { display: grid; min-width: 0; }
.compact-list small { color: var(--muted); }
.compact-list span { color: var(--danger); font-size: 12px; font-weight: 750; white-space: nowrap; }
.form-panel { max-width: 860px; padding: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field--wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 12px; padding-top: 6px; }
.filter-bar { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(170px, .5fr) auto; align-items: end; gap: 14px; margin-bottom: 20px; padding: 17px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filter-bar .button { min-height: 46px; }
.text-danger { color: var(--danger); }
.readonly-balance { padding: 16px; background: #f7f9f6; border: 1px solid var(--line); border-radius: 9px; }
.readonly-balance strong { font-size: 21px; }
.readonly-balance a { color: var(--ink-soft); font-size: 13px; }
.field small { color: var(--muted); }
.button.is-disabled { pointer-events: none; opacity: .45; }
.integration-grid { align-items: start; }
.integration-card__body { padding: 22px; }
.marketplace-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.marketplace-steps article { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.marketplace-steps article > span { color: var(--success); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.marketplace-steps strong { display: block; margin-bottom: 5px; }
.marketplace-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.marketplace-cost-summary strong { font-size: 16px; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none !important; }
.integration-card__body > p { color: var(--muted); }
.connection-state { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.connection-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.connection-state--on { color: var(--success); background: #e9f7ef; }
.connection-state--off { color: var(--muted); background: #eef1ed; }
.connection-state--error { color: var(--danger); background: #fff0ee; }
.definition-list { margin: 20px 0 24px; }
.definition-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #edf0ec; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 700; text-align: right; }
.copy-field { display: grid; gap: 8px; margin-bottom: 18px; }
.copy-field > span { color: var(--muted); font-size: 12px; font-weight: 750; }
.copy-field code { display: block; overflow-wrap: anywhere; padding: 13px; color: #d9f679; background: var(--ink); border-radius: 7px; font-size: 12px; }
.help-text { margin: 4px 0 0; font-size: 13px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form-panel--wide { max-width: 980px; }
.code-input { min-height: 150px !important; color: #d9f679 !important; background: var(--ink) !important; border-color: var(--ink) !important; font-family: Consolas, Monaco, monospace !important; font-size: 13px; }
.error-text { display: block; margin-top: 5px; color: var(--danger) !important; }
.link-button { padding: 0; color: var(--ink-soft); background: none; border: 0; font-size: 13px; text-decoration: underline; }
.form-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 8px; padding: 13px 0 7px; border-bottom: 1px solid var(--line); }
.form-section-title span { font-size: 15px; font-weight: 800; }
.form-section-title small, .text-muted { color: var(--muted); }
.cost-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; background: #f7f9f5; border: 1px solid var(--line); border-radius: 10px; }
.cost-summary > div { display: grid; gap: 5px; }
.cost-summary span { color: var(--muted); font-size: 12px; }
.cost-summary strong { font-size: 20px; }
.cost-summary > small { grid-column: 1 / -1; color: var(--muted); }
.queue-indicator { display: inline-flex; align-items: center; padding: 0 13px; min-height: 46px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.badge--processed { color: var(--success); background: #e9f7ef; }
.badge--needs_review, .badge--waiting { color: var(--warning); background: #fff8df; }
.badge--cancelled, .badge--failed { color: var(--danger); background: #fff0ee; }
.text-success { color: var(--success); }
.install-shell { width: min(100% - 32px, 560px); }
.requirements-list { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 9px; }
.requirements-list div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 13px; }
.requirements-list div:last-child { border-bottom: 0; }
.brand__custom-logo { display:block; max-width:148px; max-height:42px; width:auto; height:auto; object-fit:contain; object-position:left center; }
.public-header .brand__custom-logo, .public-footer .brand__custom-logo { max-width:168px; max-height:48px; }
.overview-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.overview-card { display:grid; gap:10px; padding:22px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.overview-card span, .panel-kicker { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.overview-card strong { font-size:19px; letter-spacing:-.02em; }
.overview-card p { margin:0; color:var(--muted); line-height:1.5; }
.overview-card a { color:var(--ink-soft); font-size:13px; font-weight:800; text-decoration:none; }
.overview-card--accent { background:#143122; color:#fff; border-color:#143122; }
.overview-card--accent span, .overview-card--accent p { color:#cde1ca; }
.overview-card--accent a { color:#d9f679; }
.media-upload-panel { margin-bottom:20px; }
.media-standard { display:flex; align-items:flex-start; gap:12px; margin-bottom:12px; padding:12px 15px; background:#f5faf3; border-color:#d4e6d0; }
.media-standard strong { flex:0 0 auto; color:#315f30; font-size:13px; }
.media-standard span { color:var(--muted); font-size:12px; line-height:1.45; }
.media-upload-form { display:grid; grid-template-columns:minmax(240px,1.2fr) minmax(190px,.8fr) auto; gap:14px; align-items:end; }
.media-upload-trigger { display:flex; align-items:center; gap:12px; min-height:72px; padding:12px; border:1px dashed #8da68b; border-radius:10px; background:#f8fbf7; cursor:pointer; }
.media-upload-trigger input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; }
.media-upload-trigger__icon { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; color:#315f30; background:#e5f0e2; border-radius:50%; font-size:23px; line-height:1; }
.media-upload-trigger strong, .media-upload-trigger small { display:block; }
.media-upload-trigger small { margin-top:3px; color:var(--muted); font-size:12px; }
.media-alt-field { margin:0; }
.media-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.media-card { display:grid; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:12px; }
.media-card__preview { display:grid; place-items:center; aspect-ratio:1.35; padding:12px; background:#f5f7f4; }
.media-card__preview img { width:100%; height:100%; object-fit:contain; }
.media-card__body { display:flex; justify-content:space-between; gap:10px; padding:12px 12px 8px; }
.media-card__body strong, .media-card__body small { display:block; }
.media-card__body strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.media-card__body small { margin-top:4px; color:var(--muted); font-size:11px; }
.media-badge { flex:0 0 auto; align-self:start; padding:4px 6px; color:#315f30; background:#e8f4e5; border-radius:999px; font-size:10px; font-weight:800; white-space:nowrap; }
.media-card__actions { display:flex; flex-wrap:wrap; gap:8px; padding:8px 12px 12px; }
.media-card__actions form { margin:0; }
.link-button--danger { color:var(--danger); }
.brand-settings-layout { display:grid; grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr); gap:18px; align-items:start; }
.brand-preview-panel { display:grid; gap:16px; }
.brand-preview { display:flex; align-items:center; gap:10px; min-height:120px; padding:20px; background:#f6f8f5; border:1px solid var(--line); border-radius:10px; }
.brand-preview img { max-width:100%; max-height:90px; object-fit:contain; object-position:left center; }
.brand-preview-panel p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.logo-select-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:10px; }
.logo-option { display:grid; gap:8px; min-width:0; padding:10px; border:1px solid var(--line); border-radius:10px; cursor:pointer; background:#fff; }
.logo-option:has(input:checked) { border-color:#6f9a68; box-shadow:inset 0 0 0 1px #d2e5ce; background:#f6fbf4; }
.logo-option input { width:15px; height:15px; margin:0; accent-color:#315f30; }
.logo-option__image { display:grid; place-items:center; height:84px; padding:7px; background:#f5f7f4; border-radius:7px; }
.logo-option__image img { max-width:100%; max-height:70px; object-fit:contain; }
.logo-option__default { display:flex; align-items:center; height:84px; padding:7px; color:#143122; background:#f5f7f4; border-radius:7px; font-size:20px; }
.logo-option__default b { color:#315f30; } .logo-option__default i { color:#88a981; font-style:normal; } .logo-option__default em { margin-left:7px; color:#143122; font-size:13px; font-style:normal; font-weight:800; letter-spacing:.08em; }
.logo-option small { overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.pricing-competitive-form { display:grid; gap:18px; }
.pricing-source-panel { overflow:visible; }
.pricing-panel-body { padding:20px; }
.pricing-source-panel .panel__header small { color:var(--muted); font-size:12px; }
.pricing-manual-note { align-self:center; color:var(--muted); font-size:13px; }
.pricing-imported-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:24px; padding:18px 20px; border-color:#b9d7b3; background:#f7fbf5; }
.pricing-imported-card > div:first-child { display:grid; gap:5px; min-width:0; }
.pricing-imported-card > div:first-child strong { overflow:hidden; font-size:17px; text-overflow:ellipsis; white-space:nowrap; }
.pricing-imported-card > div:first-child small, .pricing-imported-price span, .pricing-imported-price small { color:var(--muted); font-size:12px; }
.pricing-imported-price { display:grid; text-align:right; }
.pricing-imported-price strong { font-size:25px; letter-spacing:-.03em; }
.pricing-competitive-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(320px,.72fr); gap:18px; align-items:start; }
.pricing-input-panel { overflow:visible; }
.pricing-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.pricing-tax-note { margin:18px 0 0; padding:12px 14px; color:#765500; background:#fff8df; border:1px solid #ead58c; border-radius:9px; font-size:12px; }
.pricing-result-column { display:grid; gap:14px; }
.pricing-result-card, .pricing-verdict, .pricing-empty-result { padding:22px; }
.pricing-result-card { display:grid; gap:8px; border-top:4px solid var(--success); }
.pricing-result-card--danger { border-top-color:var(--danger); }
.pricing-result-card > span, .pricing-verdict > span, .pricing-empty-result > span { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.pricing-result-card > strong { font-size:clamp(34px,4vw,48px); line-height:1; letter-spacing:-.05em; }
.pricing-result-card > small { color:var(--muted); font-size:12px; line-height:1.45; }
.pricing-breakdown .definition-list { margin:0; padding:8px 20px 14px; }
.pricing-verdict { display:grid; gap:10px; }
.pricing-verdict > strong { font-size:19px; line-height:1.25; }
.pricing-verdict .definition-list { margin:5px 0 0; }
.pricing-empty-result { min-height:210px; align-content:center; display:grid; gap:8px; }
.pricing-empty-result strong { font-size:22px; }
.pricing-empty-result p { margin:0; color:var(--muted); }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .marketplace-steps { grid-template-columns: 1fr; }
    .media-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .overview-grid { grid-template-columns:1fr; }
    .brand-settings-layout { grid-template-columns:1fr; }
    .pricing-competitive-layout { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s cubic-bezier(.23,1,.32,1); box-shadow: 18px 0 45px rgba(0,0,0,.2); }
    .sidebar-open .sidebar { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .sidebar-toggle { display: inline-flex; }
    .app-topbar { padding-inline: 16px; }
    .app-topbar > div { margin-right: auto; }
    .app-topbar > a { display: none; }
    .app-content { padding: 26px 16px 42px; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading .button { width: 100%; }
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .metric-card { min-height: 118px; }
    .metric-card strong { font-size: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .field--wide { grid-column: auto; }
    .cost-summary { grid-template-columns: 1fr; }
    .cost-summary > small { grid-column: auto; }
    .login-card { padding: 28px 22px; }
    .filter-bar { grid-template-columns: 1fr; }
    .media-upload-form { grid-template-columns:1fr; }
    .media-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .logo-select-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .pricing-field-grid { grid-template-columns:1fr; }
    .pricing-imported-card { grid-template-columns:1fr; }
    .pricing-imported-price { text-align:left; }
}

@media (max-width: 430px) {
    .stats-grid { grid-template-columns: 1fr; }
    .media-grid, .logo-select-grid { grid-template-columns:1fr; }
}
