/*
 * FIXO360 brand layer — loaded last on classic pages and the sign-in page.
 * Palette from the logo: ember #FE9008, flame #FC4401, charcoal #1E2A31, slate #3F4A53.
 * Ambient animation runs only with prefers-reduced-motion: no-preference, and on
 * workspace pages only while html.fx is set (the ✦ toggle in the top bar).
 */
:root {
    --x-ember: #FE9008;
    --x-flame: #FC4401;
    --x-ink: #1E2A31;
    --x-slate: #3F4A53;
    --x-steel: #B4BABD;
    --x-fire: linear-gradient(120deg, #FFA41B 0%, #FE7A06 45%, #FC4401 100%);
    --teal: #E2550B;
    --teal-dark: #B93E06;
    --mint: #FFF0E3;
    --fx-deep: #151D22;
    --fx-deep-2: #1E2A31;
    --fx-cyan: #FE9008;
    --fx-aqua: #FFB54A;
    --fx-violet: #FC4401;
    --fx-glow: rgba(254, 144, 8, .45);
}
html[data-theme="dark"] { --teal: #FF9A3D; --teal-dark: #FFC28C; --mint: #3A2819; }

/* ---------- Buttons: fire gradient with a light sweep ---------- */
.button:not(.secondary), .btn-primary {
    background: var(--x-fire);
    border-color: transparent;
    color: #fff;
    font-weight: 650;
    text-shadow: 0 1px 1px rgba(120, 40, 0, .35);
    box-shadow: 0 10px 22px -12px rgba(252, 68, 1, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.button:not(.secondary):hover { background: var(--x-fire); filter: saturate(1.15) brightness(1.04); border-color: transparent; }
.button:not(.secondary)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
}
.button:not(.secondary):hover::after { transition: transform .7s cubic-bezier(.2, .8, .2, 1); transform: translateX(120%); }
.text-link { color: var(--teal); }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--x-ember);
    box-shadow: 0 0 0 3px rgba(254, 144, 8, .22);
    outline: none;
}

/* ---------- Brand art (shared by sign-in and dashboard) ---------- */
.fx360-art { position: relative; pointer-events: none; }
.fx360-svg { display: block; width: 100%; height: auto; overflow: visible; }
.fx360-centre {
    position: absolute;
    left: 46.9%;
    top: 51.2%;
    width: 32%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.05;
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-stretch: 88%;
}
.fx360-centre strong { color: #fff; font-weight: 800; }
.fx360-centre span { color: var(--x-ember); font-weight: 800; }
.fx360-halo { transform-origin: 300px 215px; }
.fx360-orbit { transform-origin: 300px 215px; }
.fx360-ring .glow { opacity: .55; }
.fx360-circuit .spark { stroke-dasharray: .07 .93; stroke-dashoffset: 1; stroke-width: 6; opacity: 0; }
.fx360-embers circle { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
    .fx360-ring .ring { stroke-dasharray: 1; animation: fx360-draw 1.6s cubic-bezier(.65, 0, .35, 1) .2s backwards; }
    .fx360-ring .power { transform-box: fill-box; transform-origin: 50% 100%; animation: fx360-power .7s cubic-bezier(.34, 1.56, .64, 1) 1.3s backwards, fx360-hum 3.2s ease-in-out 2.4s infinite; }
    .fx360-ring .glow { animation: fx360-draw 1.6s cubic-bezier(.65, 0, .35, 1) .2s backwards, fx360-breathe 3.2s ease-in-out 2s infinite; }
    .fx360-swoosh { stroke-dasharray: 1; animation: fx360-draw 1.4s cubic-bezier(.65, 0, .35, 1) .6s backwards; }
    .fx360-swoosh.thin { animation-delay: .8s; }
    .fx360-circuit .trace { stroke-dasharray: 1; animation: fx360-draw .9s ease-out 1.5s backwards; }
    .fx360-circuit .trace:nth-child(2) { animation-delay: 1.65s; }
    .fx360-circuit .trace:nth-child(3) { animation-delay: 1.8s; }
    .fx360-circuit .spark { animation: fx360-spark 2.6s linear 2.6s infinite; }
    .fx360-circuit .spark.s2 { animation-delay: 3.3s; }
    .fx360-circuit .spark.s3 { animation-delay: 4s; }
    .fx360-nodes circle { transform-box: fill-box; transform-origin: center; animation: fx360-pop .5s cubic-bezier(.34, 1.56, .64, 1) 2.2s backwards, fx360-node 2.6s ease-in-out 3s infinite; }
    .fx360-nodes circle:nth-child(2) { animation-delay: 2.3s, 3.7s; }
    .fx360-nodes circle:nth-child(3) { animation-delay: 2.4s, 4.4s; }
    .fx360-orbit { animation: fx360-spin 22s linear infinite; }
    .fx360-halo { animation: fx360-breathe 4s ease-in-out infinite; }
    .fx360-embers circle { transform-box: fill-box; animation: fx360-ember 5s ease-in infinite; }
    .fx360-embers circle:nth-child(2) { animation-delay: 1.1s; animation-duration: 6s; }
    .fx360-embers circle:nth-child(3) { animation-delay: 2.3s; }
    .fx360-embers circle:nth-child(4) { animation-delay: 3.1s; animation-duration: 5.5s; }
    .fx360-embers circle:nth-child(5) { animation-delay: .5s; animation-duration: 6.5s; }
    .fx360-embers circle:nth-child(6) { animation-delay: 4s; }
    .fx360-centre { animation: fx360-rise .8s cubic-bezier(.2, .8, .2, 1) 1.5s backwards; }
}
/* Respect the workspace ✦ toggle */
html:not(.fx) .workspace-ui .fx360-art *, html:not(.fx) .workspace-ui .fx360-centre { animation: none !important; }

@keyframes fx360-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fx360-power { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes fx360-hum { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 10px rgba(255, 176, 46, .9)); } }
@keyframes fx360-breathe { 0%, 100% { opacity: .45; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes fx360-spark { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: 1; } 55% { stroke-dashoffset: -.05; opacity: 1; } 60%, 100% { stroke-dashoffset: -.05; opacity: 0; } }
@keyframes fx360-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fx360-node { 0%, 100% { fill: #1E2A31; } 30% { fill: #FFB02E; } 60% { fill: #1E2A31; } }
@keyframes fx360-spin { to { transform: rotate(360deg); } }
@keyframes fx360-ember { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate(14px, -170px); } }
@keyframes fx360-rise { from { opacity: 0; transform: translate(-50%, -38%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes fx360-travel { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes fx360-lit { 0%, 100% { border-color: rgba(180, 186, 189, .35); box-shadow: none; } 12%, 30% { border-color: #FE9008; box-shadow: 0 0 0 4px rgba(254, 144, 8, .18), 0 0 18px rgba(254, 144, 8, .55); } }
@keyframes fx360-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fx360-sheen { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Sign-in ---------- */
.login-body { background: #F6F7F8; }
.login-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.login-story.fx360-stage {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 40px clamp(32px, 4vw, 64px) 32px;
    color: #fff;
    background:
        radial-gradient(900px 520px at 78% 18%, rgba(252, 68, 1, .22), transparent 60%),
        radial-gradient(700px 500px at 10% 100%, rgba(254, 144, 8, .14), transparent 60%),
        linear-gradient(160deg, #222F37 0%, #1E2A31 45%, #141B20 100%);
}
.login-story.fx360-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.login-story.fx360-stage::after { display: none; }
.login-story .fx360-logo { background: none; padding: 0; width: min(340px, 64%); border-radius: 0; }
.fx360-stage .fx360-login { width: min(560px, 100%); margin: 0 auto -18px; }
.fx360-login .fx360-centre strong, .fx360-login .fx360-centre span { font-size: clamp(14px, 1.45vw, 21px); white-space: nowrap; letter-spacing: -.01em; }
.fx360-story-copy h1 {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: clamp(26px, 2.4vw, 36px);
    font-weight: 750;
    font-stretch: 90%;
    line-height: 1.12;
    letter-spacing: -.015em;
    max-width: 19ch;
    margin: 0 0 26px;
    color: #fff;
}
.fx360-journey {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 18px 0 0;
    position: relative;
}
.fx360-journey::before { content: ""; position: absolute; left: 18px; right: 18px; top: 33px; height: 2px; background: linear-gradient(90deg, rgba(254, 144, 8, .6), rgba(180, 186, 189, .25)); }
.fx360-journey::after {
    content: "";
    position: absolute;
    top: 30px;
    width: 8px;
    height: 8px;
    margin-left: 14px;
    border-radius: 50%;
    background: #FFD08A;
    box-shadow: 0 0 12px 4px rgba(254, 144, 8, .8);
    opacity: 0;
}
.fx360-journey li { counter-increment: step; display: flex; flex-direction: column; gap: 3px; position: relative; }
.fx360-journey li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid rgba(180, 186, 189, .35);
    background: #1E2A31;
    color: #FFC27A;
    font: 700 13px var(--font-ui, sans-serif);
    position: relative;
    z-index: 1;
}
.fx360-journey strong { font-size: 15px; color: #fff; }
.fx360-journey small { font-size: 13px; color: var(--x-steel); line-height: 1.35; }
.login-story.fx360-stage > small { margin-top: auto; padding-top: 28px; color: #8E989D; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
    .fx360-logo { animation: fx360-rise-plain .7s cubic-bezier(.2, .8, .2, 1) backwards; }
    .fx360-story-copy { animation: fx360-rise-plain .8s cubic-bezier(.2, .8, .2, 1) .5s backwards; }
    .fx360-journey::after { animation: fx360-travel 6s cubic-bezier(.45, 0, .55, 1) 2.4s infinite; }
    .fx360-journey li::before { animation: fx360-lit 6s ease-in-out 2.4s infinite; }
    .fx360-journey li:nth-child(2)::before { animation-delay: 3.9s; }
    .fx360-journey li:nth-child(3)::before { animation-delay: 5.4s; }
    .fx360-journey li:nth-child(4)::before { animation-delay: 6.9s; }
    .login-form { animation: fx360-rise-plain .7s cubic-bezier(.2, .8, .2, 1) .15s backwards; }
}
@keyframes fx360-rise-plain { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.login-panel { background: #fff; position: relative; }
.login-panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--x-fire); }
.login-form h2 {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: 38px;
    font-weight: 800;
    font-stretch: 88%;
    letter-spacing: -.02em;
    color: var(--x-ink);
    margin-top: 6px;
}
.login-form > p { color: #56636B; }
.fx360-shop { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #FFF0E3; color: #A13A05; font-weight: 650; font-size: 14px; }
.fx360-mobile-logo { display: none; width: 210px; height: auto; margin: 0 0 18px; }
.login-form .button.wide { min-height: 52px; border-radius: 14px; font-size: 16px; }
.login-form .button.secondary { border-radius: 14px; }
.login-form .text-link { font-weight: 600; }
@media (max-width: 980px) {
    .fx360-mobile-logo { display: block; }
    .login-panel::before { width: auto; height: 4px; right: 0; bottom: auto; }
}

/* ---------- Workspace chrome ---------- */
.sidebar-heading .fx360-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-heading .fx360-brand img { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgba(254, 144, 8, .45)); }
.sidebar-heading .fx360-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-ui .sidebar .nav-item.active { background: var(--x-fire); box-shadow: 0 12px 26px -10px rgba(252, 68, 1, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.workspace-ui .sidebar .nav-item svg, .workspace-ui .sidebar .nav-group summary svg { color: #F2A65A; }
.workspace-ui .sidebar-search input::placeholder, .workspace-ui .sidebar-search svg, .workspace-ui .sidebar small, .workspace-ui .sidebar .sidebar-footer { color: #9AA4A9; }

/* ---------- Dashboard hero ---------- */
.workspace-ui[data-page="dashboard"] .greeting-panel.fx360-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
    align-items: center;
    gap: 12px;
    padding: 30px 8px 26px 34px;
    min-height: 236px;
    border-radius: 24px;
    background:
        radial-gradient(520px 300px at 82% 30%, rgba(252, 68, 1, .32), transparent 65%),
        radial-gradient(400px 260px at 0% 100%, rgba(254, 144, 8, .16), transparent 60%),
        linear-gradient(135deg, #263540 0%, #1E2A31 50%, #131A1F 100%);
    box-shadow: 0 34px 60px -30px rgba(20, 27, 32, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.workspace-ui[data-page="dashboard"] .greeting-panel.fx360-hero::before {
    width: auto; height: auto; inset: 0; right: 0; top: 0; border-radius: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.workspace-ui[data-page="dashboard"] .greeting-panel.fx360-hero::after { display: none; }
.fx360-hero-copy { position: relative; z-index: 2; }
.workspace-ui[data-page="dashboard"] .fx360-hero h1 {
    font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    font-stretch: 88%;
    letter-spacing: -.02em;
    margin: 0 0 6px;
}
.workspace-ui[data-page="dashboard"] .fx360-hero h1 span {
    background: linear-gradient(90deg, #FFB54A, #FE7A06 40%, #FFD08A 60%, #FC4401);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.workspace-ui[data-page="dashboard"] .fx360-hero p { color: #C9D0D3; opacity: 1; margin: 0; }
.fx360-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.fx360-hero-stats div {
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(6px);
    min-width: 120px;
}
.workspace-ui .fx360-hero-stats dt { font-size: 12px; color: #AEB7BB !important; }
.workspace-ui[data-page="dashboard"] .fx360-hero-stats dd { margin: 2px 0 0; font: 750 22px var(--font-display, sans-serif); font-stretch: 90%; color: #fff !important; font-variant-numeric: tabular-nums; }
.fx360-hero .fx360-art { z-index: 1; margin: -26px 0 -30px; transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 10px), 0); transition: transform .4s ease-out; }
.fx360-hero .fx360-centre strong { font-size: clamp(30px, 3.2vw, 46px); font-variant-numeric: tabular-nums; }
.fx360-hero .fx360-centre span { font: 600 12px var(--font-ui, sans-serif); color: #FFC27A; margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
    html.fx .workspace-ui[data-page="dashboard"] .fx360-hero h1 span { animation: fx360-sheen 6s linear infinite; }
    html.fx .fx360-hero-stats div { animation: fx360-rise-plain .6s cubic-bezier(.2, .8, .2, 1) backwards; }
    html.fx .fx360-hero-stats div:nth-child(1) { animation-delay: .5s; }
    html.fx .fx360-hero-stats div:nth-child(2) { animation-delay: .62s; }
    html.fx .fx360-hero-stats div:nth-child(3) { animation-delay: .74s; }
}
@media (max-width: 720px) {
    .workspace-ui[data-page="dashboard"] .greeting-panel.fx360-hero { grid-template-columns: 1fr; padding: 22px 18px 6px; }
    .fx360-hero .fx360-art { width: 78%; max-width: 300px; margin: -6px auto -20px; }
    .fx360-hero-stats div { min-width: 0; flex: 1 1 90px; padding: 8px 12px; }
}

/* ---------- Dashboard cards and chart ---------- */
.workspace-ui[data-page="dashboard"] .metric-card::before { background: var(--x-fire); height: 3px; }
.workspace-ui[data-page="dashboard"] .metric-card::after { background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(254, 144, 8, .2), transparent 60%); }
.workspace-ui[data-page="dashboard"] .metric-card:hover { border-color: rgba(254, 144, 8, .6); box-shadow: 0 26px 40px -22px rgba(30, 42, 49, .55), 0 0 0 1px rgba(254, 144, 8, .25), 0 0 30px -8px rgba(254, 144, 8, .35); }
.workspace-ui[data-page="dashboard"] .metric-card .metric-label svg { color: var(--x-ember); }
.workspace-ui[data-page="dashboard"] .metric-card[data-tone="earned"] strong { color: #1E2A31; }
.workspace-ui[data-page="dashboard"] .bar {
    background: linear-gradient(180deg, #FFB02E 0%, #FE7A06 55%, #FC4401 100%);
    box-shadow: 0 8px 18px -6px rgba(252, 68, 1, .55);
    border-radius: 8px 8px 3px 3px;
}
.quick-actions a { transition: border-color .25s, box-shadow .25s; }
.quick-actions a:hover { border-color: rgba(254, 144, 8, .7); box-shadow: 0 14px 26px -16px rgba(252, 68, 1, .6); }
.dashboard-filter a.selected { background: var(--x-ink); border-color: var(--x-ink); color: #fff; }
html[data-theme="dark"] .dashboard-filter a.selected { background: var(--x-ember); border-color: var(--x-ember); color: #1E2A31; }
html[data-theme="dark"] .workspace-ui[data-page="dashboard"] .metric-card[data-tone="earned"] strong { color: #FFC28C; }
@media (max-width: 980px) { .login-story.fx360-stage { display: none; } .login-layout { grid-template-columns: 1fr; } }
.reference-copyright a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.void-box { display: inline-block; } .void-box[open] { display: block; width: 100%; margin-top: 10px; } .void-box summary { list-style: none; cursor: pointer; } .void-box summary::-webkit-details-marker { display: none; } .void-form { display: grid; gap: 8px; max-width: 560px; margin-top: 10px; }
.plan-offer { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(240px,1fr); gap: 24px; align-items: start; margin: 8px 0 18px; padding: 18px; border: 1px solid #F3D3B8; border-radius: 16px; background: linear-gradient(135deg,#FFF8F1,#fff); }
.plan-price { margin: 4px 0 10px; } .plan-price strong { font: 800 34px var(--font-display, sans-serif); color: #1E2A31; } .plan-price span { margin-left: 6px; color: #5E6A71; }
.plan-includes { margin: 0; padding-left: 18px; line-height: 1.7; color: #33414A; }
.plan-breakup { margin: 0; border: 1px solid #E3E7EA; border-radius: 12px; background: #fff; overflow: hidden; } .plan-breakup div { display: flex; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid #EEF1F3; } .plan-breakup dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; } .plan-breakup .grand { background: linear-gradient(120deg,#FFA41B,#FC4401); color: #fff; border: 0; } .plan-breakup .grand dt, .plan-breakup .grand dd { font-weight: 800; }
@media (max-width: 760px) { .plan-offer { grid-template-columns: 1fr; } }
.plan-breakup .grand dt, .plan-breakup .grand dd { color: #fff !important; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(30,42,49,.06); border: 1px solid rgba(30,42,49,.1); }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #3F4A53; text-decoration: none; line-height: 1.4; }
.lang-switch a[aria-current="true"] { background: #1E2A31; color: #fff; }
.lang-switch a:hover:not([aria-current]) { background: #FFF0E3; color: #B93E06; }
.lang-switch a:focus-visible { outline: 3px solid #FE9008; outline-offset: 1px; }
.login-panel .lang-switch { position: absolute; top: 18px; right: 18px; z-index: 3; }
/* Help videos link in the full-software top bar */
.topbar-right .help-link { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: #B93E06; background: #FFF0E3; white-space: nowrap; }
.topbar-right .help-link:hover { background: #FFE0C4; }
@media (max-width: 720px) { .topbar-right .help-link { display: none; } }
/* Platform admin: shops & free access */
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.stat-pill { padding: 8px 14px; border-radius: 10px; background: #FFF4EA; border: 1px solid #FFD9B8; font-size: 13px; }
.stat-pill b { font-size: 18px; color: #B93E06; margin-right: 4px; }
.shop-search { display: flex; gap: 8px; max-width: 560px; }
.shop-search input { flex: 1; border: 1px solid #dfe5ea; border-radius: 7px; padding: 9px 12px; }
.grant-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.grant-form select, .grant-form input { border: 1px solid #dfe5ea; border-radius: 7px; padding: 7px 9px; font-size: 12px; min-height: 33px; }
.grant-form input[name="reason"] { min-width: 170px; flex: 1; }
.grant-form input[type="date"] { width: 140px; }
.grant-form:not(:has(option[value="custom"]:checked)) input[type="date"] { display: none; }

/* Daily summary card and used-device price guide */
.daily-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:0;padding:0 20px 20px}
.daily-summary-grid>div{border:1px solid var(--line,#e3e7ea);border-radius:10px;padding:12px 14px;background:var(--surface,#fff)}
.daily-summary-grid a{color:inherit;text-decoration:none;display:block}
.daily-summary-grid dt{font-size:.82rem;color:var(--muted,#5b6770)}
.daily-summary-grid dd{margin:4px 0 0;font-size:1.25rem;font-weight:700}
.price-guide{border-left:3px solid #F07A1A;background:rgba(240,122,26,.07);border-radius:8px;padding:10px 14px;font-size:.92rem}
.price-guide p{margin:.35rem 0}
.price-guide ul{margin:.35rem 0 .35rem 1.1rem;padding:0}
.price-guide-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.price-guide[hidden]{display:none}
