:root { color-scheme: light; --ink: #1e293b; --muted: #475569; --accent: #0e7490; --heading: #0c4a6e; --border: #e0f2fe; --paper: #f0f9ff; --white: #fff; --soft: #ecfeff; --highlight: #cffafe; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
input, select, textarea { color: var(--ink); background: white; border: 1px solid #cbd5e1; border-radius: 9px; min-height: 46px; padding: 12px 14px; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[readonly] { background: var(--paper); }
textarea { resize: vertical; min-height: 120px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); }
h1 { font-size: clamp(30px, 3.3vw, 42px); font-weight: 550; letter-spacing: -1.7px; line-height: 1.15; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.5px; }
h3 { font-weight: 600; font-size: 19px; letter-spacing: -.4px; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow { display: block; text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: 2px; margin-bottom: 14px; color: var(--accent); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; letter-spacing: -.3px; }
.brand small { display: block; font-weight: 400; font-size: 10px; margin-top: 3px; letter-spacing: .3px; color: var(--muted); }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; background: linear-gradient(135deg, var(--heading), var(--accent)); color: #fff; border-radius: 12px; font-size: 13px; letter-spacing: -1px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 20px; border: 1px solid transparent; border-radius: 8px; font-weight: 550; font-size: 13px; white-space: normal; text-align: center; }
.primary { background: linear-gradient(135deg, var(--heading), var(--accent)); color: #fff; }
.primary:hover { background: var(--heading); }
.secondary { background: #fff; border-color: #cbd5e1; color: var(--ink); }
.secondary:hover { background: var(--paper); }
.full { width: 100%; }
.compact { min-height: 42px; padding: 8px 16px; }
.text-button { border: 0; background: none; color: #475569; padding: 10px 0 10px 12px; min-height: 44px; font-size: 12px; }
.text-button:hover, .back-link:hover { color: var(--accent); text-decoration: underline; }
.back-link { display: inline-block; color: var(--muted); font-size: 12px; padding: 12px 0; }
.notice { border-radius: 9px; padding: 14px 18px; margin: 0 0 24px; font-size: 13px; overflow-wrap: anywhere; }
.notice a { text-decoration: underline; font-weight: 600; }
.notice.error { border: 1px solid #ecd1c9; background: #fff4ef; color: #943f2b; }
.notice.success { border: 1px solid var(--highlight); background: var(--soft); color: var(--accent); }
.privacy-dot, .metric-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #0891b2; margin-right: 7px; flex-shrink: 0; }
.auth-layout { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 9%; background: linear-gradient(135deg, #0c4a6e, #0e7490); color: #fff; }
.auth-intro::after { content: ''; position: absolute; width: 750px; height: 750px; border: 1px solid rgba(255,255,255,.15); border-radius: 45%; transform: rotate(-30deg); bottom: -470px; right: -220px; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 36px rgba(255,255,255,.12), 0 0 0 70px rgba(255,255,255,.025), 0 0 0 71px rgba(255,255,255,.1), 0 0 0 108px rgba(255,255,255,.025), 0 0 0 109px rgba(255,255,255,.08); pointer-events: none; }
.auth-intro > * { position: relative; z-index: 1; }
.auth-intro .brand-icon { background: var(--highlight); color: var(--heading); }
.auth-intro .brand small { color: var(--highlight); }
.auth-intro .privacy-dot { background: var(--highlight); }
.auth-intro a:focus-visible { outline-color: #fff; }
.auth-story { padding: 80px 0 120px; }
.auth-story .eyebrow { color: var(--highlight); font-size: 9px; }
.auth-story h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; font-weight: 450; letter-spacing: -2px; color: #fff; }
.auth-story p { color: var(--soft); max-width: 320px; margin-top: 26px; line-height: 1.8; }
.auth-footnote { font-size: 11px; color: #fff; }
.auth-panel { padding: 36px 10%; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, var(--paper), #fff); }
.auth-box { max-width: 370px; width: 100%; margin: auto; padding: 52px 0; }
.auth-box h2 { font-size: 29px; line-height: 1.2; font-weight: 550; letter-spacing: -1px; margin-bottom: 14px; }
.auth-box > .muted { font-size: 13px; margin-bottom: 30px; }
.auth-box .eyebrow { font-size: 9px; }
.auth-security { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; }
.auth-copyright { font-size: 10px; color: var(--muted); padding: 16px 0; text-align: center; }
.stack-form { display: flex; flex-direction: column; }
.stack-form label { font-size: 12px; font-weight: 550; margin-bottom: 8px; }
.stack-form input, .stack-form select, .stack-form textarea, .password-field, .money-field { margin-bottom: 22px; width: 100%; }
.stack-form .field-help { margin-top: -10px; margin-bottom: 24px; }
.stack-form .button { margin-top: 4px; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.7; }
.password-field, .money-field { position: relative; }
.password-field input { padding-right: 68px; margin-bottom: 0; }
.password-toggle { position: absolute; right: 6px; top: 3px; bottom: 3px; min-width: 52px; border: 0; border-radius: 6px; color: var(--accent); background: transparent; font-size: 12px; }
.password-toggle:hover { background: var(--paper); }
.money-field input { padding-right: 102px; margin: 0; }
.money-field > span { position: absolute; right: 14px; top: 14px; color: var(--muted); font-size: 11px; pointer-events: none; }
.sidebar { width: 236px; position: fixed; inset: 0 auto 0 0; padding: 32px 24px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border); }
.sidebar .brand { font-size: 14px; color: var(--heading); }
.sidebar-section { color: var(--muted); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; margin: 48px 12px 16px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a { padding: 12px 14px; min-height: 46px; display: flex; align-items: center; gap: 12px; border-radius: 8px; font-size: 12px; color: #475569; }
.side-nav a > span { font-size: 17px; width: 18px; text-align: center; }
.side-nav a[aria-current] { background: linear-gradient(135deg, var(--soft), var(--highlight)); color: var(--accent); font-weight: 600; }
.side-nav a:hover { background: var(--paper); }
.sidebar-bottom { margin-top: auto; font-size: 10px; color: var(--muted); padding: 28px 8px 0; line-height: 1.9; }
.sidebar-email { display: block; margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.workspace { margin-left: 236px; min-width: 0; }
.topbar { min-height: 77px; padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); font-size: 12px; }
.topbar-brand { display: none; }
.private-label { display: inline-block; color: var(--accent); background: var(--soft); border: 1px solid var(--highlight); padding: 3px 9px; border-radius: 5px; font-size: 9px; margin-left: 10px; }
.workspace-content { max-width: 1460px; padding: 40px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.page-heading .muted { margin-top: 12px; font-size: 13px; }
.page-heading .eyebrow { font-size: 9px; margin-bottom: 12px; }
.period-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.period-bar > span { font-size: 10px; color: var(--muted); }
.period-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.period-form label { font-size: 11px; color: var(--muted); }
.period-form input { min-height: 42px; padding: 8px 10px; font-size: 12px; width: 166px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metric { border: 1px solid var(--border); border-radius: 12px; background: white; padding: 22px 24px; min-width: 0; }
.metric-label { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--muted); }
.metric-label > span { font-size: 16px; color: var(--accent); }
.metric strong { display: block; margin: 17px 0 12px; font-size: clamp(23px, 2.4vw, 36px); font-weight: 550; letter-spacing: -1.3px; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; color: var(--heading); }
.metric small { display: block; font-size: 10px; color: var(--muted); }
.metric.accent { background: linear-gradient(135deg, var(--soft), var(--highlight)); border-color: var(--highlight); }
.summary-help { color: var(--muted); font-size: 10px; margin: 14px 0 32px; }
.list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.list-heading h2 { font-size: 19px; }
.list-heading > span { font-size: 10px; }
.count-badge { font-size: 11px; background: var(--soft); color: var(--accent); border: 1px solid var(--highlight); padding: 2px 7px; border-radius: 5px; vertical-align: middle; margin-left: 7px; font-weight: 500; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; align-items: center; }
.search-field { position: relative; flex: 1; min-width: 190px; }
.search-field input { width: 100%; font-size: 12px; padding-left: 38px; }
.search-field > span { position: absolute; left: 14px; top: 9px; font-size: 20px; color: var(--muted); }
.filters select { min-width: 165px; font-size: 12px; }
.reset-link { font-size: 11px; text-decoration: underline; padding: 10px; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.site-card { padding: 24px; min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; }
.site-card-hidden { background: #f8fafc; border-style: dashed; }
.visibility-form { margin: 0 0 18px; }
.visibility-form[aria-busy="true"] { opacity: .65; pointer-events: none; }
.visibility-choice, .stack-form .visibility-choice { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 12px; line-height: 1.5; cursor: pointer; }
.visibility-choice input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
.visibility-choice small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.stack-form .visibility-choice { margin-bottom: 24px; }
.visibility-submit { margin-top: 10px; }
.visibility-submit[hidden] { display: none; }
.hidden-projects-link { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: underline; }
.site-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.site-avatar { width: 42px; height: 42px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--accent); }
.status-badge { display: inline-flex; gap: 6px; align-items: center; padding: 4px 9px; border-radius: 5px; font-size: 10px; color: #475569; background: #f1f5f9; }
.status-badge > span { display: block; background: currentColor; width: 4px; height: 4px; border-radius: 50%; }
.status-actif { color: var(--accent); background: var(--soft); }
.status-pause { color: #977640; background: #fbf5e8; }
.status-archive { color: var(--muted); background: #f1f5f9; }
.site-card h3 { overflow-wrap: anywhere; }
.site-link { font-size: 11px; color: var(--muted); margin: 5px 0 24px; display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.site-link:hover { color: var(--accent); text-decoration: underline; }
.site-link span { flex-shrink: 0; }
.site-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 12px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.site-metrics dt { font-size: 10px; color: var(--muted); }
.site-metrics dd { margin: 7px 0 0; font-weight: 550; font-size: 19px; letter-spacing: -.6px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.site-note { margin: 18px 0 22px; font-size: 12px; color: #475569; white-space: pre-line; overflow-wrap: anywhere; }
.site-note.no-note { color: var(--muted); font-style: italic; }
.site-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 9px; color: var(--muted); }
.site-card-bottom time { display: block; }
.site-card-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 11px; color: var(--accent); }
.site-card-bottom a:hover { text-decoration: underline; }
.empty-state { padding: 52px 24px; border: 1px dashed #cbd5e1; background: #fff; border-radius: 12px; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 22px; background: var(--soft); color: var(--accent); border-radius: 15px; font-size: 24px; }
.empty-state p { max-width: 390px; margin: 14px auto 26px; color: var(--muted); font-size: 13px; }
.panel { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 28px; min-width: 0; }
.panel.narrow { max-width: 580px; }
.panel.narrow > .muted { margin: 12px 0 28px; font-size: 12px; }
.panel-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.panel-heading p { font-size: 11px; margin-top: 4px; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; background: var(--soft); border-radius: 10px; color: var(--accent); font-size: 12px; }
.editor { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.editor-actions { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center; gap: 20px; padding: 4px 0; }
.editor-actions > .muted { font-size: 11px; }
.editor-actions > div { display: flex; gap: 10px; }
.optional { font-size: 10px; color: var(--muted); font-weight: normal; margin-left: 6px; }
.required { color: var(--accent); }
.period-note { background: var(--paper); padding: 18px; border-radius: 8px; margin-bottom: 28px; }
.period-note span, .period-note small { display: block; font-size: 11px; color: var(--muted); }
.period-note strong { display: block; font-size: 15px; margin: 5px 0 8px; font-weight: 550; }
.workspace-footer { color: var(--muted); font-size: 10px; margin-top: 48px; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.metric-label, .metric small, .summary-help, .site-link, .site-metrics dt, .site-card-bottom, .workspace-footer, .sidebar-email, .sidebar-section, .period-bar > span, .optional, .auth-copyright, .site-note.no-note { color: var(--muted); }
.status-preparation { color: #475569; }
.status-pause { color: #80602c; }
.status-archive { color: var(--muted); }
@media (min-width: 1500px) { .site-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
    .sidebar { width: 206px; padding: 28px 18px; }
    .sidebar .brand { font-size: 12px; }
    .workspace { margin-left: 206px; }
    .workspace-content { padding: 30px 24px; }
    .topbar { padding: 14px 24px; }
    .metric { padding: 18px; }
    .site-card { padding: 20px; }
    .editor { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 14px; }
    input, select, textarea, .filters input, .filters select, .period-form input { font-size: 16px; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-intro { padding: 24px; min-height: auto; }
    .auth-intro::after, .auth-story, .auth-footnote { display: none; }
    .auth-panel { padding: 12px 24px 24px; }
    .auth-box { padding: 32px 0; }
    .auth-box h2 { font-size: 28px; }
    .auth-copyright { margin-top: auto; }
    .sidebar { position: static; width: auto; padding: 20px 20px 0; border-right: 0; border-bottom: 1px solid var(--border); }
    .sidebar .brand { font-size: 15px; }
    .sidebar-section, .sidebar-bottom { display: none; }
    .side-nav { flex-direction: row; margin-top: 18px; gap: 6px; padding-bottom: 12px; }
    .side-nav a { padding: 10px 12px; font-size: 11px; gap: 7px; flex: 1; justify-content: center; }
    .side-nav a > span { font-size: 16px; width: auto; }
    .workspace { margin: 0; }
    .topbar { padding: 8px 20px; min-height: 60px; }
    .private-label { font-size: 8px; margin-left: 5px; }
    .workspace-content { padding: 28px 20px; }
    .page-heading { align-items: flex-start; margin-bottom: 26px; gap: 20px; }
    .page-heading .button { width: 100%; }
    h1 { font-size: 33px; letter-spacing: -1.4px; }
    .metrics { grid-template-columns: 1fr; gap: 12px; }
    .metric, .metric:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; }
    .metric strong, .metric:first-child strong { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; text-align: right; }
    .metric:first-child .metric-label > span { display: none; }
    .metric { padding: 18px 15px; }
    .metric strong { font-size: 24px; letter-spacing: -.8px; }
    .metric-label { font-size: 10px; }
    .metric-label > span { display: none; }
    .metric small, .metric-label, .site-metrics dt { font-size: 11px; }
    .stack-form label { font-size: 13px; }
    .field-help, .site-card-bottom { font-size: 12px; }
    .period-bar { gap: 12px; }
    .period-form { gap: 8px; width: 100%; }
    .period-form label { width: 100%; }
    .period-form input { flex: 1; min-width: 0; }
    .period-bar > span { font-size: 9px; }
    .list-heading { align-items: flex-start; }
    .list-heading > span { font-size: 9px; max-width: 105px; text-align: right; }
    .search-field { flex-basis: 100%; }
    .filters select { flex: 1 1 100%; min-width: 0; width: 100%; }
    .site-grid { grid-template-columns: 1fr; gap: 16px; }
    .site-card { padding: 22px; }
    .site-note { font-size: 13px; }
    .site-card-bottom { font-size: 10px; }
    .site-card-bottom a { font-size: 12px; }
    .panel { padding: 22px; }
    .editor { gap: 18px; }
    .editor-actions { flex-direction: column; align-items: stretch; }
    .editor-actions > div { display: grid; grid-template-columns: 1fr 2fr; }
    .editor-actions .button { padding: 12px; font-size: 12px; }
    .workspace-footer { line-height: 1.8; margin-top: 32px; }
}
@media (max-width: 360px) {
    .workspace-content, .topbar { padding-left: 14px; padding-right: 14px; }
    .sidebar { padding-left: 14px; padding-right: 14px; }
    .side-nav a { padding: 10px 8px; }
    .side-nav a > span { display: none; }
    .metric strong { font-size: 21px; }
    .site-card { padding: 18px; }
    .site-metrics { gap: 8px; }
    .site-metrics dd { font-size: 18px; }
    .private-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
