/* palette rail */
.rail {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 18px
}

.rail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px 28px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.eyebrow {
    display: block;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-weight: 600
}

.rail-head h2 {
    font-family: var(--f-display);
    font-size: 24px;
    line-height: 1.2;
    margin: 2px 0 0;
    font-weight: 700;
    letter-spacing: -.01em;
    text-wrap: balance
}

.rail-why {
    max-width: 78ch;
    color: var(--ink-2);
    font-size: 14px;
    margin: 0;
    flex: 1 1 380px
}

.mode-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--warn-bg);
    color: var(--ink);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13.5px;
    margin: 0 0 12px
}

.mode-note .ic {
    color: var(--warn);
    margin-top: 2px
}

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

.sw {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    transition: box-shadow .2s, border-color .2s
}

.sw:hover {
    border-color: var(--ink-3)
}

.sw.is-sel {
    box-shadow: 0 0 0 2px var(--ink);
    border-color: var(--ink)
}

.sw.is-status {
    background: var(--panel-2)
}

.sw-color {
    position: relative;
    display: block;
    height: 74px;
    cursor: pointer;
    border-bottom: 1px solid var(--line-2);
    transition: background-color .35s, color .35s
}

.sw-color input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0
}

.sw-cname {
    position: absolute;
    left: 8px;
    right: 34px;
    bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sw-lock {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 0;
    display: grid;
    place-items: center;
    background: transparent;
    opacity: .55;
    transition: opacity .15s, background-color .15s
}

.sw-lock:hover,
.sw-lock:focus-visible {
    opacity: 1
}

.sw-lock[aria-pressed="true"] {
    opacity: 1;
    background: color-mix(in srgb, currentColor 18%, transparent)
}

.sw-meta {
    padding: 8px 9px 10px;
    display: grid;
    gap: 2px;
    min-width: 0
}

.sw-name {
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.3
}

.sw-hexrow {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0
}

.sw-hex {
    width: 100%;
    min-width: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: -.02em;
    padding: 1px 3px;
    margin-left: -4px;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums
}

.sw-hex:hover {
    border-color: var(--line)
}

.sw-hex:focus {
    border-color: var(--focus);
    outline: none;
    background: var(--panel-2)
}

.sw-copy {
    border: 0;
    background: none;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: var(--ink-3);
    border-radius: 6px;
    flex: none;
    padding: 0
}

.sw-copy:hover {
    color: var(--ink);
    background: var(--panel-2)
}

.sw-copy .ic {
    width: 14px;
    height: 14px
}

.sw-where {
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.35
}

.rail-foot {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--ink-3)
}