/* Shared settings-form design system (issue #167; globalized in #273).
   These `.settings-*` primitives are used by several admin panels
   (SiteSettingsPanel, EmailAlertsPanel, BrowserPushPanel, EnablePushButton).
   They live here — global, not scoped to one component — so every panel renders
   the same regardless of component boundaries. Leans on hud-theme.css tokens. */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-top: 14px;
}

/* The accent field spans the row so the picker + preview have room. */
.settings-grid > .settings-field:last-child {
    grid-column: 1 / -1;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.settings-label {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2, #a7abb3);
}

.settings-input {
    background: var(--glass, rgba(255, 255, 255, 0.03));
    border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
    border-radius: 2px;
    color: var(--ink-0, #e8eaed);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    padding: 9px 10px;
    width: 100%;
    box-sizing: border-box;
}

.settings-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.settings-hint {
    font-size: 11px;
    color: var(--ink-3, #6b7079);
    line-height: 1.4;
}

.settings-accent {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-swatch {
    width: 44px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}

.settings-hex {
    width: 110px;
    flex: 0 0 auto;
    text-transform: lowercase;
}

.settings-accent-preview {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 7px 14px;
    border: 1px solid;
    border-radius: 2px;
}

.settings-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

/* Section divider between concerns within a panel. */
.settings-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12));
}

.settings-sublabel {
    margin-top: 14px;
}

.settings-linkrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
    gap: 8px;
    align-items: center;
}

.settings-linkactions {
    margin-top: 4px;
}

.settings-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-1, #c8ccd2);
    cursor: pointer;
}

@media (max-width: 640px) {
    .settings-linkrow {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}
