@charset "UTF-8";

:root {
    --navy: #003063;
    --accent: #169fdb;
    --ink: #163452;
    --muted: #597086;
    --line: #dce6ef;
    --surface: #f3f7fb;
    --white: #fff;
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { color: #0876aa; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .2rem solid var(--accent); outline-offset: .2rem; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.04em; }
h2 { font-size: 1.4rem; letter-spacing: -.025em; }
h3 { font-size: 1.12rem; }
p { color: var(--muted); }
small { font-size: .82rem; }
[hidden] { display: none !important; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 10; background: white; padding: 1rem; }
.site-header { background: rgb(10, 96, 143); color: white; }
.header-inner { max-width: 84rem; margin: auto; padding: 1.4rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.brand { display: inline-flex; gap: .85rem; align-items: center; text-decoration: none; color: white; font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em; }
.brand:hover { color: white; }
.agency-logo { display: block; height: 2.5rem; width: auto; max-width: 7rem; object-fit: contain; flex-shrink: 0; }
.brand small { display: block; color: #ccdfed; font-weight: 400; letter-spacing: 0; margin-top: .15rem; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; background: white; color: var(--navy); border-radius: .8rem .8rem .8rem .15rem; padding: .15rem .8rem; font-size: 1.8rem; letter-spacing: -.12em; }
.brand-mark span { color: var(--accent); margin-left: .1rem; }
.account { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.account > span { overflow-wrap: anywhere; }
.account form { margin: 0; flex-shrink: 0; }
.workspace { max-width: 84rem; margin: auto; padding: 2rem 2rem 5rem; min-height: 75vh; }
.breadcrumb { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 2.7rem; overflow-wrap: anywhere; }
.breadcrumb a { text-decoration: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 2.7rem; }
.page-heading .button { flex-shrink: 0; }
.lead { max-width: 44rem; font-size: 1.08rem; margin-bottom: 0; }
.eyebrow { color: #0876aa; font-size: .73rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .75rem; }
.dashboard-layout, .project-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); align-items: start; gap: 2rem; }
.section-heading { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.3rem; }
.section-heading h2 { margin: 0; }
.count { background: #e5f0f8; border-radius: 2rem; padding: .1rem .65rem; font-size: .8rem; color: var(--navy); font-weight: 700; }
.card { background: white; border: 1px solid var(--line); border-radius: 1rem; padding: 1.8rem; box-shadow: 0 .4rem 1.7rem rgba(0, 48, 99, .035); min-width: 0; }
.card > p { font-size: .93rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; text-decoration: none; transition: border-color .2s, transform .2s; }
.project-card:hover { border-color: var(--accent); transform: translateY(-.15rem); }
.project-label { display: flex; justify-content: space-between; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2rem; }
.project-label span { color: var(--accent); font-size: 1.15rem; line-height: 1; }
.project-card h3 { font-size: 1.35rem; }
.project-card p { font-size: .85rem; }
.project-open { margin-top: auto; font-size: .85rem; font-weight: 650; }
.form-card { border-top: .25rem solid var(--accent); scroll-margin-top: 2rem; }
.stack { display: flex; flex-direction: column; gap: 1.15rem; }
.section-stack { gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
label { font-size: .88rem; color: var(--navy); font-weight: 650; }
input { display: block; width: 100%; min-width: 0; background: white; color: var(--ink); border: 1px solid #b8cbdc; border-radius: .45rem; padding: .78rem .9rem; line-height: 1.35; }
input:hover { border-color: #7396b5; }
input:focus { border-color: var(--accent); }
input[readonly] { background: #f5f9fc; font-size: .84rem; }
.field small { color: var(--muted); line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: var(--navy); border: 1px solid var(--navy); border-radius: .5rem; color: white; text-decoration: none; padding: .85rem 1.3rem; font-size: .91rem; font-weight: 650; line-height: 1.4; cursor: pointer; transition: background .2s, border-color .2s; text-align: center; }
.button:hover { background: #075286; border-color: #075286; color: white; }
.button-danger { background: #922d26; border-color: #922d26; }
.button-danger:hover { background: #70211c; border-color: #70211c; }
.danger-zone { border-color: #eac2bc; }
.delete-page { margin-top: .75rem; font-size: .85rem; }
.delete-page summary { color: #922d26; cursor: pointer; }
.delete-page form { margin-top: .8rem; align-items: flex-start; }
.delete-confirm { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; }
.delete-confirm input { width: auto; flex-shrink: 0; margin-top: .3rem; }
.button-small { font-size: .8rem; padding: .55rem .9rem; }
.button-outline { background: transparent; color: var(--navy); border-color: #adc6db; }
.button-outline:hover { background: #eef7fc; border-color: var(--accent); color: var(--navy); }
.button-light { background: transparent; border-color: #7a9bbd; color: white; }
.button-light:hover { background: #164776; border-color: white; }
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state p { max-width: 32rem; margin: 0 auto 1.25rem; }
.empty-state a { font-size: .9rem; font-weight: 650; }
.empty-symbol { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); background: #eaf6fc; padding: .1rem 1rem; border-radius: 1rem; font-size: 2rem; margin-bottom: 1.25rem; }
.empty-state.compact { padding: 2rem 0 .5rem; }
.page-list { margin: 0; padding: 0; list-style: none; }
.page-list li { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.page-list li:last-child { padding-bottom: 0; }
.page-icon { color: #0876aa; background: #edf7fc; padding: .7rem .55rem; border-radius: .5rem; font-family: monospace; font-weight: 700; }
.page-info { flex: 1; min-width: 0; }
.page-info h3 { font-size: 1rem; margin: 0 0 .3rem; }
.page-info a { text-decoration: none; }
.page-info p { font-size: .8rem; margin: 0; overflow-wrap: anywhere; }
.page-list .button { flex-shrink: 0; }
.upload-area { padding: 1.5rem; border: 1px dashed #88b6d4; border-radius: .6rem; background: #f8fbfe; }
.upload-area label { display: block; margin-bottom: .75rem; }
.upload-area.is-dragging { background: #e5f4fd; border-color: var(--accent); outline: .15rem solid var(--accent); outline-offset: .15rem; }
.upload-hint, .upload-status { font-size: .85rem; margin: .75rem 0 0; }
.upload-hint { margin: 0 0 1rem; }
.upload-status:empty { display: none; }
.upload-status.is-error { color: #922d26; }
input[type="file"] { padding: 0; border: 0; background: transparent; font-size: .85rem; line-height: 1.6; }
input[type="file"]::file-selector-button { padding: .6rem .8rem; border: 1px solid #b8cbdc; border-radius: .4rem; background: white; color: var(--navy); margin-right: .8rem; cursor: pointer; }
.share-card { background: linear-gradient(145deg, #fff, #edf7fc); }
.share-card .button { margin-top: .9rem; width: 100%; }
.text-link { font-size: .86rem; font-weight: 600; }
.copy-status { font-size: .8rem; margin: .65rem 0; }
.copy-status:empty { margin: .7rem 0 0; }
.alert { padding: 1rem 1.2rem; border: 1px solid; border-radius: .6rem; margin-bottom: 1.5rem; font-size: .93rem; overflow-wrap: anywhere; }
.alert-error { background: #fff3f2; color: #922d26; border-color: #eac2bc; }
.alert-success { background: #edf9f3; color: #206344; border-color: #bce1ce; }
.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 1.5rem 2rem; font-size: .8rem; color: var(--muted); }
.site-footer span { padding: 0 .4rem; }
.auth-body { background: white; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-story { background: radial-gradient(circle,rgba(10, 96, 143, 1) 0%, rgb(61, 88, 119) 100%), var(--navy); color: white; padding: 3rem clamp(2rem, 5vw, 6rem); display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; }
.auth-story h1 { color: white; font-size: clamp(2.6rem, 4.3vw, 4.6rem); max-width: 37rem; }
.auth-story p:not(.eyebrow) { color: #d4e6f3; font-size: 1.1rem; max-width: 31rem; line-height: 1.8; }
.auth-story .eyebrow { color: #8dd9fa; }
.auth-story > small { color: #c4dfef; }
.story-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.story-tags span { border: 1px solid #648baa; border-radius: 3rem; padding: .4rem .8rem; font-size: .75rem; color: #deedf6; }
.auth-form-area { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.auth-form { max-width: 27rem; width: 100%; }
.auth-form h2 { font-size: 2rem; }
.auth-form > p { font-size: .95rem; }
.auth-tabs { display: flex; gap: 1.7rem; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem; }
.auth-tabs a { text-decoration: none; font-size: .9rem; color: var(--muted); padding-bottom: .8rem; border-bottom: .2rem solid transparent; }
.auth-tabs a[aria-current] { color: var(--navy); border-color: var(--accent); font-weight: 700; }
.auth-form form { margin-top: 1.6rem; }
.auth-form .auth-note { font-size: .8rem; margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.3rem; }
@media (max-width: 64rem) {
    .dashboard-layout, .project-layout { grid-template-columns: minmax(0, 1fr) minmax(17rem, 20rem); gap: 1.25rem; }
    .project-grid { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 1.4rem; }
    .brand small { display: none; }
    .auth-story { padding: 2.5rem; }
}
@media (max-width: 48rem) {
    .header-inner { padding: 1.1rem 1.25rem; gap: 1rem; flex-wrap: wrap; }
    .account { margin-left: auto; font-size: .8rem; gap: .7rem; }
    .brand { font-size: 1.05rem; }
    .brand-mark { font-size: 1.5rem; padding: .15rem .6rem; }
    .workspace { padding: 1.4rem 1.1rem 3rem; }
    .breadcrumb { margin-bottom: 2rem; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
    .dashboard-layout, .project-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .form-card { order: 0; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth-layout { grid-template-columns: minmax(0, 1fr); }
    .auth-story { padding: 1.7rem; gap: 2rem; }
    .auth-story h1 { font-size: 2.4rem; }
    .auth-story p:not(.eyebrow) { font-size: .95rem; margin: 0; }
    .auth-story > small, .story-tags { display: none; }
    .auth-form-area { padding: 2rem 1.5rem; }
    .auth-form { max-width: 32rem; }
    .auth-form h2 { font-size: 1.7rem; }
}
@media (max-width: 30rem) {
    .project-grid { grid-template-columns: minmax(0, 1fr); }
    .account > span { max-width: 8rem; }
    .page-list li { flex-wrap: wrap; gap: .75rem; }
    .page-info { flex-basis: 60%; }
    .page-list .button { margin-left: auto; }
    .upload-area { padding: 1rem; }
    .site-footer { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

main.wrap { max-width: 60rem; margin: 0 auto; padding: 3rem 1.5rem; }
main.wrap.auth-wrap { max-width: 30rem; margin: 4rem auto; padding: 2.5rem; background: white; border: 1px solid var(--line); border-top: .25rem solid var(--accent); border-radius: 1rem; box-shadow: 0 .4rem 1.7rem rgba(0, 48, 99, .035); }
main.wrap .notice.error { padding: 1rem 1.2rem; margin: 0 0 1.5rem; background: #fff3f2; color: #922d26; border: 1px solid #eac2bc; border-radius: .6rem; font-size: .93rem; overflow-wrap: anywhere; }
main.wrap .page-list { display: grid; gap: 1rem; }
main.wrap .page-list > a.card { display: block; text-decoration: none; overflow-wrap: anywhere; transition: border-color .2s, transform .2s; }
main.wrap .page-list > a.card:hover { border-color: var(--accent); transform: translateY(-.15rem); }
main.wrap .page-list > a.card > :last-child { margin-bottom: 0; }
main.wrap form > label { display: block; margin: 1.15rem 0 .4rem; }
main.wrap form > input:not([type="hidden"]) { margin-bottom: 1.15rem; }
main.wrap form > button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: var(--navy); border: 1px solid var(--navy); border-radius: .5rem; color: white; padding: .85rem 1.3rem; font-size: .91rem; font-weight: 650; line-height: 1.4; cursor: pointer; transition: background .2s, border-color .2s; }
main.wrap form > button:hover { background: #075286; border-color: #075286; }
@media (max-width: 48rem) {
    main.wrap { padding: 2rem 1.1rem; }
    main.wrap.auth-wrap { margin: 2rem auto; padding: 1.75rem; max-width: min(30rem, calc(100% - 2.2rem)); }
}
@media (prefers-reduced-motion: reduce) {
    main.wrap .page-list > a.card, main.wrap form > button { transition: none; }
}
