:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #18231f; background: #f3f6f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { height: 64px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d9e1dc; background: rgba(255,255,255,.96); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand span { width: 34px; height: 34px; display: grid; place-items: center; background: #1f5c49; color: white; border-radius: 6px; font-family: Georgia, serif; font-size: 22px; }
.brand strong { font-size: 16px; }
#account-actions { display: flex; align-items: center; gap: 16px; color: #53645d; font-size: 14px; }
#account-actions a, .text-button { color: #315c4d; background: none; border: 0; text-decoration: none; cursor: pointer; }
main { min-height: calc(100vh - 64px); }
.auth-view { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(300px, 560px) 1fr; align-items: stretch; }
.auth-copy { padding: 11vh 7vw; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.eyebrow { margin: 0 0 12px; color: #277357; font-size: 13px; font-weight: 700; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 42px; letter-spacing: 0; line-height: 1.12; }
.auth-copy > p:not(.eyebrow) { color: #5a6862; font-size: 17px; line-height: 1.8; margin: 24px 0 32px; max-width: 500px; }
.auth-visual { overflow: hidden; background: #dce8e2; }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.primary, .secondary { min-height: 42px; border-radius: 6px; padding: 0 18px; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; cursor: pointer; font-weight: 650; border: 1px solid transparent; }
.primary { background: #1f5c49; color: white; }
.primary:hover { background: #174738; }
.secondary { background: white; color: #274b3e; border-color: #b9c8c0; }
.auth-copy > .primary { align-self: flex-start; }
.login-progress { margin-top: 24px; border-left: 3px solid #3e8168; padding: 12px 0 12px 16px; display: grid; grid-template-columns: auto auto; gap: 10px 14px; align-items: center; }
.login-progress strong { font-family: ui-monospace, monospace; font-size: 20px; }
.login-progress span { grid-column: 1 / -1; color: #66736e; font-size: 13px; }
.projects-view { max-width: 1120px; margin: 0 auto; padding: 64px 28px; }
.projects-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid #d7e0db; padding-bottom: 28px; }
.projects-head h1 { font-size: 34px; }
.usage-line { color: #64716c; margin: 18px 0 26px; font-size: 14px; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-card { position: relative; border: 1px solid #d4ddd8; background: #fff; border-radius: 7px; min-height: 112px; }
.project-open { height: 100%; display: flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; padding: 24px 42px 24px 22px; }
.project-open:hover { background: #f8fbf9; }
.project-icon { flex: 0 0 42px; width: 42px; height: 50px; display: grid; place-items: center; background: #e1eee8; color: #24624d; border-radius: 4px; font-family: Georgia, serif; font-size: 21px; }
.project-open strong, .project-open small { display: block; overflow-wrap: anywhere; }
.project-open strong { font-size: 15px; margin-bottom: 8px; }
.project-open small { color: #718079; }
.project-menu { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border: 0; background: transparent; color: #87958e; font-size: 20px; cursor: pointer; border-radius: 4px; }
.project-menu:hover { background: #f5e8e8; color: #9b3030; }
.empty-projects { grid-column: 1 / -1; min-height: 220px; border: 1px dashed #b9c8c0; display: grid; place-content: center; text-align: center; gap: 8px; color: #69766f; }
.empty-projects strong { color: #263d34; }
dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid #ccd8d1; border-radius: 7px; padding: 0; box-shadow: 0 22px 60px rgba(20,40,32,.18); }
dialog::backdrop { background: rgba(22,35,30,.45); }
dialog form { padding: 26px; }
dialog h2 { margin: 0 0 24px; font-size: 20px; }
dialog label { display: grid; gap: 8px; font-size: 13px; font-weight: 650; }
dialog input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #b9c6c0; border-radius: 5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.error { color: #a03333; min-height: 20px; font-size: 13px; }
@media (max-width: 820px) { .auth-view { grid-template-columns: 1fr; } .auth-copy { padding: 70px 24px; } .auth-visual { height: 28vh; order: -1; } h1 { font-size: 36px; } .project-list { grid-template-columns: 1fr; } .projects-head { align-items: flex-start; flex-direction: column; } }
