:root {
    font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
    color:#0a2b2b;
    background:#daf5e6;
    font-synthesis:none;
    -webkit-text-size-adjust:100%;
    color-scheme:light
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    background:linear-gradient(135deg,#daf5e6,#f7faf0);
    min-height:100dvh
}

button,input,select,textarea {
    font:inherit
}

button,a,input,select {
    -webkit-tap-highlight-color:transparent
}

button {
    cursor:pointer;
    border:0;
    background:none;
    color:#07806e;
    min-height:44px
}

button:disabled {
    opacity:.45;
    cursor:wait
}

a {
    color:#07806e
}

main {
    max-width:680px;
    margin:auto;
    padding:calc(env(safe-area-inset-top) + 12px) 20px calc(100px + env(safe-area-inset-bottom))
}

header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px
}

h1 {
    font-size:32px;
    letter-spacing:-1px;
    margin:16px 0 26px
}

h2 {
    font-size:23px;
    letter-spacing:-.5px
}

h3,.caption {
    font-size:13px;
    text-transform:uppercase;
    font-weight:500;
    color:#60746d;
    margin:26px 15px 8px;
    letter-spacing:.5px
}

.card {
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    margin:8px 0 20px;
    box-shadow:0 2px 8px #143f2d04
}

.row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:15px 17px;
    min-height:52px;
    border-bottom:1px solid #e9eeea
}

.row:last-child {
    border:0
}

.row span:last-child {
    text-align:right;
    color:#61716b
}

.balance {
    background:#0a2b2b;
    color:white;
    padding:24px;
    border-radius:20px
}

.balance small {
    color:#9ef0c7
}

.balance strong {
    display:block;
    font-size:36px;
    letter-spacing:-1px;
    margin:10px 0
}

.balance p {
    color:#c4d3cd;
    font-size:14px;
    margin:0
}

.primary {
    display:block;
    background:#9ef0c7;
    color:#0a2b2b;
    border-radius:12px;
    padding:14px 20px;
    font-weight:650;
    width:100%;
    text-align:center;
    text-decoration:none
}

.secondary {
    border:1px solid #d6e4db;
    border-radius:12px;
    width:100%;
    padding:12px;
    margin-top:10px
}

.danger {
    color:#c23939
}

.muted {
    color:#63756e;
    font-size:14px
}

.key {
    display:block;
    text-align:left;
    width:100%;
    padding:17px;
    border-bottom:1px solid #e9eeea;
    color:#0a2b2b
}

.key strong {
    display:block;
    font-size:17px;
    margin-bottom:6px
}

.key small {
    display:block;
    color:#62766b;
    font-size:13px;
    line-height:1.7
}

.status {
    color:#07806e;
    font-size:13px
}

.tabs {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    display:flex;
    justify-content:center;
    background:#f9fcf7ec;
    backdrop-filter:blur(22px);
    border-top:1px solid #b8c9be;
    padding:8px 5px calc(5px + env(safe-area-inset-bottom));
    z-index:5
}

.tabs button {
    flex:1;
    max-width:135px;
    font-size:10px;
    color:#75837d;
    display:grid;
    justify-items:center;
    gap:4px
}

.tabs button.active {
    color:#07806e
}

.tabs svg {
    width:24px;
    height:24px;
    fill:#172b27;
    stroke:none;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round
}

label {
    display:block;
    font-size:14px;
    font-weight:600;
    margin:18px 0 7px
}

input,select,textarea {
    display:block;
    width:100%;
    min-width:0;
    border:1px solid #cad9cf;
    border-radius:10px;
    background:#f5faf6;
    color:#0a2b2b;
    padding:13px;
    font-size:16px
}

input[type=checkbox] {
    width:22px;
    min-height:22px;
    display:inline;
    vertical-align:middle
}

textarea {
    min-height:95px
}

.login {
    min-height:100dvh;
    display:grid;
    place-items:center;
    padding:30px 22px;
    background:linear-gradient(#0a2b2b55,#0a2b2b55),url(coastal-mist.jpg) center/cover
}

.login form {
    width:100%;
    max-width:420px;
    background:white;
    border-radius:20px;
    padding:26px;
    box-shadow:0 12px 30px #0003
}

.brand {
    color:#07806e;
    font:600 12px ui-monospace,monospace;
    letter-spacing:1.4px
}

.login h1 {
    margin:8px 0 24px
}

.login .primary {
    margin-top:24px
}

.install {
    line-height:1.6;
    margin-top:20px;
    font-size:13px;
    color:#67786d
}

.loading {
    padding:50px;
    text-align:center
}

.empty {
    padding:25px;
    color:#62766b;
    text-align:center
}

#notice {
    position:fixed;
    top:calc(12px + env(safe-area-inset-top));
    left:12px;
    right:12px;
    margin:auto;
    max-width:600px;
    z-index:30;
    padding:16px;
    background:#fff1e9;
    color:#8b2d20;
    border-radius:14px;
    box-shadow:0 3px 20px #0002
}

dialog {
    position:fixed;
    inset:auto 0 0;
    margin:0 auto;
    width:100%;
    max-width:680px;
    max-height:94dvh;
    border:0;
    border-radius:25px 25px 0 0;
    background:#f3f8f2;
    color:#0a2b2b;
    padding:15px 22px calc(30px + env(safe-area-inset-bottom));
    overflow-y:auto
}

dialog::backdrop {
    background:#0a2b2b70;
    backdrop-filter:blur(3px)
}

.close {
    display:block;
    margin-left:auto;
    font-weight:600
}

.qr {
    display:block;
    background:white;
    border-radius:16px;
    width:min(100%,320px);
    height:auto;
    margin:20px auto
}

.segmented {
    display:flex;
    background:#dce7dd;
    border-radius:9px;
    padding:3px
}

.segmented button {
    flex:1;
    min-height:32px;
    border-radius:7px;
    color:#0a2b2b
}

.segmented .active {
    background:white;
    box-shadow:0 1px 4px #0001
}

.chart {
    display:block;
    width:100%;
    height:auto;
    touch-action:pan-y
}

.chart text {
    fill:#687a70;
    font-size:10px
}

.chart line {
    stroke:#dfe8e0
}

.legend {
    display:flex;
    gap:20px;
    padding:0 15px 18px;
    font-size:13px
}

.legend span:first-child {
    color:#07806e
}

.legend span:last-child {
    color:#3886dc
}

.chart-card {
    padding:16px 8px
}

.chart-card .segmented {
    margin:0 8px 15px
}

progress {
    width:100%;
    accent-color:#07806e
}

svg {
    max-width:100%
}

.vpn-icon {
    text-align:center;
    font-size:70px;
    color:#07806e;
    padding:24px
}

pre {
    white-space:pre-wrap;
    overflow-wrap:anywhere
}

button:focus-visible,a:focus-visible {
    outline:3px solid #07806e;
    outline-offset:2px
}

#sheet-content {
    overflow-wrap:anywhere
}

[hidden] {
    display:none!important
}

.tabs {
    left:12px;
    right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom));
    max-width:656px;
    margin:0 auto;
    padding:7px 6px;
    border:1px solid #ffffffb8;
    border-radius:34px;
    background:linear-gradient(145deg,#ffffffa8,#f4fbf38c);
    -webkit-backdrop-filter:blur(28px) saturate(180%);
    backdrop-filter:blur(28px) saturate(180%);
    box-shadow:0 8px 30px #12382b1c,inset 0 1px 0 #ffffffed,inset 0 -1px 0 #ffffff80
}

.tabs button {
    position:relative;
    min-height:53px;
    padding:6px 2px;
    border-radius:27px;
    transition:background .2s,color .2s,box-shadow .2s;
    gap:3px
}

.tabs button.active {
    background:linear-gradient(150deg,#baf3dcb8,#b0e9d180);
    box-shadow:inset 0 1px 0 #ffffffcc,0 1px 5px #2f6a4810;
    color:#067662
}

.tabs button:active {
    background:#ffffff99
}

.tabs svg {
    color:#0a2b2b;
    width:23px;
    height:23px
}

main {
    padding-bottom:calc(115px + env(safe-area-inset-bottom))
}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
    .tabs {
        background:#f0faf2f5
    }

}

@media(prefers-reduced-transparency:reduce) {
    .tabs {
        background:#edf7ed;
        -webkit-backdrop-filter:none;
        backdrop-filter:none
    }

}

@media(prefers-reduced-motion:reduce) {
    .tabs button {
        transition:none
    }

}
