




:root {
    
    --tint: #DEECFF;
    --tint-50: #F4F8FF;
    --tint-100: #EAF2FF;
    --tint-300: #C6DBF7;
    --tint-400: #A8C9F7;

    --white: #FFFFFF;
    --ink: #000000;
    --ink-2: rgba(0, 0, 0, 0.68);
    --ink-3: rgba(0, 0, 0, 0.5);

    --line: #E1EAF7;
    --line-strong: #C6DBF7;

    
    --ok: #0A7C42;
    --ok-bg: #E1F4E9;
    --bad: #B3261E;
    --bad-bg: #FDE8E6;
    --warn: #8A5A00;
    --warn-bg: #FFF1CF;

    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;

    --shadow-pop: 0 24px 60px -16px rgba(10, 40, 100, 0.28), 0 0 0 1px rgba(10, 40, 100, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--tint);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }


.icon {
    display: inline-block;
    flex: none;
    font-size: 18px;
    line-height: 1;
    vertical-align: middle;
}
.icon-sm { font-size: 16px; }
.icon-lg { font-size: 24px; }

@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .icon { animation: spin 0.9s linear infinite; }


:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }

.btn-primary { background: #000; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #262626; }

.btn-secondary { background: var(--tint); color: #000; border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: #CFE2FF; border-color: var(--tint-400); }

.btn-outline { background: #fff; color: #000; border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { background: var(--tint-50); border-color: var(--tint-400); }

.btn-ghost { background: transparent; color: #000; }
.btn-ghost:hover:not(:disabled) { background: var(--tint); }
.btn-ghost[aria-pressed="true"] { background: var(--tint); }

.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; border-radius: 7px; }
.btn-sm .icon { font-size: 16px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 14.5px; }
.btn-block { width: 100%; }


.field { display: block; margin-bottom: 16px; }
.field-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.field-hint { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

.input-wrap { position: relative; }
.input-wrap > .icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--ink-3);
    pointer-events: none;
}

.input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 40px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: #fff;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: #9FBFEF; }
.input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px var(--tint); }
.input[readonly] { background: var(--tint-50); color: var(--ink-2); cursor: default; }
.input[readonly]:hover { border-color: var(--line-strong); }
textarea.input { height: auto; padding: 10px 12px; line-height: 1.55; resize: vertical; }


.callout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.45;
}
.callout .icon { margin-top: 1px; }
.callout.bad  { background: var(--bad-bg);  border-color: #F3C1BD; color: #7A1A14; }
.callout.ok   { background: var(--ok-bg);   border-color: #B9E3C9; color: #0A5C33; }
.callout.warn { background: var(--warn-bg); border-color: #F0D58C; color: #6B4500; }
.callout.info { background: var(--tint-50); border-color: var(--line-strong); color: #000; }


.bar { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #000; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .is-loading .icon { animation: spin 0.9s linear infinite !important; }
}