@charset "UTF-8";

:root {
    color-scheme: light;
    --ink: #18323b;
    --muted: #516771;
    --accent: #12675e;
    --accent-dark: #0a514b;
    --accent-wash: #d8eee7;
    --edge: #92afb44d;
    --field-edge: #9db5ba;
    --glass: linear-gradient(140deg, #fffffff2, #f9fdfdde 65%, #e9f4f0ca);
    --glass-edge: #ffffffd9;
    --glass-shadow: 0 1px 2px #284a5310, 0 14px 38px #2b616411, inset 0 1px 0 #fff;
    --solid: #f6fbfa;
    --field: #ffffffc9;
    --focus: #15776b;
    --radius: 22px;
    --control: 11px;
    --motion: 180ms cubic-bezier(.18,.75,.3,1);
    font: 14px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-synthesis: none;
    color: var(--ink);
    background: #e9f3f4;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 43% -12%, #fff 4%, transparent 53%),
        radial-gradient(ellipse at 88% 4%, #c5ebe1 0%, transparent 57%),
        radial-gradient(ellipse at -4% 78%, #d4e1f6 0%, transparent 56%),
        radial-gradient(ellipse at 96% 94%, #d5e6f5 0%, transparent 52%),
        #eaf4f3;
}
h1, h2, h3, p, dl { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; font-weight: 700; }
h2 { margin-bottom: 16px; font-size: 18px; font-weight: 680; line-height: 1.35; }
h3 { font-size: 15px; }
p { line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 15px;
    border: 1px solid var(--field-edge);
    border-radius: var(--control);
    background: #ffffffa8;
    color: var(--ink);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    touch-action: manipulation;
    transition: background var(--motion), border-color var(--motion), box-shadow var(--motion), transform var(--motion), color var(--motion);
}
button:enabled:active, .app-link:not([aria-disabled=true]):active { transform: translateY(1px); }
button.primary { color: #fff; background: linear-gradient(150deg, #24796d, #0d5d54); border-color: #12675e; box-shadow: inset 0 1px 0 #ffffff42, 0 3px 9px #1e635d2d; }
button:disabled, .app-link[aria-disabled=true] { opacity: .55; cursor: not-allowed; }
.app-link[aria-disabled=true] { pointer-events: none; }
.quiet, .text-link, .workspace-link { color: var(--accent-dark); border-color: transparent; background: transparent; }
.text-link, .workspace-link { padding-inline: 0; }
.text-link { min-height: 0; padding-block: 0; text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--focus); outline-offset: 3px;
}
@media (hover: hover) {
    button:enabled:hover, .app-link:not([aria-disabled=true]):hover { background: #fff; border-color: #7aa7a4; }
    button.primary:enabled:hover { background: var(--accent-dark); box-shadow: 0 4px 13px #195b5240; }
    button.quiet:enabled:hover, button.text-link:enabled:hover, button.workspace-link:enabled:hover { background: transparent; border-color: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
}
[hidden], .hidden { display: none !important; }
.muted, .footnote, small { color: var(--muted); }
.footnote, small { font-size: 13px; line-height: 1.65; }
.footnote:empty, [role=status]:empty { display: none; }
.mono { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.stack { display: grid; gap: 18px; }
.stack > button { justify-self: start; }
.stack label { display: grid; gap: 7px; font-weight: 600; }
label small { display: block; font-weight: 400; }
label > span > small { margin-top: 4px; }
label.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    cursor: pointer;
}
.switch-row span { min-width: 0; overflow-wrap: anywhere; }
input[type=checkbox] { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.switch-row input:disabled { cursor: not-allowed; opacity: .65; }
input:not([type=checkbox],[type=hidden]), select, textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    padding: 9px 12px;
    border: 1px solid var(--field-edge);
    border-radius: var(--control);
    background: var(--field);
    color: var(--ink);
    transition: background var(--motion), border-color var(--motion), box-shadow var(--motion);
}
input:focus, select:focus, textarea:focus {
    border-color: var(--focus);
    background: #fff;
}
input::placeholder, textarea::placeholder { color: #5d727b; opacity: 1; }
textarea { resize: vertical; line-height: 1.65; }
input[type=file] { overflow: hidden; }
input::file-selector-button { font: inherit; margin: 0 8px 0 0; border: 0; border-radius: 6px; padding: 4px 7px; color: var(--accent-dark); background: var(--accent-wash); cursor: pointer; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 13px; }
.section-heading h2 { margin: 0; }
.section-heading select { width: auto; max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.panel, .login-card {
    min-width: 0;
    padding: clamp(18px,2.3vw,30px);
    border: 1px solid var(--glass-edge);
    border-radius: var(--radius);
    background: var(--glass);
    box-shadow: var(--glass-shadow);
}
.panel { margin: 0 0 18px; }
.panel > :last-child { margin-bottom: 0; }
.notice, .empty {
    padding: 14px 16px;
    border: 1px solid var(--edge);
    border-radius: var(--control);
    background: #f5fbfae8;
}
.empty { padding-block: 30px; text-align: center; color: var(--muted); }
.notice.error, .toast.error { background: #fff2ef; color: #8f322f; border-color: #e3b6b0; }
.notice.error { margin-bottom: 18px; }
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    background: #e9eff1;
    color: #415c66;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.badge.ok { background: #d9eee5; color: #145d4e; }
.badge.warn { background: #fff0d0; color: #794f08; }
.badge.bad { background: #f9e6e3; color: #8f322f; }
.brand-symbol {
    display: grid;
    flex: none;
    place-items: center;
    overflow: hidden;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(150deg,#35887b,#10594f);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    font-weight: 720;
    box-shadow: inset 0 1px 0 #ffffff50,0 5px 12px #3775692f;
}
.brand-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; background: #f7fcfb; }
.login-body { display: grid; justify-items: center; align-items: safe center; padding: 24px; }
.login-card { width: min(100%,440px); padding: clamp(23px,6.5vw,42px); }
.login-heading { display: flex; gap: 15px; align-items: center; margin-bottom: 29px; }
.login-heading .brand-symbol { width: 50px; height: 50px; }
.login-heading h1 { font-size: clamp(24px,6vw,33px); overflow-wrap: anywhere; }
.login-heading p { margin-bottom: 2px; font-size: 13px; }
.login-card .primary { width: 100%; min-height: 46px; }

@supports (appearance: none) {
    .switch-row input:not(.joined-groups-list input) {
        appearance: none;
        position: relative;
        width: 40px;
        height: 24px;
        border: 1px solid #7d969e;
        border-radius: 20px;
        background: #dde7e9;
        transition: background var(--motion), border-color var(--motion);
    }
    .switch-row input:not(.joined-groups-list input)::before {
        content: "";
        position: absolute;
        inset: 3px auto auto 3px;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 4px #36545f4d;
        transition: transform var(--motion);
    }
    .switch-row input:not(.joined-groups-list input):checked { background: var(--accent); border-color: var(--accent); }
    .switch-row input:not(.joined-groups-list input):checked::before { transform: translateX(16px); }
}
@media (max-width: 550px) {
    .form-grid { grid-template-columns: minmax(0,1fr); }
    input:not([type=checkbox],[type=hidden]), select, textarea { font-size: 16px; }
    .login-body { padding: 16px; }
}
@media (prefers-reduced-transparency: reduce) {
    :root { --glass: var(--solid); }
    body::before { display: none; }
}
@media (forced-colors: active) {
    .switch-row input:not(.joined-groups-list input) { appearance: auto; width: 20px; height: 20px; }
    .switch-row input:not(.joined-groups-list input)::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

