/* Transport — home band: demo desktop + system requirements (sample data only).
   Loaded on index.html only.
   .tr-desk is the band's section spacing on this site. */
.tr-desk { padding-block: clamp(32px, 5vw, 64px) 0; }

/* ── Homepage highlight band ───────────────────────────────────────────── */
.gw-band {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 40px;
    align-items: center;
    padding: clamp(28px, 5vw, 56px);
    border-radius: 28px;
    border: 1px solid var(--border-color);
    background:
        radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--fill-1) 18%, transparent), transparent 60%),
        radial-gradient(60% 100% at 100% 100%, color-mix(in srgb, var(--fill-3) 18%, transparent), transparent 60%),
        var(--bg-card-strong);
}

.gw-band::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--grad-line);
}

.gw-band__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.gw-band__brand img {
    width: 64px;
    height: auto;
}

.gw-band__brand strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gw-band__brand span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.gw-band h2 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gw-band p {
    margin-top: 14px;
    color: var(--text-secondary);
    max-width: 56ch;
}

.gw-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 28px;
    padding: 0;
    list-style: none;
}

.gw-facts li {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--text-primary) 5%, transparent);
    font-size: 14px;
    font-weight: 600;
}

.gw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Transport demo desktop (home band): sample data only ── */
.gwd-stage {
    --d-wall: radial-gradient(60% 70% at 85% 10%,hsl(332 70% 45% / .35),transparent 60%),radial-gradient(55% 60% at 10% 95%,hsl(30 90% 55% / .22),transparent 60%),linear-gradient(160deg,#16122A,#0E0B18 60%,#1A0F22);
    --d-grid: hsl(30 80% 90% / .04);
    --d-win: #17142A;
    --d-win-2: #1E1A33;
    --d-bar: hsl(250 30% 10% / .78);
    --d-line: hsl(30 80% 90% / .1);
    --d-chip: hsl(250 25% 22% / .7);
    --d-shadow: 0 30px 60px -20px rgb(0 0 0 / .65),0 0 0 1px hsl(30 80% 90% / .06);
}

:root[data-theme="light"] .gwd-stage {
    --d-wall: radial-gradient(60% 70% at 85% 10%,hsl(332 80% 70% / .3),transparent 60%),radial-gradient(55% 60% at 10% 95%,hsl(35 95% 65% / .3),transparent 60%),linear-gradient(160deg,#F3EEF8,#FBF6EF 60%,#F7ECF1);
    --d-grid: hsl(250 30% 20% / .05);
    --d-win: #FFFFFF;
    --d-win-2: #F7F4F0;
    --d-bar: hsl(0 0% 100% / .8);
    --d-line: hsl(250 20% 20% / .12);
    --d-chip: hsl(36 40% 94%);
    --d-shadow: 0 30px 60px -24px rgb(27 23 38 / .35),0 0 0 1px hsl(250 20% 20% / .06);
}

@media (min-width: 1200px) {
    .gw-band {
        grid-template-columns: minmax(0,1fr) minmax(0,1.12fr);
    }
}

/* ══ Interactive desktop ═════════════════════════════════════════════════
   .gwd-stage  : holds the desktop + the two notification cards
   .gwd        : the desktop frame   .gwd__area : where windows live
   .gwd-win    : an app window       .gwd-bar   : taskbar   .gwd-start : start menu */
.gwd-stage {
    position: relative;
    min-width: 0;
}

.gwd {
    position: relative;
    height: 470px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--d-line);
    box-shadow: var(--d-shadow);
    background: linear-gradient(var(--d-grid) 1px,transparent 1px) 0 0/28px 28px,linear-gradient(90deg,var(--d-grid) 1px,transparent 1px) 0 0/28px 28px,var(--d-wall);
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-user-select: none;
    user-select: none;
    isolation: isolate;
}

.gwd::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--gt-grad-line);
    opacity: .8;
    z-index: 3;
}

.gwd__mark {
    position: absolute;
    left: 50%;
    top: 44%;
    width: 120px;
    translate: -50% -50%;
    opacity: .07;
    pointer-events: none;
}

.gwd__area {
    position: absolute;
    inset: 0 0 54px 0;
}

/* window */
.gwd-win {
    position: absolute;
    left: 4%;
    top: 5%;
    width: 88%;
    height: 88%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--d-win);
    border: 1px solid var(--d-line);
    box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55);
    container-type: inline-size;
    z-index: 1;
}

.gwd-win[hidden] {
    display: none;
}

.gwd-win.is-front {
    border-color: color-mix(in srgb,var(--gt-fill-1) 45%,var(--d-line));
    box-shadow: 0 26px 50px -18px rgb(0 0 0 / .6),0 0 0 1px color-mix(in srgb,var(--gt-fill-1) 20%,transparent);
}

.gwd-win.is-max,
.gwd.is-narrow .gwd-win {
    left: 0!important;
    top: 0!important;
    width: 100%!important;
    height: 100%!important;
    border-radius: 0;
    border-width: 0 0 1px;
}

.gwd-win.is-anim {
    transition: left .24s cubic-bezier(.2,.8,.2,1),top .24s cubic-bezier(.2,.8,.2,1),width .24s cubic-bezier(.2,.8,.2,1),height .24s cubic-bezier(.2,.8,.2,1),border-radius .24s;
}

.gwd-win__bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 4px 0 12px;
    background: var(--d-win-2);
    border-bottom: 1px solid var(--d-line);
    cursor: default;
}

.gwd.is-drag-ok .gwd-win:not(.is-max) .gwd-win__bar {
    cursor: grab;
}

.gwd-win.is-dragging .gwd-win__bar {
    cursor: grabbing;
}

.gwd-win__bar img {
    width: 16px;
    height: 16px;
}

.gwd-win__title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    color: var(--gt-text-2);
}

.gwd-win:not(.is-front) .gwd-win__title {
    color: var(--gt-text-muted);
}

.gwd-win__ctl {
    width: 30px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--gt-text-muted);
    cursor: pointer;
}

.gwd-win__ctl:hover {
    background: var(--d-chip);
    color: var(--gt-text);
}

.gwd-win__ctl[data-act="close"]:hover {
    background: #C42B1C;
    color: #fff;
}

.gwd-win__ctl svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
}

.gwd-win__ctl .i-restore,
.gwd-win.is-max .gwd-win__ctl .i-max {
    display: none;
}

.gwd-win.is-max .gwd-win__ctl .i-restore {
    display: block;
}

.gwd.is-narrow .gwd-win__ctl[data-act="max"] {
    display: none;
}

.gwd-win__body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 12px;
    color: var(--gt-text-2);
}

.gwd-win__body::-webkit-scrollbar {
    width: 8px;
}

.gwd-win__body::-webkit-scrollbar-thumb {
    background: var(--d-line);
    border-radius: 8px;
}

/* desktop icons: a column-first grid without JS; with JS (.is-placed) each icon sits in a grid cell
   (left/top set by the script) and can be dragged with the mouse */
.gwd-icons {
    position: absolute;
    inset: 10px auto auto 10px;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4,88px);
    grid-auto-columns: 84px;
    z-index: 0;
}

.gwd-icons.is-placed {
    inset: 0;
    display: block;
}

.gwd-icon {
    width: 78px;
    height: 82px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 5px;
    padding: 8px 4px 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--gt-text);
    cursor: default;
    touch-action: manipulation;
}

.gwd-icons.is-placed .gwd-icon {
    position: absolute;
    transition: left .16s cubic-bezier(.2,.8,.2,1),top .16s cubic-bezier(.2,.8,.2,1);
}

.gwd-icon img {
    width: 36px;
    height: 36px;
    pointer-events: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / .35));
}

.gwd-icon span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 1px 3px rgb(0 0 0 / .6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:root[data-theme="light"] .gwd-icon span {
    text-shadow: none;
}

.gwd-icon:hover {
    background: color-mix(in srgb,var(--gt-text) 8%,transparent);
}

.gwd-icon.is-selected {
    background: color-mix(in srgb,var(--gt-fill-1) 20%,transparent);
    border-color: color-mix(in srgb,var(--gt-fill-1) 50%,transparent);
}

.gwd-icons.is-placed .gwd-icon.is-dragging {
    transition: none;
    z-index: 2;
    opacity: .85;
}

/* taskbar */
.gwd-bar {
    position: absolute;
    inset: auto 0 0 0;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    background: var(--d-bar);
    border-top: 1px solid var(--d-line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    z-index: 2000;
    /* the blur puts the taskbar on its own layer, which the frame's rounded clip does not reach:
       round its own bottom corners (frame radius 18px minus the 1px border) */
    border-radius: 0 0 17px 17px;
}

.gwd-bar__btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    transition: background .15s;
}

.gwd-bar__btn:hover,
.gwd-bar__btn[aria-expanded="true"] {
    background: var(--d-chip);
}

.gwd-bar__btn img {
    width: 26px;
    height: 26px;
    transition: transform .15s;
}

.gwd-bar__btn:active img {
    transform: scale(.88);
}

.gwd-bar__start img {
    width: 30px;
    height: auto;
}

.gwd-bar__sep {
    width: 1px;
    height: 24px;
    margin: 0 4px;
    background: var(--d-line);
}

.gwd-bar__app::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 0;
    height: 3px;
    border-radius: 3px;
    translate: -50% 0;
    background: var(--gt-text-muted);
    opacity: 0;
    transition: width .2s,opacity .2s;
}

.gwd-bar__app.is-open::after {
    width: 6px;
    opacity: 1;
}

.gwd-bar__app.is-front {
    background: var(--d-chip);
}

.gwd-bar__app.is-front::after {
    width: 16px;
    background: var(--gt-grad-line);
}

.gwd-bar__app::before {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    translate: -50% 4px;
    padding: 4px 9px;
    border-radius: 7px;
    white-space: nowrap;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--d-win);
    color: var(--gt-text);
    border: 1px solid var(--d-line);
    box-shadow: 0 8px 20px -10px rgb(0 0 0 / .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s,translate .15s;
}

.gwd-bar__app:hover::before,
.gwd-bar__app:focus-visible::before {
    opacity: 1;
    translate: -50% 0;
}

.gwd-bar__clock {
    position: absolute;
    right: 14px;
    top: 50%;
    translate: 0 -50%;
    text-align: right;
    font-size: 11px;
    line-height: 1.35;
    color: var(--gt-text-2);
    font-variant-numeric: tabular-nums;
}

.gwd-bar__clock b {
    display: block;
    font-size: 12px;
    color: var(--gt-text);
}

.gwd button:focus-visible,
.gwd a:focus-visible,
.gwd-toast:focus-visible {
    outline: 2px solid var(--gt-fill-1);
    outline-offset: 2px;
}

/* start menu */
.gwd-start {
    position: absolute;
    left: 50%;
    bottom: 62px;
    width: min(360px,calc(100% - 20px));
    translate: -50% 0;
    padding: 16px;
    border-radius: 16px;
    z-index: 2001;
    background: color-mix(in srgb,var(--d-win) 92%,transparent);
    border: 1px solid var(--d-line);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.gwd-start[hidden] {
    display: none;
}

.gwd-start:not([hidden]) {
    animation: gwd-rise .2s cubic-bezier(.2,.8,.2,1);
}

@keyframes gwd-rise {
    from {
        opacity: 0;
        translate: -50% 12px;
    }
}

.gwd-start__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--d-line);
}

.gwd-start__head img {
    width: 34px;
    height: auto;
}

.gwd-start__head b {
    display: block;
    font-size: 14px;
    color: var(--gt-text);
}

.gwd-start__head span {
    font-size: 11.5px;
    color: var(--gt-text-muted);
}

.gwd-start__label {
    margin: 12px 0 8px;
    font-family: var(--gt-font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gt-text-muted);
}

.gwd-start__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gwd-start__app {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 4px;
    border: 0;
    border-radius: 10px;
    background: none;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gt-text-2);
    text-align: center;
    line-height: 1.25;
}

.gwd-start__app:hover {
    background: var(--d-chip);
    color: var(--gt-text);
}

.gwd-start__app img {
    width: 30px;
    height: 30px;
}

.gwd-start__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--d-line);
    font-size: 11.5px;
    color: var(--gt-text-muted);
}

.gwd-start__foot a {
    color: var(--gt-primary);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.gwd-start__foot a:hover {
    text-decoration: underline;
}

/* notification cards: inside the desktop while it is empty (no window on screen; minimised ones do
   not count). When a window is on screen or the start menu is open:
   - 1200px+ (desktop beside the text): they travel out to the band's free space, "Trip closed" above
     the desktop, "GST invoice ready" to its left beside the Transport name (owner's sketch)
   - 641-1199px (desktop under the text): no free space around it, so they fade away
   - phones: never shown */
.gwd-toast {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    background: color-mix(in srgb,var(--d-win) 94%,transparent);
    border: 1px solid var(--d-line);
    box-shadow: 0 20px 40px -18px rgb(0 0 0 / .6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: gwd-toast .5s cubic-bezier(.2,.8,.2,1) both;
    transition: top .55s cubic-bezier(.2,.8,.2,1),right .55s cubic-bezier(.2,.8,.2,1),left .55s cubic-bezier(.2,.8,.2,1),box-shadow .3s,opacity .25s,visibility .25s;
}

.gwd-toast:hover {
    border-color: var(--gt-border-glow);
}

.gwd-toast b {
    display: block;
    font-size: 13.5px;
    color: var(--gt-text);
}

.gwd-toast span {
    font-size: 11.5px;
    color: var(--gt-text-muted);
}

.gwd-toast i {
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gt-grad-button);
    color: var(--gt-on-accent);
    font-style: normal;
    font-weight: 800;
}

.gwd-toast--a {
    top: 22px;
    right: 22px;
    animation-delay: .9s;
}

/* right side, under "Trip closed": the left column holds the desktop icons */
.gwd-toast--b {
    left: calc(100% - 216px);
    top: 104px;
    animation-delay: 1.6s;
    transition-delay: .08s;
}

@media (min-width: 1200px) {
    .gwd {
        height: 450px;
    }

    /* leaves ~80px above the desktop for the parked "Trip closed" card */
    .gwd-stage:not(.is-empty) .gwd-toast--a,
    .gwd-stage.is-busy .gwd-toast--a {
        top: -76px;
        right: 180px;
    }

    .gwd-stage:not(.is-empty) .gwd-toast--b,
    .gwd-stage.is-busy .gwd-toast--b {
        top: -20px;
        left: -206px;
    }

    .gwd-stage:not(.is-empty) .gwd-toast,
    .gwd-stage.is-busy .gwd-toast {
        box-shadow: 0 24px 44px -16px rgb(0 0 0 / .7);
    }
}

@media (max-width: 1199px) {
    .gwd-stage:not(.is-empty) .gwd-toast,
    .gwd-stage.is-busy .gwd-toast {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes gwd-toast {
    from {
        opacity: 0;
        translate: 0 10px;
        scale: .96;
    }
}

@media (max-width: 640px) {
    .gwd-toast {
        display: none;
    }
}

/* ── Sample screens (fake data) ───────────────────────────────────────── */
.s-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.s-h {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    color: var(--gt-text);
}

.s-sub {
    font-size: 11px;
    color: var(--gt-text-muted);
}

.s-card {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--d-line);
    background: color-mix(in srgb,var(--gt-text) 3%,transparent);
}

.s-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
}

.s-stat small {
    display: block;
    font-size: 10.5px;
    color: var(--gt-text-muted);
}

.s-stat b {
    display: block;
    margin: 2px 0 6px;
    font-size: 18px;
    color: var(--gt-text);
}

.s-meter {
    height: 4px;
    border-radius: 4px;
    background: var(--d-line);
    overflow: hidden;
}

.s-meter i {
    display: block;
    height: 100%;
    width: var(--v);
    background: var(--gt-grad-line);
}

.s-pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    background: var(--d-chip);
    color: var(--gt-text-2);
}

.s-pill.ok {
    background: var(--gt-success-bg);
    color: var(--gt-success);
}

.s-pill.info {
    background: var(--gt-info-bg);
    color: var(--gt-info);
}

.s-pill.warn {
    background: var(--gt-warning-bg);
    color: var(--gt-warning);
}

.s-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.s-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--d-line);
}

.s-list li:last-child {
    border-bottom: 0;
}

.s-list b {
    color: var(--gt-text);
    font-weight: 600;
}

.s-mono {
    font-family: var(--gt-font-mono);
    font-size: 11px;
}

.s-fakebtn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 11.5px;
    background: var(--d-chip);
    color: var(--gt-text-2);
}

.s-fakebtn.pri {
    background: var(--gt-grad-button);
    color: var(--gt-on-accent);
}

/* dispatch */
.s-dash {
    display: grid;
    grid-template-columns: 96px minmax(0,1fr);
    gap: 12px;
    height: 100%;
}

.s-side {
    margin: -12px 0 -12px -12px;
    padding: 10px 6px;
    border-right: 1px solid var(--d-line);
    list-style: none;
}

.s-side li {
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--gt-text-muted);
}

.s-side li.on {
    background: color-mix(in srgb,var(--gt-fill-1) 18%,transparent);
    color: var(--gt-text);
    box-shadow: inset 3px 0 0 var(--gt-fill-1);
}

.s-main {
    display: grid;
    gap: 8px;
    align-content: start;
    min-width: 0;
}

.s-chart svg {
    display: block;
    width: 100%;
    height: 64px;
}

@container (max-width: 430px) {
    .s-dash {
        grid-template-columns: 1fr;
    }

    .s-side {
        display: none;
    }

    .s-stat b {
        font-size: 15px;
    }
}

/* booking */
.s-form {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.s-field {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--d-line);
    background: color-mix(in srgb,var(--gt-text) 3%,transparent);
    min-width: 0;
}

.s-field small {
    display: block;
    font-size: 10px;
    color: var(--gt-text-muted);
}

.s-field span {
    display: block;
    color: var(--gt-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-field.wide {
    grid-column: 1/-1;
}

.s-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

@container (max-width: 360px) {
    .s-form {
        grid-template-columns: 1fr;
    }
}

/* invoice */
.s-inv li {
    padding: 9px 0;
}

.s-inv .tot {
    padding-top: 12px;
    font-size: 14px;
}

.s-inv .tot b {
    font-weight: 800;
}

.s-inv .tot strong {
    font-size: 17px;
    background: var(--gt-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* reports */
.s-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.s-tabs span {
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gt-text-muted);
}

.s-tabs span.on {
    background: var(--d-chip);
    color: var(--gt-text);
}

.s-bars {
    display: grid;
    gap: 7px;
    margin: 8px 0 4px;
}

.s-bars div {
    display: grid;
    grid-template-columns: 72px minmax(0,1fr) 40px;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.s-bars i {
    height: 10px;
    border-radius: 4px;
    width: var(--v);
    background: var(--gt-grad-line);
}

.s-bars em {
    font-style: normal;
    text-align: right;
    color: var(--gt-text);
    font-variant-numeric: tabular-nums;
}

/* print designer */
.s-pd {
    display: grid;
    grid-template-columns: 64px minmax(0,1fr) 108px;
    gap: 10px;
    height: 100%;
}

.s-tools {
    display: grid;
    gap: 6px;
    align-content: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.s-tools li {
    padding: 6px 4px;
    border-radius: 7px;
    text-align: center;
    font-size: 10.5px;
    background: var(--d-chip);
}

.s-paper {
    position: relative;
    padding: 10px;
    border-radius: 6px;
    background: #FFFDF8;
    color: #2A2433;
    box-shadow: 0 8px 20px -10px rgb(0 0 0 / .5);
    font-size: 9.5px;
    display: grid;
    gap: 6px;
    align-content: start;
}

.s-paper .r {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.s-paper .bx {
    padding: 4px 6px;
    border: 1px solid #D9D2C7;
    border-radius: 3px;
    flex: 1;
}

.s-paper .logo {
    width: 34px;
    height: 20px;
    border-radius: 3px;
    background: linear-gradient(100deg,#FDC95C,#E8706C);
}

.s-paper .sel {
    outline: 1.5px dashed #E0559A;
    outline-offset: 2px;
    position: relative;
}

.s-paper .sel::after {
    content: '';
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 6px;
    height: 6px;
    background: #E0559A;
}

.s-paper .code {
    height: 22px;
    background: repeating-linear-gradient(90deg,#2A2433 0 2px,transparent 2px 4px,#2A2433 4px 5px,transparent 5px 8px);
}

.s-props {
    display: grid;
    gap: 6px;
    align-content: start;
    font-size: 11px;
}

@container (max-width: 430px) {
    .s-pd {
        grid-template-columns: 1fr;
    }

    .s-tools,
    .s-props {
        display: none;
    }
}

@media (max-width: 1199px) {
    .gwd {
        height: 480px;
    }
}

@media (max-width: 640px) {
    .gwd {
        height: 430px;
        border-radius: 14px;
    }

    .gwd-bar {
        justify-content: flex-start;
        gap: 0;
        padding: 0 4px;
        border-radius: 0 0 13px 13px; /* frame is 14px here */
    }

    .gwd-bar__btn {
        width: 36px;
        height: 40px;
    }

    .gwd-bar__btn img {
        width: 23px;
        height: 23px;
    }

    .gwd-bar__clock {
        right: 8px;
    }
}

@media (max-width: 400px) {
    .gwd-bar__clock {
        display: none;
    }

    .gwd-bar {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gwd-stage *,
    .gwd-stage *::before,
    .gwd-stage *::after {
        animation: none!important;
        transition: none!important;
    }
}

/* Guided demo on the demo desktop: spotlight while it plays, a pretend cursor (a fingertip on touch screens),
   a click ripple and a "Your turn" hint. Script: the "guided demo" block at the end of the desktop script. */
.gwd {
    transition: box-shadow 0.5s ease;
}

.gwd-stage.is-demo .gwd {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gt-fill-1) 70%, transparent), 0 0 70px -12px color-mix(in srgb, var(--gt-fill-1) 70%, transparent), var(--d-shadow);
    animation: gwd-glow 1.6s ease-in-out infinite alternate;
}

@keyframes gwd-glow {
    to {
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--gt-fill-3) 70%, transparent), 0 0 90px -10px color-mix(in srgb, var(--gt-fill-3) 60%, transparent), var(--d-shadow);
    }
}

.gwd-demo {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2600;
    pointer-events: none;
    will-change: transform;
}

.gwd-demo--cursor {
    width: 26px;
    height: 30px;
    filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.5));
}

.gwd-demo--cursor svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gwd-demo--finger {
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.35);
    border: 2px solid rgb(255 255 255 / 0.85);
    box-shadow: 0 4px 14px rgb(0 0 0 / 0.35);
}

.gwd-demo-ripple {
    position: absolute;
    z-index: 2599;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 2px solid var(--gt-fill-1);
    pointer-events: none;
}

.gwd-demo-hint {
    position: absolute;
    left: 50%;
    bottom: 64px;
    z-index: 2601;
    translate: -50% 0;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    background: var(--gt-grad-button);
    color: var(--gt-on-accent);
    box-shadow: 0 14px 30px -12px rgb(0 0 0 / 0.6);
    animation: gwd-hint 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gwd-demo-hint::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    translate: -50% 0;
    rotate: 45deg;
    background: var(--gt-fill-1);
}

@keyframes gwd-hint {
    from {
        opacity: 0;
        translate: -50% 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gwd {
        transition: none;
    }

    .gwd-stage.is-demo .gwd {
        animation: none;
    }
}

/* System requirements cards inside a product band (owner-approved Variation 6): full band width, under the
   buttons; Required / Recommended / Optional tags; 2 per row from 640px so every title and description fits one line */
.gw-specs {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.gw-specs__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.gw-specs__title {
    margin-right: auto;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.gw-specs__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.gw-specs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-spec {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--text-primary) 4%, transparent);
}

.gw-spec--opt {
    border-style: dashed;
    background: none;
}

.gw-spec__ico {
    grid-row: span 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--gt-fill-1) 16%, transparent);
    color: var(--primary-color);
}

.gw-spec--rec .gw-spec__ico {
    background: var(--gt-info-bg);
    color: var(--gt-info);
}

.gw-spec--opt .gw-spec__ico {
    background: color-mix(in srgb, var(--text-primary) 8%, transparent);
    color: var(--text-muted);
}

.gw-spec__ico svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gw-spec strong {
    padding-right: 96px;
    font-size: 13px;
    line-height: 1.3;
    color: var(--text-primary);
}

.gw-spec small {
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--text-muted);
}

.gw-spec .gw-tag {
    position: absolute;
    top: 9px;
    right: 10px;
}

.gw-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gw-tag--req {
    background: var(--grad-button);
    color: var(--on-accent);
}

.gw-tag--rec {
    background: var(--gt-info-bg);
    color: var(--gt-info);
}

.gw-tag--opt {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .gw-specs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gw-spec strong,
    .gw-spec small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
