:root {
    --bg: #111;
    --fg: #fff;
    --line: rgba(255,255,255,.35);
    --muted: rgba(255,255,255,.72);
    --dim: rgba(255,255,255,.45);
    --hover: rgba(255,255,255,.08);
}

html, body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    min-height: 100vh;
}

a,
.btn-flat,
.btn,
.input-field input,
.input-field label,
.material-icons {
    color: var(--fg) !important;
}

.container-shell {
    max-width: 980px;
    margin: 24px auto;
    border: 1px solid var(--line);
    background: transparent;
}

.section-block {
    padding: 24px;
    border-top: 1px solid var(--line);
}

.section-block:first-child {
    border-top: 0;
}

.brand {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 28px;
}

.meta-grid {
    display: grid;
    grid-template-columns: 160px 120px 1fr;
    gap: 6px 18px;
    color: var(--muted);
    font-size: .97rem;
}

.headline {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 18px;
}

.result-row,
.favorite-row,
.crawl-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.result-row:first-of-type,
.favorite-row:first-of-type,
.crawl-row:first-of-type {
    border-top: 1px solid var(--line);
}

.result-text,
.favorite-text,
.crawl-text {
    flex: 1 1 560px;
    line-height: 1.6;
}

.result-actions,
.favorite-actions,
.crawl-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.safe-ip {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.muted {
    color: var(--dim);
}

.btn,
.btn-flat,
.btn-small {
    border: 1px solid var(--fg);
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    text-transform: none;
}

.btn:hover,
.btn-flat:hover,
.btn-small:hover {
    background: var(--hover) !important;
}

.btn[disabled],
.btn-small[disabled] {
    opacity: .45;
    border-color: var(--dim);
    color: var(--dim) !important;
}

.input-field input[type=text],
.input-field input[type=password] {
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
}

.card-panel.notice {
    border-radius: 0;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--fg);
    box-shadow: none;
    margin: 0 0 16px;
}

.toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.toolbar .input-field {
    flex: 1 1 340px;
    margin: 0;
}

.login-wrap {
    max-width: 480px;
}

.footer-note {
    color: var(--dim);
    font-size: .92rem;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.result-checkbox,
.favorite-checkbox {
    margin-right: 12px;
    vertical-align: middle;
    accent-color: #fff;
}

.row-prefix {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.favorite-title-input,
.batch-title-input {
    width: 220px !important;
    min-width: 220px;
    margin: 0 !important;
    height: 2.1rem !important;
    color: var(--fg) !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
}

.batch-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
}

.pill {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
    margin-left: 10px;
}

.duplicate-pill {
    border-color: rgba(255,255,255,.55);
}

.section-note {
    color: var(--muted);
    margin-bottom: 14px;
    line-height: 1.6;
}

.single-favorite-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.active-mark {
    background: rgb(0 173 255 / 39%) !important;
}

input#search_term {
    color: #00d9ff !important;
}

a.safe-ip {
    color: #00d9ff !important;
}

@media (max-width: 640px) {
    .meta-grid {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .favorite-title-input,
    .batch-title-input {
        width: 100% !important;
        min-width: 0;
    }

    .single-favorite-form {
        justify-content: flex-start;
    }
}