:root {
    --bg: #efefe5;
    --paper: #ffffff;
    --ink: #111111;
    --muted: #555555;
    --line: #000000;
    --accent: #c66a00;
    --accent-strong: #f8de42;
    --danger: #b00000;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Crect width='96' height='96' fill='%23efefe5'/%3E%3Cpath d='M0 0h96v96H0z' fill='none' stroke='%23e2dfd5' stroke-width='1'/%3E%3Cpath d='M0 48h96M48 0v96' stroke='%23e7e3d7' stroke-width='1'/%3E%3Ccircle cx='18' cy='18' r='1.5' fill='%23d28a30'/%3E%3Ccircle cx='72' cy='20' r='1.5' fill='%2383c8ea'/%3E%3Ccircle cx='26' cy='70' r='1.5' fill='%2383c8ea'/%3E%3Ccircle cx='78' cy='74' r='1.5' fill='%23d28a30'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

body.page-home,
body.page-auth,
body.page-console {
    display: flex;
    flex-direction: column;
}

a {
    color: #0000ee;
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell,
.console-shell,
.auth-shell {
    width: min(1500px, calc(100vw - 12px));
    margin: 0 auto;
}

.page-home .page-shell,
.page-console .console-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-home main {
    flex: 1;
}

.site-topbar,
.console-topbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.page-home .site-topbar {
    margin-top: 0;
    padding: 8px;
    border: 2px solid #7d7d7d;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #5f5f5f;
    border-bottom-color: #5f5f5f;
    background: #c3c3c3;
    color: #111111;
    box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #8f8f8f;
}

.page-home .site-topbar a,
.page-home .site-topbar button {
    color: #111111;
    cursor: pointer;
}

.brand-lockup,
.brand-mark,
.brand-sub {
    display: block;
}

.brand-lockup {
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-sub,
.eyebrow,
.table-subline,
.muted-copy,
.auth-footnote,
.section-heading p,
.review-main p {
    color: var(--muted);
}

.page-home .brand-sub {
    color: #fff0a6;
}

.page-home .brand-lockup {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    border: 2px solid #7d7d7d;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #5f5f5f;
    border-bottom-color: #5f5f5f;
    background: #d4d0c8;
    color: #0a0a0a;
    text-decoration: none;
    box-shadow: inset 1px 1px 0 #efefef, inset -1px -1px 0 #a0a0a0;
}

.topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border: 2px solid #7d7d7d;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-right-color: #5f5f5f;
    border-bottom-color: #5f5f5f;
    background: #d4d0c8;
    color: #111111;
    text-decoration: none;
    box-shadow: inset 1px 1px 0 #f5f5f5, inset -1px -1px 0 #9f9f9f;
}

.topbar-button:active {
    border-top-color: #5f5f5f;
    border-left-color: #5f5f5f;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    box-shadow: inset -1px -1px 0 #f5f5f5, inset 1px 1px 0 #9f9f9f;
}

.eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    text-transform: uppercase;
}

.topbar-actions,
.table-actions,
.review-actions,
.form-actions,
.pagination,
.filter-pills,
.ad-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ghost-link,
.pill-link,
.filter-pill,
.page-chip,
.text-action,
.solid-button,
.ghost-button {
    display: inline-block;
    padding: 4px 8px;
    background: #efefef;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.pill-link,
.solid-button,
.filter-pill.is-active,
.page-chip.is-active {
    background: #d8d8d8;
    font-weight: 700;
}

.button-link {
    appearance: none;
    cursor: pointer;
}

.filter-panel,
.data-card,
.preview-panel,
.auth-card,
.auth-poster,
.metric-card,
.empty-panel,
.review-card {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    background: var(--paper);
}

.page-home .filter-panel {
    background: var(--accent);
    border-color: #8f4700;
    color: #ffffff;
}

.filter-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.filter-label {
    min-width: 34px;
    font-weight: 700;
    color: var(--accent-strong);
}

.page-home .filter-pill {
    padding: 0;
    border: 0;
    background: none;
    color: #ffffff;
    text-decoration: underline;
}

.page-home .filter-pill.is-active {
    color: var(--accent-strong);
}

.section-heading {
    margin-bottom: 8px;
}

.section-heading h2,
.console-topbar h1,
.auth-card h2,
.auth-poster h1,
.review-card h3 {
    margin: 0 0 6px;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.listing-shell {
    display: grid;
    gap: 6px;
}

.ad-card,
.preview-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    padding: 8px;
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
}

.ad-card {
    aspect-ratio: 1 / 1;
}

.ad-topline,
.preview-head,
.review-meta {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    align-items: flex-start;
}

.ad-topline-right {
    justify-content: flex-end;
}

.ad-domain {
    display: block;
    max-width: calc(100% - 18px);
    font-size: 9px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-meta,
.preview-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    min-width: 0;
    padding: 0 2px;
    font: 11px/1.2 Arial, Helvetica, sans-serif;
    color: #444444;
}

.preview-shell {
    display: grid;
    gap: 6px;
}

.ad-domain-link {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #3f3f46;
    text-decoration: underline;
}

.ad-domain-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    flex: 1 1 auto;
}

.ad-domain-wrap .ad-domain-link {
    min-width: 0;
}

.ad-url-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.ad-url-status.is-available {
    background: #16a34a;
}

.ad-url-status.is-unavailable {
    background: #dc2626;
}

.ad-daily-cost {
    min-width: 10px;
    font-size: 10px;
    line-height: 1;
    padding: 1px 3px;
    background: rgba(255, 255, 255, 0.45);
    color: rgba(0, 0, 0, 0.76);
    text-align: right;
}

.ad-float-cost {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    pointer-events: none;
}

.ad-copy,
.preview-card .ad-copy {
    flex: 1;
    margin: 0;
    padding: 8px 24px 0 0;
    line-height: 1.3;
    overflow: hidden;
    word-break: break-word;
}

.rich-copy,
.rich-copy * {
    max-width: 100%;
}

.rich-copy p,
.rich-copy div {
    margin: 0 0 4px;
}

.rich-copy p:last-child,
.rich-copy div:last-child {
    margin-bottom: 0;
}

.rich-copy b,
.rich-copy strong {
    font-weight: 700;
}

.rich-copy u {
    text-decoration: underline;
}

.ad-stats {
    justify-content: flex-start;
    gap: 10px;
    font-size: 10px;
    line-height: 1;
}

.meta-stats {
    flex-wrap: nowrap;
    justify-content: flex-end;
    color: #52525b;
}

.ad-stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mini-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    text-align: center;
    font-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.icon-click {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2352525b' d='M5.6 1.2c.5 0 .9.4.9.9v5.3l1.5-1.1c.4-.3 1-.2 1.3.2l4 5.4c.3.4.2 1-.2 1.3-.2.1-.4.2-.6.2H8.8c-.2 0-.5-.1-.6-.3L3.7 7.3c-.1-.2-.2-.4-.2-.6V2.1c0-.5.4-.9.9-.9h1.2z'/%3E%3C/svg%3E");
}

.icon-impression {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2352525b' d='M3 2.5h10c.8 0 1.5.7 1.5 1.5v8c0 .8-.7 1.5-1.5 1.5H3A1.5 1.5 0 0 1 1.5 12V4C1.5 3.2 2.2 2.5 3 2.5zm3.1 2.2v6.6l5.4-3.3-5.4-3.3z'/%3E%3C/svg%3E");
}

.flash {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: #ffffcc;
}

.flash-success {
    background: #eef9d8;
}

.flash-error {
    background: #ffe1e1;
}

.site-footer {
    margin-top: auto;
    padding: 10px 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    text-align: center;
    font-size: 12px;
}

.auth-footer {
    width: min(1500px, calc(100vw - 12px));
    margin: auto auto 0;
}

.auth-shell {
    min-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.register-layout {
    grid-template-columns: 1fr;
}

.wide-card {
    width: min(760px, 100%);
    margin: 0 auto;
}

.poster-note {
    padding: 8px;
    border: 1px solid var(--line);
    background: #f6f6f6;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.metric-card strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 6px;
    border: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    background: #ececec;
}

.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 8px;
}

.form-section + .form-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

.stack-form,
.review-form,
.report-form {
    display: grid;
    gap: 8px;
}

.stack-form label,
.report-form label {
    display: grid;
    gap: 4px;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.review-form textarea,
.report-form select,
.report-form textarea {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.three-columns,
.option-grid,
.stack-form.two-columns {
    display: grid;
    gap: 8px;
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack-form.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
    grid-column: 1 / -1;
}

.option-grid.tags-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.check-card,
.toggle-card {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border: 1px solid var(--line);
    background: #f7f7f7;
}

.preview-stack,
.review-list {
    display: grid;
    gap: 8px;
}

.preview-label,
.field-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
}

.desktop-preview {
    width: min(280px, 100%);
}

.mobile-preview {
    width: 200px;
}

.overflow-warning {
    margin-top: 8px;
    color: var(--danger);
}

.danger-link,
.danger-outline {
    color: var(--danger);
}

@media (max-width: 960px) {
    .auth-shell,
    .editor-grid,
    .site-topbar,
    .console-topbar,
    .filter-row,
    .three-columns,
    .stack-form.two-columns {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .page-home .filter-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .page-home .filter-pill {
        width: auto;
        display: inline-block;
    }
}

@media (max-width: 640px) {
    .page-shell,
    .console-shell,
    .auth-shell,
    .auth-footer {
        width: calc(100vw - 8px);
    }

    .brand-mark {
        font-size: 20px;
    }

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

    .ad-meta,
    .preview-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ===== 首页重设计覆盖 ===== */

body.page-home {
    border-top: 4px solid #1a1a1a;
}

.page-home .site-topbar {
    margin-top: 0;
    padding: 0 10px;
    height: 64px;
    align-items: center;
    border: none;
    border-bottom: 1px solid #d8d8d0;
    background: #ffffff;
    color: #111;
    box-shadow: none;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-home .brand-lockup {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    min-height: auto;
    color: #111;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    gap: 1px;
}

.brand-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    padding: 1px 4px 2px;
    line-height: 1;
    font-size: inherit;
}

.page-home .brand-mark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
}

.header-divider {
    color: #d0d0c8;
    font-size: 14px;
}

.header-slogan {
    font-size: 12px;
    color: #999;
    letter-spacing: .3px;
}

.page-home .site-topbar a,
.page-home .site-topbar button {
    color: #111;
    cursor: pointer;
}

.page-home .topbar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 5px 14px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #f8f8f6;
    color: #333;
    text-decoration: none;
    box-shadow: none;
}

.page-home .topbar-button:active {
    border-color: #bbb;
    box-shadow: none;
}

.page-home .pill-link.topbar-button {
    background: #111;
    color: #fff;
    border-color: #111;
}

.page-home .filter-panel {
    background: #fff;
    border: none;
    border-top: 1px solid #d8d8d0;
    border-bottom: 1px solid #d8d8d0;
    color: #111;
    margin-top: 0;
    padding: 0;
}

.page-home .filter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 7px 10px;
}

.page-home .filter-label {
    min-width: 34px;
    font-weight: 400;
    font-size: 11px;
    color: #aaa;
    flex-shrink: 0;
}

.page-home .filter-pill {
    display: inline-block;
    padding: 2px 9px;
    font-size: 12px;
    border: 1px solid #d0d0c8;
    background: #f5f4ef;
    color: #444;
    border-radius: 2px;
    text-decoration: none;
}

.page-home .filter-pill:hover {
    border-color: #aaa;
    background: #eeede8;
}

.page-home .filter-pill.is-active {
    background: #dddbd4;
    color: #111;
    border-color: #aaa8a0;
    font-weight: 600;
}

.icon-click {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Crect x='1' y='2' width='8' height='10' rx='4' fill='none' stroke='%2352525b' stroke-width='1.2'/%3E%3Cline x1='5' y1='2' x2='5' y2='7' stroke='%2352525b' stroke-width='1.2'/%3E%3Crect x='3.5' y='3.5' width='3' height='3' rx='1.5' fill='%2352525b'/%3E%3C/svg%3E");
}

/* ===== 登录/注册重设计覆盖 ===== */

body.page-auth {
    border-top: 4px solid #1a1a1a;
}

.auth-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    gap: 32px;
    flex-wrap: wrap;
    min-height: calc(100vh - 60px);
}

.auth-wrap .auth-card {
    width: 100%;
    max-width: 380px;
    margin-top: 0;
    padding: 28px 28px 24px;
    border: 1px solid #d0d0c8;
    background: #fff;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111;
    text-decoration: none;
    margin-bottom: 20px;
}

.auth-logo small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 4px;
    letter-spacing: 0;
}

.auth-wrap .auth-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.auth-sidebar {
    width: 100%;
    max-width: 280px;
    padding: 24px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.auth-sidebar h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.auth-sidebar p { margin-bottom: 10px; }

.auth-sidebar a { color: #555; font-size: 13px; }

.auth-wrap .stack-form { gap: 12px; }

.auth-wrap .solid-button {
    width: 100%;
    padding: 9px;
    background: #111;
    color: #fff;
    border-color: #111;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.auth-wrap .solid-button:hover { background: #333; }

.auth-footnote {
    margin-top: 14px;
    font-size: 12px;
    text-align: center;
    color: #888;
}

.auth-footnote a { color: #444; }

@media (max-width: 640px) {
    .auth-sidebar { display: none; }
    .auth-wrap { padding: 20px 16px; }
}

/* ===== 背景图 / footer 修复 ===== */
body.page-home,
body.page-auth {
    background-image: none;
}

.page-home .site-footer {
    margin-top: auto;
    padding: 12px 16px;
    border: none;
    border-top: 1px solid #d8d8d0;
    background: #ffffff;
    text-align: center;
    font-size: 11px;
    color: #aaa;
}

.page-auth .site-footer {
    border: none;
    border-top: 1px solid #d8d8d0;
    background: #ffffff;
    font-size: 11px;
    color: #aaa;
}

/* ===== 首页 header/filter/footer 通栏修复 ===== */
body.page-home {
    overflow-x: hidden;
}

.page-home .site-topbar,
.page-home .filter-panel,
.page-home .site-footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ===== topbar/filter 内容居中限宽 ===== */
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    gap: 12px;
}

.page-home .filter-row {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== topbar/filter 与广告列表对齐 ===== */
.topbar-inner,
.page-home .filter-row {
    width: min(1500px, calc(100vw - 12px));
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
}

/* ===== 广告卡片白底兜底 ===== */
.page-home .ad-card {
    background: #fff;
}

/* ===== Claude IP 检测 ===== */
.topbar-inner {
    position: relative;
}

.main-menu {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translate(-50%, -50%);
}

.main-menu-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid transparent;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.main-menu-link:hover,
.main-menu-link.is-active {
    border-color: #d8d8d0;
    background: #f5f5f2;
    color: #111;
}

.claude-check-main {
    flex: 1;
    padding: 16px 0 28px;
}

.claude-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 14px;
    border-bottom: 1px solid #d8d8d0;
}

.claude-hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.claude-hero p {
    margin: 0;
    max-width: 680px;
    color: #666;
}

.claude-refresh,
.claude-title-action button {
    appearance: none;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.claude-refresh {
    padding: 8px 15px;
    font-weight: 700;
}

.claude-title-action button {
    padding: 2px 8px;
    font-size: 12px;
}

.claude-notice {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e3a500;
    background: #fff7d1;
    color: #5f4500;
}

.claude-ip-grid,
.claude-card-grid {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

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

.claude-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.claude-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid #d8d8d0;
    background: #fff;
}

.claude-ip-card {
    display: grid;
    gap: 6px;
}

.claude-label,
.claude-card-title {
    color: #777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}

.claude-ip-card strong {
    overflow: hidden;
    font-size: 26px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claude-ip-card span:last-child {
    overflow: hidden;
    color: #666;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claude-card-title {
    margin-bottom: 8px;
}

.trust-title-row,
.claude-title-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.claude-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 35px;
    padding: 7px 0;
    border-bottom: 1px solid #eeeeea;
}

.claude-row:last-child {
    border-bottom: 0;
}

.claude-row span {
    flex: 0 0 auto;
    color: #666;
}

.claude-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.trust-score {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.trust-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-caption {
    margin-top: 5px;
    color: #666;
}

.trust-meter {
    height: 9px;
    margin: 14px 0 10px;
    overflow: hidden;
    background: linear-gradient(90deg, #c62828, #d97706, #d6b400, #16a34a);
}

.trust-meter span {
    display: block;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, .45);
    border-right: 3px solid #111;
    transition: width .24s ease;
}

.claude-tag {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.claude-tag-safe {
    background: #dcfce7;
    color: #166534;
}

.claude-tag-warn {
    background: #fef3c7;
    color: #92400e;
}

.claude-tag-danger {
    background: #fee2e2;
    color: #991b1b;
}

.claude-tag-neutral {
    background: #eeeeea;
    color: #525252;
}

.claude-ms {
    color: #777;
    font-size: 12px;
}

.country-flag {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    font-size: 1.05em;
    line-height: 1;
}

.claude-history {
    display: grid;
    gap: 7px;
    color: #777;
}

.claude-history-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 2px 8px;
    align-items: center;
    color: #777;
}

.claude-history-row strong {
    overflow: hidden;
    color: #111;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.claude-history-row em {
    grid-column: 2;
    color: #777;
    font-style: normal;
    font-size: 12px;
}

@media (max-width: 960px) {
    .main-menu {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        justify-content: center;
        padding-bottom: 8px;
    }

    .page-home .site-topbar {
        height: auto;
        min-height: 64px;
        padding-top: 8px;
    }

    .topbar-inner {
        flex-wrap: wrap;
        height: auto;
    }

    .claude-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .claude-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .claude-ip-grid {
        grid-template-columns: 1fr;
    }

    .claude-ip-card strong {
        font-size: 21px;
    }
}
