@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --background: 220 43% 97%;
    --foreground: 222 80% 7%;
    --card: 0 0% 100%;
    --card-foreground: 222 80% 7%;
    --border: 216 27% 88%;
    --input: 216 27% 88%;
    --ring: 215 100% 53%;
    --primary: 215 100% 53%;
    --primary-foreground: 0 0% 100%;
    --secondary: 216 32% 93%;
    --secondary-foreground: 222 80% 7%;
    --muted: 216 32% 93%;
    --muted-foreground: 216 16% 42%;
    --accent: 215 100% 53%;
    --accent-foreground: 0 0% 100%;
    --destructive: 4 67% 52%;
    --destructive-foreground: 0 0% 100%;
    --popover: 0 0% 100%;
    --popover-foreground: 222 80% 7%;
    --app-font-sans: 'Manrope', sans-serif;
    --app-font-serif: Georgia, serif;
    --app-font-mono: 'DM Mono', monospace;
    --radius: 1rem;
}

* {
    box-sizing: border-box;
}

.mobile-topbar,.sidebar-overlay {
    display: none;
}

html {
    background: #f2f5fa;
}

body {
    margin: 0;
    min-width: 320px;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--app-font-sans);
    -webkit-font-smoothing: antialiased;
}

button, input, select {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    min-height: 100dvh;
    display: flex;
}

.sidebar {
    width: 244px;
    flex: 0 0 244px;
    min-height: 100dvh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 18px 20px;
    background: #173b3b;
    color: #e7eedf;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    color: #fcf3d7;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px 9px 9px 3px;
    background: #e9c64b;
    color: #173b3b;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-family: 'Space Grotesk';
}

.brand-name {
    font-family: 'Space Grotesk';
    letter-spacing: -.04em;
    font-size: 18px;
    font-weight: 700;
}

.brand-name span {
    color: #e9c64b;
}

.sidebar-caption {
    margin: 46px 12px 10px;
    color: #91b0a8;
    font: 500 10px var(--app-font-mono);
    text-transform: uppercase;
    letter-spacing: .14em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    padding: 11px 12px;
    color: #a8c1b9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, color .2s, transform .2s;
}

.nav-item:hover {
    background: rgba(255,255,255,.08);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-item.active {
    background: #2f6260;
    color: #fbf1c9;
    box-shadow: inset 3px 0 #e9c64b;
}

.sidebar-foot {
    margin-top: auto;
    border-top: 1px solid rgba(226,239,220,.14);
    padding: 18px 10px 0;
}

.credit-mini {
    background: rgba(237,198,75,.12);
    border: 1px solid rgba(237,198,75,.25);
    border-radius: 12px;
    padding: 13px;
}

.credit-mini p {
    margin: 0;
    font-size: 11px;
    color: #b5d0bf;
}

.credit-mini strong {
    display: block;
    margin-top: 4px;
    color: #f7df75;
    font: 500 20px var(--app-font-mono);
}

.profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #d3e4ce;
    color: #24514a;
    font-size: 11px;
    font-weight: 800;
}

.profile-mini span {
    display: block;
    font-size: 12px;
    color: #ecf1df;
    font-weight: 700;
}

.profile-mini small {
    color: #91b0a8;
    font-size: 10px;
}

.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    padding: 0 44px;
    margin: auto;
}

.eyebrow {
    color: #6d7e78;
    font: 500 10px var(--app-font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topbar-title {
    font-size: 13px;
    color: #73817b;
}

.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    border: 1px solid #ded8c9;
    background: rgba(255,253,247,.65);
    color: #45605a;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    transition: .2s;
}

.icon-btn:hover {
    border-color: #2f6260;
    color: #2f6260;
    transform: translateY(-1px);
}

.content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 44px 60px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 7px 0 0;
    font: 700 clamp(26px, 3vw, 38px)/1.05 'Space Grotesk';
    letter-spacing: -.055em;
}

.page-heading p {
    color: #6d7974;
    font-size: 13px;
    max-width: 430px;
    margin: 9px 0 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: #245f59;
    box-shadow: 0 5px 12px rgba(36,95,89,.18);
}

.button-primary:hover {
    background: #1b504c;
    box-shadow: 0 8px 16px rgba(36,95,89,.25);
}

.button-ghost {
    background: transparent;
    border: 1px solid #d8d3c5;
    color: #45605a;
}

.button-ghost:hover {
    border-color: #6f9186;
    background: #eef1e6;
}

.button-yellow {
    background: #e9c64b;
    color: #173b3b;
}

.button-yellow:hover {
    background: #f2d35f;
}

.search-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 34px 38px 32px;
    color: #f4f1df;
    background: #193f3d;
    box-shadow: 0 16px 28px rgba(31,59,53,.14);
}

.search-hero:after {
    content: '';
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(232,199,75,.24);
    border-radius: 50%;
    right: -60px;
    top: -100px;
    box-shadow: 0 0 0 24px rgba(232,199,75,.04), 0 0 0 48px rgba(232,199,75,.03);
}

.search-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font: 600 clamp(23px,3vw,34px)/1.08 'Space Grotesk';
    letter-spacing: -.05em;
    max-width: 480px;
}

.search-hero p {
    position: relative;
    z-index: 1;
    color: #b8cfc2;
    font-size: 13px;
    margin: 11px 0 25px;
}

.mode-row {
    display: flex;
    gap: 7px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.mode-pill {
    border: 1px solid rgba(206,229,205,.24);
    background: transparent;
    color: #adc4b8;
    border-radius: 7px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    transition: .2s;
}

.mode-pill:hover {
    color: #ffffff;
    border-color: #e9c64b;
}

.mode-pill.active {
    color: #173b3b;
    background: #e9c64b;
    border-color: #e9c64b;
}

.search-box {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 710px;
    margin-top: 17px;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
    background: #f8f3e8;
    border-radius: 11px;
    padding: 0 15px;
}

.search-input-wrap svg {
    color: #54716a;
    flex: 0 0 auto;
}

.search-input {
    border: 0;
    outline: 0;
    background: transparent;
    color: #193f3d;
    width: 100%;
    height: 48px;
    font-size: 14px;
    font-weight: 600;
}

.search-input::placeholder {
    color: #9baca2;
    font-weight: 500;
}

.hero-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    color: #9db9ad;
    font-size: 10px;
}

.hero-note svg {
    color: #e9c64b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr);
    gap: 20px;
    margin-top: 24px;
}

.section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(43,62,52,.03);
}

.card-pad {
    padding: 22px;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.card-title h3 {
    margin: 0;
    font: 600 16px 'Space Grotesk';
    letter-spacing: -.03em;
}

.card-title p {
    margin: 0;
    color: #78817b;
    font-size: 11px;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #286b64;
    font-size: 11px;
    font-weight: 800;
}

.history-list {
    display: grid;
    gap: 4px;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-top: 1px solid #eee9dd;
}

.history-row:first-child {
    border-top: 0;
}

.history-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #35736a;
    background: #e4f0e5;
    border-radius: 9px;
}

.history-details {
    min-width: 0;
    flex: 1;
}

.history-details strong {
    display: block;
    color: #2c4640;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-details small {
    display: block;
    margin-top: 3px;
    color: #89938b;
    font: 10px var(--app-font-mono);
}

.status-pill {
    border-radius: 99px;
    padding: 5px 8px;
    font: 500 9px var(--app-font-mono);
}

.status-pill.ok {
    color: #26715c;
    background: #e4f2e8;
}

.status-pill.warn {
    color: #936f18;
    background: #fbf0bf;
}

.status-pill.error {
    color: #a34034;
    background: #f9e4dd;
}

.stat-stack {
    display: grid;
    gap: 10px;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid #e7e2d7;
    border-radius: 11px;
}

.stat-label {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #74807a;
    font-size: 11px;
}

.stat-label svg {
    color: #34736a;
}

.stat strong {
    color: #254843;
    font: 600 16px var(--app-font-mono);
}

.info-strip {
    margin-top: 12px;
    border-radius: 11px;
    padding: 13px 14px;
    background: #f8edba;
    color: #62551e;
    font-size: 11px;
    line-height: 1.5;
}

.result-wrap {
    margin-top: 26px;
    animation: rise .45s ease both;
}

.result-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.export-pdf {
    flex-shrink: 0;
    white-space: nowrap;
}

.result-top h2 {
    font: 600 25px 'Space Grotesk';
    letter-spacing: -.05em;
    margin: 5px 0 0;
}

.result-top p {
    margin: 7px 0 0;
    color: #77837b;
    font-size: 12px;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.result-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 11px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #63736b;
    border: 1px solid #dfdbcf;
    background: rgba(255,253,247,.7);
    padding: 6px 8px;
    border-radius: 7px;
    font: 10px var(--app-font-mono);
}

.meta-chip svg {
    color: #3a796d;
}

.result-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 16px;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    overflow: hidden;
}

.detail-card.wide {
    grid-column: 1 / -1;
}

.detail-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 19px;
    border-bottom: 1px solid #ebe6da;
}

.detail-head svg {
    color: #327369;
}

.detail-head h3 {
    margin: 0;
    font: 600 14px 'Space Grotesk';
}

.detail-head small {
    margin-left: auto;
    color: #8a948d;
    font: 10px var(--app-font-mono);
}

.detail-body {
    padding: 18px 19px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px 22px;
}

.field label {
    display: block;
    color: #89928b;
    font: 10px var(--app-font-mono);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.field div {
    margin-top: 5px;
    color: #29463f;
    font-size: 12px;
    font-weight: 700;
}

.field .mono {
    font-family: var(--app-font-mono);
    font-size: 11px;
    font-weight: 500;
}

.match {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2a765d;
    font: 10px var(--app-font-mono);
}

.match svg {
    background: #dcefe2;
    border-radius: 50%;
    padding: 2px;
}

.entity-list {
    display: grid;
    gap: 9px;
}

.entity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 9px;
    border: 1px solid #e9e4d9;
}

.entity strong {
    display: block;
    font-size: 12px;
    color: #2d4b43;
}

.entity small {
    display: block;
    color: #859088;
    font: 10px var(--app-font-mono);
    margin-top: 4px;
}

.entity-tag {
    color: #49766c;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.risk-card {
    background: #f2f7ea;
    border-color: #d6e6cf;
}

.risk-body {
    display: flex;
    gap: 18px;
    align-items: center;
}

.risk-score {
    flex: 0 0 88px;
    height: 88px;
    border-radius: 50%;
    border: 8px solid #c3dfc5;
    display: grid;
    place-items: center;
    color: #28735d;
    font: 600 24px var(--app-font-mono);
}

.risk-body strong {
    color: #31584b;
    font-size: 13px;
}

.risk-body p {
    margin: 5px 0 0;
    color: #708177;
    font-size: 11px;
    line-height: 1.5;
}

.skeleton {
    background: linear-gradient(90deg,#ebe9df,#f7f4ea,#ebe9df);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
    border-radius: 8px;
}

.loading-card {
    display: grid;
    gap: 16px;
}

.empty-state {
    padding: 34px 18px;
    text-align: center;
    color: #7f8982;
}

.empty-state svg {
    color: #8eb4a3;
    margin-bottom: 10px;
}

.empty-state strong {
    display: block;
    color: #476058;
    font: 600 14px 'Space Grotesk';
}

.empty-state p {
    margin: 7px auto 0;
    max-width: 280px;
    font-size: 11px;
    line-height: 1.5;
}

.page-card {
    padding: 24px;
}

.filter-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-select {
    appearance: none;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    color: #52655d;
    padding: 10px 30px 10px 11px;
    font-size: 11px;
    outline: 0;
}

.table-wrap {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.history-table th {
    text-align: left;
    color: #87928a;
    padding: 11px 12px;
    border-bottom: 1px solid #e7e2d8;
    font: 10px var(--app-font-mono);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.history-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0ece3;
    color: #365149;
    font-size: 12px;
}

.history-table td:first-child {
    font-weight: 800;
}

.history-table tr:hover td {
    background: #fbf7e9;
}

.table-muted {
    color: #87918b !important;
    font: 10px var(--app-font-mono) !important;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    max-width: 760px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}

.pricing-card.featured {
    border: 1.5px solid #126eff;
    box-shadow: 0 14px 34px rgba(18,110,255,.12);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 26px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #126eff;
    color: #ffffff;
    font: 600 9px var(--app-font-mono);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pricing-head .eyebrow {
    color: #126eff;
}

.pricing-head h3 {
    margin: 8px 0 0;
    color: #030b1d;
    font: 600 20px 'Space Grotesk';
    letter-spacing: -.03em;
}

.pricing-head p {
    margin: 8px 0 0;
    color: #66758e;
    font-size: 12px;
    line-height: 1.55;
    min-height: 52px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 20px 0 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef1f6;
}

.pricing-value {
    color: #030b1d;
    font: 600 32px 'Space Grotesk';
    letter-spacing: -.05em;
}

.pricing-cadence {
    color: #839097;
    font: 11px var(--app-font-mono);
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 24px;
    display: grid;
    gap: 12px;
}

.pricing-list li {
    display: flex;
    gap: 9px;
    align-items: center;
    color: #45566f;
    font-size: 12px;
}

.pricing-list svg {
    color: #16815a;
    flex: 0 0 auto;
}

.pricing-action {
    margin-top: auto;
}

.pricing-action .button {
    width: 100%;
}

.plans-note {
    margin-top: 22px;
    max-width: 760px;
    padding: 15px 17px;
    background: #e8eef7;
    border-radius: 10px;
    color: #5d6d86;
    font-size: 12px;
    line-height: 1.5;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.setting-section {
    border-top: 1px solid #eae4d8;
    padding: 20px 0;
}

.setting-section:first-child {
    border-top: 0;
    padding-top: 0;
}

.setting-section h3 {
    margin: 0 0 4px;
    font: 600 15px 'Space Grotesk';
}

.setting-section p {
    margin: 0 0 16px;
    color: #849088;
    font-size: 11px;
}

.setting-field {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.setting-field label {
    color: #65756b;
    font-size: 11px;
    font-weight: 700;
}

.setting-input {
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
    color: #38534b;
    outline: 0;
    padding: 11px 12px;
    font-size: 12px;
}

.setting-input:focus {
    border-color: #518b79;
    box-shadow: 0 0 0 3px rgba(71,137,117,.12);
}

.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 0;
    border-top: 1px solid #eee9df;
}

.switch-row strong {
    display: block;
    color: #486259;
    font-size: 12px;
}

.switch-row small {
    display: block;
    color: #8a948d;
    margin-top: 3px;
    font-size: 10px;
}

.switch {
    width: 39px;
    height: 22px;
    padding: 2px;
    border: 0;
    border-radius: 99px;
    background: #d4d9d0;
    transition: .2s;
    flex: 0 0 auto;
}

.switch span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.switch.on {
    background: #3d806e;
}

.switch.on span {
    transform: translateX(17px);
}

.api-card {
    background: #193f3d;
    color: #eaf0dc;
}

.api-card .card-title h3 {
    color: #f4edc9;
}

.api-card p {
    color: #a8c4b5;
    line-height: 1.6;
}

.api-check {
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid rgba(227,240,220,.14);
    padding: 12px 0;
    color: #bed5c5;
    font-size: 11px;
}

.api-check svg {
    color: #e9c64b;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #173b3b;
    color: #f7f0d4;
    border-left: 3px solid #e9c64b;
    border-radius: 9px;
    padding: 13px 16px;
    box-shadow: 0 10px 25px rgba(24,47,43,.2);
    font-size: 12px;
    animation: rise .3s ease both;
    z-index: 10;
}

.error-box {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 13px;
    background: #fbe8df;
    color: #a54939;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 11px;
}

@keyframes shimmer {
    to {
        background-position: -200% 0;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 78px;
        flex-basis: 78px;
        padding-inline: 10px;
        align-items: center;
    }

    .brand {
        padding: 0;
    }

    .brand-name,.sidebar-caption,.credit-mini,.profile-mini span,.profile-mini small {
        display: none;
    }

    .profile-mini {
        margin-top: 18px;
    }

    .nav-item {
        width: 48px;
        justify-content: center;
    }

    .nav-item span {
        display: none;
    }

    .sidebar-foot {
        padding-inline: 0;
    }

    .topbar,.content {
        padding-left: 25px;
        padding-right: 25px;
    }

    .dashboard-grid,.settings-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

        .result-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 58px;
        padding: 0 14px;
        background: #030b1d;
        color: #ffffff;
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .mobile-menu-toggle,.mobile-search-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
    }

    .mobile-menu-toggle:active,.mobile-search-link:active {
        background: rgb(255 255 255 / 10%);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #ffffff;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 264px;
        max-width: 82vw;
        height: 100%;
        min-height: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 22px 16px;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 60;
        overflow-y: auto;
    }

    .sidebar.aberto {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgb(3 11 29 / 55%);
        z-index: 50;
    }

    .sidebar-overlay.aberto {
        display: block;
    }

    .brand {
        padding: 0;
        margin-bottom: 8px;
    }

    .brand-name,.sidebar-caption,.credit-mini {
        display: block;
    }

    .sidebar-foot {
        display: block;
        margin-top: auto;
        padding-inline: 0;
    }

    .sidebar nav {
        display: block;
    }

    .nav-item {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        padding: 11px 13px;
    }

    .nav-item span {
        display: inline;
    }

    .topbar {
        display: none;
    }

    .content {
        padding: 14px 18px 42px;
    }

    .topbar-title {
        display: none;
    }

    .page-heading {
        display: block;
        margin-bottom: 20px;
    }

    .page-heading .button {
        margin-top: 16px;
    }

    .search-hero {
        padding: 25px 20px;
    }

    .search-box {
        display: block;
    }

    .search-box .button {
        width: 100%;
        margin-top: 9px;
    }

    .result-top {
        display: block;
    }

    .result-actions {
        margin-top: 14px;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .risk-body {
        align-items: start;
    }

    .result-meta {
        gap: 5px;
    }

    .meta-chip {
        font-size: 9px;
    }
}

.sidebar {
    background: #030b1d;
    color: #ffffff;
}

.brand {
    color: #ffffff;
}

.brand-mark {
    position: relative;
    width: 32px;
    height: 35px;
    border-radius: 0;
    background: transparent;
    border: 0;
    color: transparent;
    font-size: 0;
}

.brand-mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    clip-path: polygon(50% 0, 100% 18%, 87% 74%, 50% 100%, 13% 74%, 0 18%);
}

.brand-mark::after {
    content: 'P';
    position: absolute;
    inset: 2px;
    display: grid;
    place-items: center;
    background: #030b1d;
    color: #ffffff;
    clip-path: polygon(50% 0, 100% 18%, 87% 74%, 50% 100%, 13% 74%, 0 18%);
    font: 700 16px/1 'Space Grotesk';
}

.brand-name {
    color: #ffffff;
    letter-spacing: -.045em;
}

.brand-name span {
    color: #126eff;
}

.sidebar-caption {
    color: #7e91b5;
}

.nav-item {
    color: #9eacc4;
}

.nav-item:hover {
    background: rgba(18,110,255,.16);
    color: #ffffff;
}

.nav-item.active {
    background: #102c5d;
    color: #ffffff;
    box-shadow: inset 3px 0 #126eff;
}

.sidebar-foot {
    border-top-color: rgba(255,255,255,.12);
}

.credit-mini {
    background: rgba(18,110,255,.16);
    border-color: rgba(18,110,255,.45);
}

.credit-mini p {
    color: #aebbd1;
}

.credit-mini strong {
    color: #43b7ff;
}

.main {
    background: #f2f5fa;
}

.content {
    padding-top: 40px;
}

.eyebrow {
    color: #126eff;
}

.page-heading h1 {
    color: #030b1d;
}

.page-heading p {
    color: #61708a;
}

.button-primary {
    background: #126eff;
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(18,110,255,.18);
}

.button-primary:hover {
    background: #075bdc;
    box-shadow: 0 8px 16px rgba(18,110,255,.25);
}

.button-ghost {
    border-color: #ccd6e5;
    color: #12315e;
    background: #ffffff;
}

.button-ghost:hover {
    border-color: #126eff;
    background: #edf4ff;
}

.button-yellow {
    background: #126eff;
    color: #ffffff;
}

.button-yellow:hover {
    background: #075bdc;
}

.search-hero {
    background: #030b1d;
    box-shadow: 0 16px 28px rgba(3,11,29,.18);
}

.search-hero:after {
    border-color: rgba(18,110,255,.45);
    box-shadow: 0 0 0 24px rgba(18,110,255,.08), 0 0 0 48px rgba(67,183,255,.06);
}

.search-hero p {
    color: #afbad0;
}

.mode-pill {
    border-color: rgba(174,194,225,.3);
    color: #b7c4dc;
}

.mode-pill:hover {
    color: #ffffff;
    border-color: #43b7ff;
}

.mode-pill.active {
    color: #ffffff;
    background: #126eff;
    border-color: #126eff;
}

.search-input-wrap {
    background: #ffffff;
}

.search-input {
    color: #030b1d;
}

.hero-note {
    color: #8394b2;
}

.hero-note svg {
    color: #43b7ff;
}

.section-card, .detail-card, .card-title h3, .detail-head h3, .pricing-head h3, .setting-section h3 {
    color: #030b1d;
}

.card-title p, .pricing-head p, .setting-section p {
    color: #66758e;
}

.link-button {
    color: #126eff;
}

.history-row {
    border-top-color: #edf1f6;
}

.history-icon {
    color: #126eff;
    background: #e8f1ff;
}

.history-details strong {
    color: #16325b;
}

.history-details small, .table-muted {
    color: #71809a !important;
}

.status-pill.ok {
    color: #126eff;
    background: #edf4ff;
}

.status-pill.warn {
    color: #9c7011;
    background: #fff3c9;
}

.stat {
    border-color: #e0e7f0;
}

.stat-label {
    color: #6b7a91;
}

.stat-label svg {
    color: #126eff;
}

.stat strong {
    color: #030b1d;
}

.info-strip {
    background: #e7f0ff;
    color: #1c4d9a;
}

.detail-head {
    border-bottom-color: #e8edf4;
}

.detail-head svg, .meta-chip svg {
    color: #126eff;
}

.detail-head small {
    color: #75839a;
}

.field label {
    color: #71809a;
}

.field div {
    color: #18365f;
}

.match {
    color: #126eff;
}

.match svg {
    background: #edf4ff;
}

.entity {
    border-color: #e2e8f0;
}

.entity strong {
    color: #18365f;
}

.entity small {
    color: #71809a;
}

.entity-tag {
    color: #126eff;
}

.risk-card {
    background: #ffffff;
    border-color: #dbe3ee;
}

.risk-score {
    border-color: #cbd9eb;
    color: #126eff;
}

.risk-body strong {
    color: #18365f;
}

.risk-body p {
    color: #637d73;
}

.meta-chip {
    color: #64738b;
    border-color: #dbe3ee;
    background: #ffffff;
}

.filter-select, .setting-input {
    border-color: #ccd7e6;
    background: #ffffff;
    color: #18365f;
}

.history-table th {
    color: #71809a;
    border-bottom-color: #e1e8f1;
}

.history-table td {
    border-bottom-color: #edf1f6;
    color: #18365f;
}

.history-table tr:hover td {
    background: #f4f8ff;
}

.plans-note {
    background: #e8eef7;
    color: #5d6d86;
}

.setting-section {
    border-top-color: #e4eaf2;
}

.setting-field label {
    color: #526582;
}

.setting-input:focus {
    border-color: #126eff;
    box-shadow: 0 0 0 3px rgba(18,110,255,.12);
}

.switch.on {
    background: #126eff;
}

.toast {
    background: #030b1d;
    color: #ffffff;
    border-left-color: #126eff;
}

.error-box {
    background: #fff0ed;
    color: #af4037;
}

.settings-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 901px) {
    .settings-grid {
        grid-template-columns: 1.2fr .8fr;
    }
}

.settings-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e4eaf2;
}

.dashboard-grid {
    grid-template-columns: 1fr;
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 10px;
    border: 1px solid rgba(174,194,225,.2);
    border-radius: 9px;
    background: transparent;
    color: #9eacc4;
    font-size: 11px;
    font-weight: 700;
    transition: .2s;
}

.logout-button:hover {
    border-color: #43b7ff;
    background: rgba(18,110,255,.12);
    color: #ffffff;
}

.auth-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(340px, .75fr) minmax(540px, 1.25fr);
    background: #f2f5fa;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 42px 54px;
    background: #030b1d;
    color: #ffffff;
}

.auth-visual::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    right: -220px;
    bottom: -160px;
    border: 1px solid rgba(18,110,255,.35);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(18,110,255,.07), 0 0 0 56px rgba(67,183,255,.045);
}

.auth-brand {
    width: fit-content;
    padding: 0;
}

.auth-visual-copy {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin: auto 0;
    padding-bottom: 10vh;
}

.auth-visual-copy .eyebrow {
    color: #43b7ff;
}

.auth-visual-copy h2 {
    margin: 12px 0 12px;
    font: 600 clamp(30px, 4vw, 49px)/1.02 'Space Grotesk';
    letter-spacing: -.06em;
}

.auth-visual-copy p {
    max-width: 330px;
    color: #aebbd1;
    font-size: 13px;
    line-height: 1.7;
}

.auth-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    color: #7f96bb;
    font: 10px var(--app-font-mono);
}

.auth-trust svg {
    color: #43b7ff;
    flex: 0 0 auto;
}

.auth-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 44px;
}

.auth-card {
    width: min(100%, 470px);
    padding: 38px 42px;
    border: 1px solid #dbe3ee;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(22,47,87,.08);
}

.auth-card h1 {
    margin: 8px 0 0;
    color: #030b1d;
    font: 600 clamp(28px, 4vw, 38px)/1.05 'Space Grotesk';
    letter-spacing: -.055em;
}

.auth-description {
    margin: 10px 0 27px;
    color: #66758e;
    font-size: 12px;
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    color: #526582;
    font-size: 11px;
    font-weight: 800;
}

.auth-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccd7e6;
    border-radius: 9px;
    outline: 0;
    background: #ffffff;
    color: #18365f;
    font-size: 12px;
}

.auth-field input:focus {
    border-color: #126eff;
    box-shadow: 0 0 0 3px rgba(18,110,255,.12);
}

.auth-field input::placeholder {
    color: #9aa9bd;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -2px 0 2px;
    font-size: 10px;
}

.auth-form-row a, .auth-switch a, .terms-check a, .auth-footer-links a {
    color: #126eff;
    font-weight: 800;
    text-decoration: none;
}

.auth-form-row a:hover, .auth-switch a:hover, .terms-check a:hover, .auth-footer-links a:hover {
    text-decoration: underline;
}

.remember-check, .terms-check {
    display: flex;
    align-items: start;
    gap: 7px;
    color: #71809a;
    font-size: 10px;
    line-height: 1.45;
}

.remember-check input, .terms-check input {
    accent-color: #126eff;
    margin: 1px 0 0;
}

.terms-check {
    margin: -2px 0 2px;
}

.auth-submit {
    width: 100%;
    height: 45px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 17px;
    color: #a0aec0;
    font: 10px var(--app-font-mono);
}

.auth-divider::before, .auth-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    background: #e4eaf2;
}

.auth-switch {
    margin: 22px 0 0;
    color: #71809a;
    text-align: center;
    font-size: 11px;
}

.auth-divider + .auth-switch {
    margin-top: 0;
}

.auth-switch svg {
    vertical-align: -2px;
    margin-right: 4px;
}

.auth-success {
    padding: 10px 12px;
    border: 1px solid #cbdcf7;
    border-radius: 8px;
    background: #f1f6ff;
    color: #315c9d;
    font-size: 10px;
    line-height: 1.45;
}

.auth-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8a99ad;
    font-size: 10px;
}

.legal-card {
    width: min(100%, 720px);
}

.legal-card h1 {
    font-size: 31px;
}

.legal-content {
    display: grid;
    gap: 17px;
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 7px;
}

.legal-content h3 {
    margin: 0;
    color: #18365f;
    font: 600 14px 'Space Grotesk';
}

.legal-content p {
    margin: -9px 0 0;
    color: #66758e;
    font-size: 11px;
    line-height: 1.65;
}

.legal-back {
    margin-top: 25px;
}

.result-counts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    margin: 0 0 16px;
}

.result-count {
    display: grid;
    gap: 3px;
    min-height: 62px;
    align-content: center;
    padding: 10px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 11px;
    background: #ffffff;
}

.result-count strong {
    color: #126eff;
    font: 600 19px 'Space Grotesk';
}

.result-count span {
    color: #71809a;
    font: 10px var(--app-font-mono);
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-placeholder {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 130px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.photo-placeholder-icon {
    display: grid;
    place-items: center;
    width: 92px;
    height: 88px;
    border-radius: 8px;
    background: linear-gradient(145deg, #dbeaff, #eef5ff);
    color: #126eff;
}

.photo-placeholder strong {
    color: #18365f;
    font-size: 11px;
}

.photo-placeholder small {
    color: #71809a;
    font-size: 9px;
}

.photo-item {
    position: relative;
    width: 130px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.photo-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-item .photo-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 150px;
    color: #126eff;
    background: linear-gradient(145deg, #dbeaff, #eef5ff);
}

.photo-item .photo-fallback small {
    color: #71809a;
    font-size: 9px;
}

.photo-item.photo-erro img {
    display: none;
}

.photo-item.photo-erro .photo-fallback {
    display: flex;
}

.photo-consultar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 7px 6px;
    border: none;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    color: #126eff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.photo-consultar:hover {
    background: #eef5ff;
}

.contact-block {
    margin-bottom: 16px;
}

.contact-block:last-child {
    margin-bottom: 0;
}

.contact-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.contact-list {
    display: grid;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.contact-icon {
    display: grid;
    place-items: center;
    color: #126eff;
    flex-shrink: 0;
}

.contact-value {
    color: #18365f;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.contact-tag {
    padding: 3px 8px;
    border-radius: 20px;
    background: #26ad59;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    flex-shrink: 0;
}

.contact-tag.light {
    background: #e2e8f0;
    color: #64748b;
}

.entity-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.address-list {
    display: grid;
    gap: 10px;
}

.address-item {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-left: 3px solid #126eff;
    border-radius: 7px;
    background: #f4f8ff;
}

.address-item strong {
    color: #18365f;
    font-size: 12px;
}

.address-item span, .address-item small {
    color: #71809a;
    font: 10px var(--app-font-mono);
}

.detail-intro {
    margin: 0 0 14px;
    color: #71809a;
    font-size: 11px;
    line-height: 1.5;
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.entity-rich {
    align-items: start;
    justify-content: start;
    min-height: 96px;
}

.entity-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    background: #e8f1ff;
    color: #126eff;
}

.entity-avatar span {
    color: #9aa9bd;
}

.entity-content {
    min-width: 0;
    flex: 1;
}

.entity-content small {
    white-space: normal;
    line-height: 1.45;
}

.empty-metrics, .judicial-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 13px;
}

.empty-metrics div, .judicial-metrics div {
    display: grid;
    gap: 3px;
    padding: 11px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fbff;
}

.empty-metrics strong, .judicial-metrics strong {
    color: #126eff;
    font: 600 16px 'Space Grotesk';
}

.empty-metrics span, .judicial-metrics span {
    color: #71809a;
    font: 9px var(--app-font-mono);
}

.empty-inline {
    padding: 13px;
    border: 1px dashed #cbd7e6;
    border-radius: 9px;
    color: #71809a;
    font-size: 11px;
}

.timeline-list {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 72px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-bottom: 11px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 18px;
    bottom: 0;
    left: 9px;
    border-left: 1px solid #b9cdf0;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 19px;
    height: 19px;
    border: 1px solid #126eff;
    border-radius: 50%;
    background: #edf4ff;
}

.timeline-date {
    color: #126eff;
    font: 600 10px var(--app-font-mono);
}

.timeline-card {
    display: grid;
    gap: 6px;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #ffffff;
}

.timeline-category {
    width: fit-content;
    padding: 3px 6px;
    border-radius: 5px;
    color: #126eff;
    background: #edf4ff;
    font: 9px var(--app-font-mono);
}

.timeline-card > strong {
    color: #18365f;
    font-size: 11px;
}

.timeline-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed #dbe3ee;
    color: #18365f;
    font-size: 10px;
}

.timeline-fields span {
    display: grid;
    gap: 3px;
}

.timeline-fields small {
    color: #71809a;
    font: 9px var(--app-font-mono);
    text-transform: uppercase;
}

.company-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: #71809a;
    font-size: 11px;
}

.data-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.data-table th {
    padding: 10px 11px;
    text-align: left;
    color: #71809a;
    border-bottom: 1px solid #e1e8f1;
    font: 10px var(--app-font-mono);
    text-transform: uppercase;
}

.data-table td {
    padding: 10px 11px;
    color: #526582;
    border-bottom: 1px solid #edf1f6;
    font-size: 11px;
}

.data-table td strong {
    color: #18365f;
    font-size: 10px;
}

.mono {
    font-family: var(--app-font-mono) !important;
}

.debt-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.debt-row {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-left: 3px solid #126eff;
    border-radius: 7px;
    background: #f4f8ff;
    color: #71809a;
    font: 10px var(--app-font-mono);
}

.debt-row strong {
    color: #18365f;
    font: 600 11px var(--app-font-sans);
}

.lawyer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.lawyer-card {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.lawyer-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #edf4ff;
    color: #126eff;
}

.lawyer-card strong, .lawyer-card span, .lawyer-card small {
    display: block;
}

.lawyer-card strong {
    color: #18365f;
    font-size: 11px;
}

.lawyer-card span, .lawyer-card small {
    margin-top: 3px;
    color: #71809a;
    font: 9px var(--app-font-mono);
}

.process-list {
    display: grid;
    gap: 13px;
}

.process-card {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #fbfdff;
}

.process-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 13px;
}

.process-heading strong, .process-heading span {
    display: block;
}

.process-heading strong {
    color: #126eff;
    font: 600 12px var(--app-font-mono);
}

.process-heading div > span {
    margin-top: 4px;
    color: #71809a;
    font: 10px var(--app-font-mono);
}

.process-fields {
    gap: 11px 18px;
}

.process-fields .field div {
    font-size: 11px;
    line-height: 1.4;
}

.party-heading {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #dbe3ee;
    color: #71809a;
    font: 10px var(--app-font-mono);
    text-transform: uppercase;
}

.party-list {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.party-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    background: #f4f8ff;
}

.party-row strong, .party-row small {
    display: block;
}

.party-row strong {
    color: #18365f;
    font-size: 10px;
}

.party-row small {
    margin-top: 3px;
    color: #71809a;
    font: 9px var(--app-font-mono);
}

.party-row > span {
    color: #526582;
    font-size: 9px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .content {
        padding-top: 30px;
    }
}

@media (max-width: 900px) {
    .result-counts {
        grid-template-columns: repeat(5, minmax(90px, 1fr));
        overflow-x: auto;
    }

    .result-count {
        min-width: 90px;
    }

    .empty-metrics, .judicial-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .entity-grid, .lawyer-grid, .debt-list {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 20px 1fr;
    }

    .timeline-card {
        grid-column: 2;
    }

    .timeline-date {
        grid-column: 2;
        grid-row: 1;
        margin-left: 26px;
    }

    .timeline-card {
        grid-row: 2;
    }

    .timeline-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .content {
        padding-top: 24px;
    }
}

@media (max-width: 980px) {
    .auth-shell {
        display: block;
    }

    .auth-visual {
        min-height: 295px;
        padding: 28px 34px 34px;
    }

    .auth-visual-copy {
        max-width: 600px;
        margin-top: 58px;
        padding-bottom: 0;
    }

    .auth-visual-copy h2 {
        max-width: 540px;
        font-size: clamp(31px, 6vw, 44px);
    }

    .auth-visual-copy p {
        max-width: 520px;
    }

    .auth-main {
        min-height: calc(100dvh - 295px);
        padding: 38px 28px 42px;
    }

    .auth-card {
        width: min(100%, 520px);
    }
}

@media (max-width: 620px) {
    .auth-visual {
        min-height: 0;
        padding: 22px 20px 27px;
    }

    .auth-visual-copy {
        margin-top: 46px;
    }

    .auth-visual-copy h2 {
        margin-top: 9px;
        font-size: 34px;
    }

    .auth-visual-copy p {
        margin-bottom: 0;
        font-size: 12px;
    }

    .auth-trust {
        margin-top: 20px;
        font-size: 9px;
        line-height: 1.4;
    }

    .auth-main {
        min-height: 0;
        padding: 26px 16px 32px;
        gap: 18px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 14px;
    }

    .auth-card h1 {
        font-size: 30px;
    }

    .auth-description {
        margin-bottom: 23px;
    }

    .auth-form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .terms-check {
        align-items: flex-start;
    }

    .legal-card h1 {
        font-size: 26px;
    }

    .legal-content {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .legal-back {
        width: 100%;
    }

    .auth-footer-links {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        line-height: 1.5;
    }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(242 245 250 / 75%);
    z-index: 20;
}

.loading:before {
    content: '';
    width: 42px;
    height: 42px;
    border: 4px solid #126eff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.process-mov {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #eef1f6;
    color: #52627a;
    font-size: 11px;
    line-height: 1.5;
}
