* {
    box-sizing: border-box;
}
:root {
    --ink: #092e36;
    --dark: #092d36;
    --blue: #005964;
    --green: #a2efd0;
    --paper: #eff5f2;
    --line: #c4d8d1;
    --muted: #4f6868;
    --amber: #ffb05e;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 "Microsoft JhengHei",system-ui,sans-serif;
}
button,input,select {
    font: inherit;
}
button {
    cursor: pointer;
}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {
    outline: 3px solid #e3841b;
    outline-offset: 3px;
}
.wrap {
    width: min(1240px,93vw);
    margin: auto;
}
.head,nav,.brand,.row,.section-head,.headings,.stepper {
    display: flex;
    align-items: center;
}
.head,.row,.section-head {
    justify-content: space-between;
    gap: 12px;
}
.row,.section-head {
    flex-wrap: wrap;
}
header {
    background: var(--dark);
}
.head {
    min-height: 76px;
}
.brand {
    color: white;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    line-height: 1.05;
    gap: 9px;
}
.brand small {
    display: block;
    font: 700 9px/1.5 ui-monospace,monospace;
    letter-spacing: .18em;
    color: var(--green);
    margin-top: 4px;
}
.brand i {
    width: 34px;
    height: 34px;
    display: block;
    background: repeating-linear-gradient(-50deg,transparent 0 5px,var(--green) 6px 11px);
    border-radius: 50% 50% 6px 6px;
}
nav {
    gap: 4px;
}
nav button {
    background: none;
    color: #ddede6;
    padding: 9px 15px;
    border: 0;
    border-radius: 6px;
}
nav [aria-pressed=true] {
    color: var(--dark);
    background: var(--green);
    font-weight: 700;
}
.hero {
    isolation: isolate;
    position: relative;
    overflow: hidden;
    margin: 24px 0;
    min-height: 210px;
    display: flex;
    align-items: center;
    border-radius: 14px;
    background: #294c50 url("./hero.webp") center 56%/cover no-repeat;
}
.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg,rgba(3,39,48,.96),rgba(9,49,60,.77) 37%,rgba(7,38,46,.03) 83%);
}
.hero>div {
    padding: 25px clamp(18px,4vw,55px);
    color: white;
}
.hero p {
    font-size: 13px;
    color: var(--green);
    letter-spacing: .16em;
}
.hero h1 {
    font-size: clamp(38px,5vw,70px);
    line-height: 1.12;
    letter-spacing: -.03em;
    margin: .14em 0 .25em;
}
.hero span {
    font-size: 15px;
}
.hero i {
    font: 9px monospace;
    color: #a6e5c7;
    margin: 0 7px;
}
.layout {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(280px,.9fr);
    gap: 24px;
    align-items: start;
}
.panel,.ticket,.entry,.trip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.panel {
    padding: 20px;
}
.panel+.panel {
    margin-top: 18px;
}
.section-head {
    margin-bottom: 10px;
}
h2,h3,h4,p {
    margin: 0;
}
h2 {
    font-size: 25px;
    line-height: 1.3;
}
h3 {
    font-size: 20px;
}
.muted,small,.zone {
    color: var(--muted);
}
.zone {
    font-size: 13px;
}
.fields {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 9px;
    margin: 16px 0;
}
.fields label {
    font-size: 13px;
    color: var(--muted);
}
select {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 12px;
    background: #fbfdfc;
    color: var(--ink);
}
.fields select {
    font-weight: 700;
    font-size: 20px;
}
.swap,.stepper button,.sub {
    background: #f4f8f5;
    color: var(--blue);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
    min-height: 40px;
}
.swap,.stepper button {
    width: 42px;
}
.days {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 2px 7px;
    scrollbar-width: thin;
}
.day {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f7faf8;
    color: var(--ink);
    padding: 6px 12px;
}
.day b,.day small {
    display: block;
}
.day[aria-pressed=true],.trip[aria-pressed=true] {
    background: #e2f5eb;
    border-color: #31856c;
    box-shadow: inset 0 0 0 1px #31856c;
}
.trips {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}
.trip {
    color: var(--ink);
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    text-align: left;
}
.trip:disabled,.day:disabled {
    opacity: .55;
    cursor: default;
}
.trip time,.numbers,.code {
    font-family: Consolas,ui-monospace,monospace;
}
.trip .times {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}
.trip small {
    display: block;
    font-size: 12px;
}
.trip .seats {
    font-size: 13px;
    color: var(--blue);
}
.ticket {
    overflow: hidden;
    position: sticky;
    top: 15px;
}
.ticket-top {
    background: var(--dark);
    color: white;
    padding: 18px 20px;
}
.ticket-top small {
    color: var(--green);
}
.ticket-top h3 {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 25px;
}
.ticket-top h3 span {
    font-weight: 400;
    color: #8cc8bf;
}
.inner {
    padding: 17px 20px;
}
.counter {
    padding: 9px 0;
}
.stepper {
    gap: 13px;
}
.stepper button {
    font-size: 20px;
    min-height: 36px;
    width: 35px;
}
.stepper button:disabled {
    color: #a9b4af;
    cursor: not-allowed;
}
.stepper output {
    min-width: 1ch;
    font-weight: 700;
}
.summary {
    border-top: 1px dashed var(--line);
    padding-top: 13px;
    margin-top: 11px;
}
.total {
    font-weight: 800;
    font-size: 26px;
}
.primary,.sub {
    padding: 9px 14px;
}
.primary {
    border: 0;
    background: var(--blue);
    color: white;
    border-radius: 6px;
    font-weight: 700;
}
.primary:disabled {
    background: #a4afab;
    cursor: not-allowed;
}
.wide {
    width: 100%;
    margin-top: 12px;
}
.member select {
    display: inline-block;
    width: auto;
    max-width: 100%;
    font-size: 14px;
}
.member {
    font-size: 14px;
}
.entry {
    padding: 16px 20px;
    margin-bottom: 10px;
}
.entry h3 {
    margin: 7px 0;
}
.tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 10em;
    background: #d9eee4;
    color: #185a48;
    font-size: 13px;
}
.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.receipts {
    margin-top: 16px;
}
.board {
    overflow-x: auto;
}
.board table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    min-width: 475px;
}
.board td,.board th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.board th {
    background: var(--dark);
    color: var(--green);
    font-weight: 500;
}
.board td:nth-child(n+2) {
    font-variant-numeric: tabular-nums;
}
.board .meter {
    height: 5px;
    background: #dbe7e2;
    border-radius: 5px;
    min-width: 55px;
}
.meter i {
    display: block;
    height: 100%;
    background: #159776;
    border-radius: 5px;
}
#notice:not(:empty) {
    padding: 11px 15px;
    border-left: 4px solid #337c6a;
    background: #deece4;
    margin-bottom: 14px;
}
footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px!important;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
footer span {
    margin-left: auto;
}
@media(max-width:820px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .ticket {
        position: static;
    }
    .hero {
        min-height: 170px;
    }
    .wrap {
        width: 94vw;
    }
}
@media(max-width:520px) {
    .head {
        min-height: 65px;
        gap: 3px;
    }
    .brand {
        font-size: 17px;
        gap: 5px;
    }
    .brand i {
        width: 23px;
        height: 25px;
    }
    .brand small {
        font-size: 7px;
    }
    nav {
        gap: 0;
    }
    nav button {
        font-size: 13px;
        padding: 9px 7px;
    }
    .hero {
        margin: 14px 0 18px;
    }
    .panel {
        padding: 14px;
    }
    .trip {
        padding: 9px;
        gap: 5px;
    }
    .trip .times {
        font-size: 15px;
    }
    .trip .seats {
        font-size: 12px;
    }
    .headings {
        gap: 5px;
    }
    .hero i {
        margin: 0 2px;
    }
    .fields {
        gap: 5px;
    }
    .day {
        padding: 5px 9px;
    }
    footer span {
        margin: 0;
    }
    .inner {
        padding: 15px;
    }
}
.layout > section,.layout > aside {
    min-width: 0;
}

footer .inquiry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 6px 0;
}
