/* e5 tools: Bootstrap 4 grid/forms + own design layer */

:root {
    --ink: #111827;
    --ink-2: #374151;
    --muted: #4b5563;
    --line: #e3ddd2;
    --line-strong: #cfc6b8;
    --bg: #f3f0e8;
    --surface: #fffcf8;
    --surface-2: #f6f3ec;
    --accent: #f04e54;
    --accent-ink: #b4232c;
    --accent-soft: #fdecec;
    --focus: rgba(240, 78, 84, .22);
    --radius: 8px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 0 rgba(17, 24, 39, .04);
    --shadow: 0 12px 28px -18px rgba(17, 24, 39, .55);
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

    --cat-code: #1e3a5f;
    --cat-code-soft: #e7eef6;
    --cat-seo: #2f6f4e;
    --cat-seo-soft: #e6f1ea;
    --cat-network: #3d5a80;
    --cat-network-soft: #e8eef4;
    --cat-generators: #8c3a2f;
    --cat-generators-soft: #f8eee9;
}

html { scroll-behavior: smooth; }

.skip-link {
    position: absolute;
    left: 12px;
    top: 8px;
    z-index: 1000;
    padding: 8px 12px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    transform: translateY(-140%);
}
.skip-link:focus {
    transform: none;
    color: #fff;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-ink); }
a:hover { color: var(--ink); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }

::selection { background: var(--accent-soft); }

main { flex: 1 0 auto; }

.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- brand ---------- */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.brand-mark { flex: none; display: block; }
a:hover .brand-e5 { color: var(--accent-ink); }

.brand-word {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: 21px;
    line-height: 1;
    letter-spacing: -.02em;
}

.brand-e5 { font-weight: 800; color: var(--ink); }
.brand-tools { font-weight: 500; color: var(--muted); }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-header .brand-link { display: inline-flex; color: inherit; }

.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link-plain,
.nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.nav-link-plain:hover,
.nav-menu-toggle:hover,
.nav-menu.open .nav-menu-toggle { background: var(--surface-2); color: var(--ink); }

.nav-menu { position: relative; }

.nav-menu-toggle .chev { transition: transform .15s ease; }
.nav-menu.open .nav-menu-toggle .chev { transform: rotate(180deg); }

.nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 6px 18px;
    width: 640px;
    max-height: calc(100vh - 88px);
    overflow: auto;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.nav-menu.open .nav-panel { display: grid; }

.nav-group-title {
    margin: 4px 8px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 9px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
}

.nav-panel a:hover,
.nav-panel a.active { background: var(--surface-2); color: var(--ink); }

.nav-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
}

@media (max-width: 767.98px) {
    .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 64px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .site-header.nav-open .site-nav { display: flex; }
    .nav-menu-toggle { display: none; }
    .nav-panel {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        width: auto;
        padding: 6px 0 0;
        border: 0;
        box-shadow: none;
    }
    .nav-link-plain { justify-content: flex-start; }
}

/* ---------- tool glyph tile ---------- */

.tile {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.02em;
    background: var(--surface-2);
    color: var(--ink);
}

.tile-sm { width: 28px; height: 28px; border-radius: 3px; font-size: 10px; }

.cat-code .tile, .tile.cat-code { background: var(--cat-code-soft); color: var(--cat-code); }
.cat-seo .tile, .tile.cat-seo { background: var(--cat-seo-soft); color: var(--cat-seo); }
.cat-network .tile, .tile.cat-network { background: var(--cat-network-soft); color: var(--cat-network); }
.cat-generators .tile, .tile.cat-generators { background: var(--cat-generators-soft); color: var(--cat-generators); }

/* ---------- badges ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill-browser .dot { background: #10b981; }
.pill-server .dot { background: #f59e0b; }

/* ---------- home ---------- */

.hero {
    padding: 42px 0 10px;
    text-align: left;
}

.hero-eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--accent-ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0 0 12px;
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 700;
}

.hero h1 em {
    font-style: italic;
    font-weight: 700;
    color: inherit;
    white-space: nowrap;
    background-image: linear-gradient(transparent 58%, #f6c4c6 58%, #f6c4c6 90%, transparent 90%);
}

.hero-lead {
    max-width: 540px;
    margin: 0 0 22px;
    color: var(--ink-2);
    font-size: 16px;
}

.search-box {
    position: relative;
    max-width: 520px;
    margin: 0;
}

.search-box svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 50px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }

.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 16px 0 4px;
}

.chip {
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.tool-section { padding: 18px 0 8px; }

.tool-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 14px;
}

.tool-section-head h2 { margin: 0; font-size: 19px; white-space: nowrap; }
.tool-section-head h2::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 3px;
    margin-right: 8px;
    background: var(--accent);
    vertical-align: middle;
    transform: translateY(-2px);
}
.tool-section-head p { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 575.98px) {
    .tool-section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 16px 16px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color .15s ease;
}

.tool-card.cat-code { border-left-color: var(--cat-code); }
.tool-card.cat-seo { border-left-color: var(--cat-seo); }
.tool-card.cat-network { border-left-color: var(--cat-network); }
.tool-card.cat-generators { border-left-color: var(--cat-generators); }

.tool-card:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.tool-card .go {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 600;
}

.tool-card:hover .go { color: var(--accent-ink); }

.empty-state {
    display: none;
    padding: 48px 0;
    text-align: center;
    color: var(--muted);
}

.notes {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 22px 36px;
    margin: 46px 0 8px;
    padding-top: 22px;
    border-top: 1px solid var(--line-strong);
}

.notes p { margin: 0; color: var(--muted); font-size: 14px; }
.notes strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 14px; }

@media (max-width: 767.98px) {
    .notes { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- tool page ---------- */

.tool-hero { padding: 34px 0 20px; }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }

.tool-title { display: flex; align-items: flex-start; gap: 16px; }
.tool-title .tile { width: 54px; height: 54px; border-radius: 6px; font-size: 15px; }

.tool-title h1 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3.2vw, 34px);
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 800;
}

.tool-lead { margin: 0; max-width: 760px; color: var(--muted); font-size: 16px; }

.tool-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.panel {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 575.98px) {
    .panel { padding: 16px; }
    .tool-title .tile { display: none; }
}

.panel + .panel { margin-top: 16px; }

.panel h2 { font-size: 18px; margin: 0 0 10px; }
.panel h3 { font-size: 16px; margin: 18px 0 8px; }
.panel p:last-child { margin-bottom: 0; }

.related { padding: 34px 0 10px; }
.related h2 { font-size: 18px; margin: 0 0 14px; }

/* input / action / output layout */

.io-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 991.98px) {
    .io-grid { grid-template-columns: minmax(0, 1fr); }
}

.io-panel { display: flex; flex-direction: column; min-width: 0; }

.io-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 8px;
}

.io-head label,
.field-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
}

.io-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.io-actions .btn { width: 100%; }

.option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    font-size: 13px;
    color: var(--ink-2);
    cursor: pointer;
    user-select: none;
}

.option input { margin: 0; accent-color: var(--accent); }

/* ---------- forms ---------- */

.code-area,
.panel textarea {
    width: 100%;
    min-height: 300px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.code-area.short,
.panel textarea.short { min-height: 120px; }

.panel textarea[readonly] { background: #fbfbfc; }

.code-area:focus,
.panel textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--focus); }

.form-control,
.form-select,
.panel select,
.panel input[type=text],
.panel input[type=url],
.panel input[type=email],
.panel input[type=tel],
.panel input[type=number],
.panel input[type=datetime-local] {
    display: block;
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

textarea.form-control { height: auto; }

.form-control:focus,
.form-select:focus,
.panel select:focus,
.panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }

.panel label { font-size: 13px; font-weight: 600; color: var(--ink-2); }

.form-stack > * + * { margin-top: 14px; }

input[type=color].form-control-color {
    width: 46px;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
}

.custom-file-label { border-color: var(--line-strong); border-radius: var(--radius-sm); }
.custom-file-input:focus ~ .custom-file-label { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}

.btn:active { transform: translateY(1px); }
.btn:focus, .btn.focus { box-shadow: 0 0 0 4px var(--focus); }
.btn-sm { min-height: 34px; padding: 5px 12px; font-size: 13px; }

.btn-primary,
.btn-default {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-primary:hover,
.btn-default:hover,
.btn-primary:not(:disabled):not(.disabled):active { background: #1f2937; border-color: #1f2937; color: #fff; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.btn-secondary,
.btn-outline-info,
.btn-outline-primary,
.btn-outline-secondary {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-secondary:hover,
.btn-outline-info:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-secondary:not(:disabled):not(.disabled):active { background: var(--surface-2); border-color: var(--ink-2); color: var(--ink); }

.btn-outline-primary.active,
.btn-outline-primary:not(:disabled):not(.disabled).active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn:disabled, .btn.disabled { opacity: .55; }

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-copy.copied { border-color: #10b981; color: #047857; background: #ecfdf5; }

.spinner-border-sm { width: 1rem; height: 1rem; border-width: .15em; }

/* ---------- content ---------- */

.prose { color: var(--ink-2); }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 18px; }

pre,
.prose pre {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 13px;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-all;
}

pre code { color: inherit; font-size: inherit; }

kbd { background: var(--ink); border-radius: 5px; font-size: 12px; }

.kv { display: grid; grid-template-columns: 1fr; gap: 12px; }

.kv-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.kv-item dt {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.kv-item dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink);
    word-break: break-word;
}

.result-box {
    min-height: 200px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 13px;
    text-align: left;
    overflow-x: auto;
}

.result-box:empty::before { content: attr(data-empty); color: var(--muted); font-family: var(--sans); }

/* ---------- footer ---------- */

.site-footer {
    margin-top: 64px;
    padding: 48px 0 28px;
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

.footer-brand p { margin: 12px 0 0; max-width: 280px; color: var(--muted); font-size: 14px; }

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent-ink); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.footer-langs { display: inline-flex; gap: 14px; }
.footer-langs [aria-current="true"] { color: var(--ink); font-weight: 600; }

.lang-switch { border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }

.chmod-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chmod-table th, .chmod-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.chmod-table tbody th { text-align: left; font-weight: 600; }
.chmod-table thead th { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.chmod-table input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- robots generator ---------- */

.tool-part { margin: 22px 0 12px; font-size: 18px; }
.tool-part:first-child { margin-top: 0; }

.policy-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.policy-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}

.policy-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.policy-presets .chip { height: 32px; }

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.robots-output textarea {
    min-height: 280px;
    height: calc(100vh - 180px);
    max-height: 760px;
}

@media (min-width: 992px) {
    .robots-output { position: sticky; top: 84px; }
}

.bot-group { margin-top: 16px; }
.bot-group h3 { margin: 0 0 4px; font-size: 14px; }
.bot-group .policy-note { margin-bottom: 8px; }

.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.bot-grid .option { align-items: flex-start; }
.bot-grid .option span { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.bot-grid .option small { color: var(--muted); font-size: 11px; font-weight: 500; }
.option.is-disabled { opacity: .55; cursor: default; }

@media (max-width: 575.98px) {
    .policy-grid { grid-template-columns: 1fr; }
    .robots-output textarea { height: 360px; }
}

.diff-view {
    max-height: 480px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.5;
}
.diff-line { padding: 0 10px; white-space: pre; }
.diff-add { background: #e7f3ea; }
.diff-del { background: #fbeceb; }
.regex-hit { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); }
.regex-hit code { font-family: var(--mono); font-size: 13px; }
.color-swatch { width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 4px; flex: none; }
.color-row { display: flex; align-items: center; gap: 12px; }

.hash-list { display: flex; flex-direction: column; gap: 10px; }
.hash-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.hash-row span { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); }

.callout {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: var(--ink-2);
    font-size: 13px;
}

.serp {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.serp-label { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.serp-title { color: #1a0dab; font-size: 18px; line-height: 1.3; }
.serp-url { color: #0d652d; font-size: 13px; }
.serp-desc { color: var(--ink-2); font-size: 13px; line-height: 1.45; }

@media (max-width: 575.98px) {
    .hash-row { grid-template-columns: 1fr; }
}

/* Icons: inline SVG masks in place of the Themify icon font. Keeps the ti-* class names used in the views. */
[class^="ti-"], [class*=" ti-"] {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.ti-clipboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3C/svg%3E"); }
.ti-github { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 19c-5 1.5-5-2.5-7-3m14 6v-3.9a3.4 3.4 0 0 0-.9-2.6c3.1-.3 6.4-1.5 6.4-7A5.4 5.4 0 0 0 20 4.8 5 5 0 0 0 19.9 1S18.7.7 16 2.5a13.4 13.4 0 0 0-7 0C6.3.7 5.1 1 5.1 1A5 5 0 0 0 5 4.8a5.4 5.4 0 0 0-1.5 3.7c0 5.4 3.3 6.6 6.4 7a3.4 3.4 0 0 0-.9 2.6V22'/%3E%3C/svg%3E"); }
.ti-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E"); }
.ti-angle-down { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.ti-arrow-right { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
.ti-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.ti-close { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.ti-comment { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.ti-download { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.ti-email { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E"); }
.ti-notepad { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }
.ti-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ti-rss-alt { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5a10 10 0 0 1 14 0M8.5 16a5 5 0 0 1 7 0M2 9a15 15 0 0 1 20 0'/%3E%3Ccircle cx='12' cy='19.5' r='1'/%3E%3C/svg%3E"); }
.ti-user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.ti-world { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
