/*
================================================================================
    ML Software, LLC
    Copyright 2026. All rights reserved.

    Life IQ | lifeiq.mlsoftware.com
    assets/css/process.css

    Platform: IQ Platform
    Created : 2026-10-10
    Updated : 2026-11-19
    Version : 1.40.1

    The lineup (lineup.js), the process (process.js) and the dragons
    (dragons.js).

    Its own file, loaded AFTER plan.css. It reuses plan.css for the
    things that are the same object on every screen - the day header,
    the open/close strips, the principle card, the sheet scrim and
    panel, the segment tabs - and declares only what is new. Nothing
    here redefines a plan.css selector.

    No clock is styled anywhere in this file, because no clock exists.
*/


/* ----------------------------------------------------------------------------
   Lineup
   -------------------------------------------------------------------------- */

.liq-lu {
    padding-bottom: 20px;
}

.liq-lu-sect {
    margin: 20px 2px 8px;
    font-family: var(--font-display, inherit);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-lu-sect:first-child {
    margin-top: 4px;
}

.liq-lu-k {
    display: block;
    font-family: var(--font-display, inherit);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-light, var(--accent));
}

.liq-lu-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    vertical-align: middle;
}


/* Fundamentals row ------------------------------------------------------ */

.liq-lu-fund {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: var(--touch-target-touch, 44px);
    margin-bottom: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-surface);
    font-family: inherit;
    cursor: pointer;
}

.liq-lu-fund-l {
    font-family: var(--font-display, inherit);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-lu-fund-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.liq-lu-fund-dots i {
    display: block;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--border-light, var(--border));
    border-radius: 50%;
    background: transparent;
}

.liq-lu-fund-dots i.is-k    { background: var(--signal);    border-color: var(--signal); }
.liq-lu-fund-dots i.is-m    { background: var(--noise);     border-color: var(--noise); }

/* Not today. Answered, neutral - a flat grey, distinct from the hollow
   of a question never reached. */
.liq-lu-fund-dots i.is-n    { background: var(--border-light, var(--border)); border-color: var(--border-light, var(--border)); }
.liq-lu-fund-dots i.is-late { border-color: var(--necessary); }
.liq-lu-fund-dots i.is-gap  { width: 1px; height: 12px; border: 0; border-radius: 0; background: var(--border); }


/* At bat ---------------------------------------------------------------- */

.liq-lu-live {
    margin-bottom: 6px;
    padding: 14px 14px 15px;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent-dim, rgba(74, 158, 255, 0.16));
}

.liq-lu-live-t {
    display: block;
    margin-top: 7px;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
}

.liq-lu-under {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    font-size: var(--font-min-secondary, 13px);
    color: var(--text-secondary);
}

.liq-lu-swing {
    color: var(--dragon, var(--necessary));
}

.liq-lu-live-acts {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.liq-lu-done {
    flex: 1 1 auto;
    min-height: 50px;
    border-color: rgba(53, 199, 89, 0.5);
    background: rgba(53, 199, 89, 0.14);
    color: var(--signal);
    font-weight: 600;
}

.liq-lu-quiet {
    flex: 0 0 auto;
    min-height: var(--touch-target-touch, 44px);
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: var(--font-min-secondary, 13px);
    cursor: pointer;
}


/* Pause on the live card, and the paused plays waiting below it. */

.liq-lu-pause {
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 50px;
    font-weight: 600;
}

.liq-lu-paused {
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px dashed var(--accent);
    border-radius: 11px;
    background: var(--bg-surface);
}

.liq-lu-paused-t {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.liq-lu-paused-acts {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.liq-lu-paused-acts .btn {
    flex: 1 1 0;
    min-height: var(--touch-target-touch, 44px);
}

.liq-lu-paused-acts .liq-next-ed {
    flex: 0 0 48px;
    font-size: 16px;
}

.liq-ed-unstart {
    display: block;
    margin: 4px 0 2px;
    padding: 8px 0;
    text-align: left;
}


/* Rows ------------------------------------------------------------------ */

.liq-lu-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
    margin-bottom: 7px;
}

/* Three children - row, push, strike - need three tracks. A grid child
   with no track of its own wraps onto a new line and looks like a bug. */
.liq-lu-pair.is-3 {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.liq-lu-pair .liq-lu-row {
    margin-bottom: 0;
}


/* Push forward --------------------------------------------------------- */

.liq-lu-push-main {
    width: 100%;
    min-height: 54px;
    margin-bottom: 12px;
    font-size: var(--font-min-body, 16px);
}

.liq-lu-push-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.liq-lu-push-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
}

.liq-lu-push-day b {
    font-size: 17px;
    font-weight: 600;
}

.liq-lu-push-day s {
    margin-top: 2px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
}

.liq-lu-row {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: var(--touch-target-touch, 44px);
    margin-bottom: 7px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-surface);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-lu-row-t {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--font-min-body, 16px);
    font-weight: 500;
    color: var(--text-primary);
}

.liq-lu-row small {
    flex: 0 0 auto;
    max-width: 45%;
    font-size: 12px;
    color: var(--text-dim);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liq-lu-row.is-logged {
    opacity: 0.55;
    cursor: default;
}

.liq-lu-row.is-logged .liq-lu-row-t {
    font-weight: 400;
    color: var(--text-secondary);
}

.liq-lu-row.is-done small     { color: var(--signal); }
.liq-lu-row.is-short small    { color: var(--necessary); }
.liq-lu-row.is-scrapped small { color: var(--noise); }

.liq-lu-row.is-prop {
    cursor: default;
}

.liq-lu-x {
    flex: 0 0 auto;
    min-width: 40px;
    min-height: var(--touch-target-touch, 44px);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.liq-plan-panel-head .liq-lu-x {
    min-width: 34px;
    min-height: 34px;
    border: 0;
}

.liq-lu-none {
    margin: 0 2px 8px;
    font-size: var(--font-min-secondary, 13px);
    line-height: 1.6;
    color: var(--text-dim);
}

.liq-lu-call.is-top {
    margin: 0 0 14px;
}

.liq-lu-call {
    width: 100%;
    min-height: var(--touch-target-touch, 44px);
    margin-top: 14px;
    border: 1px dashed var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}


/* The grade ------------------------------------------------------------- */

.liq-lu-ask {
    margin: 8px 0 4px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.liq-lu-grade {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 64px;
    margin-bottom: 10px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-min-body, 16px);
    text-align: left;
    cursor: pointer;
}

.liq-lu-grade i {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.liq-lu-grade.is-done i     { background: var(--signal); }
.liq-lu-grade.is-short i    { background: var(--necessary); }
.liq-lu-grade.is-scrapped i { background: var(--noise); }

.liq-lu-grade s {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-dim);
    text-decoration: none;
}

.liq-lu-next {
    flex-direction: column;
}

.liq-lu-next .btn {
    width: 100%;
    min-height: var(--touch-target-touch, 44px);
}


/* Capture --------------------------------------------------------------- */

.liq-lu-cap-in {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    font-size: var(--font-min-body, 16px);
    line-height: 1.5;
}

.liq-lu-cap-acts .btn {
    min-height: var(--touch-target-touch, 44px);
}

.liq-lu-heard {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    font-style: italic;
    color: var(--text-secondary);
}

.liq-lu-reply {
    margin: 0;
    font-size: var(--font-min-body, 16px);
    line-height: 1.6;
    color: var(--text-primary);
}


/* Fundamentals sheet ---------------------------------------------------- */

.liq-lu-fl {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-bottom: 7px;
    padding: 0 8px 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
}

.liq-lu-fl.is-late {
    opacity: 0.75;
}

/* One line, always. The three icon buttons are a fixed 130px, so the
   title gets the rest and ellipsises rather than wrapping. */
.liq-lu-fl b {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liq-lu-tog {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.liq-lu-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
}

.liq-lu-tg svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.liq-lu-tg.on-k {
    border-color: var(--signal);
    background: rgba(53, 199, 89, 0.16);
    color: var(--signal);
}

.liq-lu-tg.on-m {
    border-color: var(--noise);
    background: rgba(239, 83, 80, 0.14);
    color: var(--noise);
}

.liq-lu-tg.on-n {
    border-color: var(--text-dim);
    background: var(--bg-raised);
    color: var(--text-secondary);
}

/* The dash is the only mark that takes learning; this says it once. */
.liq-lu-legend {
    display: flex;
    gap: 14px;
    margin: 10px 2px 2px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-lu-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.liq-lu-legend svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ----------------------------------------------------------------------------
   Process and dragons - the card both screens share
   -------------------------------------------------------------------------- */

.liq-proc {
    padding-bottom: 20px;
}

.liq-proc-card {
    display: block;
    width: 100%;
    margin-bottom: 9px;
    padding: 12px 13px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-proc-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: var(--font-min-secondary, 13px);
    color: var(--text-secondary);
}

.liq-proc-cn {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-proc-since {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

.liq-proc-since.is-warm { color: var(--necessary); }
.liq-proc-since.is-cold { color: var(--noise); }

.liq-proc-t {
    display: block;
    font-size: var(--font-min-body, 16px);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

.liq-proc-sub {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-proc-dots {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.liq-proc-dots i {
    display: block;
    flex: 1 1 0;
    max-width: 16px;
    height: 14px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: transparent;
}

.liq-proc-dots i.is-on {
    border-color: var(--signal);
    background: var(--signal);
}

.liq-proc-dots i.is-half {
    border-color: var(--necessary);
    background: rgba(240, 169, 43, 0.45);
}

.liq-proc-dots i.is-na {
    border-color: var(--border-light, var(--border));
    background: var(--border-light, var(--border));
}

/* Six months rather than fourteen days: wider marks, squared off, so a
   monthly row does not read as a daily one with most of it missing. */
.liq-proc-dots.is-months i {
    max-width: 34px;
    height: 12px;
    border-radius: 3px;
}

.liq-proc-rule {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

.liq-proc-raised {
    display: block;
    margin-top: 8px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-proc-card.is-fund .liq-proc-dots {
    margin-top: 8px;
}

/* Three or four buttons in the panel actions wrap rather than crush. */
.liq-proc-acts {
    flex-wrap: wrap;
}

.liq-proc-acts .btn {
    flex: 1 1 40%;
    min-height: var(--touch-target-touch, 44px);
}


/* Dragons --------------------------------------------------------------- */

.liq-drg {
    padding-bottom: 20px;
}

.liq-drg-card {
    box-sizing: border-box;
}

.liq-drg-card.is-slain {
    opacity: 0.5;
    cursor: default;
}

.liq-drg-moved {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--necessary);
}

.liq-drg-strikes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

.liq-drg-strike {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-raised);
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liq-drg-strike i {
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--signal);
}

.liq-drg-strike.is-short {
    opacity: 0.55;
}

.liq-drg-strike.is-short i {
    background: var(--necessary);
}

.liq-drg-none {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-drg-since {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-drg-since.is-warm { color: var(--necessary); }
.liq-drg-since.is-cold { color: var(--noise); }

.liq-drg-slay {
    border-color: var(--dragon, var(--necessary));
    background: var(--dragon, var(--necessary));
    color: var(--bg-base);
}

.liq-drg-confirm {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-raised);
}

.liq-drg-confirm span {
    flex: 1 1 100%;
    font-size: var(--font-min-secondary, 13px);
    color: var(--text-secondary);
}

.liq-drg-confirm .btn {
    flex: 1 1 0;
    min-height: var(--touch-target-touch, 44px);
}


/* Steps ----------------------------------------------------------------- */

.liq-drg-steps {
    margin-top: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.liq-drg-steps-n {
    display: block;
    margin: 6px 0 2px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-drg-step {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

.liq-drg-tick {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: -8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.liq-drg-tick i {
    display: block;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--border-light, var(--border));
    border-radius: 50%;
}

.liq-drg-step.is-done .liq-drg-tick i {
    border-color: var(--signal);
    background: var(--signal);
}

.liq-drg-step-t {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.liq-drg-step.is-done .liq-drg-step-t {
    color: var(--text-dim);
    text-decoration: line-through;
}

.liq-drg-go,
.liq-drg-rm {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.liq-drg-rm {
    font-size: 13px;
    color: var(--text-dim);
}

.liq-drg-called {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--accent-light, var(--accent));
}

.liq-drg-add {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.liq-drg-add .form-input {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-drg-add .btn {
    flex: 0 0 auto;
}

.liq-drg-say {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.liq-drg-say svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.liq-drg-heard {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   The dragon in the tab bar

   IQ.icons.dragon is the one filled icon in the set, and the shell
   styles every .iq-tab svg as a stroked outline. !important here is
   deliberate: shell.css is platform-owned and not edited per product,
   and a stroked dragon at 22px is a beetle. Sized explicitly because
   the svg sits inside a span and may miss a direct-child rule.
   -------------------------------------------------------------------------- */

.liq-tab-dragon {
    display: block;
    line-height: 0;
}

.liq-tab-dragon svg {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0 auto;
}

.liq-tab-dragon svg,
.liq-tab-dragon svg * {
    fill: currentColor !important;
    stroke: none !important;
}


/* ----------------------------------------------------------------------------
   Open the Day (openday.js)
   -------------------------------------------------------------------------- */

.liq-od {
    padding: 6px 0 24px;
}

.liq-od-q {
    margin: 6px 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.liq-od-q.is-small {
    margin: 18px 0 10px;
    font-size: 20px;
}

.liq-od-sub {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-od-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.07);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.liq-od-warn b { color: var(--necessary); font-weight: 600; }

.liq-od-warn i {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--necessary);
}

.liq-od-cnt {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 2px 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-od-cnt b {
    font-size: 13px;
    font-weight: 600;
    color: var(--signal);
}

.liq-od-list,
.liq-rt-list {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
}

.liq-od-it,
.liq-rt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: var(--touch-target-touch, 48px);
    padding: 0 14px;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.liq-od-it:first-child,
.liq-rt:first-child {
    border-top: 0;
}

.liq-od-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--border-light, var(--border));
    border-radius: 7px;
}

.liq-od-box svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--bg-base);
    stroke-width: 3;
    opacity: 0;
}

.liq-od-it.is-on .liq-od-box,
.liq-rt.is-on .liq-od-box {
    border-color: var(--signal);
    background: var(--signal);
}

.liq-od-it.is-on .liq-od-box svg,
.liq-rt.is-on .liq-od-box svg {
    opacity: 1;
}

.liq-od-it.is-na .liq-od-box {
    border-color: var(--border-light, var(--border));
    background: var(--border-light, var(--border));
}

/* A routine row: the tick, and Skip for a day it does not apply. */

.liq-rt-row {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border);
}

.liq-rt-row:first-child {
    border-top: 0;
}

.liq-rt-row .liq-rt {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    border-top: 0;
}

.liq-rt-skip {
    flex: 0 0 auto;
    min-width: 64px;
    min-height: var(--touch-target-touch, 48px);
    padding: 0 14px;
    border: 0;
    border-left: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.liq-rt-row.is-na .liq-rt-skip {
    color: var(--accent-light, var(--accent));
}

.liq-rt.is-na .liq-od-box {
    border-color: var(--border-light, var(--border));
    background: var(--border-light, var(--border));
}

.liq-rt.is-na .liq-rt-t {
    color: var(--text-dim);
}

.liq-od-t,
.liq-rt-t {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.liq-od-it.is-on .liq-od-t,
.liq-rt.is-on .liq-rt-t {
    color: var(--text-secondary);
}

.liq-rt-t small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-od-y {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--signal);
    opacity: 0;
}

.liq-od-it.is-on .liq-od-y,
.liq-od-it.is-na .liq-od-y {
    opacity: 1;
}

.liq-od-it.is-na .liq-od-y {
    color: var(--text-dim);
}

.liq-rt-go {
    flex: 0 0 auto;
    font-size: 20px;
    color: var(--text-dim);
}

.liq-od-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-light, var(--accent));
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.liq-od-first {
    margin-top: 14px;
}

.liq-od-first label {
    display: block;
    margin: 0 2px 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-od-from {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 2px 6px;
    font-size: 12px;
    color: var(--accent-light, var(--accent));
}

.liq-od-from i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.liq-od-rec {
    margin-top: 16px;
}

.liq-od-rec-h {
    display: flex;
    justify-content: space-between;
    margin: 0 2px 7px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-od-dots {
    display: flex;
    gap: 5px;
}

.liq-od-dots i {
    flex: 1 1 0;
    height: 9px;
    border-radius: 3px;
    background: var(--signal);
}

.liq-od-dots i.is-m { background: var(--noise); }
.liq-od-dots i.is-n { background: var(--border-light, var(--border)); }
.liq-od-dots i.is-t { background: transparent; border: 1.5px dashed var(--border-light, var(--border)); }

.liq-od-go {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.liq-od-go.is-ready {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-base);
}

.liq-od-go-sub {
    margin: 7px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   The stack of wins
   -------------------------------------------------------------------------- */

.liq-stk {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-stk.is-rows {
    margin-top: 14px;
}

.liq-stk-h {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.liq-stk-h .liq-stk-l {
    min-width: 0;
}

.liq-stk-n {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1;
    color: var(--signal);
}

.liq-stk-l {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-secondary);
}

.liq-stk-l small {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-stk-pips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

.liq-stk-pips i {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: var(--signal);
}

.liq-stk-pips i.is-p  { background: var(--accent); }
.liq-stk-pips i.is-w  { background: var(--signal); }
.liq-stk-pips i.is-d  { background: var(--dragon, #ff8c42); }

.liq-stk-drg {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    align-self: flex-start;
    color: var(--dragon, #ff8c42);
    opacity: 0.85;
}

.liq-stk-drg-i {
    display: block;
    width: 26px;
    height: 26px;
    line-height: 0;
}

.liq-stk-drg-i svg {
    display: block;
    width: 26px;
    height: 26px;
}

.liq-stk-drg-i svg,
.liq-stk-drg-i svg * {
    fill: currentColor !important;
    stroke: none !important;
}

.liq-stk-drg small {
    font-size: 10.5px;
    color: var(--text-dim);
    white-space: nowrap;
}

.liq-stk-drg.is-slain {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 140, 66, 0.55));
}

.liq-stk-drg.is-slain small {
    color: var(--dragon, #ff8c42);
    font-weight: 600;
}
.liq-stk-pips i.is-sh { background: transparent; border: 1.5px solid var(--accent); }
.liq-stk-pips i.is-nx { background: transparent; border: 1.5px dashed var(--accent); }

.liq-stk-pips em {
    font-style: normal;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-stk-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
}

.liq-stk-row span {
    flex: 0 0 82px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-stk-row .liq-stk-pips {
    margin: 0;
}

.liq-stk-k {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-stk-k span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.liq-stk-k i {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    border: 1.5px solid var(--accent);
}


/* ----------------------------------------------------------------------------
   Little wins, up next, tonight, close
   -------------------------------------------------------------------------- */

.liq-rt-sect {
    display: flex;
    justify-content: space-between;
}

.liq-rt-sect em {
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
}

.liq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.liq-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.liq-chip i {
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--signal);
    border-radius: 50%;
}

.liq-chip.is-on {
    border-color: rgba(53, 199, 89, 0.6);
    background: rgba(53, 199, 89, 0.1);
    color: var(--text-primary);
}

.liq-chip.is-on i {
    background: var(--signal);
}

.liq-chip.is-add {
    border-style: dashed;
    color: var(--text-dim);
}

.liq-chip.is-add b {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.liq-next {
    padding: 14px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: rgba(74, 158, 255, 0.06);
}

.liq-next small {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light, var(--accent));
}

.liq-next b {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}

.liq-next em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-next-acts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.liq-next-acts .btn {
    flex: 1 1 0;
    min-height: var(--touch-target-touch, 44px);
}

.liq-rt-more {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 10px 2px;
    border: 0;
    background: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 12.5px;
    text-align: left;
    cursor: pointer;
}

.liq-rt-closed {
    margin: 16px 2px 0;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-plan-strip.is-late {
    border-color: var(--border-light, var(--border));
    background: var(--bg-surface);
}

.liq-plan-strip.is-late .liq-plan-strip-t { color: var(--text-primary); }
.liq-plan-strip.is-late .liq-plan-strip-go { background: var(--accent); }

.liq-verdict {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.liq-vbtn {
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 14px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.liq-vbtn.is-yes {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.08);
    color: var(--signal);
}


/* ----------------------------------------------------------------------------
   Sheets: say-it box, keep switch, Plan tomorrow
   -------------------------------------------------------------------------- */

.liq-say {
    display: flex;
    gap: 8px;
}

.liq-say .form-input {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-say-mic {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-height: 44px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.liq-say-mic svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.liq-keep {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.liq-sw {
    flex: 0 0 auto;
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--border-light, var(--border));
}

.liq-sw:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
}

.liq-sw.is-on { background: var(--accent); }
.liq-sw.is-on:after { left: auto; right: 3px; }

.liq-pl-day {
    margin: 0 0 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    color: var(--text-primary);
}

.liq-pl-usual {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-pl-usual-h {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-pl-usual-h b {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-pl-seq {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.liq-pl-then {
    font-size: 13px;
    color: var(--text-dim);
}

.liq-pl-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.liq-pl-tag.is-fixed {
    background: var(--bg-raised);
    color: var(--text-primary);
    cursor: default;
}

.liq-pl-tag.is-on {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.12);
    color: var(--text-primary);
}

.liq-pl-sug {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 7px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.liq-pl-sug span {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-pl-sug small {
    display: block;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-pl-sug b {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 8px;
    color: var(--text-dim);
    font-weight: 400;
}

.liq-pl-sug.is-on {
    border-color: var(--accent);
}

.liq-pl-sug.is-on b {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-base);
}

.liq-pl-dr {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--dragon, var(--necessary));
    transform: rotate(45deg);
}

.liq-pl-note {
    margin: 10px 2px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   Settings: Start and end the day (routine.js)
   -------------------------------------------------------------------------- */

.liq-rs-q {
    width: 100%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.3;
    resize: none;
}

.liq-rs-qacts {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.liq-rs-list {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
}

.liq-rs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    padding: 4px 8px 4px 4px;
    border-top: 1px solid var(--border);
}

.liq-rs-row:first-child {
    border-top: 0;
}

.liq-rs-t {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    border: 0;
    background: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: text;
}

.liq-rs-t small {
    display: block;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-rs-in {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-rs-b {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.liq-rs-b:disabled {
    opacity: 0.3;
    cursor: default;
}

.liq-rs-b.is-ok {
    border-color: var(--signal);
    color: var(--signal);
}

.liq-rs-empty {
    margin: 0;
    padding: 14px;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-rs-add {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.liq-rs-add .form-input {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-rs-add .btn {
    flex: 0 0 auto;
}

.liq-rs-hint {
    margin: 12px 2px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   The week (week.js)
   -------------------------------------------------------------------------- */

.liq-wk-grid {
    display: grid;
    grid-template-columns: 84px repeat(7, 1fr);
    gap: 5px;
    align-items: center;
    margin-top: 6px;
}

.liq-wk-h {
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-wk-l {
    font-size: 12px;
    color: var(--text-secondary);
}

.liq-wk-grid i {
    height: 20px;
    border-radius: 4px;
    background: var(--border-light, var(--border));
}

.liq-wk-grid i.is-k { background: var(--signal); }
.liq-wk-grid i.is-m { background: var(--noise); }

.liq-wk-counts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.liq-wk-counts div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-wk-counts b {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    color: var(--signal);
}

.liq-wk-counts span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-dim);
}

.liq-wk-top {
    margin: 12px 2px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.liq-wk-note {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.liq-wk-note p {
    margin: 0 0 9px;
}

.liq-wk-note p:last-child {
    margin: 0;
}

.liq-wk-tag {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light, var(--accent));
}

.liq-wk-dim {
    color: var(--text-dim);
}

.liq-wk-share {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
}


/* ----------------------------------------------------------------------------
   The rail on Today: Open, Morning, Day, Evening, Close
   -------------------------------------------------------------------------- */

.liq-rail {
    display: flex;
    align-items: flex-start;
    margin: 0 0 14px;
    padding: 12px 4px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-stop {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.liq-stop:before {
    content: "";
    position: absolute;
    top: 12px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border-light, var(--border));
}

.liq-stop:first-child:before {
    display: none;
}

.liq-stop.is-k:before {
    background: var(--signal);
}

.liq-stop-dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid var(--border-light, var(--border));
    border-radius: 50%;
    background: var(--bg-base);
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
}

.liq-stop.is-k .liq-stop-dot {
    border-color: var(--signal);
    background: var(--signal);
    color: var(--bg-base);
}

.liq-stop.is-o .liq-stop-dot {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

/* A perfect morning glows. */
.liq-stop.is-perfect .liq-stop-dot {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35), 0 0 14px 3px rgba(74, 222, 128, 0.5);
}

.liq-stop.is-perfect small {
    color: #4ade80;
}

.liq-stop.is-m .liq-stop-dot {
    border-color: var(--noise);
    color: var(--noise);
}

.liq-stop.is-on .liq-stop-dot {
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.45);
}

.liq-stop span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.liq-stop.is-on span {
    color: var(--text-primary);
}

.liq-stop small {
    margin-top: -3px;
    font-size: 10.5px;
    color: var(--text-dim);
    white-space: nowrap;
}

.liq-od-go.is-big {
    min-height: 58px;
    margin-top: 22px;
    font-size: 17px;
}

.liq-upat {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    font-size: 14px;
    color: var(--text-secondary);
}

.liq-upat b {
    color: var(--signal);
    font-weight: 600;
}

.liq-od-first .liq-upat {
    margin-top: 0;
}

.liq-carry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
    padding: 11px 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.liq-carry b {
    color: var(--text-primary);
    font-weight: 600;
}

.liq-closed {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.06);
    color: var(--signal);
    font-family: inherit;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
}

.liq-closed small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   Process: the four parts
   -------------------------------------------------------------------------- */

.liq-seg4 {
    display: flex;
    gap: 3px;
    margin: 0 0 14px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-seg4-b {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0 2px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.liq-seg4-b.is-am.is-on {
    color: var(--necessary);
}

.liq-seg4-b.is-on {
    background: var(--bg-raised);
    color: var(--text-primary);
}

.liq-rs.is-embed {
    margin-bottom: 6px;
}

.liq-rs.is-embed > .liq-lu-sect:first-child {
    margin-top: 4px;
}


/* ----------------------------------------------------------------------------
   Edit a play
   -------------------------------------------------------------------------- */

.liq-ed-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-base);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.liq-ed-opt span {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-ed-opt small {
    display: block;
    margin-top: 1px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-ed-opt b {
    flex: 0 0 auto;
    color: var(--dragon, #ff8c42);
    opacity: 0;
}

.liq-ed-opt.is-on {
    border-color: var(--accent);
    color: var(--text-primary);
}

.liq-ed-opt.is-on b {
    opacity: 1;
    color: var(--accent-light, var(--accent));
}

.liq-ed-opt.is-drg.is-on,
.liq-ed-opt.is-step.is-on {
    border-color: var(--dragon, #ff8c42);
}

.liq-ed-opt.is-drg.is-on b,
.liq-ed-opt.is-step.is-on b {
    color: var(--dragon, #ff8c42);
}

.liq-ed-di {
    flex: 0 0 auto;
    display: block;
    width: 20px;
    height: 20px;
    line-height: 0;
    color: var(--dragon, #ff8c42);
}

.liq-ed-di svg {
    display: block;
    width: 20px;
    height: 20px;
}

.liq-ed-di svg,
.liq-ed-di svg * {
    fill: currentColor !important;
    stroke: none !important;
}

.liq-ed-steps {
    margin: -2px 0 8px 24px;
}

.liq-ed-steps .liq-ed-opt {
    padding: 8px 11px;
    font-size: 13px;
}

.liq-ed-new {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 4px 0 6px;
    padding: 0 12px;
    border: 1px dashed rgba(255, 140, 66, 0.55);
    border-radius: 10px;
    background: rgba(255, 140, 66, 0.06);
    color: var(--dragon, #ff8c42);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.liq-ed-new.is-on {
    border-style: solid;
    background: rgba(255, 140, 66, 0.12);
}

.liq-ed-acts {
    display: flex;
    gap: 8px;
}

.liq-ed-acts .btn {
    flex: 1 1 0;
    min-height: var(--touch-target-touch, 44px);
}

.liq-next-acts .liq-next-ed {
    flex: 0 0 48px;
    font-size: 16px;
}


/* ----------------------------------------------------------------------------
   Desktop
   -------------------------------------------------------------------------- */

@media (pointer: fine) {

    .liq-lu-row:hover,
    .liq-rt:hover,
    .liq-od-it:hover,
    .liq-chip:hover,
    .liq-proc-card:hover,
    .liq-drg-go:hover,
    .liq-drg-rm:hover {
        border-color: var(--border-light, var(--border));
    }
}


/* ----------------------------------------------------------------------------
   Perfect morning, watch-fors, time taps (1.11.0)
   -------------------------------------------------------------------------- */

/* The ring round a perfect morning's squares, and the bonus square. */
.liq-stk-ring {
    display: inline-flex;
    gap: 4px;
    margin: -3px 0;
    padding: 2px;
    border: 1.5px solid #4ade80;
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.08);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.16), 0 0 12px 2px rgba(74, 222, 128, 0.42);
}

.liq-stk-ring i {
    animation: liq-pm-pulse 2.4s ease-in-out infinite;
}

@keyframes liq-pm-pulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.3); }
}

.liq-stk-pips i.is-bonus {
    position: relative;
    background: radial-gradient(circle at 50% 45%, #bbf7d0 0, #4ade80 45%, #16a34a 100%);
    box-shadow: 0 0 8px 2px rgba(74, 222, 128, 0.65);
}

.liq-stk-pips i.is-bonus:after {
    content: "\2605";
    position: absolute;
    inset: 0;
    font-style: normal;
    font-size: 11px;
    line-height: 17px;
    text-align: center;
    color: #052e12;
}

.liq-stk-pm {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #4ade80;
}

/* Watch-fors in the stack: after a divider, amber, never counted. */
.liq-stk-sep {
    align-self: center;
    width: 1px;
    height: 17px;
    margin: 0 3px;
    background: var(--border-light, var(--border));
}

.liq-stk-pips i.is-a {
    background: var(--necessary);
}

.liq-stk-pips em.liq-stk-am,
.liq-stk-am {
    align-self: center;
    margin-left: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--necessary);
}

.liq-stk-row.is-am span {
    color: var(--necessary);
}

.liq-stk-row .liq-stk-pips em {
    align-self: center;
    margin-left: 4px;
}

/* Watch-for chips: dashed amber until flagged. */
.liq-sect-am {
    color: var(--necessary);
}

.liq-chip.is-watch {
    border-style: dashed;
    border-color: rgba(234, 179, 8, 0.45);
}

.liq-chip.is-watch i {
    width: 7px;
    height: 7px;
    border-color: var(--necessary);
    border-radius: 2px;
    transform: rotate(45deg);
}

.liq-chip.is-watch.is-on {
    border-style: solid;
    border-color: rgba(234, 179, 8, 0.7);
    background: rgba(234, 179, 8, 0.12);
    color: #fde68a;
}

.liq-chip.is-watch.is-on i {
    background: var(--necessary);
}

/* Time taps: eight half-hour squares to a strip. */
.liq-tt {
    margin-top: 12px;
}

.liq-tt-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-tt-h b {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-tt-h b.is-zero {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dim);
}

.liq-tt-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
}

.liq-tt-row + .liq-tt-row,
.liq-tt-marks + .liq-tt-row {
    margin-top: 6px;
}

.liq-tt-seg {
    min-width: 0;
    height: 36px;
    padding: 0;
    border: 1.5px solid var(--border-light, var(--border));
    border-radius: 7px;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.liq-tt-seg.is-on {
    border-color: var(--accent);
    background: var(--accent);
}

.liq-tt-seg.is-hint {
    border-style: dashed;
    border-color: rgba(74, 158, 255, 0.5);
}

.liq-tt-marks {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    margin-top: 4px;
    font-size: 10px;
    text-align: right;
    color: var(--text-dim);
}

.liq-tt-note {
    margin: 6px 0 0;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-tt-more {
    margin-top: 6px;
    padding: 6px 0;
    border: 0;
    background: none;
    color: var(--accent-light, var(--accent));
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

/* A logged play's time, small. */
.liq-lu-row-t small.liq-lu-grade-w {
    display: block;
    max-width: none;
    margin-top: 2px;
    text-align: left;
}

.liq-tt-mini {
    flex: 0 0 auto;
    display: inline-flex;
    gap: 2px;
}

.liq-tt-mini i {
    width: 6px;
    height: 9px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 2px;
}

.liq-tt-mini i.is-on {
    border-color: var(--accent);
    background: var(--accent);
}

.liq-tt-hrs {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* The week: a star for a perfect morning, time and watch-fors by day. */
.liq-wk-grid i.is-star {
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-size: 13px;
    color: #052e12;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.45);
}

.liq-wk-v {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.liq-wk-v.is-am {
    font-weight: 700;
    color: var(--necessary);
}

.liq-wk-am {
    color: var(--necessary);
}

.liq-rs-watch-lede {
    margin: 0 0 4px;
}

.liq-stk-row .liq-stk-ring {
    flex: 0 0 auto;
}


/* ----------------------------------------------------------------------------
   Folding: the stack, play cards, Done (1.12.0)
   -------------------------------------------------------------------------- */

.liq-chev {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--text-dim);
    transition: transform 0.2s;
}

.liq-chev svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.is-open > .liq-stk-bar .liq-chev,
.is-open > .liq-pc-h .liq-chev,
.is-open > .liq-grp-h .liq-chev {
    transform: rotate(180deg);
}

/* The stack, folded to one line. */
.liq-stk.is-fold {
    padding: 0;
}

.liq-stk-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-stk-bar .liq-stk-n {
    font-size: 30px;
}

.liq-stk-lab {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 13.5px;
    color: var(--text-secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.liq-stk-lab .is-pm { color: #4ade80; }
.liq-stk-lab .is-am { color: var(--necessary); }

.liq-stk-body {
    padding: 0 14px 14px;
}

.liq-stk-body .liq-stk-h {
    align-items: flex-start;
}

.liq-stk-body .liq-stk-l {
    flex: 1 1 auto;
}

.liq-stk-body .liq-stk-pips {
    margin-top: 10px;
}

/* Play cards: live and paused, folding. */
.liq-pc {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-pc.is-live {
    border-color: var(--accent);
    background: var(--accent-dim, rgba(74, 158, 255, 0.10));
}

.liq-pc.is-paused {
    border: 1px dashed var(--accent);
}

.liq-pc-h {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-pc-st {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.liq-pc-st.is-live {
    background: rgba(74, 158, 255, 0.18);
    color: var(--accent-light, var(--accent));
}

.liq-pc-st.is-paused {
    background: rgba(122, 122, 148, 0.18);
    color: var(--text-secondary);
}

.liq-pc-t {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.liq-pc.is-open .liq-pc-t {
    font-size: 18px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.liq-pc-tm {
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.liq-pc-b {
    padding: 0 12px 13px;
}

.liq-pc-b .liq-lu-under {
    margin-top: 0;
}

.liq-pc-acts {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.liq-pc-acts .btn {
    flex: 1 1 0;
    min-height: 48px;
}

.liq-pc-acts .liq-pc-ed {
    flex: 0 0 48px;
    font-size: 16px;
}

.liq-pc-acts .liq-lu-done {
    min-height: 48px;
}

/* A dragon: its icon and its name, in orange. */
.liq-drg-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--dragon, #ff8c42);
}

.liq-drg-i {
    flex: 0 0 auto;
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 0;
    font-style: normal;
}

.liq-drg-i svg {
    width: 14px;
    height: 14px;
}

.liq-drg-i svg,
.liq-drg-i svg * {
    fill: currentColor !important;
    stroke: none !important;
}

.liq-lu-row-t small.liq-lu-row-sub {
    display: block;
    max-width: none;
    margin-top: 2px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liq-lu-row-sub .liq-drg-i,
.liq-lu-row-sub .liq-drg-i svg {
    width: 12px;
    height: 12px;
}

/* Done, folded. */
.liq-grp {
    margin-top: 4px;
}

.liq-grp-h {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
}

.liq-grp-h span:first-child {
    flex: 1 1 auto;
}

/* Tap when it happens: little wins and watch-fors together. */
.liq-taps {
    margin-top: 16px;
    padding: 4px 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-taps .liq-lu-sect:first-child {
    margin-top: 8px;
}

.liq-taps .liq-chip {
    background: var(--bg-base);
}


/* ----------------------------------------------------------------------------
   Repeating routine items, anytime, carried (1.13.0)
   -------------------------------------------------------------------------- */

/* The small blue tag on a repeating item. */
.liq-rep {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(74, 158, 255, 0.12);
    color: var(--accent-light, var(--accent));
    font-size: 10.5px;
    font-weight: 600;
    vertical-align: 1px;
    white-space: nowrap;
}

.liq-rep svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Today, anytime / From last night: a titled checklist card. */
.liq-any,
.liq-carried {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
    overflow: hidden;
}

.liq-carried {
    margin: 0 0 12px;
    border-color: var(--border-light, var(--border));
}

.liq-any-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 14px 2px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-carried .liq-any-h {
    color: var(--text-secondary);
}

.liq-any-h em {
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-dim);
}

.liq-rt-list.is-any {
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* Process: next due, dots for days not due, the two-week strip. */
.liq-proc-next {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.liq-proc-sub i {
    font-style: normal;
    color: var(--accent-light, var(--accent));
}

.liq-proc-dots i.is-off {
    width: 6px;
    height: 2px;
    margin: 4px 1px;
    border: 0;
    border-radius: 1px;
    background: var(--border-light, var(--border));
}

.liq-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.liq-strip-d {
    padding: 5px 2px 6px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-surface);
    text-align: center;
}

.liq-strip-d.is-today {
    border-color: var(--accent);
}

.liq-strip-d span {
    display: block;
    font-size: 10px;
    color: var(--text-dim);
}

.liq-strip-d b {
    display: block;
    margin: 1px 0 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-strip-d em {
    display: flex;
    justify-content: center;
    gap: 2px;
    min-height: 7px;
}

.liq-strip-d i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.liq-strip-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 4px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-strip-key span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.liq-strip-key i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

/* The routine item sheet. */
.liq-fs-segs {
    display: flex;
    gap: 4px;
}

.liq-fs-segs.is-wrap {
    flex-wrap: wrap;
}

.liq-fs-b {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
}

.liq-fs-b.is-on {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.14);
    color: var(--text-primary);
    font-weight: 600;
}

.liq-fs-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.liq-fs-day {
    min-height: 40px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.liq-fs-day.is-on {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-base);
    font-weight: 700;
}

.liq-fs-sw {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-base);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}

.liq-fs-sw small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-fs-sw i {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: var(--border-light, var(--border));
    transition: background 0.2s;
}

.liq-fs-sw i:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}

.liq-fs-sw.is-on i {
    background: var(--accent);
}

.liq-fs-sw.is-on i:after {
    left: 21px;
}

.liq-fs-prev {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    border-radius: 0 9px 9px 0;
    background: rgba(74, 158, 255, 0.07);
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.liq-fs-prev b {
    color: var(--text-primary);
    font-weight: 600;
}

div.liq-prop-field > span {
    display: block;
    margin-bottom: 6px;
}


/* ----------------------------------------------------------------------------
   The date and the rail stay pinned to the top while the day scrolls
   under them (1.14.1). .iq-content is the scroller. The bar keeps the
   content's own width - no negative margins, so nothing can push the
   page sideways - and an upward shadow in the page colour covers the
   strip of padding above it, so nothing shows through when it sticks.
   -------------------------------------------------------------------------- */

.liq-lu-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 12px;
    padding: 0 0 10px;
    background: var(--bg-base);
    box-shadow: 0 -28px 0 0 var(--bg-base), 0 1px 0 var(--border);
}

.liq-lu-top .liq-rail {
    margin-bottom: 0;
}

.liq-lu-top .liq-plan-head {
    margin-bottom: 10px;
}

.liq-lu-hint {
    margin: 2px 2px 8px;
    font-size: 12px;
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   What's next (1.15.0). The question under the pinned bar, the Now card,
   what Wingman heard, your own chips, the chain on Close and the made bed.
   Weight colours: signal blue, necessary light grey, noise dim grey.
   Amber stays for watch-fors; green stays for wins.
   -------------------------------------------------------------------------- */

.liq-ask {
    margin: 0 0 14px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(74, 158, 255, 0.45);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(74, 158, 255, 0.10), rgba(74, 158, 255, 0.02));
}

.liq-ask.is-small {
    padding: 8px;
    border-color: var(--border);
    background: var(--bg-surface);
}

.liq-ask.is-after {
    margin-top: -4px;
    padding: 0;
    border: 0;
    background: transparent;
}

.liq-ask-q {
    margin: 0 0 3px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.liq-ask-cp {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-ask-cp b {
    color: var(--text-secondary);
    font-weight: 600;
}

.liq-ask-in {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 5px 5px 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: var(--bg-base);
}

.liq-ask-box {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
}

.liq-ask-box::placeholder {
    color: var(--text-dim);
}

.liq-ask-go {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    cursor: pointer;
}

.liq-ask-go svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #06121f;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.liq-ask-go[disabled] {
    opacity: 0.5;
}

/* Mic while the box is empty, the send arrow once there are words. */
.liq-ask-box:placeholder-shown ~ .liq-ask-go.is-send:not(.is-on) {
    display: none;
}

.liq-ask-box:not(:placeholder-shown) ~ .liq-ask-go.is-mic {
    display: none;
}

.liq-ask-busy {
    margin: 12px 2px 0;
    font-size: 13px;
    color: var(--text-dim);
}

/* weight tag */
.liq-wt {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.liq-wt.is-tap {
    min-height: 26px;
    cursor: pointer;
}

.liq-wt i {
    font-style: normal;
    font-weight: 400;
    opacity: 0.6;
}

.liq-wt.is-signal { background: rgba(74, 158, 255, 0.16);  color: var(--accent-light, var(--accent)); }
.liq-wt.is-need   { background: rgba(196, 196, 212, 0.12); color: #c4c4d4; }
.liq-wt.is-noise  { background: rgba(92, 92, 112, 0.22);   color: #8a8aa0; }

/* heard */
.liq-heard {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
    overflow: hidden;
}

.liq-heard-h {
    padding: 9px 13px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-heard-r {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px 8px 13px;
    border-top: 1px solid var(--border);
}

.liq-heard-h + .liq-heard-r {
    border-top: 0;
}

.liq-heard-n {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-raised, var(--bg-base));
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.liq-heard-t {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.liq-heard-t small {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.liq-heard-t em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-heard-acts {
    display: flex;
    gap: 8px;
    padding: 10px 13px 13px;
}

.liq-heard-acts .btn {
    flex: 1 1 0;
    min-height: 44px;
}

/* your own chips */
.liq-mine-g {
    margin-top: 12px;
}

.liq-mine-g small {
    display: block;
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-mine-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.liq-mine {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    max-width: 100%;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.liq-mine.is-p {
    border-color: rgba(74, 158, 255, 0.5);
    color: var(--text-primary);
}

.liq-mine em {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-light, var(--accent));
}

.liq-mine i,
.liq-chain-lg i {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.liq-mine i.is-signal, .liq-chain-lg i.is-signal, .liq-chain-rib i.is-signal, .liq-chain-b.is-signal { background: var(--accent); }
.liq-mine i.is-need,   .liq-chain-lg i.is-need,   .liq-chain-rib i.is-need,   .liq-chain-b.is-need   { background: rgba(196, 196, 212, 0.55); }
.liq-mine i.is-noise,  .liq-chain-lg i.is-noise,  .liq-chain-rib i.is-noise,  .liq-chain-b.is-noise  { background: #5c5c70; }

/* now */
.liq-now {
    margin: 0 0 10px;
    padding: 13px 14px 14px;
    border: 1px solid rgba(74, 158, 255, 0.55);
    border-radius: 16px;
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.10);
}

.liq-now.is-need {
    border-color: rgba(196, 196, 212, 0.35);
    box-shadow: none;
}

.liq-now.is-noise {
    border-color: var(--border-light, var(--border));
    box-shadow: none;
}

.liq-now-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.liq-now-k {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-light, var(--accent));
}

.liq-now-k i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.2);
}

.liq-now.is-need .liq-now-k,
.liq-now.is-noise .liq-now-k {
    color: var(--text-dim);
}

.liq-now.is-need .liq-now-k i,
.liq-now.is-noise .liq-now-k i {
    background: var(--text-dim);
    box-shadow: none;
}

.liq-now-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.liq-now-note {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-now.is-small {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 12px;
    box-shadow: none;
}

.liq-now-t {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    color: var(--text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-now.is-small .liq-lu-done {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
}

.liq-then {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px dashed var(--border-light, var(--border));
    border-radius: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.liq-then small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-then-t {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-then em {
    font-style: normal;
    color: var(--text-dim);
}

/* the morning left open, quietly at the bottom of Day */
.liq-carry.is-quiet {
    margin-top: 14px;
    border-style: dashed;
    color: var(--text-dim);
    font-size: 12.5px;
}

/* the chain on Close */
.liq-chain {
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
}

.liq-chain-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.liq-chain-h b {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-chain-h span {
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-chain-rib {
    display: flex;
    gap: 3px;
    height: 14px;
    margin-bottom: 10px;
}

.liq-chain-rib i {
    flex: 1 1 0;
    border-radius: 3px;
}

.liq-chain-lg {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-chain-lg span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.liq-chain-list {
    margin-top: 10px;
    border-top: 1px solid var(--border);
}

.liq-chain-r {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

.liq-chain-r:last-child {
    border-bottom: 0;
}

.liq-chain-r span {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-chain-r small {
    margin-left: 6px;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-chain-b {
    flex: 0 0 4px;
    align-self: stretch;
    border-radius: 2px;
}

.liq-chain-ck {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    color: #06120a;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.liq-chain-ck.is-on {
    background: var(--signal);
}

/* the made bed */
.liq-tom {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.06);
}

.liq-tom h3 {
    margin: 0 0 3px;
    font-size: 18px;
    color: var(--text-primary);
}

.liq-tom p {
    margin: 0 0 11px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-tom p b {
    color: var(--text-primary);
    font-weight: 600;
}


/* ----------------------------------------------------------------------------
   Comebacks (1.16.0). Wins, so green - no new colour. The return mark is
   the only new shape.
   -------------------------------------------------------------------------- */

.liq-cb-i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.liq-cb-slip,
.liq-cb-turn,
.liq-cb-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.liq-cb-slip {
    margin: 14px 0 0;
    border: 1px solid var(--border-light, var(--border));
    background: var(--bg-surface);
}

.liq-cb-slip b {
    color: var(--text-primary);
}

.liq-cb-turn {
    margin: 0 0 12px;
    border: 1px solid rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.05);
}

/* A slip is said plainly - green is only for the comeback itself. */
.liq-cb-turn b {
    color: var(--text-primary);
}

.liq-cb-flash b {
    color: #4ade80;
}

.liq-cb-flash {
    margin: 0 0 10px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.08);
}

.liq-cb-card {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.13), rgba(34, 197, 94, 0.03));
    box-shadow: 0 0 18px rgba(74, 222, 128, 0.12);
}

.liq-cb-card-h {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-primary);
}

.liq-cb-card p {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.liq-stk-pips i.is-cb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--signal);
    color: #06120a;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 3.5px #4ade80;
}

.liq-od-dots i.is-c {
    box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 3.5px #4ade80;
}

.liq-chain-cb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4ade80;
}

.liq-chain-cb .liq-cb-i {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 11px;
}

/* week */
.liq-wk-cb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 4px;
    padding: 13px 14px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.07);
}

.liq-wk-cb.is-none {
    border-color: var(--border);
    background: var(--bg-surface);
}

.liq-wk-cb-i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--signal);
    color: #06120a;
    font-size: 18px;
    font-weight: 800;
}

.liq-wk-cb.is-none .liq-wk-cb-i {
    background: var(--bg-raised, var(--border));
    color: var(--text-dim);
}

.liq-wk-cb b {
    display: block;
    font-size: 16px;
    color: #4ade80;
}

.liq-wk-cb.is-none b {
    color: var(--text-secondary);
}

.liq-wk-cb small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-wk-v.is-cb {
    color: #4ade80;
    font-weight: 700;
}


/* ----------------------------------------------------------------------------
   Name the plays (1.16.1). Morning's one box: the day's plays in a
   sentence, split by Wingman, added unstarted.
   -------------------------------------------------------------------------- */

.liq-today {
    margin: 16px 0 14px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(74, 158, 255, 0.45);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(74, 158, 255, 0.10), rgba(74, 158, 255, 0.02));
}

.liq-today-q {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.liq-today-sub {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-dim);
}

.liq-today-first {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.liq-today-first small {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-today-first span {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-today-first em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-today .liq-heard {
    background: var(--bg-base);
}


/* ----------------------------------------------------------------------------
   Morning, Day, Night (1.17.0). The board, the routine box's conscious
   no, the watch-for's "a little", and the Rest weight in violet.
   -------------------------------------------------------------------------- */

/* routine box: a conscious no */
.liq-rt.is-no .liq-od-box {
    border-color: #55556a;
    background: #2a2a32;
}

.liq-rt.is-no .liq-od-box b {
    color: #d0d0dc;
    font-size: 13px;
    line-height: 1;
}

.liq-rt.is-no .liq-rt-t {
    color: var(--text-secondary);
}

/* watch-for: a little */
.liq-chip.is-watch.is-half {
    border-style: solid;
    border-color: rgba(234, 179, 8, 0.55);
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.14) 50%, transparent 50%);
    color: #facc15;
}

.liq-chip.is-watch.is-half i {
    background: linear-gradient(90deg, var(--necessary) 50%, transparent 50%);
}

.liq-chip.is-watch small {
    margin-left: 4px;
    font-size: 11px;
    color: var(--text-dim);
}

/* rest */
.liq-wt.is-rest { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.liq-mine i.is-rest, .liq-chain-lg i.is-rest, .liq-chain-rib i.is-rest, .liq-chain-b.is-rest { background: #a78bfa; }

.liq-lu-hint.is-center {
    margin-top: 14px;
    text-align: center;
}

/* the board */
.liq-bd-sum {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 4px;
}

.liq-bd-sum span {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-surface);
    font-size: 12px;
    color: var(--text-secondary);
}

.liq-bd-sum b {
    color: var(--text-primary);
}

.liq-bd-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    margin: 14px 2px 7px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-align: left;
}

.liq-bd-h em {
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-dim);
    opacity: 0.8;
}

.liq-bd-h.is-fold {
    align-items: center;
    cursor: pointer;
}

.liq-bd-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    margin-bottom: 6px;
    padding: 6px 4px 6px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-bd-row.is-paused {
    border-style: dashed;
    border-color: rgba(74, 158, 255, 0.5);
}

.liq-bd-w {
    flex: 0 0 4px;
    align-self: stretch;
    width: 4px;
    border-radius: 2px;
    background: var(--accent);
}

.liq-bd-w.is-need  { background: rgba(196, 196, 212, 0.55); }
.liq-bd-w.is-rest  { background: #a78bfa; }
.liq-bd-w.is-noise { background: #5c5c70; }

.liq-bd-t {
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14.5px;
    text-align: left;
    cursor: pointer;
}

.liq-bd-t.is-static {
    cursor: default;
}

.liq-bd-t small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-bd-row.is-done .liq-bd-t > span {
    color: var(--text-secondary);
}

.liq-bd-tm {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-bd-st {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(122, 122, 148, 0.18);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.liq-bd-go {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--accent-light, var(--accent));
    font-size: 14px;
    cursor: pointer;
}


.liq-bd-open {
    margin-bottom: 6px;
    padding: 10px 12px 12px;
    border: 1px solid var(--accent);
    border-radius: 14px;
    background: rgba(74, 158, 255, 0.07);
}

.liq-bd-open.is-live {
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.10);
}

.liq-bd-open.is-live.is-need,
.liq-bd-open.is-live.is-noise {
    border-color: var(--border-light, var(--border));
    background: var(--bg-surface);
    box-shadow: none;
}

.liq-bd-open.is-live.is-rest {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.06);
    box-shadow: none;
}

.liq-bd-open.is-paused {
    border-style: dashed;
    border-color: rgba(74, 158, 255, 0.5);
    background: var(--bg-surface);
}

.liq-bd-open.is-done {
    border-color: var(--border);
    background: var(--bg-surface);
}

.liq-bd-oh {
    display: flex;
    align-items: center;
    gap: 10px;
}

.liq-bd-ot {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
}

.liq-bd-ot small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--text-dim);
}

.liq-bd-sw {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-surface);
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-bd-sw b {
    color: var(--text-secondary);
}

.liq-bd-sw-i {
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: -2px;
}


/* ----------------------------------------------------------------------------
   Three questions and where the day went (1.18.0).
   -------------------------------------------------------------------------- */

.liq-tq {
    margin: 16px 0 4px;
    padding: 14px 14px 6px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 16px;
    background: var(--bg-surface);
}

.liq-tq h3,
.liq-wd h3 {
    margin: 0 0 2px;
    font-size: 17px;
    color: var(--text-primary);
}

.liq-tq-s {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-tq-r {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.liq-tq-s + .liq-tq-r {
    border-top: 0;
}

.liq-tq-r p {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 15px;
    color: var(--text-primary);
}

.liq-tq-r p small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-yn {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.liq-yn button {
    width: 56px;
    height: 42px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.liq-yn button.is-y {
    border-color: var(--signal);
    background: var(--signal);
    color: #06120a;
}

.liq-yn button.is-n {
    border-color: #55556a;
    background: #2a2a32;
    color: #d0d0dc;
}

.liq-stk-q {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
}

.liq-stk-q .is-y { color: #4ade80; }
.liq-stk-q .is-n { color: var(--text-dim); }

.liq-wd {
    margin: 0 0 12px;
    padding: 14px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 16px;
    background: var(--bg-surface);
}

.liq-wd-span {
    margin: 0 0 12px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-wd-span b {
    color: var(--text-primary);
}

.liq-wd-bar {
    display: flex;
    gap: 2px;
    height: 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.liq-wd-bar i { display: block; height: 100%; }
.liq-wd-bar i.is-signal, .liq-wd-lg i.is-signal { background: var(--accent); }
.liq-wd-bar i.is-need,   .liq-wd-lg i.is-need   { background: rgba(196, 196, 212, 0.55); }
.liq-wd-bar i.is-rest,   .liq-wd-lg i.is-rest   { background: #a78bfa; }
.liq-wd-bar i.is-noise,  .liq-wd-lg i.is-noise  { background: #5c5c70; }
.liq-wd-bar i.is-gap,    .liq-wd-lg i.is-gap    { background: repeating-linear-gradient(45deg, #2a2a32 0 4px, #1c1c22 4px 8px); }

.liq-wd-lg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

.liq-wd-lg span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.liq-wd-lg i {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.liq-wd-lg b {
    margin-left: auto;
    color: var(--text-primary);
    font-weight: 600;
}

.liq-wd-q {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.liq-wd-q p {
    margin: 0 0 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-wd-q p small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dim);
}

.liq-wd-two {
    display: flex;
    gap: 8px;
}

.liq-wd-two button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.liq-wd-two button.is-on {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.14);
    color: var(--text-primary);
}

.liq-wd-why {
    margin-top: 10px;
}

.liq-wd-why label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-wd-hint {
    margin: 10px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-dim);
}

/* week */
.liq-wk-q {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0 4px;
}

.liq-wk-q div {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}

.liq-wk-q b {
    display: block;
    font-size: 19px;
    color: #4ade80;
}

.liq-wk-q b.is-sig {
    color: var(--accent-light, var(--accent));
}

.liq-wk-q span {
    font-size: 11px;
    color: var(--text-dim);
}

.liq-wk-time {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
}

.liq-wk-time-h {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-wk-tr {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.liq-wk-tr span {
    width: 30px;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-wk-tr .liq-wd-bar {
    flex: 1 1 auto;
    height: 14px;
    margin: 0;
    background: transparent;
}

.liq-wk-tr em {
    width: 40px;
    font-style: normal;
    font-size: 11px;
    color: var(--text-dim);
    text-align: right;
}


/* ----------------------------------------------------------------------------
   Play notes (1.19.0).
   -------------------------------------------------------------------------- */

.liq-bd-note {
    margin: 8px 0 2px 18px;
    padding: 8px 10px;
    border-left: 2px solid var(--border-light, var(--border));
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.03);
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-secondary, var(--text-primary));
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.liq-bd-ni {
    font-style: normal;
    color: var(--accent);
}

.liq-heard-note {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-dim);
    overflow-wrap: anywhere;
}

.liq-ed-note {
    min-height: 66px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.4;
}


/* ----------------------------------------------------------------------------
   Edit in place (1.20.0). The play's name toggles it; no pencil.
   -------------------------------------------------------------------------- */

.liq-bd-ot {
    cursor: pointer;
}

.liq-bd-ot[data-act="noop"] {
    cursor: default;
}

.liq-bd-edit {
    margin: 10px 0 2px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.liq-bd-edit .liq-plan-panel-body {
    padding: 0;
    overflow: visible;
}

.liq-bd-edit .liq-plan-panel-acts {
    padding: 12px 0 0;
    border-top: 0;
    background: transparent;
}

.liq-bd-edit .liq-drg-confirm {
    margin-top: 12px;
}


/* ----------------------------------------------------------------------------
   Dragon as one line (1.21.0). Unfolds to the list on tap.
   -------------------------------------------------------------------------- */

.liq-ed-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    margin: 10px 0 6px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-base);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.liq-ed-pick.is-set {
    color: var(--text-primary);
}

.liq-ed-pick > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-ed-pick .liq-ed-di {
    opacity: 0.55;
}

.liq-ed-pick.is-set .liq-ed-di {
    opacity: 1;
}

.liq-ed-pick > .liq-chev {
    margin-left: auto;
    transition: transform 0.15s ease;
}

.liq-ed-pick[aria-expanded="true"] > .liq-chev {
    transform: rotate(180deg);
}


/* ----------------------------------------------------------------------------
   The action card (1.22.0). Name, note, two pills, time, one row of
   buttons. Inputs are 16px so the phone never zooms on focus.
   -------------------------------------------------------------------------- */

.liq-ac-hd {
    display: flex;
    align-items: center;
    gap: 8px;
}

.liq-ac-hd .liq-bd-w {
    align-self: stretch;
    min-height: 28px;
}

.liq-ac-name {
    flex: 1 1 auto;
    min-width: 0;
    padding: 3px 0 4px;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    outline: none;
}

.liq-ac-name:focus {
    border-bottom-color: var(--accent);
}

.liq-ac-fold {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
}

.liq-ac-fold .liq-chev {
    width: 32px;
    height: 32px;
    transform: rotate(180deg);
}

.liq-ac-note {
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-secondary, var(--text-primary));
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    resize: vertical;
    outline: none;
}

.liq-ac-note:focus {
    border-color: var(--accent);
}

.liq-ac-note::placeholder {
    color: var(--text-dim);
}

.liq-ac-pills {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.liq-ac-pill {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    margin: 0;
    padding: 0 6px 0 10px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.liq-ac-pill.is-set {
    color: var(--text-primary);
}

.liq-ac-pill.is-open {
    border-color: var(--dragon, #ff8c42);
}

.liq-ac-pill > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-ac-pill > .liq-chev {
    width: 20px;
    color: var(--text-dim);
    transition: transform 0.15s ease;
}

.liq-ac-pill.is-open > .liq-chev {
    transform: rotate(180deg);
}

.liq-ac-pill .liq-ed-di,
.liq-ac-pill .liq-ed-di svg {
    width: 16px;
    height: 16px;
}

.liq-ac-pill .liq-ed-di {
    opacity: 0.45;
}

.liq-ac-pill.is-set .liq-ed-di {
    opacity: 1;
}

.liq-ac-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.liq-ac-sel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    font-size: 16px;
    cursor: pointer;
}

.liq-ac-dl {
    max-height: 264px;
    margin-top: 8px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: var(--bg-base);
    overflow-x: hidden;
    overflow-y: auto;
}

.liq-ac-dr {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary, var(--text-primary));
    font-family: inherit;
    font-size: 14.5px;
    text-align: left;
    cursor: pointer;
}

.liq-ac-dr:last-child {
    border-bottom: 0;
}

.liq-ac-dr > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-ac-dr small {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: var(--text-dim);
}

.liq-ac-dr b {
    flex: 0 0 auto;
    color: var(--accent-light, var(--accent));
}

.liq-ac-dr.is-on {
    color: var(--text-primary);
}

.liq-ac-dr.is-step {
    min-height: 40px;
    padding-left: 28px;
    font-size: 13.5px;
}

.liq-ac-dr.is-new {
    color: var(--dragon, #ff8c42);
    font-size: 14px;
}

.liq-ac-dl-note {
    margin: 0;
    padding: 12px;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-ac .liq-tt {
    margin-top: 12px;
}

.liq-ac .liq-drg-confirm {
    margin-top: 12px;
}

.liq-ac-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 20px;
    margin-top: 8px;
}

.liq-ac-link {
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.liq-ac-link.is-x {
    color: #e07070;
}

.liq-ac-saved {
    font-size: 12.5px;
    color: var(--win-light, #4ade80);
}


/* ----------------------------------------------------------------------------
   What's next folds to one line (1.23.0).
   -------------------------------------------------------------------------- */

.liq-today.is-fold {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 12px 0 12px;
    padding: 12px 10px 12px 14px;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-today.is-fold .liq-today-q {
    flex: 1 1 auto;
    margin: 0;
    font-size: 17px;
}

.liq-today-hd {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 0 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-today-hd .liq-today-q {
    flex: 1 1 auto;
    margin: 0;
}

.liq-today-hd .liq-chev {
    transform: rotate(180deg);
    color: var(--text-dim);
}

.liq-today.is-fold .liq-chev {
    color: var(--text-dim);
}


/* ----------------------------------------------------------------------------
   Doing, Next, Done (1.24.0). The running action as one line; Done as
   the last list on the page.
   -------------------------------------------------------------------------- */

.liq-bd-doing {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    margin-bottom: 6px;
    padding: 7px 7px 7px 10px;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: rgba(74, 158, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.08);
}

.liq-bd-doing .liq-bd-t > span {
    font-weight: 600;
}

.liq-bd-doing .liq-bd-t small {
    display: flex;
    align-items: center;
    gap: 6px;
}

.liq-live-dot {
    flex: 0 0 7px;
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18);
}

.liq-bd-sb {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-raised, var(--bg-surface));
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.liq-bd-sb.is-done {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.10);
    color: #4ade80;
}

.liq-bd-ck {
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
}

.liq-bd-ck.is-short {
    background: rgba(234, 179, 8, 0.16);
    color: #eab308;
}

.liq-bd-ck.is-scrapped,
.liq-bd-ck.is-plain {
    background: rgba(122, 122, 148, 0.18);
    color: var(--text-secondary, var(--text-dim));
}

.liq-ac-state {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0 12px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-ac-state .is-ok {
    color: #4ade80;
}

.liq-ac-grade {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.liq-ac-g {
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    padding: 0 4px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.liq-ac-g.is-on.is-done {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.liq-ac-g.is-on.is-short {
    border-color: rgba(234, 179, 8, 0.6);
    background: rgba(234, 179, 8, 0.10);
    color: #eab308;
}

.liq-ac-g.is-on.is-scrapped {
    border-color: var(--border-light, var(--border));
    background: rgba(122, 122, 148, 0.16);
    color: var(--text-primary);
}

.liq-bd-open.liq-ac.is-done {
    border-color: var(--border-light, var(--border));
    background: var(--bg-surface);
}

.liq-bd-h.is-fold[aria-expanded="true"] .liq-chev {
    transform: rotate(180deg);
}


/* ----------------------------------------------------------------------------
   Open / close carets you can see (1.25.0). Every fold - the action
   card, the Done list, What's next - gets a round 36px button with a
   20px caret, not a faint 16px tick.
   -------------------------------------------------------------------------- */

.liq-ac-fold,
.liq-bd-h.is-fold .liq-chev,
.liq-today.is-fold .liq-chev,
.liq-today-hd .liq-chev {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 50%;
    background: var(--bg-raised, var(--bg-surface));
    color: var(--text-primary);
}

.liq-ac-fold .liq-chev {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

.liq-ac-fold svg,
.liq-bd-h.is-fold .liq-chev svg,
.liq-today.is-fold .liq-chev svg,
.liq-today-hd .liq-chev svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.4;
}

.liq-ac-fold {
    margin-left: 2px;
}

.liq-bd-h.is-fold {
    min-height: 44px;
    margin-top: 16px;
}

.liq-today-hd .liq-chev {
    color: var(--text-primary);
}

/* The pills' carets: bigger and brighter too. */
.liq-ac-pill > .liq-chev {
    color: var(--text-secondary, var(--text-primary));
}

.liq-ac-pill > .liq-chev svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

/* A circle on every phone: nothing may stretch or squeeze it. */
.liq-ac-fold,
.liq-bd-h.is-fold .liq-chev,
.liq-today.is-fold .liq-chev,
.liq-today-hd .liq-chev {
    box-sizing: border-box;
    flex: none;
    align-self: center;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    aspect-ratio: 1 / 1;
    padding: 0;
    line-height: 0;
}


/* ----------------------------------------------------------------------------
   Plan tomorrow as one list (1.26.0). Every row is a box you can fix in
   place; the usual is in it from the start.
   -------------------------------------------------------------------------- */

.liq-pl-tag.is-fixed em {
    margin-left: 6px;
    font-style: normal;
    font-size: 10.5px;
    color: var(--text-dim);
}

.liq-pl-lh {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.liq-pl-lh em {
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-dim);
}

.liq-pl-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    margin-bottom: 6px;
    padding: 0 4px 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-base);
}

.liq-pl-item:focus-within {
    border-color: rgba(74, 158, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.10);
}

.liq-pl-n {
    flex: 0 0 14px;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-pl-edit {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.liq-pl-edit:focus {
    border-bottom-color: var(--accent);
}

.liq-pl-tg {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(122, 122, 148, 0.18);
    color: var(--text-secondary, var(--text-primary));
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.liq-pl-tg.is-first {
    background: rgba(74, 158, 255, 0.14);
    color: var(--accent-light, var(--accent));
}

.liq-pl-ok {
    flex: 0 0 auto;
    font-size: 11.5px;
    color: #4ade80;
}

.liq-pl-x {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
}


/* ----------------------------------------------------------------------------
   A Done button in the note while it is being typed or talked into
   (1.27.0) - the clean way out of the box.
   -------------------------------------------------------------------------- */

.liq-ac-notew {
    position: relative;
    margin-top: 10px;
}

.liq-ac-notew .liq-ac-note {
    margin-top: 0;
}

.liq-ac-notew.is-on .liq-ac-note {
    min-height: 72px;
    border-color: var(--accent);
}

/* Under the note, never on it. */
.liq-ac-ok {
    display: none;
    margin: 8px 0 0 auto;
    height: 36px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: #06121f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.liq-ac-notew.is-on .liq-ac-ok {
    display: block;
}


/* ----------------------------------------------------------------------------
   Aims (1.28.0). Aims, the goals under them as a ladder, sharpness as
   four squares, and Wingman's read of a goal.
   -------------------------------------------------------------------------- */

.liq-am {
    padding-bottom: 24px;
}

.liq-am-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 12px;
}

.liq-am-link {
    min-height: 40px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.liq-am-say {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 13px 64px 13px 14px;
    border: 1px solid rgba(74, 158, 255, 0.45);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(74, 158, 255, 0.10), rgba(74, 158, 255, 0.02));
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-am-say span {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

.liq-am-say small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-am-say i {
    position: absolute;
    right: 10px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 11px;
    background: var(--accent);
}

.liq-am-say i svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #06121f;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.liq-am-aim {
    margin-bottom: 10px;
    padding: 6px 12px 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
}

.liq-am-aim-h {
    display: flex;
    align-items: baseline;
    width: 100%;
    min-height: 40px;
    padding: 6px 0 4px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-am-aim-h b {
    flex: 1 1 auto;
    font-size: 16.5px;
    font-weight: 700;
}

.liq-am-aim-h em {
    font-style: normal;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-am-none {
    margin: 2px 0 6px;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-am-g {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    padding: 4px 6px 4px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.liq-am-g.is-d1 { margin-left: 12px; }
.liq-am-g.is-d2 { margin-left: 24px; }
.liq-am-g.is-d3 { margin-left: 36px; }

.liq-am-g.is-week {
    border: 1px solid rgba(74, 158, 255, 0.35);
}

.liq-am-g.is-met .liq-am-g-t > span {
    color: #4ade80;
}

.liq-am-g-t {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--text-secondary, var(--text-primary));
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-am-g-t small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-am-g-t span {
    display: block;
    margin-top: 2px;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--text-primary);
}

.liq-am-g-t em,
.liq-am-lw em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-am-g-t em.is-ok {
    color: #4ade80;
}

.liq-am-bar {
    display: block;
    height: 5px;
    margin-top: 5px;
    border-radius: 3px;
    background: var(--border);
}

.liq-am-bar i {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: var(--accent);
}

.liq-am-g-r {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.liq-am-sq {
    display: inline-flex;
    gap: 3px;
    vertical-align: middle;
}

.liq-am-sq i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--border-light, var(--border));
}

.liq-am-sq i.is-on {
    background: var(--accent);
}

.liq-am-draft {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(234, 179, 8, 0.14);
    color: #eab308;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    vertical-align: middle;
}

.liq-am-tick,
.liq-am-plus {
    min-width: 40px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.liq-am-tick.is-on {
    border-color: rgba(34, 197, 94, 0.6);
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
}

.liq-am-plus {
    color: var(--accent-light, var(--accent));
}

.liq-am-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.liq-am-wk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-dim);
}

.liq-am-wk i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light, var(--border));
}

.liq-am-wk i.is-ok   { background: #22c55e; }
.liq-am-wk i.is-part { background: #eab308; }
.liq-am-wk i.is-zero { background: #e07070; }

.liq-am-wk.is-none {
    opacity: 0.7;
}

.liq-am-add {
    min-height: 36px;
    padding: 0 10px;
    border: 1px dashed var(--border-light, var(--border));
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary, var(--text-primary));
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.liq-am-last {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    margin-top: 6px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
}

.liq-am-last[aria-expanded="true"] .liq-chev {
    transform: rotate(180deg);
}

.liq-am-lw {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--text-secondary, var(--text-primary));
}

.liq-am-lw > i {
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-style: normal;
    font-size: 11px;
}

.liq-am-lw.is-hit > i {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
}

.liq-am-lw.is-missed > i {
    background: rgba(224, 112, 112, 0.16);
    color: #e07070;
}

.liq-am-lw > span {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-am-again {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, var(--text-primary));
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

/* Say a goal, and Wingman's read */
.liq-am-under {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-am-under b {
    color: var(--text-primary);
}

.liq-am-sayin textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    resize: vertical;
}

.liq-am-sayacts {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.liq-am-sayacts .btn {
    min-width: 110px;
}

.liq-am-wing {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-raised, rgba(255, 255, 255, 0.03));
}

.liq-am-why {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.liq-am-tests {
    margin: 0 0 10px;
    padding: 0;
    list-style: none;
}

.liq-am-tests li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-secondary, var(--text-primary));
}

.liq-am-tests li i {
    flex: 0 0 16px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.liq-am-tests li.is-ok i { color: #4ade80; }
.liq-am-tests li.is-no i { color: #e07070; }

.liq-am-newaim {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.liq-am-newaim b {
    color: var(--text-primary);
}

.liq-am-prop {
    padding: 10px 12px;
    border: 1px solid rgba(74, 158, 255, 0.5);
    border-radius: 12px;
    background: rgba(74, 158, 255, 0.06);
}

.liq-am-prop-h {
    display: flex;
    align-items: center;
    gap: 8px;
}

.liq-am-prop-h small,
.liq-am-kids small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light, var(--accent));
}

.liq-am-prop-t {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
}

.liq-am-m {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-dim);
}

.liq-am-kids {
    margin: 10px 0 0 6px;
    padding-left: 10px;
    border-left: 2px solid var(--border-light, var(--border));
}

.liq-am-kids > div {
    margin: 8px 0;
    font-size: 13.5px;
    color: var(--text-secondary, var(--text-primary));
}

.liq-am-pick {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* The goal sheet */
.liq-am-gt {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    resize: vertical;
}

.liq-am-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-am-seg {
    display: flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.liq-am-seg button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.liq-am-seg button.is-on {
    background: rgba(74, 158, 255, 0.16);
    color: var(--text-primary);
}

.liq-am-tgt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.liq-am-tgt input {
    font-size: 16px;
}

.liq-am-tgt input[type="number"] {
    flex: 0 0 110px;
    width: 110px;
}

.liq-am-tgt input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-am-hint {
    font-size: 12px;
    color: var(--text-dim);
}

.liq-am-tchk button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin-bottom: 5px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary, var(--text-primary));
    font-family: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}

.liq-am-tchk button i {
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    border: 1.5px solid var(--border-light, var(--border));
    border-radius: 5px;
    font-style: normal;
    font-size: 12px;
}

.liq-am-tchk button.is-on {
    border-color: rgba(74, 158, 255, 0.5);
    color: var(--text-primary);
}

.liq-am-tchk button.is-on i {
    border-color: var(--accent);
    background: var(--accent);
    color: #06121f;
}

.liq-am-sharpen {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 1px dashed rgba(74, 158, 255, 0.55);
    border-radius: 10px;
    background: transparent;
    color: var(--accent-light, var(--accent));
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* An action's line up to its aim (1.28.0). */
.liq-ac-serve {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 8px 6px 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-ac-serve.is-open {
    border-color: rgba(74, 158, 255, 0.6);
}

.liq-ac-serve > span {
    flex: 1 1 auto;
    min-width: 0;
}

.liq-ac-serve em {
    display: block;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.liq-ac-serve b {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-ac-serve small {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.liq-ac-serve.is-none b {
    font-weight: 500;
    color: var(--text-secondary, var(--text-primary));
}

.liq-ac-serve > .liq-chev {
    color: var(--text-dim);
    transition: transform 0.15s ease;
}

.liq-ac-serve.is-open > .liq-chev {
    transform: rotate(180deg);
}

.liq-ac-gr > span small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--text-dim);
}

.liq-ac-gr {
    min-height: 52px;
}

.liq-ac-gr > span {
    white-space: normal;
}

.liq-bd-up {
    font-style: normal;
    color: var(--accent-light, var(--accent));
}

/* ==========================================================================
   Nudges (1.29.0). The screen that says when Life IQ reaches out.
   Switches are .liq-sw, choices are .liq-am-seg.
   ========================================================================== */

.liq-nd {
    max-width: 560px;
    margin: 0 auto;
    padding: 4px 0 40px;
}

.liq-nd-ttl {
    margin: 4px 2px 4px;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.liq-nd-sub {
    margin: 0 2px 14px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}

.liq-nd-card {
    margin: 0 0 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface);
}

.liq-nd-phone {
    border-color: rgba(74, 158, 255, 0.45);
    background: linear-gradient(180deg, rgba(74, 158, 255, 0.08), rgba(74, 158, 255, 0.02));
    margin-bottom: 14px;
}

.liq-nd-h {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.liq-nd-name {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
}

.liq-nd-name small {
    display: block;
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 400;
}

.liq-nd-sw {
    flex: 0 0 auto;
    width: 50px;
    height: 30px;
    border: 0;
    border-radius: 15px;
    padding: 0;
    cursor: pointer;
}

.liq-nd-sw:after {
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
}

.liq-nd-sw.is-on {
    background: var(--signal, #22c55e);
}

.liq-nd-sw.is-on:after {
    left: auto;
    right: 4px;
}

.liq-nd-seg {
    margin-top: 10px;
}

.liq-nd-seg button {
    min-height: 40px;
    font-size: 14px;
}

.liq-nd-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 14px;
}

.liq-nd-time input {
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
}

.liq-nd-line {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.liq-nd-go {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #06121f;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.liq-nd-go[disabled],
.liq-nd-btn[disabled] {
    opacity: 0.6;
    cursor: default;
}

.liq-nd-acts {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.liq-nd-btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-raised, var(--bg-surface));
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.liq-nd-btn.is-quiet {
    background: transparent;
    color: var(--text-dim);
}

.liq-nd-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--signal, #22c55e);
}

.liq-nd-msg {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.liq-nd-msg.is-bad {
    color: #e07070;
}

.liq-nd-quiet {
    margin: 6px 0 16px;
    padding: 10px 12px;
    border: 1px dashed var(--border-light, var(--border));
    border-radius: 12px;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}

.liq-nd-quiet b {
    color: var(--text-secondary);
}

.liq-nd-fold {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin: 0 0 8px;
    padding: 8px 2px;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.liq-nd-fold > span:first-child {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 600;
}

.liq-nd-fold small {
    display: block;
    margin-top: 2px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 400;
}

.liq-nd-fold[aria-expanded="true"] .liq-chev svg {
    transform: rotate(180deg);
}

.liq-nd-url {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 10px 0 8px;
    padding: 0 10px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-base);
    color: var(--text-secondary);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 16px;
}

.liq-nd-sched .liq-nd-btn {
    width: 100%;
}


/* ==========================================================================
   Next in his order (1.30.0). The weight bar becomes a gripper in the
   same color; hold it and drag.
   ========================================================================== */

.liq-bd-row.has-grip {
    gap: 6px;
    padding-left: 0;
}

.liq-bd-row.has-grip .liq-bd-t {
    padding-left: 6px;
}

.liq-bd-grip {
    flex: 0 0 36px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 11px 0 0 11px;
    color: var(--accent);
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.liq-bd-grip svg {
    width: 14px;
    height: 22px;
    fill: currentColor;
}

.liq-bd-grip.is-need  { color: rgba(196, 196, 212, 0.6); }
.liq-bd-grip.is-rest  { color: #a78bfa; }
.liq-bd-grip.is-noise { color: #5c5c70; }

.liq-bd-n {
    flex: 0 0 18px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.liq-nx [data-nx] {
    transition: transform 0.16s ease;
}

.liq-nx .is-lift {
    position: relative;
    z-index: 5;
    transition: none;
}

.liq-nx .liq-bd-row.is-lift {
    border-color: var(--accent);
    background: var(--bg-raised, var(--bg-surface));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(74, 158, 255, 0.35);
}

.liq-nx .is-lift .liq-bd-grip {
    cursor: grabbing;
}

.liq-nx-saved {
    margin-left: 6px;
    color: var(--signal, #22c55e);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
}

.liq-nx-saved.is-on {
    opacity: 1;
}


/* Which aim (1.30.1): name a new one when none is picked. */
.liq-am-which {
    margin-top: 12px;
}

.liq-am-aimin {
    width: 100%;
    margin-top: 8px;
    font-family: inherit;
    font-size: 16px;
}

.liq-am-aimin.is-off {
    opacity: 0.5;
}


/* ----------------------------------------------------------------------------
   Quick log (1.31.0): Signal, Necessary, Noise at the very top of Day,
   and Off beside them (1.33.0).
   One opens the half-hour squares and a note. Weight colours as on the
   board: signal blue, necessary light grey, noise dim grey.
   -------------------------------------------------------------------------- */

.liq-ql {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr 0.8fr;
    gap: 6px;
    margin: 0 0 12px;
}

.liq-ql-b {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 46px;
    padding: 0 4px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.liq-ql-b i {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--accent);
}

.liq-ql-b.is-need i  { background: rgba(196, 196, 212, 0.55); }
.liq-ql-b.is-noise i { background: #5c5c70; }

.liq-ql-b.is-signal.is-on {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.14);
}

.liq-ql-b.is-need.is-on {
    border-color: rgba(196, 196, 212, 0.7);
    background: rgba(196, 196, 212, 0.10);
}

.liq-ql-b.is-noise.is-on {
    border-color: #7a7a90;
    background: rgba(92, 92, 112, 0.22);
}

.liq-ql-p {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 14px;
    background: var(--bg-surface);
}

.liq-ql-p .liq-tt-h span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.liq-ql-p .liq-tt-marks + .liq-tt-row {
    margin-top: 8px;
}

.liq-ql-p.is-need .liq-tt-seg.is-on {
    border-color: rgba(196, 196, 212, 0.55);
    background: rgba(196, 196, 212, 0.55);
}

.liq-ql-p.is-noise .liq-tt-seg.is-on {
    border-color: #6c6c84;
    background: #5c5c70;
}

.liq-ql-note {
    margin-top: 12px;
    resize: none;
    overflow: hidden;
}

.liq-ql-act {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.liq-ql-x,
.liq-ql-go {
    flex: 1 1 0;
    height: 44px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.liq-ql-x {
    border: 1px solid var(--border-light, var(--border));
    background: transparent;
    color: var(--text-secondary);
}

.liq-ql-go {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #06121f;
}

.liq-ql-go[disabled] {
    opacity: 0.35;
    cursor: default;
}


/* ----------------------------------------------------------------------------
   Nudges, second round (1.32.0): group headings, the label over a
   choice, and the morning items under Until it's done.
   -------------------------------------------------------------------------- */

.liq-nd-grp {
    margin: 18px 2px 8px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.liq-nd-lbl {
    margin: 10px 0 0;
    color: var(--text-dim);
    font-size: 13px;
}

.liq-nd-lbl + .liq-nd-seg {
    margin-top: 6px;
}

.liq-nd-items {
    margin-top: 10px;
    border-top: 1px solid var(--border);
}

.liq-nd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    border-bottom: 1px solid var(--border);
}

.liq-nd-item:last-child {
    border-bottom: 0;
}

.liq-nd-item span {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-primary);
    font-size: 15px;
}

.liq-nd-sw.is-sm {
    width: 44px;
    height: 26px;
    border-radius: 13px;
}

.liq-nd-sw.is-sm:after {
    width: 18px;
    height: 18px;
}


/* ----------------------------------------------------------------------------
   Off day (1.33.0): the fourth button on the quick log row, the line
   under it while the day is off, and Remove on the Nudges list.
   -------------------------------------------------------------------------- */

.liq-ql-b.is-off {
    color: var(--text-secondary);
}

.liq-ql-b.is-off.is-on {
    border-color: #c9ccd6;
    background: var(--bg-raised, var(--bg-surface));
    color: var(--text-primary);
}

.liq-ql-b[disabled] {
    opacity: 0.6;
    cursor: default;
}

.liq-ql-off {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 2px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.liq-ql-off svg {
    flex: 0 0 auto;
}

.liq-nd-rm {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}


/* ----------------------------------------------------------------------------
   Palette (1.34.0). One color, one meaning:
     Signal blue, Necessary amber, Noise dark red, Rest violet,
     Off teal, wins green, watch-for red (it is noise to watch for).
   Set here, last, over every earlier weight and watch-for color.
   -------------------------------------------------------------------------- */

/* Necessary: amber */
.liq-wt.is-need   { background: rgba(245, 185, 66, 0.14); color: #f5c76a; }
.liq-mine i.is-need, .liq-chain-lg i.is-need, .liq-chain-rib i.is-need, .liq-chain-b.is-need { background: #f5b942; }
.liq-bd-w.is-need { background: #f5b942; }
.liq-wd-bar i.is-need, .liq-wd-lg i.is-need { background: #f5b942; }
.liq-bd-grip.is-need { color: #f5b942; }
.liq-ql-b.is-need i { background: #f5b942; }
.liq-ql-b.is-need.is-on {
    border-color: rgba(245, 185, 66, 0.7);
    background: rgba(245, 185, 66, 0.10);
}
.liq-ql-p.is-need .liq-tt-seg.is-on {
    border-color: #f5b942;
    background: #f5b942;
}

/* Noise: dark red */
.liq-wt.is-noise  { background: rgba(180, 54, 60, 0.20); color: #e8797e; }
.liq-mine i.is-noise, .liq-chain-lg i.is-noise, .liq-chain-rib i.is-noise, .liq-chain-b.is-noise { background: #b4363c; }
.liq-bd-w.is-noise { background: #b4363c; }
.liq-wd-bar i.is-noise, .liq-wd-lg i.is-noise { background: #b4363c; }
.liq-bd-grip.is-noise { color: #c9464c; }
.liq-ql-b.is-noise i { background: #b4363c; }
.liq-ql-b.is-noise.is-on {
    border-color: rgba(201, 70, 76, 0.75);
    background: rgba(180, 54, 60, 0.16);
}
.liq-ql-p.is-noise .liq-tt-seg.is-on {
    border-color: #c9464c;
    background: #b4363c;
}

/* Off: teal */
.liq-ql-b.is-off i { background: #2dd4bf; }
.liq-ql-b.is-off.is-on {
    border-color: rgba(45, 212, 191, 0.7);
    background: rgba(45, 212, 191, 0.10);
}
.liq-ql-off { color: #7fe3d5; }

/* Watch-for: red */
.liq-stk-pips i.is-a { background: #c9464c; }
.liq-stk-pips em.liq-stk-am,
.liq-stk-am,
.liq-stk-row.is-am span,
.liq-stk-lab .is-am,
.liq-sect-am,
.liq-wk-am,
.liq-wk-v.is-am,
.liq-seg4-b.is-am.is-on { color: #e8797e; }

.liq-chip.is-watch { border-color: rgba(201, 70, 76, 0.5); }
.liq-chip.is-watch i { border-color: #d9474f; }
.liq-chip.is-watch.is-on {
    border-color: rgba(201, 70, 76, 0.8);
    background: rgba(180, 54, 60, 0.16);
    color: #f3b0b3;
}
.liq-chip.is-watch.is-on i { background: #d9474f; }
.liq-chip.is-watch.is-half {
    border-color: rgba(201, 70, 76, 0.6);
    background: linear-gradient(90deg, rgba(180, 54, 60, 0.16) 50%, transparent 50%);
    color: #f0a3a7;
}
.liq-chip.is-watch.is-half i {
    background: linear-gradient(90deg, #d9474f 50%, transparent 50%);
}


/* ----------------------------------------------------------------------------
   Day holds everything (1.35.0): Rest on the quick log row, the off-day
   band, To check off today, Working / Off in Plan tomorrow, dates of
   the month on a routine item, and the Off days calendar.
   -------------------------------------------------------------------------- */

.liq-ql {
    grid-template-columns: 1fr 1.25fr 1fr 1fr;
}

.liq-ql-b.is-rest i { background: #a78bfa; }
.liq-ql-b.is-rest.is-on {
    border-color: rgba(167, 139, 250, 0.7);
    background: rgba(167, 139, 250, 0.12);
}
.liq-ql-p.is-rest .liq-tt-seg.is-on {
    border-color: #a78bfa;
    background: #a78bfa;
}

/* the off day */
.liq-offband {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(45, 212, 191, 0.45);
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.08);
    color: #9eeee2;
    font-size: 14px;
}
.liq-offband svg { flex: 0 0 auto; }
.liq-offband span { flex: 1 1 auto; }
.liq-offband button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* To check off today */
.liq-ck-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.liq-ck-h em {
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    font-size: 12px;
    color: var(--text-dim);
}

/* Plan tomorrow: Working / Off */
.liq-pl-off {
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: var(--bg-surface);
}
.liq-pl-off-l {
    margin: 0 0 6px;
    color: var(--text-dim);
    font-size: 13px;
}
.liq-pl-off-l + .liq-pl-seg { margin-bottom: 10px; }
.liq-pl-seg {
    display: flex;
    gap: 6px;
}
.liq-pl-seg button {
    flex: 1 1 0;
    min-height: 42px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.liq-pl-seg button.is-on {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.14);
    color: var(--text-primary);
    font-weight: 600;
}
.liq-pl-seg button.is-on.is-off {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.12);
}
.liq-pl-more {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 14px;
}
.liq-pl-more input {
    width: 84px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 9px;
    background: var(--bg-base, #121319);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
}
.liq-pl-off-hint {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
}
.liq-pl-off-hint b {
    color: #9eeee2;
    font-weight: 600;
}
.liq-pl-rest.is-dim { opacity: 0.5; }

/* Routine item: where it goes, and dates of the month */
.liq-fs-note {
    display: block;
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.4;
}
.liq-fs-dom {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.liq-fs-dd {
    min-height: 38px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.liq-fs-dd.is-on {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-base);
    font-weight: 700;
}

/* Settings: the Off days calendar */
.liq-nd-calh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0 8px;
}
.liq-nd-calh b {
    color: var(--text-primary);
    font-size: 15px;
}
.liq-nd-calh button {
    min-width: 44px;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}
.liq-nd-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.liq-nd-cal span {
    padding-bottom: 2px;
    color: var(--text-dim);
    font-size: 11px;
    text-align: center;
}
.liq-nd-cd {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-style: normal;
    cursor: pointer;
}
.liq-nd-cd.is-off {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.18);
    color: var(--text-primary);
    font-weight: 600;
}
.liq-nd-cd.is-today { border-color: var(--accent); }
.liq-nd-cd.is-past { opacity: 0.35; cursor: default; }
.liq-nd-cal .is-blank { border: 0; }


/* ----------------------------------------------------------------------------
   Shortcuts (1.36.0): the row pinned under the rail, the toast after a
   tap, the list, the editor, and Save as shortcut on the quick log.
   Weight colors as everywhere: signal blue, need amber, noise red,
   rest violet.
   -------------------------------------------------------------------------- */

.liq-sc {
    display: flex;
    gap: 7px;
    margin: 0 0 14px;
    padding-bottom: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.liq-sc::-webkit-scrollbar { display: none; }

.liq-sc-c {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 999px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.liq-sc-c em {
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    color: var(--text-dim);
}
.liq-sc-c.is-bolt { padding: 0 11px; color: var(--text-secondary); }
.liq-sc-c.is-add { border-style: dashed; color: var(--text-dim); font-weight: 400; }
.liq-sc-c.is-hit {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.14);
}
.liq-sc-c[disabled] { opacity: 0.6; }

.liq-sc-c i,
.liq-sc-row-t i,
.liq-sc-wt i {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
}
.liq-sc-c i.is-need,  .liq-sc-row-t i.is-need,  .liq-sc-wt .is-need i  { background: #f5b942; }
.liq-sc-c i.is-noise, .liq-sc-row-t i.is-noise, .liq-sc-wt .is-noise i { background: #b4363c; }
.liq-sc-c i.is-rest,  .liq-sc-row-t i.is-rest,  .liq-sc-wt .is-rest i  { background: #a78bfa; }

/* the toast after a tap */
.liq-sc-toast {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 520px;
    margin: 0 auto;
    padding: 10px 10px 10px 14px;
    border: 1px solid #2f6b3c;
    border-radius: 14px;
    background: #1d2a1f;
    color: #cfe9d5;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.liq-sc-toast span { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.liq-sc-toast small {
    display: block;
    color: #9fc7a9;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.liq-sc-toast button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* the list */
.liq-sc-list { display: flex; flex-direction: column; gap: 6px; }
.liq-sc-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-surface);
}
.liq-sc-row.is-new {
    justify-content: center;
    min-height: 48px;
    border-style: dashed;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
}
.liq-sc-row-t {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.liq-sc-row-t span { min-width: 0; }
.liq-sc-row-t b { display: block; font-size: 15px; }
.liq-sc-row-t small {
    display: block;
    color: var(--text-dim);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.liq-sc-mv {
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
}
.liq-sc-mv[disabled] { opacity: 0.3; cursor: default; }

/* the editor */
.liq-sc-lbl {
    display: block;
    margin: 14px 0 7px;
    color: var(--text-dim);
    font-size: 13px;
}
.liq-sc-lbl b { float: right; color: var(--text-primary); font-weight: 600; }
.liq-sc-ed .liq-sc-lbl:first-child { margin-top: 0; }
.liq-sc-in {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: var(--bg-base, #121319);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
}
.liq-sc-wt {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.liq-sc-wt button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 4px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.liq-sc-wt button.is-on { color: var(--text-primary); font-weight: 600; }
.liq-sc-wt .is-signal.is-on { border-color: var(--accent); background: rgba(74, 158, 255, 0.14); }
.liq-sc-wt .is-need.is-on   { border-color: rgba(245, 185, 66, 0.75); background: rgba(245, 185, 66, 0.10); }
.liq-sc-wt .is-noise.is-on  { border-color: rgba(201, 70, 76, 0.75); background: rgba(180, 54, 60, 0.16); }
.liq-sc-wt .is-rest.is-on   { border-color: rgba(167, 139, 250, 0.7); background: rgba(167, 139, 250, 0.12); }

.liq-sc-tt.is-need  .liq-tt-seg.is-on { border-color: #f5b942; background: #f5b942; }
.liq-sc-tt.is-noise .liq-tt-seg.is-on { border-color: #c9464c; background: #b4363c; }
.liq-sc-tt.is-rest  .liq-tt-seg.is-on { border-color: #a78bfa; background: #a78bfa; }
.liq-sc-tt .liq-tt-marks + .liq-tt-row { margin-top: 8px; }

.liq-sc-parts { display: flex; flex-wrap: wrap; gap: 7px; }
.liq-sc-part {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.liq-sc-part b { color: var(--text-dim); font-weight: 400; }
.liq-sc-part.is-rt { border-color: rgba(34, 197, 94, 0.5); }
.liq-sc-part.is-rt i,
.liq-sc-pick i {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: #22c55e;
}
.liq-sc-part.is-new { border-style: dashed; color: var(--text-dim); }

.liq-sc-add {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.liq-sc-add .liq-sc-in { flex: 1 1 auto; }
.liq-sc-picks {
    margin-top: 8px;
    padding: 4px 10px 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.liq-sc-grp {
    margin: 8px 2px 4px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.liq-sc-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}
.liq-sc-pick i { background: transparent; border: 2px solid var(--border-light, var(--border)); }
.liq-sc-hint {
    margin: 10px 2px 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.45;
}
.liq-sc-acts { display: flex; gap: 8px; }
.liq-sc-acts .btn { flex: 1 1 0; }

/* Save as shortcut, on the quick log */
.liq-ql-sc {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* ==========================================================================
   The bar and open loops (1.37.0). lineup-loops.js.
   The bar: Morning's order card (.liq-bar-order), Day's card (.liq-dbar -
   not .liq-bar, which product.css owns as a 10px strip),
   Night's verdict (.liq-vd). The loops list sheet (.liq-lo-*) and the
   Loop tag on an action (.liq-bd-lo). Signal blue, Necessary amber,
   met green, short and noise red.
   ========================================================================== */

.liq-bar-order,
.liq-dbar,
.liq-vd {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface, #17181e);
}
.liq-bar-order,
.liq-vd { border-color: var(--border-light, var(--border)); background: var(--bg-raised, #1f2128); }
.liq-dbar.is-beat { border-color: rgba(34, 197, 94, 0.45); }

.liq-bar-k {
    margin: 0 0 4px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.liq-bar-big {
    margin: 2px 0 4px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
}
.liq-bar-p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.liq-bar-pick {
    margin-top: 12px;
    padding: 4px 12px 8px;
    border: 1px dashed var(--border-light, var(--border));
    border-radius: 12px;
}
.liq-bar-lbl {
    margin: 6px 0 2px;
    color: var(--text-dim);
    font-size: 13px;
}
.liq-bar-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}
.liq-bar-opt small { flex: 0 0 auto; color: var(--text-dim); font-size: 13px; }
.liq-bar-opt small.is-old { color: #e8797e; }
.liq-bar-opt.is-on { cursor: default; font-weight: 600; }
.liq-bar-opt.is-on span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #f5b942;
}
.liq-bar-all {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.liq-bar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}
.liq-bar-top b { color: var(--text-primary); font-size: 22px; font-weight: 700; }
.liq-bar-to { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.liq-dbar.is-beat .liq-bar-to { color: #22c55e; }
.liq-bar-tr {
    position: relative;
    display: flex;
    height: 12px;
    margin: 10px 0 7px;
    border-radius: 6px;
    background: var(--bg-raised, #1f2128);
}
.liq-bar-tr span { height: 100%; }
.liq-bar-tr span:first-child { border-radius: 6px 0 0 6px; }
.liq-bar-tr .is-signal { background: var(--signal, var(--accent, #4a9eff)); }
.liq-bar-tr .is-need   { background: var(--necessary, #f5b942); }
.liq-bar-tr i {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    margin-left: -2px;
    background: var(--text-primary);
}
.liq-bar-sub {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}
.liq-bar-sub b { color: var(--text-primary); font-weight: 600; }
.liq-bar-sub b.is-noise { color: #e8797e; }
.liq-bar-lp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}
.liq-bar-lp b { color: var(--text-primary); font-weight: 600; }
.liq-bar-lp em { flex: 0 0 auto; color: var(--text-dim); font-size: 13px; font-style: normal; }
.liq-bar-lb {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.liq-bar-lb small { color: var(--text-dim); font-size: 12px; font-weight: 400; margin-top: 2px; }

/* Night: the verdict */
.liq-vd-r {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
}
.liq-vd-r b { color: var(--text-primary); font-weight: 600; text-align: right; }
.liq-vd-r b.is-ok   { color: #22c55e; }
.liq-vd-r b.is-miss { color: #e8797e; }
.liq-vd-w {
    margin: 12px 0 0;
    padding: 4px 0 4px 12px;
    border-left: 3px solid var(--accent, #4a9eff);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.55;
}
.liq-vd-w b { color: var(--text-primary); }

/* The Loop tag on an action */
.liq-bd-lo {
    padding: 1px 6px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 11px;
    font-style: normal;
}

/* The loops list */
.liq-lo-add { margin: 0 0 12px; }
.liq-lo-list { margin: 0; }
.liq-lo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    border-bottom: 1px solid var(--border);
}
.liq-lo-row:last-child { border-bottom: 0; }
.liq-lo-row.is-ed { display: block; padding: 10px 0; }
.liq-lo-eda { margin-top: 8px; }
.liq-lo-del.is-sure { background: var(--red, #b4363c); border-color: var(--red, #b4363c); color: #fff; }
.liq-lo-ck {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid var(--border-light, var(--border));
    border-radius: 7px;
    background: transparent;
    color: #06121f;
    font-size: 14px;
    cursor: pointer;
}
.liq-lo-ck.is-on { border-color: #22c55e; background: #22c55e; }
.liq-lo-ck.is-off { border-color: var(--border-light, var(--border)); background: transparent; color: transparent; }
.liq-lo-nm {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}
.liq-lo-nm small { margin-top: 2px; color: var(--text-dim); font-size: 12px; }
.liq-lo-nm small.is-old { color: #e8797e; }
.liq-lo-row.is-done .liq-lo-nm { cursor: default; color: var(--text-secondary); }
.liq-lo-go {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--accent, #4a9eff);
    border-radius: 9px;
    background: rgba(74, 158, 255, 0.14);
    color: #8cc0ff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.liq-lo-go.is-in {
    display: inline-flex;
    align-items: center;
    border-color: var(--border-light, var(--border));
    background: transparent;
    color: var(--text-dim);
    font-weight: 400;
    cursor: default;
}
.liq-lo-h {
    margin: 18px 2px 4px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.liq-lo-foot {
    margin: 14px 0 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   Morning times (1.38.0). lineup-mornings.js.
   The Start the day sheet (two dropdowns, bed to work), the three tiles
   on Morning, and the trend sheet. Lower is better for all three:
   green down, red up.
   ========================================================================== */

.liq-mt-f { margin: 0 0 14px; }
.liq-mt-f label {
    display: block;
    margin: 0 0 6px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
}
.liq-mt-f small { display: block; margin-top: 5px; color: var(--text-dim); font-size: 13px; }
.liq-mt-sel { position: relative; }
.liq-mt-sel select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 52px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 12px;
    background: var(--bg-base, #0e0f13);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}
.liq-mt-sel::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.liq-mt-gap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-raised, #1f2128);
    color: var(--text-secondary);
    font-size: 15px;
}
.liq-mt-gap b { color: var(--text-primary); font-size: 18px; }

.liq-mt-tiles {
    display: flex;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-surface, #17181e);
    color: var(--text-primary);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
}
.liq-mt-t {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    border-right: 1px solid var(--border);
}
.liq-mt-t:last-child { border-right: 0; }
.liq-mt-t small { display: block; margin-bottom: 2px; color: var(--text-dim); font-size: 12px; }
.liq-mt-t b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.liq-mt-dn, .liq-mt-up, .liq-mt-eq { display: inline-block; margin-left: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.liq-mt-dn { color: #22c55e; }
.liq-mt-up { color: #e8797e; }
.liq-mt-eq { color: var(--text-dim); }
.liq-mt-note { margin: 0 2px 14px; color: var(--text-dim); font-size: 12.5px; }
.liq-mt-add {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.liq-mt-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.liq-mt-tab {
    flex: 1 1 0;
    min-height: 40px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 10px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.liq-mt-tab.is-on { border-color: var(--accent); background: rgba(74, 158, 255, 0.14); color: var(--text-primary); font-weight: 600; }
.liq-mt-span { margin: 0 0 6px; color: var(--text-dim); font-size: 13px; line-height: 1.45; }
.liq-mt-m { padding: 12px 0; border-bottom: 1px solid var(--border); }
.liq-mt-mt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.liq-mt-mt b { color: var(--text-primary); font-size: 20px; }
.liq-mt-mt em { margin-left: 6px; color: var(--text-dim); font-size: 13px; font-style: normal; font-weight: 600; }
.liq-mt-mt em.is-good { color: #22c55e; }
.liq-mt-mt em.is-bad { color: #e8797e; }
.liq-mt-ms { margin-top: 2px; color: var(--text-dim); font-size: 12.5px; }
.liq-mt-spark { display: block; width: 100%; height: 34px; margin-top: 8px; }
.liq-mt-edit { width: 100%; margin-top: 14px; }

/* ==========================================================================
   Work blocks (1.39.0). lineup-blocks.js.
   The chips under the half hours in the quick log, the Block tag and
   chips on a board row, and where the work went.
   ========================================================================== */

.liq-bk { margin: 4px 0 12px; }
.liq-bk-h {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}
.liq-bk-h em { color: var(--text-dim); font-size: 12.5px; font-style: normal; font-weight: 400; }
.liq-bk-row { display: flex; flex-wrap: wrap; gap: 7px; }
.liq-bk-c {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}
.liq-bk-c.is-on {
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.14);
    color: var(--text-primary);
    font-weight: 600;
}
.liq-bk-c.is-new { border-style: dashed; color: var(--text-dim); }
.liq-bk-add { margin-top: 8px; }
.liq-bk-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; }
.liq-bk-links button {
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: inherit;
    font-size: 13.5px;
    cursor: pointer;
}

.liq-bk-k,
.liq-bk-tg {
    display: inline-block;
    margin: 2px 4px 0 0;
    padding: 1px 7px;
    border: 1px solid var(--border-light, var(--border));
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-style: normal;
}
.liq-bk-k { border-radius: 6px; color: var(--text-dim); }

.liq-bk-w { padding: 9px 0; border-bottom: 1px solid var(--border); }
.liq-bk-wt { display: flex; justify-content: space-between; gap: 10px; color: var(--text-primary); font-size: 15px; }
.liq-bk-wt em { color: var(--text-dim); font-size: 13px; font-style: normal; }
.liq-bk-w.is-quiet .liq-bk-wt span { color: var(--text-dim); }
.liq-bk-m { height: 8px; margin-top: 6px; border-radius: 4px; background: var(--bg-raised, #1f2128); overflow: hidden; }
.liq-bk-m i { display: block; height: 100%; border-radius: 4px; background: var(--signal, var(--accent, #4a9eff)); }

/* ==========================================================================
   Day headers and the empty shortcut row (1.39.1).
   LOG A BLOCK over the four buttons, SHORTCUTS over the shortcut row;
   with no shortcuts yet, the row says what one is.
   ========================================================================== */

.liq-dh {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 2px 8px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.liq-dh span {
    color: var(--text-dim);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.liq-sc-empty {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px dashed var(--border-light, var(--border));
    border-radius: 14px;
}
.liq-sc-empty p {
    margin: 0 0 10px;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.5;
}
.liq-sc-empty .btn { width: 100%; }
.liq-sc-part small {
    margin-left: 6px;
    color: #22c55e;
    font-size: 11.5px;
}

/* ==========================================================================
   The first and last rule (1.40.0). Pinned under the date on Today.
   ========================================================================== */

.liq-creed {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: rgba(74, 158, 255, 0.07);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.liq-creed b { color: var(--text-dim); font-weight: 600; }

/* ==========================================================================
   Wake, then start (1.40.1). The waiting "When did you start your day?"
   card on Morning and Day; Started reads "not yet" until it's set.
   ========================================================================== */

.liq-mt-hint { margin: -6px 0 14px; color: var(--text-dim); font-size: 13px; }
.liq-mt-pend {
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--accent);
    border-radius: 14px;
    background: rgba(74, 158, 255, 0.1);
}
.liq-mt-pend p { margin: 0 0 10px; color: var(--text-primary); font-size: 16px; font-weight: 600; }
.liq-mt-pend small { display: block; margin-top: 8px; color: var(--text-secondary); font-size: 13px; }
.liq-mt-pr { display: flex; gap: 8px; }
.liq-mt-pr .liq-mt-sel { flex: 1 1 auto; }
.liq-mt-set {
    flex: 0 0 auto;
    width: 92px;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #06121f;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}
.liq-mt-t b.is-wait { color: var(--text-dim); font-weight: 500; }
