:root {
    --ink: #13271f;
    --ink-2: #1d3a2e;
    --forest: #214d3b;
    --forest-light: #2f6a52;
    --paper: #f4f0e7;
    --paper-2: #ebe4d7;
    --white: #fffdf8;
    --gold: #c69249;
    --gold-light: #e7c68c;
    --red: #9c4238;
    --muted: #6b746e;
    --border: rgba(19, 39, 31, 0.14);
    --shadow: 0 24px 70px rgba(20, 42, 33, 0.12);
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Avenir Next", Avenir, "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-decoration: none;
}
.wordmark span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--paper);
    background: var(--ink);
    border-radius: 50%;
    letter-spacing: 0;
    font-style: italic;
}
.wordmark-light { color: var(--white); }
.wordmark-light span { color: var(--ink); background: var(--gold-light); }
.site-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 0 clamp(22px, 6vw, 88px);
    border-bottom: 1px solid var(--border);
}
.dark-nav { color: var(--white); background: var(--ink); border-color: rgba(255,255,255,.12); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.button) { text-decoration: none; font-size: .9rem; font-weight: 600; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    color: var(--white);
    background: var(--forest);
    border: 1px solid var(--forest);
    border-radius: 3px;
    box-shadow: 0 10px 24px rgba(33, 77, 59, .18);
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}
.button:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.button-small { min-height: 38px; padding: 0 15px; font-size: .83rem; }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--border); box-shadow: none; }
.button-secondary:hover { color: var(--white); }
.button-light { color: var(--ink); background: var(--gold-light); border-color: var(--gold-light); }
.text-link {
    padding: 0;
    color: var(--forest);
    background: none;
    border: 0;
    font-weight: 800;
    text-decoration: none;
}
.kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.kicker.light { color: var(--gold-light); }

.hero-shell {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: calc(100vh - 78px);
    overflow: hidden;
}
.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.9%, var(--border) 50%, transparent 50.1%),
        repeating-linear-gradient(0deg, transparent 0 78px, rgba(19,39,31,.035) 79px);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 70px clamp(28px, 7vw, 110px);
}
.hero-content h1 {
    max-width: 780px;
    margin-bottom: 28px;
    font-size: clamp(3.6rem, 7vw, 7.4rem);
    line-height: .9;
    letter-spacing: -.055em;
}
.hero-content h1 em { color: var(--forest-light); font-weight: 400; }
.hero-content > p { max-width: 610px; color: var(--muted); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 35px; }
.trust-row { display: flex; gap: 24px; margin-top: 48px; color: var(--muted); font-size: .78rem; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--gold); font-weight: 900; }
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 660px;
    background: var(--ink);
    overflow: hidden;
}
.legal-orbit {
    position: absolute;
    width: min(42vw, 600px);
    aspect-ratio: 1;
    border: 1px solid rgba(231,198,140,.25);
    border-radius: 50%;
}
.legal-orbit::before, .legal-orbit::after {
    content: "";
    position: absolute;
    inset: 13%;
    border: 1px solid rgba(231,198,140,.17);
    border-radius: 50%;
}
.legal-orbit::after { inset: 30%; background: rgba(198,146,73,.09); }
.phone-card {
    position: relative;
    z-index: 2;
    width: min(330px, 72%);
    min-height: 590px;
    padding: 24px;
    background: var(--white);
    border: 7px solid #091b14;
    border-radius: 38px;
    box-shadow: 0 40px 100px rgba(0,0,0,.45);
    transform: rotate(2.5deg);
}
.phone-top { display: flex; justify-content: space-between; font-size: .65rem; }
.phone-top strong { color: var(--forest); letter-spacing: .12em; }
.phone-title { margin-top: 44px; font-family: var(--serif); font-size: 1.8rem; }
.phone-subtitle { margin: 5px 0 25px; color: var(--muted); font-size: .78rem; }
.phone-alert { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid var(--border); }
.phone-alert div { display: grid; gap: 4px; font-size: .8rem; }
.phone-alert small { color: var(--muted); }
.alert-dot { width: 9px; height: 9px; margin-top: 5px; background: var(--forest-light); border-radius: 50%; }
.alert-dot.gold { background: var(--gold); }
.phone-case { margin-top: 34px; padding: 21px; color: var(--white); background: var(--forest); border-radius: 5px; }
.phone-case small { color: var(--gold-light); font-size: .57rem; letter-spacing: .13em; }
.phone-case strong { display: block; margin: 12px 0 22px; font-family: var(--serif); font-size: 1.1rem; }
.mini-timeline { display: flex; justify-content: space-between; position: relative; }
.mini-timeline::before { content: ""; position: absolute; top: 4px; left: 4px; right: 4px; height: 1px; background: rgba(255,255,255,.4); }
.mini-timeline i { z-index: 1; width: 9px; height: 9px; background: var(--gold-light); border-radius: 50%; }

.value-section { padding: 110px clamp(28px, 7vw, 110px); background: var(--white); }
.value-section > div:first-child { max-width: 640px; }
.value-section h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.04em; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 60px; background: var(--border); border: 1px solid var(--border); }
.value-grid article { padding: 42px; background: var(--white); }
.value-grid b { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; }
.value-grid h3 { margin: 45px 0 12px; font-size: 1.8rem; }
.value-grid p { color: var(--muted); line-height: 1.65; }
footer { padding: 30px; color: rgba(255,255,255,.7); background: var(--ink); text-align: center; font-size: .75rem; }

.auth-page {
    position: relative;
    color: var(--white);
    background:
        radial-gradient(circle at 25% 20%, rgba(198,146,73,.18), transparent 30%),
        var(--ink);
}
.auth-page::before { content: ""; position: fixed; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.025) 80px); }
.auth-brand { position: absolute; z-index: 2; top: 28px; left: 42px; color: var(--white); }
.auth-brand span { color: var(--ink); background: var(--gold-light); }
.auth-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(420px, .7fr); min-height: 100vh; }
.auth-story { align-self: center; max-width: 700px; padding: 100px clamp(35px, 8vw, 130px); }
.auth-story h1 { font-size: clamp(3.2rem, 6vw, 6.2rem); line-height: .96; letter-spacing: -.045em; }
.auth-story p { max-width: 550px; color: rgba(255,255,255,.68); font-size: 1.05rem; line-height: 1.7; }
.auth-card { align-self: center; width: min(500px, calc(100% - 40px)); margin: 30px auto; padding: 46px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 8px; font-size: 2.4rem; }
.auth-card > p { margin-bottom: 30px; color: var(--muted); }
.auth-card form, .modal form { display: grid; gap: 15px; }
.auth-bottom { margin-top: 25px; color: var(--muted); text-align: center; font-size: .87rem; }
.auth-bottom a { color: var(--forest); font-weight: 800; }
.demo-note { display: block; margin-top: 18px; color: #8c918e; text-align: center; }

label { display: grid; gap: 7px; color: var(--ink); font-size: .78rem; font-weight: 800; }
input, select, textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    color: var(--ink);
    background: rgba(255,255,255,.8);
    border: 1px solid var(--border);
    border-radius: 2px;
    outline: none;
}
textarea { min-height: 94px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,146,73,.12); }
.notice { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--forest); background: #e5efe9; font-size: .86rem; }
.notice.error { color: #7a2a24; background: #f5e6e2; border-color: var(--red); }
.notice.success { color: var(--forest); }

.app-page { background: #eee9df; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: 250px;
    padding: 30px 22px;
    color: var(--white);
    background: var(--ink);
}
.sidebar nav { display: grid; gap: 5px; margin-top: 55px; }
.sidebar nav a { display: flex; justify-content: space-between; padding: 13px 14px; color: rgba(255,255,255,.68); border-left: 2px solid transparent; text-decoration: none; font-size: .85rem; }
.sidebar nav a:hover, .sidebar nav a.active { color: var(--white); background: rgba(255,255,255,.06); border-color: var(--gold); }
.sidebar nav b { display: grid; place-items: center; min-width: 20px; height: 20px; background: var(--gold); border-radius: 50%; font-size: .65rem; }
.sidebar-account { display: grid; gap: 5px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-account strong { font-family: var(--serif); }
.sidebar-account span { color: var(--gold-light); font-size: .7rem; }
.sidebar-account form { margin-top: 8px; }
.sidebar-account button { padding: 0; color: rgba(255,255,255,.55); background: none; border: 0; font-size: .72rem; }
.app-main { width: calc(100% - 250px); min-height: 100vh; margin-left: 250px; padding: 38px clamp(24px, 4vw, 64px) 70px; }
.app-header, .case-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 30px; }
.app-header h1, .case-header h1 { margin-bottom: 8px; font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -.035em; }
.app-header p, .case-header p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-grid article { min-height: 145px; padding: 24px; background: var(--white); border-top: 3px solid transparent; box-shadow: 0 8px 28px rgba(19,39,31,.05); }
.metric-grid article.accent { color: var(--white); background: var(--forest); border-color: var(--gold); }
.metric-grid span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.metric-grid strong { display: block; margin: 14px 0 8px; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
.metric-grid strong.plan-name { font-size: 1.7rem; }
.metric-grid small { color: var(--muted); }
.metric-grid .accent small { color: rgba(255,255,255,.65); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(330px, .6fr); gap: 18px; margin-bottom: 18px; }
.lower-grid { grid-template-columns: 1fr 1fr; }
.panel { padding: 28px; background: var(--white); box-shadow: 0 8px 28px rgba(19,39,31,.05); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.panel-heading h2 { margin: 0; font-size: 1.8rem; }
.panel-heading .kicker { margin-bottom: 4px; }
.panel-copy { color: var(--muted); line-height: 1.65; }
.case-list, .alert-list { display: grid; }
.case-row {
    display: grid;
    grid-template-columns: 43px minmax(180px, 1fr) auto auto 20px;
    align-items: center;
    gap: 15px;
    padding: 16px 4px;
    border-top: 1px solid var(--border);
    text-decoration: none;
}
.case-row:hover { background: #faf7f0; }
.case-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--white); background: var(--forest); border-radius: 50%; font-family: var(--serif); }
.case-info, .case-counts { display: grid; gap: 4px; }
.case-info small, .case-counts small { color: var(--muted); }
.case-counts { min-width: 100px; text-align: right; font-size: .72rem; }
.case-counts b { color: var(--red); }
.arrow { color: var(--gold); font-size: 1.2rem; }
.status { padding: 5px 8px; border-radius: 999px; color: var(--forest); background: #e3eee7; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.status.suspendido { color: #79551f; background: #f4ead6; }
.status.concluido { color: var(--muted); background: #e9e9e5; }
.alert-item { display: grid; grid-template-columns: 8px 1fr auto; gap: 12px; padding: 15px 0; border-top: 1px solid var(--border); }
.alert-marker { width: 7px; height: 7px; margin-top: 6px; background: #b8bdb9; border-radius: 50%; }
.alert-item.unread .alert-marker { background: var(--red); box-shadow: 0 0 0 4px rgba(156,66,56,.1); }
.alert-item div { display: grid; gap: 4px; }
.alert-item small, .alert-item p { margin: 0; color: var(--muted); font-size: .7rem; }
.alert-item strong { font-family: var(--serif); font-size: 1rem; }
.icon-button { width: 27px; height: 27px; color: var(--forest); background: transparent; border: 1px solid var(--border); border-radius: 50%; }
.reminder-row { display: flex; gap: 15px; padding: 15px 0; border-top: 1px solid var(--border); text-decoration: none; }
.reminder-row time { min-width: 85px; color: var(--gold); font-family: var(--serif); font-weight: 700; }
.reminder-row div { display: grid; gap: 4px; }
.reminder-row small { color: var(--muted); }
.inline-form { display: flex; align-items: center; gap: 10px; }
.inline-form input, .inline-form select { min-width: 130px; }
.admin-panel { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empty { padding: 42px 20px; color: var(--muted); text-align: center; border: 1px dashed var(--border); }
.empty strong { color: var(--ink); font-family: var(--serif); font-size: 1.25rem; }
.empty p { margin: 8px 0 0; }
.empty.compact { padding: 22px; }

.case-page { padding-bottom: 80px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; top: 4px; bottom: 0; left: 7px; width: 1px; background: var(--border); }
.timeline-entry { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 0 0 28px 12px; }
.timeline-dot { position: absolute; top: 4px; left: -19px; width: 11px; height: 11px; background: var(--forest); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px var(--forest); }
.timeline-dot.cita { background: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.timeline-date { padding-top: 2px; color: var(--muted); font-size: .72rem; }
.timeline-card { padding: 18px; background: #f7f3eb; border-left: 3px solid var(--forest); }
.timeline-card > span { color: var(--gold); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.timeline-card h3 { margin: 7px 0; }
.timeline-card p { color: var(--muted); line-height: 1.55; }
.timeline-card a, .publication-card a { color: var(--forest); font-size: .75rem; font-weight: 800; }
.publication-card { display: grid; gap: 7px; padding: 18px 0; border-top: 1px solid var(--border); }
.publication-card small, .publication-card p { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.publication-card p { margin: 0; }
.publication-card strong { font-family: var(--serif); font-size: 1.05rem; }
.upgrade-box { margin-bottom: 28px; padding: 25px; color: var(--white); background: var(--ink); }
.upgrade-box > span { color: var(--gold-light); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.upgrade-box h3 { margin: 10px 0; font-size: 1.5rem; }
.upgrade-box p { color: rgba(255,255,255,.68); }

.modal { width: min(570px, calc(100% - 30px)); padding: 0; background: var(--white); border: 0; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(10,27,20,.74); backdrop-filter: blur(4px); }
.modal form { padding: 32px; }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.modal-heading h2 { margin: 0; font-size: 2rem; }
.modal-heading > button { color: var(--muted); background: none; border: 0; font-size: 1.8rem; }

.public-main { min-height: calc(100vh - 78px); padding-bottom: 80px; background: var(--paper); }
.catalog-hero { padding: 90px clamp(28px, 8vw, 130px); color: var(--white); background: var(--ink); }
.catalog-hero h1 { max-width: 900px; margin-bottom: 20px; font-size: clamp(3rem, 6vw, 6rem); line-height: .95; letter-spacing: -.045em; }
.catalog-hero p { max-width: 680px; color: rgba(255,255,255,.68); line-height: 1.7; }
.catalog-hero .button { margin-top: 20px; }
.public-main > .notice { max-width: 1100px; margin: 25px auto; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 1200px; margin: 55px auto 0; padding: 0 24px; background: var(--border); }
.service-card { position: relative; padding: 34px; background: var(--white); }
.service-letter { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 28px; color: var(--white); background: var(--forest); border-radius: 50%; font-family: var(--serif); font-size: 1.5rem; }
.service-card > span { color: var(--gold); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.service-card h2 { min-height: 56px; margin: 8px 0 13px; font-size: 1.5rem; }
.service-card > p { min-height: 95px; color: var(--muted); line-height: 1.6; }
.service-card dl { margin: 22px 0; padding: 15px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .72rem; }
.service-card dt { color: var(--muted); }
.service-card dd { margin: 0; text-align: right; font-weight: 700; }
.public-empty { grid-column: 1 / -1; background: var(--white); }

.plans-main { min-height: calc(100vh - 78px); padding: 80px clamp(22px, 6vw, 90px); }
.plans-header { max-width: 760px; margin: 0 auto 55px; text-align: center; }
.plans-header h1 { margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.04em; }
.plans-header p { color: var(--muted); line-height: 1.7; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1280px; margin: auto; border: 1px solid var(--border); }
.plan-card { position: relative; display: flex; flex-direction: column; min-height: 480px; padding: 32px; background: var(--white); border-right: 1px solid var(--border); }
.plan-card:last-child { border: 0; }
.plan-card.featured { color: var(--white); background: var(--forest); transform: translateY(-14px); box-shadow: var(--shadow); }
.recommended { position: absolute; top: 0; right: 0; padding: 7px 10px; color: var(--ink); background: var(--gold-light); font-size: .62rem; font-weight: 900; text-transform: uppercase; }
.plan-card h2 { font-size: 2rem; }
.plan-price { display: grid; margin: 25px 0; }
.plan-price b { font-family: var(--serif); font-size: 3rem; font-weight: 500; }
.plan-price span { color: var(--muted); font-size: .7rem; }
.featured .plan-price span, .featured > p { color: rgba(255,255,255,.67); }
.plan-card > p { min-height: 65px; color: var(--muted); line-height: 1.5; }
.plan-card ul { display: grid; gap: 12px; margin: 20px 0 35px; padding: 0; list-style: none; font-size: .78rem; }
.plan-card li::before { content: "✓"; margin-right: 8px; color: var(--gold); font-weight: 900; }
.plan-card form, .plan-card > .button { margin-top: auto; }
.plan-card form .button { width: 100%; }
.featured .button { color: var(--ink); background: var(--gold-light); border-color: var(--gold-light); }
.plans-note { max-width: 800px; margin: 45px auto 0; color: var(--muted); text-align: center; font-size: .75rem; }

.reveal { animation: reveal .8s ease both; }
.delay-1 { animation-delay: .14s; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
    .hero-shell { grid-template-columns: 1fr; }
    .hero-visual { min-height: 650px; }
    .hero-shell::before { display: none; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .case-layout { grid-template-columns: 1fr; }
    .case-alerts { order: -1; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-card.featured { transform: none; }
}

@media (max-width: 760px) {
    .site-nav { padding: 0 18px; }
    .nav-links { gap: 12px; }
    .nav-links > a:not(.button) { display: none; }
    .hero-content { padding: 70px 25px; }
    .hero-content h1 { font-size: 3.7rem; }
    .hero-actions, .trust-row { align-items: flex-start; flex-direction: column; }
    .hero-visual { min-height: 560px; }
    .phone-card { min-height: 500px; }
    .value-section { padding: 75px 22px; }
    .value-grid { grid-template-columns: 1fr; }
    .auth-brand { left: 24px; }
    .auth-layout { grid-template-columns: 1fr; padding-top: 85px; }
    .auth-story { display: none; }
    .auth-card { padding: 30px 24px; }
    .sidebar {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        padding: 15px 18px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar nav { display: none; }
    .sidebar-account { margin: 0; padding: 0; border: 0; text-align: right; }
    .sidebar-account span { display: none; }
    .app-main { width: 100%; margin: 0; padding: 26px 16px 60px; }
    .app-header, .case-header { align-items: stretch; flex-direction: column; }
    .metric-grid { grid-template-columns: 1fr 1fr; }
    .metric-grid article { min-height: 130px; padding: 18px; }
    .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
    .panel { padding: 20px; overflow: hidden; }
    .case-row { grid-template-columns: 38px 1fr auto; }
    .case-row .status, .case-counts { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .timeline-entry { grid-template-columns: 1fr; gap: 7px; }
    .timeline-date { order: -1; }
    .catalog-hero { padding: 65px 22px; }
    .service-grid, .plans-grid { grid-template-columns: 1fr; }
    .plans-main { padding: 60px 16px; }
    .plan-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 460px) {
    .metric-grid { grid-template-columns: 1fr; }
    .two-fields { grid-template-columns: 1fr; }
    .panel-heading { align-items: flex-start; flex-direction: column; }
}
