:root {
    color-scheme: light;
    --canvas: #f6f7f4;
    --surface: #ffffff;
    --ink: #18211e;
    --muted: #69736f;
    --line: #dce2de;
    --accent: #e85d3f;
    --accent-dark: #c94329;
    --teal: #0f766e;
    --shadow: 0 18px 45px rgba(28, 42, 37, 0.1);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    width: min(1180px, calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 760; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 7px; }
.brand-mark svg { width: 19px; }
.service-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.service-state span { width: 8px; height: 8px; border-radius: 50%; background: #28a66a; box-shadow: 0 0 0 4px rgba(40, 166, 106, .12); }

.entry-layout {
    width: min(1080px, calc(100% - 40px));
    min-height: calc(100vh - 132px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    align-items: center;
    gap: clamp(48px, 9vw, 120px);
    padding: 42px 0 70px;
}
.entry-copy { max-width: 520px; }
.eyebrow { margin: 0 0 18px; color: var(--teal); font-size: 13px; font-weight: 750; text-transform: uppercase; }
h1 { margin: 0; max-width: 520px; font-size: clamp(42px, 6vw, 72px); line-height: .98; font-weight: 800; }
.lead { max-width: 470px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.feature-list { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 34px; }
.feature-list div { display: inline-flex; align-items: center; gap: 8px; color: #44504b; font-size: 14px; }
.feature-list svg { width: 17px; color: var(--teal); }

.create-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: clamp(24px, 4vw, 38px); }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.panel-heading > svg { width: 25px; color: var(--accent); }
.step-label { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h2 { margin: 6px 0 0; font-size: 25px; }
form { display: grid; gap: 23px; padding-top: 27px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 6px; background: #f0f3f1; }
.auth-tabs button { min-height: 36px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 680; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(28, 42, 37, .08); }
.account-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.account-bar-visible { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.account-bar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; }
.account-bar button { margin-left: auto; padding: 5px 0; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 11px; }
.account-bar button:hover { color: var(--accent-dark); }
.field { display: grid; gap: 9px; color: #35413c; font-size: 14px; font-weight: 680; }
.field em { color: var(--muted); font-size: 12px; font-style: normal; font-weight: 500; }
.field small { color: #89918e; font-size: 11px; font-weight: 500; }
.input-wrap { min-height: 50px; display: flex; align-items: center; gap: 10px; border: 1px solid #cbd3cf; border-radius: 6px; padding: 0 13px; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, .1); }
.input-wrap > svg { width: 18px; flex: 0 0 auto; color: #85908b; }
input { min-width: 0; width: 100%; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
input::placeholder { color: #a1aaa6; }
.icon-button { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: #f0f3f1; color: var(--ink); }
.icon-button svg { width: 18px; }
.primary-button { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 720; cursor: pointer; transition: background .18s, transform .18s; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary-button svg { width: 19px; }
.alert { margin-top: 22px; padding: 11px 13px; border-left: 3px solid #cc3f33; background: #fff2f0; color: #8d2f27; font-size: 13px; }
.recent { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.recent-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.recent-heading button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.recent-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.recent-list a { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; color: #37423e; text-decoration: none; font-size: 12px; }
.recent-list a:hover { border-color: var(--teal); color: var(--teal); }
footer { height: 56px; display: grid; place-items: center; color: #8d9692; font-size: 11px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--teal); }

@media (max-width: 760px) {
    .site-header { width: min(100% - 28px, 680px); height: 66px; }
    .entry-layout { width: min(100% - 28px, 560px); min-height: auto; grid-template-columns: 1fr; gap: 34px; padding: 42px 0 52px; }
    .entry-copy { padding: 0 4px; }
    h1 { font-size: clamp(40px, 13vw, 58px); }
    .lead { margin-top: 20px; font-size: 16px; }
    .feature-list { margin-top: 24px; }
    .create-panel { padding: 24px 20px; }
    .auth-tabs { margin-top: 18px; }
}

@media (max-width: 390px) {
    .service-state { font-size: 0; }
    .feature-list { display: grid; }
    .create-panel { padding: 22px 16px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
