:root,
[data-theme="dark"] {
    --bg-color: #0d1117;
    --panel-bg: #161b22;
    --border-color: #30363d;

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;

    --header-blue: #58a6ff;
    --btn-blue: #238636;
    --btn-blue-hover: #2ea043;

    --accent-gradient: linear-gradient(135deg, #58a6ff 0%, #7d4ef7 100%);

    --success-green: #3fb950;
    --success-bg: rgba(63, 185, 80, 0.08);

    --warning-yellow: #d29922;
    --warning-bg: rgba(210, 153, 34, 0.08);

    --error-red: #f85149;
    --error-bg: rgba(248, 81, 73, 0.08);

    --sidebar-width: 320px;

    --icon-bg: #1a2332;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 2px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-color: #f6f8fa;
    --panel-bg: #ffffff;
    --border-color: #d0d7de;

    --text-primary: #1f2328;
    --text-secondary: #656d76;

    --header-blue: #0969da;
    --btn-blue: #1f883d;
    --btn-blue-hover: #1a7f37;

    --accent-gradient: linear-gradient(135deg, #0969da 0%, #8250df 100%);

    --success-green: #1a7f37;
    --success-bg: rgba(26, 127, 55, 0.08);

    --warning-yellow: #9a6700;
    --warning-bg: rgba(154, 103, 0, 0.08);

    --error-red: #cf222e;
    --error-bg: rgba(207, 34, 46, 0.08);

    --icon-bg: #f6f8fa;
    --card-shadow: 0 1px 3px rgba(31, 35, 40, 0.12), 0 4px 12px rgba(31, 35, 40, 0.08);
    --card-shadow-hover: 0 2px 8px rgba(31, 35, 40, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

.app-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Sidebar ────────────────────────────────── */

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.3s, border-color 0.3s;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--border-color);
    background: rgba(128, 128, 128, 0.04);
}

.sidebar-header svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.sidebar-list {
    overflow-y: auto;
    max-height: calc(100vh - 14rem);
    padding: 4px 0;
}

.sidebar-list::-webkit-scrollbar { width: 4px; }
.sidebar-list::-webkit-scrollbar-track { background: transparent; }
.sidebar-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.sidebar-footer {
    padding: 8px 14px 12px;
    border-top: 1px solid var(--border-color);
}

.btn-clear-history {
    width: 100%;
    padding: 6px 12px;
    font-size: 0.78rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-clear-history:hover {
    color: var(--error-red);
    border-color: var(--error-red);
}

.history-empty {
    padding: 24px 18px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.12s;
    border-left: 2px solid transparent;
}

.history-item:hover {
    background: rgba(128, 128, 128, 0.05);
    border-left-color: var(--header-blue);
}

.history-item:active { background: rgba(128, 128, 128, 0.08); }

.history-expiry-amber { border-left-color: var(--warning-yellow); }
.history-expiry-red { border-left-color: var(--error-red); }

.history-status {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.status-success { background: var(--success-green); color: #fff; }
.status-error   { background: var(--error-red); color: #fff; }

.history-domain {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.history-time {
    font-size: 0.72rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* ── Main Content ───────────────────────────── */

.main-content { flex: 1; min-width: 0; }
.container { max-width: 100%; }

/* ── Search Header ──────────────────────────── */

.search-header {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: background-color 0.3s, border-color 0.3s;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--accent-gradient);
    color: #fff;
    padding: 8px 20px;
}

.header-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.header-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-header-action {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-header-action:hover { background: rgba(255, 255, 255, 0.25); }
.btn-header-action.active { background: rgba(255, 255, 255, 0.35); }

[data-theme="light"] .btn-header-action {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .btn-header-action:hover {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .icon-sun { display: inline; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: inline; }

.search-box {
    display: flex;
    padding: 20px;
    gap: 12px;
}

.search-box input,
.search-box textarea {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
    font-family: 'Inter', -apple-system, sans-serif;
}

.search-box input:focus,
.search-box textarea:focus {
    border-color: var(--header-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.search-box input::placeholder,
.search-box textarea::placeholder { color: var(--text-secondary); }

.search-box textarea { resize: vertical; min-height: 90px; }

.search-box button {
    background: var(--btn-blue);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.search-box button:hover { background: var(--btn-blue-hover); }
.search-box button:active { transform: scale(0.97); }

.bulk-input-wrap { flex: 1; display: flex; flex-direction: column; }
.bulk-hint { font-size: 0.75rem; color: var(--text-secondary); margin-top: 6px; }

/* ── Action Bar ─────────────────────────────── */

.action-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 10px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--panel-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    font-size: 0.87rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    color: var(--text-primary);
    border-color: var(--header-blue);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.1);
}

/* ── Expiry Progress ────────────────────────── */

.expiry-progress {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.expiry-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.expiry-progress-track {
    height: 8px;
    background: var(--bg-color);
    border-radius: 4px;
    overflow: hidden;
}

.expiry-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 2px;
}

/* ── Info Panels ────────────────────────────── */

.info-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}

.info-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

.info-panel-header:hover { background: rgba(128, 128, 128, 0.04); }

.info-panel-header .chevron-down {
    margin-left: auto;
    transition: transform 0.2s;
}

.info-panel.collapsed .info-panel-body { display: none; }
.info-panel.collapsed .info-panel-header { border-bottom-color: transparent; }
.info-panel.collapsed .chevron-down { transform: rotate(-90deg); }

.info-panel-body {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 16px;
}

.info-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.info-value {
    font-size: 0.9rem;
    word-break: break-all;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-ok { background: var(--success-bg); color: var(--success-green); }
.badge-unknown { background: var(--warning-bg); color: var(--warning-yellow); }

/* ── CAA Rows ───────────────────────────────── */

.caa-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.caa-row:last-child { border-bottom: none; }

.caa-tag {
    font-weight: 700;
    color: var(--header-blue);
    font-size: 0.82rem;
    text-transform: uppercase;
    min-width: 60px;
}

.caa-value {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
}

.caa-flags {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ── Summary List ───────────────────────────── */

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--header-blue);
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
}

.summary-item.warning {
    color: var(--warning-yellow);
    align-items: flex-start;
    background: var(--warning-bg);
    border-color: rgba(210, 153, 34, 0.2);
}

.summary-item.warning p { margin: 0; font-size: 0.93rem; }

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-check { background: var(--success-green); border: 2px solid rgba(63, 185, 80, 0.3); }
.icon-warning { background: transparent; }

.icon-circle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Chain Container ────────────────────────── */

.chain-container {
    display: flex;
    flex-direction: column;
}

.cert-card-wrap {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cert-card-wrap:hover {
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: var(--card-shadow-hover);
}

.cert-icon-wrap {
    position: relative;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.cert-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon svg {
    width: 64px;
    height: 64px;
}

.cert-icon-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.chain-arrow {
    width: 90px;
    display: flex;
    justify-content: center;
    margin: -6px 0;
    flex-shrink: 0;
}

.chain-arrow svg {
    width: 24px;
    height: 36px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.cert-details {
    flex: 1;
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-top: 4px;
}

.cert-details strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 4px;
}

.cert-details div {
    margin-bottom: 3px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.06);
}

.cert-details div:last-child { border-bottom: none; }

code.fp {
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: var(--text-secondary);
    word-break: break-all;
}

/* ── Tool Tabs ───────────────────────────────── */

.tool-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(128, 128, 128, 0.03);
    overflow-x: auto;
}

.tool-tab {
    padding: 10px 20px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    font-family: 'Inter', -apple-system, sans-serif;
}

.tool-tab:hover {
    color: var(--text-primary);
}

.tool-tab.active {
    color: var(--header-blue);
    border-bottom-color: var(--header-blue);
}

/* ── Tool Panels ─────────────────────────────── */

.tool-panel textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 0.92rem;
    border-radius: 8px;
    outline: none;
    resize: vertical;
    line-height: 1.6;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-panel textarea:focus {
    border-color: var(--header-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.tool-panel textarea::placeholder {
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.85rem;
}

.tool-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-form-full {
    width: 100%;
}

/* ── Key Matcher ────────────────────────────── */

.match-mode-toggle {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.match-mode-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.15s;
}

.match-mode-label input[type="radio"] {
    accent-color: var(--header-blue);
    width: 16px;
    height: 16px;
}

.match-mode-label:has(input:checked) {
    color: var(--text-primary);
    font-weight: 600;
}

.match-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.match-input-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.match-input-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.match-input-col textarea {
    width: 100%;
    min-height: 120px;
}

.tool-matcher-box {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.tool-matcher-box button {
    align-self: flex-end;
}

/* ── Decode Results ──────────────────────────── */

.decode-results {
    margin-top: 20px;
}

.decode-result-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.decode-result-card:hover {
    border-color: rgba(88, 166, 255, 0.4);
}

.decode-result-inner {
    padding: 24px;
}

.decode-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.decode-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.decode-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--header-blue);
    margin-bottom: 10px;
}

.decode-field {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.06);
}

.decode-field:last-child {
    border-bottom: none;
}

.decode-field strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 6px;
}

/* ── Match Result ────────────────────────────── */

.match-result {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 1rem;
    font-weight: 600;
}

.match-result.match-ok {
    background: var(--success-bg);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: var(--success-green);
}

.match-result.match-fail {
    background: var(--error-bg);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--error-red);
}

.match-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.match-result.match-ok .match-result-icon {
    background: var(--success-green);
    color: #fff;
}

.match-result.match-fail .match-result-icon {
    background: var(--error-red);
    color: #fff;
}

.match-result-text {
    flex: 1;
}

.match-hashes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.match-hash-col {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 18px;
}

.match-hash-col .decode-section-title {
    margin-bottom: 8px;
}

/* ── Bulk Results ───────────────────────────── */

.bulk-progress {
    margin-bottom: 16px;
}

.bulk-progress-bar {
    height: 4px;
    background: var(--header-blue);
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s;
}

.bulk-progress-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.bulk-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.bulk-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
}

.bulk-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.bulk-domain { flex: 1; color: var(--text-primary); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-clickable { cursor: pointer; color: var(--header-blue); }
.bulk-clickable:hover { text-decoration: underline; }
.bulk-msg { font-size: 0.82rem; color: var(--text-secondary); flex-shrink: 0; }

/* ── Misc ───────────────────────────────────── */

.hidden { display: none !important; }

.error-msg {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--error-bg);
    border: 1px solid rgba(248, 81, 73, 0.3);
    border-radius: 10px;
    color: var(--error-red);
    font-size: 0.95rem;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(128, 128, 128, 0.1);
    border-top-color: var(--header-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

#loading {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
    font-size: 0.95rem;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.toast.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
}

.footer {
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 768px) {
    .app-layout { flex-direction: column; gap: 20px; }

    .sidebar {
        width: 100%;
        position: static;
        max-height: 220px;
    }

    .sidebar-list { max-height: 160px; }

    .info-grid { grid-template-columns: 1fr; }

    .header-bar { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    body { padding: 1rem 0.5rem; }

    .search-box {
        flex-direction: column;
        padding: 16px;
    }

    .search-box button { width: 100%; }

    .cert-card-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cert-icon-wrap { width: 100%; flex-direction: row; align-items: center; gap: 12px; }
    .cert-icon-label { margin-top: 0; }

    .chain-arrow { align-self: flex-start; margin-left: 28px; margin-right: 0; width: auto; }

    .action-bar { flex-wrap: wrap; justify-content: flex-start; }

    .caa-row { flex-wrap: wrap; }
    .caa-flags { width: 100%; margin-left: 72px; }

    .match-input-row {
        grid-template-columns: 1fr;
    }

    .match-hashes {
        grid-template-columns: 1fr;
    }

    .tool-tabs {
        gap: 0;
    }

    .tool-tab {
        padding: 10px 14px;
        font-size: 0.78rem;
    }

    .tool-matcher-box {
        flex-direction: column;
    }

    .tool-matcher-box button {
        align-self: stretch;
        width: 100%;
    }
}
