/* Colours, type, resets and the two glass surfaces every panel uses. */

:root {
    color-scheme: dark;
    --bg: #0B0E14;
    --ink: #F5F5F7;
    --ink-2: #A4A8B2;
    --ink-3: #8B909B;
    --link: #64B5FF;
    --accent: #0A84FF;
    --fill: #0071E3;
    --error: #FF6961;
    --ff: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --sheet-top: max(150px, calc(100% - 412px));
}
* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
html,
body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--ff);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
button {
    font-family: inherit;
    color: inherit;
}
a {
    color: var(--link);
}
a:hover {
    color: #9CCFFF;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
[hidden] {
    display: none !important;
}
.num {
    font-variant-numeric: tabular-nums;
}
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
svg.i {
    width: 20px;
    height: 20px;
    flex: none;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Glass: panels (1) and pills or controls (2). Solid where blur is not supported. */
.glass1 {
    background: rgba(30, 33, 43, .56);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, .11);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.glass2 {
    background: rgba(44, 48, 60, .5);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass1,
    .glass2 {
        background: #1E212B;
    }
}


/* Segmented tabs, used on the upload card and in the side panel */
.seg {
    width: 100%;
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: rgba(118, 118, 128, .24);
}
.seg button {
    flex: 1;
    white-space: nowrap;
    height: 32px;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    cursor: pointer;
    background: transparent;
}
.seg button[aria-selected="true"] {
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* Coloured square behind a travel-type icon */
.tile {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.tile svg.i {
    width: 17px;
    height: 17px;
}
