
/* ---------------------------------------------------------------- tokens */

:root {
    --paper-1:  #FBF0ED;
    --paper-2:  #F5E2DD;
    --paper-3:  #EAD5CD;

    --ink-1:    #2E2A27;
    --ink-2:    #5F5954;
    --ink-3:    #857E78;
    --ink-4:    #B7AFA9;

    --teal-1:   #2F4B56;
    --teal-2:   #4B616E;
    --teal-3:   #6F8390;

    --hw-brand: #013d49;

    --gold:     #ACAB9D;
    --gold-2:   #C8C6B4;

    --alert-red: #B85450;
    --alert-red-bg: rgba(184, 84, 80, 0.10);

    --petal-low-stock:    #E8B4A0;
    --petal-draft:        #B7C2B3;
    --petal-order-placed: #9DB3BC;
    --petal-in-transit:   #7B98A4;
    --petal-arrived:      #D4A968;
    --petal-checked-in:   #2F4B56;
    --petal-checked-out:  #C9A4A4;

    --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
    --body:    "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;

    --radius:  14px;
    --radius-sm: 8px;

    --shadow-card:  0 1px 2px rgba(47, 42, 38, 0.04),
                    0 12px 28px rgba(47, 42, 38, 0.06);
    --shadow-lift:  0 2px 4px rgba(47, 42, 38, 0.06),
                    0 18px 36px rgba(47, 42, 38, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    color: var(--ink-1);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;

    background:
        radial-gradient(ellipse at 18% 12%, rgba(245, 226, 221, 0.7), transparent 38%),
        radial-gradient(ellipse at 82% 16%, rgba(234, 213, 205, 0.5), transparent 32%),
        radial-gradient(ellipse at 50% 100%, rgba(172, 171, 157, 0.18), transparent 40%),
        linear-gradient(180deg, var(--paper-1), var(--paper-2));
    min-height: 100vh;
}

/* paper grain — pure CSS, no images */
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(46, 42, 39, 0.03) 0 1px, transparent 1px 100%),
        radial-gradient(circle at 75% 25%, rgba(46, 42, 39, 0.022) 0 1px, transparent 1px 100%),
        radial-gradient(circle at 35% 78%, rgba(46, 42, 39, 0.022) 0 1px, transparent 1px 100%),
        radial-gradient(circle at 80% 80%, rgba(46, 42, 39, 0.018) 0 1px, transparent 1px 100%);
    background-size: 220px 220px, 260px 260px, 240px 240px, 280px 280px;
    mix-blend-mode: multiply;
    opacity: 0.55;
    z-index: 0;
}

/* ------------------------------------------------------------ typography */

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 420;
    color: var(--ink-1);
    letter-spacing: -0.01em;
    margin: 0;
    font-variation-settings: "opsz" 36, "SOFT" 80, "WONK" 0;
}

h1 { font-size: 44px; line-height: 1.05; }
h2 { font-size: 26px; line-height: 1.2; font-variation-settings: "opsz" 18, "SOFT" 80, "WONK" 0; }
h3 { font-size: 18px; line-height: 1.25; font-variation-settings: "opsz" 12, "SOFT" 60; }
h4 { font-size: 14px; line-height: 1.3; font-variation-settings: "opsz" 12, "SOFT" 40; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }

/* a tiny "wonk" on hero word */
.wonk { font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

p { margin: 0 0 12px; color: var(--ink-2); }

a { color: var(--teal-1); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--teal-2); text-decoration: underline; text-underline-offset: 3px; }

button { font-family: inherit; cursor: pointer; }

/* --------------------------------------------------------------- layout */

.shell {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px 80px;
}

@media (max-width: 640px) {
    .shell { padding: 0 18px 60px; }
}

/* --------------------------------------------------------------- topnav */

.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--hw-brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(1, 61, 73, 0.15);
}

.topnav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 22px;
    font-variation-settings: "opsz" 18, "SOFT" 100, "WONK" 1;
    color: var(--paper-1);
    text-decoration: none;
    letter-spacing: -0.005em;
}

.brand:hover {
    color: var(--paper-1);
    text-decoration: none;
    opacity: 0.85;
}

.brand .nav-flower {
    width: 26px;
    height: 26px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    flex: 1;
    flex-wrap: wrap;
}

.nav-links a {
    padding: 7px 12px;
    border-radius: 999px;
    color: rgba(251, 240, 237, 0.78);
    font-size: 14px;
    font-weight: 500;
    transition: all 180ms ease;
    text-decoration: none;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: var(--paper-1);
    text-decoration: none;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--paper-1);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(251, 240, 237, 0.65);
}

.nav-user .who {
    font-weight: 500;
    color: var(--paper-1);
}

.topnav > a {
    color: rgba(251, 240, 237, 0.78);
    text-decoration: none;
    transition: color 150ms ease;
}

.topnav > a:hover {
    color: var(--paper-1);
}

.topnav .inline-form {
    display: inline;
    margin: 0;
}

.topnav .link-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    color: rgba(251, 240, 237, 0.78);
    font-size: 13px;
    font-family: var(--body);
    border-radius: 6px;
    cursor: pointer;
    transition: all 150ms ease;
    text-decoration: none;
}

.topnav .link-btn:hover {
    color: var(--paper-1);
    background: rgba(255, 255, 255, 0.10);
    text-decoration: none;
}

.btn-text {
    background: none;
    border: none;
    padding: 6px 10px;
    color: var(--ink-3);
    font-size: 13px;
    border-radius: 6px;
    transition: all 150ms ease;
}

.btn-text:hover { color: var(--ink-1); background: rgba(46, 42, 39, 0.05); }

@media (max-width: 720px) {
    .nav-links { display: none; }
}

/* ---------------------------------------------------------------- alert */

.alert-strip {
    margin: 22px 0 0;
    padding: 14px 18px;
    background: var(--alert-red-bg);
    border: 1px solid rgba(184, 84, 80, 0.22);
    border-left: 3px solid var(--alert-red);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--ink-1);
    animation: slide-in 380ms cubic-bezier(.2,.8,.25,1) both;
}

.alert-strip .pulse {
    width: 8px; height: 8px; border-radius: 999px;
    background: var(--alert-red);
    box-shadow: 0 0 0 0 rgba(184, 84, 80, 0.45);
    animation: pulse 1.6s ease-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(184, 84, 80, 0.50); }
    70%  { box-shadow: 0 0 0 12px rgba(184, 84, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 84, 80, 0); }
}

.alert-strip strong { font-weight: 600; }

.alert-strip .spacer { flex: 1; }

.alert-strip a {
    font-weight: 600;
    color: var(--alert-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* -------------------------------------------------------------- hero */

.hero {
    text-align: center;
    padding: 56px 0 24px;
    position: relative;
    animation: fade-up 600ms cubic-bezier(.2,.8,.25,1) 80ms both;
}

.eyebrow {
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.eyebrow .dot {
    width: 3px; height: 3px;
    border-radius: 999px;
    background: var(--gold);
}

.hero h1 {
    font-size: 56px;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}

.hero p.lede {
    font-family: var(--display);
    font-size: 19px;
    font-style: italic;
    font-variation-settings: "opsz" 14, "SOFT" 80, "WONK" 0;
    color: var(--ink-2);
    max-width: 540px;
    margin: 10px auto 0;
}

@media (max-width: 640px) {
    .hero { padding: 36px 0 12px; }
    .hero h1 { font-size: 40px; }
    .hero p.lede { font-size: 17px; }
}

/* -------------------------------------------------------------- flower */

.flower-wrap {
    margin: 18px auto 0;
    width: min(640px, 92vw);
    aspect-ratio: 1;
    position: relative;
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1.000); }
    50%      { transform: scale(1.012); }
}

.flower-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* outer position group: handled by SVG attrs, do not touch via CSS */
.petal-group {
    cursor: pointer;
    transform-box: fill-box;
    transform-origin: 50% 100%;            /* calyx end of the petal */
    transition: transform 220ms cubic-bezier(.2,.8,.25,1),
                opacity 200ms ease,
                filter 220ms ease;
    transform: scale(0);
    animation: petal-in 700ms cubic-bezier(.18,.85,.32,1.05) forwards;
}

@keyframes petal-in {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.petal-pos.p1 .petal-group { animation-delay: 100ms; }
.petal-pos.p2 .petal-group { animation-delay: 175ms; }
.petal-pos.p3 .petal-group { animation-delay: 250ms; }
.petal-pos.p4 .petal-group { animation-delay: 325ms; }
.petal-pos.p5 .petal-group { animation-delay: 400ms; }
.petal-pos.p6 .petal-group { animation-delay: 475ms; }
.petal-pos.p7 .petal-group { animation-delay: 550ms; }

.flower-svg:hover .petal-group { opacity: 0.55; }

.petal-group:hover,
.petal-group:focus-visible {
    opacity: 1 !important;
    transform: scale(1.08);
    filter: drop-shadow(0 8px 14px rgba(47, 75, 86, 0.22));
}

.petal-group:active { transform: scale(0.98); }

.petal-group:focus-visible { outline: none; }

.petal-group:focus-visible .petal-shape {
    stroke: var(--teal-1);
    stroke-width: 2.5;
}

.petal-shape {
    transition: fill 200ms ease;
}

.petal-group.zero .petal-shape { fill-opacity: 0.55; }

.petal-count {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    fill: var(--ink-1);
    text-anchor: middle;
    dominant-baseline: middle;
    transition: transform 220ms cubic-bezier(.2,.8,.25,1);
    transform-box: fill-box;
    transform-origin: center;
    pointer-events: none;
    font-variation-settings: "opsz" 18, "SOFT" 60;
}

.petal-group:hover .petal-count { transform: scale(1.18); }

.petal-label {
    font-family: var(--body);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    fill: var(--ink-1);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    font-weight: 600;
}

.petal-on-dark .petal-count,
.petal-on-dark .petal-label { fill: #FBF0ED; }

.calyx {
    fill: var(--paper-1);
    stroke: var(--gold);
    stroke-width: 1.2;
    filter: drop-shadow(0 2px 6px rgba(47, 42, 39, 0.10));
}

.calyx-mark {
    font-family: var(--display);
    font-size: 16px;
    font-variation-settings: "opsz" 14, "SOFT" 100, "WONK" 1;
    fill: var(--ink-1);
    text-anchor: middle;
    dominant-baseline: middle;
    font-weight: 500;
    letter-spacing: -0.01em;
    pointer-events: none;
}

.calyx-strap {
    font-family: var(--body);
    font-size: 8px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    fill: var(--ink-3);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

/* ------------------------------------------------------- legend / cta */

.cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
    animation: fade-up 600ms cubic-bezier(.2,.8,.25,1) 700ms both;
}

.btn {
    font-family: var(--body);
    font-weight: 500;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 200ms ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.005em;
}

.btn-primary {
    background: var(--teal-1);
    color: var(--paper-1);
}

.btn-primary:hover {
    background: var(--ink-1);
    color: var(--paper-1);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

.btn-ghost {
    background: rgba(46, 42, 39, 0.04);
    color: var(--ink-1);
    border-color: rgba(46, 42, 39, 0.10);
}

.btn-ghost:hover {
    background: rgba(46, 42, 39, 0.08);
    color: var(--ink-1);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------- tiles */

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

.section-head h2 { color: var(--ink-1); }
.section-head .meta { color: var(--ink-3); font-size: 13px; }

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.tile {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(46, 42, 39, 0.08);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    box-shadow: var(--shadow-card);
    transition: transform 220ms cubic-bezier(.2,.8,.25,1),
                box-shadow 220ms ease,
                border-color 220ms ease;
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0;
    animation: fade-up 540ms cubic-bezier(.2,.8,.25,1) forwards;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(47, 75, 86, 0.22);
    text-decoration: none;
    color: inherit;
}

.tile:nth-child(1) { animation-delay: 760ms; }
.tile:nth-child(2) { animation-delay: 820ms; }
.tile:nth-child(3) { animation-delay: 880ms; }
.tile:nth-child(4) { animation-delay: 940ms; }
.tile:nth-child(5) { animation-delay: 1000ms; }
.tile:nth-child(6) { animation-delay: 1060ms; }

.tile h4 { margin-bottom: 10px; }

.tile .num {
    font-family: var(--display);
    font-size: 38px;
    line-height: 1;
    color: var(--ink-1);
    font-variation-settings: "opsz" 48, "SOFT" 60, "WONK" 0;
    font-feature-settings: "tnum";
    letter-spacing: -0.02em;
    font-weight: 500;
}

.tile .num .currency {
    font-size: 22px;
    color: var(--ink-3);
    font-weight: 400;
    margin-right: 2px;
    vertical-align: super;
}

.tile .sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.tile.urgent { border-left: 3px solid var(--alert-red); }
.tile.urgent .num { color: var(--alert-red); }

.tile.warning { border-left: 3px solid var(--petal-arrived); }

/* --------------------------------------------------------- two-col */

.cols {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    margin-top: 12px;
}

@media (max-width: 880px) {
    .cols { grid-template-columns: 1fr; }
}

.panel {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(46, 42, 39, 0.08);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    box-shadow: var(--shadow-card);
    opacity: 0;
    animation: fade-up 600ms cubic-bezier(.2,.8,.25,1) 1120ms forwards;
}

.panel + .panel { animation-delay: 1200ms; }

.panel h3 {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}

.panel h3 .dot-mini {
    width: 8px; height: 8px;
    border-radius: 999px;
}

.row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(46, 42, 39, 0.08);
    align-items: center;
    transition: background 150ms ease;
}

.row:first-of-type { border-top: 1px solid rgba(46, 42, 39, 0.16); }

.row:hover {
    background: rgba(46, 42, 39, 0.025);
    margin: 0 -10px;
    padding: 12px 10px;
    border-radius: 6px;
}

.row .name {
    font-weight: 500;
    color: var(--ink-1);
    font-size: 14px;
}

.row .sub {
    grid-column: 1;
    font-size: 12.5px;
    color: var(--ink-3);
}

.row .figure {
    grid-row: 1;
    font-family: var(--display);
    font-feature-settings: "tnum";
    font-size: 17px;
    color: var(--ink-1);
    font-variation-settings: "opsz" 14, "SOFT" 60;
    text-align: right;
    font-weight: 500;
}

.row .figure-sub {
    grid-row: 2;
    grid-column: 2;
    text-align: right;
    font-size: 12px;
    color: var(--ink-3);
}

.figure-sub.up   { color: var(--alert-red); }
.figure-sub.down { color: #4F7A5B; }

.figure-sub .arrow {
    display: inline-block;
    margin-right: 2px;
    font-weight: 700;
}

/* status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    font-variant: small-caps;
    line-height: 1.4;
}

.badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.75;
}

.badge.low-stock        { background: rgba(232, 180, 160, 0.30); color: #9C5E47; }
.badge.missing-supplier { background: rgba(184, 84, 80, 0.14);  color: #8E3F3C; }
.badge.missing-price    { background: rgba(212, 169, 104, 0.20);color: #886A35; }
.badge.stale-price      { background: rgba(172, 171, 157, 0.30);color: #6A6859; }
.badge.ok               { background: rgba(75, 122, 91, 0.16);  color: #4F7A5B; }

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

.footer {
    margin-top: 56px;
    text-align: center;
    color: var(--ink-3);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.footer .gold-rule {
    display: block;
    width: 80px;
    height: 1px;
    margin: 0 auto 14px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* --------------------------------------------------------- motion */

@keyframes fade-up {
    0%   { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
    0%   { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .flower-wrap { animation: none; }
    .petal-group:hover { transform: none; }
}

/* preview-only banner so this isn't mistaken for the live app */
.preview-tag {
    position: fixed;
    bottom: 14px; right: 14px;
    z-index: 100;
    padding: 6px 12px;
    background: rgba(46, 42, 39, 0.86);
    color: var(--paper-1);
    font-size: 11px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    border-radius: 999px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    pointer-events: none;
}


/* -------------------- existing pages: forms, tables -------------------- */

.flash {
    margin: 14px 0;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.flash-error { background: var(--alert-red-bg); color: var(--alert-red); }
.flash-info  { background: rgba(75, 122, 91, 0.10); color: #4F7A5B; }

.settings-form { max-width: 640px; }
.settings-form label { display: block; margin: 16px 0; }
.settings-form label > span {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}
.settings-form input,
.settings-form select,
.settings-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
    border: 1px solid rgba(46, 42, 39, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink-1);
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.settings-form input::placeholder,
.settings-form textarea::placeholder {
    color: var(--ink-4);
    font-weight: 400;
    font-style: italic;
}
.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: var(--teal-2);
    box-shadow: 0 0 0 4px rgba(75, 97, 110, 0.18);
}
.settings-form fieldset {
    border: 1px solid rgba(46, 42, 39, 0.10);
    border-radius: var(--radius);
    background: rgba(255, 252, 248, 0.6);
    padding: 24px 28px 20px;
    margin: 0 0 24px;
    box-shadow: 0 1px 3px rgba(46, 42, 39, 0.04);
}
.settings-form fieldset legend {
    padding: 0 10px;
    margin-left: -6px;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink-1);
    letter-spacing: 0.01em;
}
.settings-form .fieldset-lede {
    margin: 0 0 16px;
    font-size: 13px;
    font-style: italic;
    color: var(--ink-3);
    line-height: 1.5;
}
.settings-form button {
    margin-top: 12px;
    padding: 11px 22px;
    background: var(--teal-1);
    color: var(--paper-1);
    border: none;
    border-radius: 999px;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
}
.settings-form button:hover {
    background: var(--ink-1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 12px;
}
.data-table th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid rgba(46, 42, 39, 0.12);
    color: var(--ink-3);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(46, 42, 39, 0.08);
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(46, 42, 39, 0.03); }
.data-table a { color: var(--ink-1); font-weight: 500; }

/* variant thumbnails on the pricing/variants listing + large image on show */
.variant-thumb {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--paper-2);
}
.variant-thumb--placeholder {
    background: rgba(46, 42, 39, 0.06);
}
.variant-image-large {
    display: block;
    max-width: 220px;
    max-height: 220px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(46, 42, 39, 0.10);
    margin: 0 0 16px;
}

.kv {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 24px;
    margin: 16px 0 24px;
}
.kv dt { color: var(--ink-3); font-size: 13px; letter-spacing: 0.02em; }
.kv dd { margin: 0; color: var(--ink-1); }

.empty {
    color: var(--ink-3);
    font-style: italic;
    padding: 12px 0;
}

.filter-form {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    margin: 16px 0;
}
.filter-form label { margin: 0; }
.filter-form input, .filter-form select { min-width: 140px; }
.filter-form button { padding: 9px 18px; background: var(--teal-1); color: var(--paper-1);
                     border: none; border-radius: 999px; font: inherit; cursor: pointer; }

.po-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.inline-form { display: inline-block; margin: 0; }
.link-btn {
    background: none; border: none; color: var(--alert-red);
    cursor: pointer; font: inherit; padding: 0; text-decoration: underline;
}

/* badges (already styled by prototype; keep parity for the existing pages) */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
    text-transform: lowercase; font-variant: small-caps;
    line-height: 1.4;
}
.badge::before {
    content: ""; width: 6px; height: 6px;
    border-radius: 999px; background: currentColor; opacity: 0.75;
}
.badge.low-stock        { background: rgba(232, 180, 160, 0.30); color: #9C5E47; }
.badge.missing-supplier { background: rgba(184, 84, 80, 0.14);  color: #8E3F3C; }
.badge.missing-price    { background: rgba(212, 169, 104, 0.20);color: #886A35; }
.badge.stale-price      { background: rgba(172, 171, 157, 0.30);color: #6A6859; }
.badge.ok               { background: rgba(75, 122, 91, 0.16);  color: #4F7A5B; }
.badge.inactive         { background: rgba(46, 42, 39, 0.08);   color: var(--ink-3); }
.badge.draft            { background: rgba(183, 194, 179, 0.30); color: #5F6F5C; }
.badge.order_placed     { background: rgba(157, 179, 188, 0.30); color: #4B6973; }
.badge.in_transit       { background: rgba(123, 152, 164, 0.30); color: var(--paper-1); }
.badge.arrived          { background: rgba(212, 169, 104, 0.30); color: #886A35; }
.badge.checked_in       { background: var(--petal-checked-in);   color: var(--paper-1); }
.badge.cancelled        { background: rgba(46, 42, 39, 0.10);    color: var(--ink-3); }

/* removed Plan 1 placeholder rules: .login-card overrides, etc. */
.login-card {
    max-width: 420px; margin: 60px auto; padding: 36px 32px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(46, 42, 39, 0.10);
    border-radius: var(--radius);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    box-shadow: var(--shadow-card);
}
.login-card h1 { text-align: center; font-size: 32px;
                font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.login-card .strap { text-align: center; color: var(--ink-3); margin-bottom: 22px; font-style: italic; }
.login-card form button {
    width: 100%; margin-top: 14px;
    padding: 12px 22px; background: var(--teal-1); color: var(--paper-1);
    border: none; border-radius: 999px; font: inherit; font-weight: 500;
    cursor: pointer;
}
.login-card .login-flower { display: block; width: 90px; height: 90px; margin: 0 auto 18px; }

/* static flower (login page) — no interaction, no labels */
.flower-svg.static .petal-count,
.flower-svg.static .petal-label { display: none; }
.flower-svg.static .petal-group { cursor: default; pointer-events: none; }
.flower-svg.static .petal-group:hover { transform: scale(1) !important; filter: none !important; }

/* Login flower sizing — smaller than dashboard */
.login-card .flower-svg {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
}

/* dashboard alert strip uses prototype's .alert-strip rules */

/* -------------------- nav tabs --------------------- */

.nav-links {
    display: flex;
    gap: 6px;
    margin-left: 16px;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links a.nav-tab {
    padding: 6px 14px 7px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--paper-1);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 180ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.1;
}

.nav-links a.nav-tab:hover {
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.nav-links a.nav-tab .tab-mark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* per-tab inactive tint + accent */
.nav-links a.tab-dashboard       { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.20); }
.nav-links a.tab-items           { background: rgba(232, 180, 160, 0.18); border-color: rgba(232, 180, 160, 0.45); }
.nav-links a.tab-suppliers       { background: rgba(183, 194, 179, 0.18); border-color: rgba(183, 194, 179, 0.45); }
.nav-links a.tab-prices          { background: rgba(212, 169, 104, 0.20); border-color: rgba(212, 169, 104, 0.50); }
.nav-links a.tab-reorders        { background: rgba(157, 179, 188, 0.20); border-color: rgba(157, 179, 188, 0.50); }
.nav-links a.tab-purchase-orders { background: rgba(123, 152, 164, 0.22); border-color: rgba(123, 152, 164, 0.50); }

/* per-tab hover (brighter tint) */
.nav-links a.tab-dashboard:hover       { background: rgba(255, 255, 255, 0.16); }
.nav-links a.tab-items:hover           { background: rgba(232, 180, 160, 0.34); }
.nav-links a.tab-suppliers:hover       { background: rgba(183, 194, 179, 0.34); }
.nav-links a.tab-prices:hover          { background: rgba(212, 169, 104, 0.38); }
.nav-links a.tab-reorders:hover        { background: rgba(157, 179, 188, 0.38); }
.nav-links a.tab-purchase-orders:hover { background: rgba(123, 152, 164, 0.40); }

/* active (current page) — fully saturated, with appropriate text colour */
.nav-links a.nav-tab.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    border-color: transparent;
}
.nav-links a.tab-dashboard.active       { background: rgba(255, 255, 255, 0.20); color: var(--paper-1); }
.nav-links a.tab-items.active           { background: var(--petal-low-stock);    color: var(--ink-1); }
.nav-links a.tab-suppliers.active       { background: var(--petal-draft);        color: var(--ink-1); }
.nav-links a.tab-prices.active          { background: var(--petal-arrived);      color: var(--ink-1); }
.nav-links a.tab-reorders.active        { background: var(--petal-order-placed); color: var(--ink-1); }
.nav-links a.tab-purchase-orders.active { background: var(--petal-in-transit);   color: var(--paper-1); }

/* -------------------- section-coloured page chrome -------------------- */

/* h1 underline + table thead accent per section */
.section-items h1                 { border-bottom: 3px solid var(--petal-low-stock);    padding-bottom: 10px; margin-bottom: 22px; }
.section-suppliers h1             { border-bottom: 3px solid var(--petal-draft);        padding-bottom: 10px; margin-bottom: 22px; }
.section-prices h1                { border-bottom: 3px solid var(--petal-arrived);      padding-bottom: 10px; margin-bottom: 22px; }
.section-reorders h1              { border-bottom: 3px solid var(--petal-order-placed); padding-bottom: 10px; margin-bottom: 22px; }
.section-purchase-orders h1       { border-bottom: 3px solid var(--petal-in-transit);   padding-bottom: 10px; margin-bottom: 22px; }
.section-settings h1              { border-bottom: 3px solid var(--gold);               padding-bottom: 10px; margin-bottom: 22px; }
.section-dashboard h1             { /* no underline — the flower is the focal point */ }

/* table thead accent */
.section-items           .data-table thead tr { border-top: 3px solid var(--petal-low-stock);    }
.section-suppliers       .data-table thead tr { border-top: 3px solid var(--petal-draft);        }
.section-prices          .data-table thead tr { border-top: 3px solid var(--petal-arrived);      }
.section-reorders        .data-table thead tr { border-top: 3px solid var(--petal-order-placed); }
.section-purchase-orders .data-table thead tr { border-top: 3px solid var(--petal-in-transit);   }
.section-settings        .data-table thead tr { border-top: 3px solid var(--gold);               }

/* primary action buttons take the section colour */
.section-items           .btn-primary,
.section-items           .settings-form button[type="submit"],
.section-items           .filter-form button,
.section-items           form.settings-form button { background: var(--petal-low-stock); color: var(--ink-1); }
.section-suppliers       .btn-primary,
.section-suppliers       .settings-form button[type="submit"],
.section-suppliers       .filter-form button,
.section-suppliers       form.settings-form button { background: var(--petal-draft); color: var(--ink-1); }
.section-prices          .btn-primary,
.section-prices          .settings-form button[type="submit"],
.section-prices          .filter-form button,
.section-prices          form.settings-form button { background: var(--petal-arrived); color: var(--ink-1); }
.section-reorders        .btn-primary,
.section-reorders        .settings-form button[type="submit"],
.section-reorders        .filter-form button,
.section-reorders        form.settings-form button { background: var(--petal-order-placed); color: var(--ink-1); }
.section-purchase-orders .btn-primary,
.section-purchase-orders .settings-form button[type="submit"],
.section-purchase-orders .filter-form button,
.section-purchase-orders form.settings-form button { background: var(--petal-in-transit); color: var(--paper-1); }

.section-items           .btn-primary:hover,
.section-items           form.settings-form button:hover { filter: brightness(0.92); transform: translateY(-1px); }
.section-suppliers       .btn-primary:hover,
.section-suppliers       form.settings-form button:hover { filter: brightness(0.92); transform: translateY(-1px); }
.section-prices          .btn-primary:hover,
.section-prices          form.settings-form button:hover { filter: brightness(0.92); transform: translateY(-1px); }
.section-reorders        .btn-primary:hover,
.section-reorders        form.settings-form button:hover { filter: brightness(0.92); transform: translateY(-1px); }
.section-purchase-orders .btn-primary:hover,
.section-purchase-orders form.settings-form button:hover { filter: brightness(0.92); transform: translateY(-1px); }

/* -------------------- empty states (friendlier card) -------------------- */

.empty {
    padding: 36px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
    border-radius: var(--radius);
    border: 1px dashed rgba(46, 42, 39, 0.18);
    color: var(--ink-3);
    font-style: italic;
    margin: 18px 0;
}

.empty a {
    color: var(--teal-1);
    font-style: normal;
    font-weight: 500;
    margin-left: 4px;
}

/* -------------------- section page header pattern -------------------- */

.page-header {
    margin: 24px 0 28px;
}

.page-eyebrow {
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-eyebrow .dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--gold);
    flex-shrink: 0;
}

.page-header-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.page-title-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.page-lede {
    font-family: var(--display);
    font-size: 17px;
    font-style: italic;
    font-variation-settings: "opsz" 14, "SOFT" 60;
    color: var(--ink-2);
    margin: 10px 0 0;
    max-width: 680px;
    line-height: 1.4;
}

/* Soften the H1 inside page-header blocks — calmer than the dashboard hero.
   Lower opsz, lower SOFT, smaller size.  Section underline still applies via
   the .section-foo h1 rules added earlier. */
.page-header h1 {
    font-size: 32px;
    font-variation-settings: "opsz" 24, "SOFT" 40, "WONK" 0;
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Petal flourish — CSS-only teardrop, section-coloured. */
.petal-flourish {
    display: inline-block;
    width: 26px;
    height: 34px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform: rotate(-12deg);
    background: var(--teal-1);
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(46, 42, 39, 0.08);
}

/* per-section petal colour */
.section-items           .petal-flourish { background: var(--petal-low-stock);    }
.section-suppliers       .petal-flourish { background: var(--petal-draft);        }
.section-prices          .petal-flourish { background: var(--petal-arrived);      }
.section-reorders        .petal-flourish { background: var(--petal-order-placed); }
.section-purchase-orders .petal-flourish { background: var(--petal-in-transit);   }
.section-settings        .petal-flourish { background: var(--gold);               }

/* Override the earlier "h1 underline" so section pages with a .page-header
   don't get a double accent — the petal flourish IS the section colour cue. */
.section-items           .page-header h1 { border-bottom: none; }
.section-suppliers       .page-header h1 { border-bottom: none; }
.section-prices          .page-header h1 { border-bottom: none; }
.section-reorders        .page-header h1 { border-bottom: none; }
.section-purchase-orders .page-header h1 { border-bottom: none; }
.section-settings        .page-header h1 { border-bottom: none; }

/* ============================================================
   form fields — universal big-legible-petal-ish styling
   Applies everywhere unless overridden (.filter-form keeps the
   compact size; .topnav inputs stay as-is if any).
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.4;
    color: var(--ink-1);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(46, 42, 39, 0.16);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(46, 42, 39, 0.04);
    transition: border-color 180ms ease,
                box-shadow   180ms ease,
                background   180ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Slightly tighter for select to make the custom arrow space feel right */
select {
    padding-right: 44px;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23857E78" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-4);
    font-style: italic;
}

textarea {
    min-height: 96px;
    line-height: 1.5;
    resize: vertical;
}

/* Hover — subtle lift */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(46, 42, 39, 0.28);
    background: rgba(255, 255, 255, 0.95);
}

/* Focus — default petal-peach halo */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ink-2);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(232, 180, 160, 0.35),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
}

/* Section-coloured focus halos override the default per section */
.section-items           input:focus,
.section-items           select:focus,
.section-items           textarea:focus {
    box-shadow: 0 0 0 4px rgba(232, 180, 160, 0.45),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(232, 180, 160, 0.85);
}
.section-suppliers       input:focus,
.section-suppliers       select:focus,
.section-suppliers       textarea:focus {
    box-shadow: 0 0 0 4px rgba(183, 194, 179, 0.50),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(183, 194, 179, 0.9);
}
.section-prices          input:focus,
.section-prices          select:focus,
.section-prices          textarea:focus {
    box-shadow: 0 0 0 4px rgba(212, 169, 104, 0.45),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(212, 169, 104, 0.9);
}
.section-reorders        input:focus,
.section-reorders        select:focus,
.section-reorders        textarea:focus {
    box-shadow: 0 0 0 4px rgba(157, 179, 188, 0.45),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(157, 179, 188, 0.9);
}
.section-purchase-orders input:focus,
.section-purchase-orders select:focus,
.section-purchase-orders textarea:focus {
    box-shadow: 0 0 0 4px rgba(123, 152, 164, 0.45),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(123, 152, 164, 0.9);
}
.section-settings        input:focus,
.section-settings        select:focus,
.section-settings        textarea:focus {
    box-shadow: 0 0 0 4px rgba(172, 171, 157, 0.50),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(172, 171, 157, 0.95);
}

/* Labels — calm, lowercase, small caps */
label > span {
    display: block;
    font-family: var(--body);
    font-size: 13px;
    color: var(--ink-2);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

/* Disabled — muted */
input:disabled,
select:disabled,
textarea:disabled {
    background: rgba(46, 42, 39, 0.04);
    color: var(--ink-3);
    cursor: not-allowed;
}

/* Compact filter forms stay smaller — they're inline secondary controls,
   not the primary interaction */
.filter-form input,
.filter-form select,
.filter-form textarea {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
}

.filter-form select {
    padding-right: 36px;
    background-position: right 10px center;
    background-size: 14px;
}

/* Checkbox stays browser-default sized but gets a small visual lift */
input[type="checkbox"] {
    width: auto;
    height: auto;
    margin-right: 6px;
    accent-color: var(--teal-1);
    cursor: pointer;
}

/* Login card form gets specifically more generous breathing */
.login-card form { padding-top: 6px; }
.login-card label { margin: 14px 0; }
.login-card label > span {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.login-card input {
    font-size: 18px;
    padding: 15px 18px;
}
.login-card form button {
    width: 100%;
    margin-top: 18px;
    padding: 15px 22px;
    font-size: 16px;
    background: var(--teal-1);
    color: var(--paper-1);
    border: none;
    border-radius: 999px;
    font-family: var(--body);
    font-weight: 500;
    cursor: pointer;
    transition: all 180ms ease;
}
.login-card form button:hover {
    background: var(--ink-1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lift);
}


/* -------------------- state strip (PO + future section pages) -------------------- */

.state-strip {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 22px;
    align-items: stretch;
}

.state-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink-1);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(46, 42, 39, 0.10);
    transition: all 180ms ease;
    line-height: 1.2;
}

.state-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(46, 42, 39, 0.08);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
}

.state-chip-label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.state-chip-count {
    font-family: var(--display);
    font-variation-settings: "opsz" 14, "SOFT" 60;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink-2);
    background: rgba(46, 42, 39, 0.06);
    padding: 1px 9px;
    border-radius: 999px;
    min-width: 28px;
    text-align: center;
}

.state-chip-empty .state-chip-count {
    color: var(--ink-4);
}

.state-chip-empty {
    opacity: 0.72;
}

/* tint per state — reuses petal colours from the dashboard flower */
.state-chip.tab-suppliers       { background: rgba(183, 194, 179, 0.18); border-color: rgba(183, 194, 179, 0.45); }
.state-chip.tab-reorders        { background: rgba(157, 179, 188, 0.18); border-color: rgba(157, 179, 188, 0.45); }
.state-chip.tab-purchase-orders { background: rgba(123, 152, 164, 0.22); border-color: rgba(123, 152, 164, 0.50); color: var(--ink-1); }
.state-chip.tab-prices          { background: rgba(212, 169, 104, 0.20); border-color: rgba(212, 169, 104, 0.50); }
.state-chip.tab-checked-in      { background: rgba(47, 75, 86, 0.85);    border-color: rgba(47, 75, 86, 0.95);    color: var(--paper-1); }
.state-chip.tab-checked-in .state-chip-count { background: rgba(251, 240, 237, 0.25); color: var(--paper-1); }
.state-chip.tab-cancelled       { background: rgba(46, 42, 39, 0.08);    border-color: rgba(46, 42, 39, 0.15);    color: var(--ink-3); }
.state-chip.tab-cancelled .state-chip-count { background: rgba(46, 42, 39, 0.08); color: var(--ink-3); }

.state-chip.active {
    box-shadow: 0 4px 14px rgba(46, 42, 39, 0.16);
    transform: translateY(-1px);
    border-color: rgba(46, 42, 39, 0.30);
}
.state-chip.tab-checked-in.active { border-color: var(--paper-1); }


/* -------------------- table cell warning + last-action verb -------------------- */

.data-table td.cell-warning {
    background: rgba(212, 169, 104, 0.14);
    box-shadow: inset 3px 0 0 var(--petal-arrived);
}

.cell-warning-cta {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: #886A35;
    font-weight: 600;
    text-decoration: none;
}

.cell-warning-cta:hover {
    text-decoration: underline;
}

.action-verb {
    font-weight: 600;
    color: var(--ink-1);
}

.action-sep {
    color: var(--ink-4);
}

.figure-cell {
    text-align: right;
    font-family: var(--display);
    font-feature-settings: "tnum";
    font-variation-settings: "opsz" 14, "SOFT" 60;
}

/* -------------------- pricing section colour + tab -------------------- */

/* Tab — dusty rose (the seventh petal, our outflow petal) */
.nav-links a.tab-pricing           { background: rgba(201, 164, 164, 0.18); border-color: rgba(201, 164, 164, 0.45); }
.nav-links a.tab-pricing:hover     { background: rgba(201, 164, 164, 0.34); }
.nav-links a.tab-pricing.active    { background: var(--petal-checked-out);  color: var(--ink-1); }

/* Section chrome — h1 underline + table thead accent + petal-flourish + button tint */
.section-pricing h1                       { border-bottom: 3px solid var(--petal-checked-out); padding-bottom: 10px; margin-bottom: 22px; }
.section-pricing .page-header h1          { border-bottom: none; }
.section-pricing .data-table thead tr     { border-top: 3px solid var(--petal-checked-out); }
.section-pricing .petal-flourish          { background: var(--petal-checked-out); }
.section-pricing .btn-primary,
.section-pricing form.settings-form button { background: var(--petal-checked-out); color: var(--ink-1); }
.section-pricing .btn-primary:hover,
.section-pricing form.settings-form button:hover { filter: brightness(0.92); transform: translateY(-1px); }
.section-pricing input:focus,
.section-pricing select:focus,
.section-pricing textarea:focus {
    box-shadow: 0 0 0 4px rgba(201, 164, 164, 0.50),
                inset 0 1px 2px rgba(46, 42, 39, 0.04);
    border-color: rgba(201, 164, 164, 0.9);
}

/* -------------------- pricing status badges -------------------- */

.badge.pricing-status-healthy_margin       { background: rgba(75, 122, 91, 0.16);  color: #4F7A5B; }
.badge.pricing-status-warning_margin       { background: rgba(212, 169, 104, 0.22); color: #886A35; }
.badge.pricing-status-below_minimum_margin { background: rgba(184, 84, 80, 0.18);  color: #8E3F3C; }
.badge.pricing-status-below_minimum_profit { background: rgba(184, 84, 80, 0.18);  color: #8E3F3C; }
.badge.pricing-status-missing_cost         { background: rgba(184, 84, 80, 0.14);  color: #8E3F3C; }
.badge.pricing-status-stale_calculation    { background: rgba(172, 171, 157, 0.30); color: #6A6859; }
.badge.pricing-status-manual_override      { background: rgba(157, 179, 188, 0.30); color: #4B6973; }
.badge.pricing-status-blocked              { background: rgba(46, 42, 39, 0.10);   color: var(--ink-3); }

/* -------------------- pricing queue status badges -------------------- */

.badge.pricing-queue-pending          { background: rgba(172, 171, 157, 0.30); color: #6A6859; }
.badge.pricing-queue-approved         { background: rgba(212, 169, 104, 0.22); color: #886A35; }
.badge.pricing-queue-approved-stuck   { background: rgba(220, 138, 79, 0.22);  color: #8A4A1F; }
.badge.pricing-queue-ignored          { background: rgba(172, 171, 157, 0.20); color: #6A6859; }
.badge.pricing-queue-pushed           { background: var(--petal-checked-in);   color: var(--paper-1); }
.badge.pricing-queue-failed           { background: rgba(184, 84, 80, 0.18);   color: #8E3F3C; }
.badge.pricing-queue-cancelled        { background: rgba(46, 42, 39, 0.10);    color: var(--ink-3); }

/* "quiet" state on the push-activity tile when there's no recent activity */
.tile .num.muted {
    color: var(--ink-3);
    font-size: 28px;
}

/* Inline "i" info icon next to form labels — pure-CSS hover tooltip.
   Why: dense forms (recipe edit) have terms staff need explained without
   leaving the page. Tooltip text lives in data-tip; no JS needed. */
.field-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    border-radius: 50%;
    background: rgba(46, 42, 39, 0.10);
    color: var(--ink-3);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    cursor: help;
    position: relative;
    vertical-align: middle;
    user-select: none;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}
.field-info:hover,
.field-info:focus {
    background: var(--petal-checked-out);
    color: #fff;
    outline: none;
}
.field-info::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f1f1f;
    color: #f5f5f5;
    padding: 10px 14px;
    border-radius: 8px;
    width: max-content;
    max-width: 320px;
    font-family: var(--font-body, system-ui), sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-out;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
}
.field-info::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f1f1f;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease-out;
    z-index: 1000;
}
.field-info:hover::after,
.field-info:focus::after,
.field-info:hover::before,
.field-info:focus::before {
    opacity: 1;
    visibility: visible;
}
