/* Home: sign-in / sign-up, the project list, project settings. Builds on style.css. */
body.home { overflow: auto; background: var(--bg); }
.grow { flex: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.land { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; max-width: 1040px; margin: 0 auto; padding: 40px 24px; }
.pitch h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 28px 0 14px; text-wrap: balance; }
.pitch p { font-size: 17px; line-height: 1.55; color: #55524b; max-width: 46ch; margin: 0 0 22px; }
.pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.pitch li { display: flex; gap: 12px; align-items: center; }
.pitch li .ic { width: 20px; height: 20px; color: var(--lime-deep); flex: none; }
.card.auth .forgot { display: inline-block; font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.card.auth .actions .btn { width: 100%; justify-content: center; }
.err.ok { color: #2d7a12; }
@media (max-width: 820px) { .land { grid-template-columns: 1fr; gap: 28px; padding: 28px 16px; } .pitch ul { display: none; } .pitch h1 { margin-top: 18px; } .land .card { width: 100%; } }

.hub-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 20px; background: rgba(244, 243, 238, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--panel-border); }
.hub-top .btn { height: 38px; gap: 8px; padding: 0 10px; font-weight: 600; font-size: 14px; text-decoration: none; }
.hub-top .chev { width: 14px; height: 14px; color: var(--muted); }
.acct { position: relative; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 250px; padding: 6px; display: none; flex-direction: column; gap: 1px; }
.acct-menu.show { display: flex; }
.acct-menu .who { display: grid; gap: 2px; padding: 8px 12px 10px; font-size: 14px; } .acct-menu .who span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); text-align: left; }
.acct-menu a:hover, .acct-menu button:hover { background: rgba(0,0,0,.05); }
.acct-menu .ic { width: 18px; height: 18px; color: var(--muted); } .acct-menu small { margin-left: auto; color: var(--muted); font-weight: 500; }
.acct-menu hr { border: 0; border-top: 1px solid rgba(0,0,0,.08); margin: 5px 6px; }
.hub-body { max-width: 980px; margin: 0 auto; padding: 28px 20px 80px; display: grid; gap: 30px; }
.hub-body h2 { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sec-head { display: flex; align-items: center; margin-bottom: 14px; min-height: 40px; } .sec-head .btn { height: 40px; padding: 0 14px 0 10px; gap: 6px; font-weight: 700; }
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--lime-soft); font-size: 14px; }
.notice.warn { background: var(--lemon-soft); } .notice .btn { height: 34px; padding: 0 12px; background: #fff; font-weight: 600; font-size: 13px; margin-left: auto; }
.projs { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.proj { position: relative; display: grid; gap: 14px; padding: 18px; background: #fff; border-radius: 16px; border: 1px solid var(--panel-border); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.proj h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; overflow-wrap: anywhere; padding-right: 34px; }
.proj .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.proj .go { display: flex; gap: 8px; } .proj .go a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; background: #f4f3ee; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.proj .go a:first-child { background: var(--lime); color: var(--lime-ink); } .proj .go a:hover { filter: brightness(.96); } .proj .go .ic { width: 17px; height: 17px; }
.proj .gear { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; } .proj .gear .ic { width: 17px; height: 17px; color: var(--muted); }
.proj.susp { opacity: .6; } .tagp { display: inline-block; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,.06); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #55524b; vertical-align: 2px; margin-left: 6px; }
.empty { color: var(--muted); font-size: 15px; max-width: 60ch; }
.invs { display: grid; gap: 8px; margin-top: 12px; }
.inv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border-radius: 12px; border: 1px solid var(--panel-border); font-size: 14px; }
.inv .btn { height: 36px; padding: 0 14px; font-weight: 600; }

.card.wide { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 20px 22px; }
.card .hint, .pm-body .hint { font-size: 13px; color: var(--muted); margin: -4px 0 12px; line-height: 1.45; } .hint a { color: inherit; }
.kstate { font-size: 14px; margin: 0 0 14px; } .kstate b { font-family: var(--mono); }
.pm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .pm-head h2 { margin: 0; overflow-wrap: anywhere; }
.pm-tabs { display: flex; gap: 4px; background: rgba(0,0,0,.05); padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.pm-tabs .tab { flex: 1; height: 34px; border: 0; border-radius: 7px; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); }
.pm-tabs .tab.active { background: var(--lime); color: var(--lime-ink); }
.pm-body { overflow: auto; min-height: 200px; display: grid; gap: 4px; align-content: start; font-size: 14px; }
.pm-body h4 { margin: 14px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); } .pm-body h4:first-child { margin-top: 2px; }
.pm-body .row { display: flex; gap: 8px; align-items: center; } .pm-body .row input, .pm-body .row select { height: 40px; border-radius: 10px; border: 1.5px solid rgba(0,0,0,.12); background: #fafaf8; padding: 0 12px; font-size: 15px; min-width: 0; }
.pm-body .row input { flex: 1; } .pm-body .btn { height: 40px; padding: 0 14px; font-weight: 600; white-space: nowrap; } .pm-body .btn:not(.primary) { background: #f4f3ee; } .pm-body .btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.mem { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.06); } .mem:last-child { border: 0; }
.mem .nm { display: grid; min-width: 0; flex: 1; } .mem .nm span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem select { height: 32px; border-radius: 8px; border: 1px solid rgba(0,0,0,.14); background: #fff; font-size: 13px; padding: 0 6px; } .mem .role { font-size: 12.5px; color: var(--muted); }
.pay { padding: 12px 14px; border-radius: 12px; background: #f4f3ee; line-height: 1.45; margin-bottom: 6px; } .pay.on { background: var(--lime-soft); } .pay.off { background: var(--lemon-soft); }
.sw-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; } .sw-row span { flex: 1; } .sw-row small { display: block; color: var(--muted); }
.sw-row input { width: 18px; height: 18px; accent-color: var(--lime-deep); }
.linkbox { font-family: var(--mono); font-size: 12.5px; }
.pm-msg { min-height: 18px; font-size: 13px; color: var(--danger); margin-top: 6px; } .pm-msg.ok { color: #2d7a12; }
@media (max-width: 560px) { .hub-top { padding: 0 12px; } #meName { display: none; } .hub-body { padding: 20px 14px 60px; } .pm-body .row { flex-wrap: wrap; } }
