:root {
  color-scheme: dark;
  --bg: #11110f;
  --surface: #181815;
  --surface-2: #20201c;
  --line: #2e2e29;
  --text: #f5f2e9;
  --muted: #99988f;
  --lime: #d4ff54;
  --coral: #ff7667;
  --blue: #69a7ff;
  --amber: #ffc762;
  --green: #6dd8a0;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.is-hidden { display: none !important; }
.button-reset { border: 0; background: transparent; cursor: pointer; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 50% 15%, rgba(212,255,84,.08), transparent 28%), #11110f; overflow: hidden; position: relative; }
.login-screen::after { content: ""; position: absolute; right: -120px; bottom: -260px; width: 620px; height: 620px; border: 1px solid rgba(212,255,84,.07); border-radius: 50%; box-shadow: 0 0 0 90px rgba(212,255,84,.018), 0 0 0 180px rgba(212,255,84,.012); pointer-events: none; }
.login-layout { position: relative; z-index: 1; width: min(100%, 420px); }
.login-card { width: 100%; padding: 34px; border: 1px solid #33332d; border-radius: 20px; background: rgba(27,27,24,.94); box-shadow: 0 30px 80px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.lock-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--lime); color: #14150f; font-size: 25px; font-weight: 800; transform: rotate(-5deg); }
.login-card h2 { margin: 25px 0 7px; font: 700 25px Manrope, sans-serif; letter-spacing: -.03em; }
.login-card > p { margin: 0 0 27px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-card label, .field-grid label { display: grid; gap: 8px; margin-top: 16px; color: #b7b6ac; font-size: 11px; font-weight: 600; }
.login-card input, .field-grid input, .field-grid textarea, .field-grid select { width: 100%; border: 1px solid #393933; border-radius: 10px; outline: 0; background: #151512; color: var(--text); padding: 12px 13px; font: 500 13px "DM Sans", sans-serif; transition: border .2s, box-shadow .2s; }
.login-card input:focus, .field-grid input:focus, .field-grid textarea:focus, .field-grid select:focus { border-color: rgba(212,255,84,.65); box-shadow: 0 0 0 3px rgba(212,255,84,.07); }
.login-card small { display: block; margin-top: 17px; color: #6f6e67; text-align: center; font-size: 9px; }
.primary-button.full { width: 100%; justify-content: space-between; margin-top: 22px; }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.form-error { min-height: 16px; margin: 10px 0 0 !important; color: #ff8d82 !important; font-size: 11px !important; }

.app-shell { min-height: 100vh; background-image: radial-gradient(circle at 76% -20%, rgba(212,255,84,.08), transparent 32%); }
.topbar { height: 68px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: .16em; font-size: 12px; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--lime); color: #12130d; font-size: 13px; letter-spacing: 0; transform: rotate(-5deg); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.access-pill { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.access-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(109,216,160,.09); }
.avatar { border: 1px solid #3b3b35; background: #292923; border-radius: 50%; width: 34px; height: 34px; font-weight: 700; font-size: 11px; cursor: pointer; }

main { padding: 0 clamp(20px, 4vw, 64px) 56px; }
.hero { max-width: 1400px; margin: 0 auto; padding: 68px 0 46px; }
.eyebrow { color: var(--lime); text-transform: uppercase; font-family: Manrope, sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .15em; margin-bottom: 17px; }
.eyebrow span { margin-right: 8px; font-size: 9px; }
.hero-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(45px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--lime); font-style: normal; }
.hero p { max-width: 660px; margin: 20px 0 0; color: #aaa99f; font-size: 15px; line-height: 1.7; }
.primary-button { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; background: var(--lime); color: #15160f; padding: 14px 18px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(212,255,84,.11); }
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); }

.summary { max-width: 1400px; margin: 0 auto 42px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 16px; background: rgba(24,24,21,.82); overflow: hidden; }
.summary article { padding: 20px 24px; display: flex; align-items: baseline; gap: 12px; border-right: 1px solid var(--line); }
.summary article:last-child { border: 0; }
.summary strong { font: 700 27px Manrope, sans-serif; letter-spacing: -.04em; }
.summary span { color: var(--muted); font-size: 12px; }
.summary .highlight strong { color: var(--lime); }

.board-section { max-width: 1400px; margin: 0 auto; }
.board-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.board-toolbar h2 { margin: 0; font: 700 20px Manrope, sans-serif; letter-spacing: -.02em; }
.board-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.search { min-width: 250px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #181815; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }

.board { --column-width: clamp(240px, 18vw, 270px); --content-offset: max(clamp(20px, 4vw, 64px), calc(50vw - 700px)); display: grid; grid-auto-flow: column; grid-auto-columns: var(--column-width); grid-template-columns: none; align-items: stretch; gap: 13px; width: 100vw; max-width: none; margin-left: calc(0px - var(--content-offset)); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-color: #5d5d57 #1a1a17; scrollbar-width: thin; padding: 0 var(--content-offset) 16px; scroll-padding-inline: var(--content-offset); }
.board::-webkit-scrollbar { height: 8px; }
.board::-webkit-scrollbar-track { border-radius: 20px; background: #1a1a17; }
.board::-webkit-scrollbar-thumb { border-radius: 20px; background: #5d5d57; }
.column { width: 100%; min-width: 0; max-width: 100%; min-height: 420px; overflow: hidden; padding: 12px; border: 1px solid var(--column-border); border-radius: 15px; background: var(--column-bg); transition: border-color .2s, box-shadow .2s; }
.column[data-stage="urgent"] { --accent: #c25c50; --column-bg: #271d1c; --column-border: #342422; --card-bg: #4a2926; --card-border: #57312d; }
.column[data-stage="studio"] { --accent: #3d86bf; --column-bg: #18232d; --column-border: #21303c; --card-bg: #21364b; --card-border: #29445e; }
.column[data-stage="visit"] { --accent: #8d5eae; --column-bg: #251d2c; --column-border: #32243b; --card-bg: #3b2947; --card-border: #493358; }
.column[data-stage="travel"] { --accent: #a66d43; --column-bg: #29211b; --column-border: #392d24; --card-bg: #3d3026; --card-border: #4b3a2d; }
.column[data-stage="tv"] { --accent: #a84e71; --column-bg: #2b1d24; --column-border: #3a2530; --card-bg: #492936; --card-border: #593243; }
.column[data-stage="done"] { --accent: #328c5e; --column-bg: #17251d; --column-border: #233b2c; --card-bg: #20372a; --card-border: #2b4937; }
.column > header { width: 100%; min-width: 0; height: 34px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 0 3px 10px; }
.stage-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.column h3 { width: fit-content; max-width: 100%; min-width: 0; margin: 0; overflow: hidden; padding: 4px 7px; border-radius: 5px; background: var(--accent); color: #fff; font: 700 10px Manrope, sans-serif; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .025em; }
.column header b { color: var(--accent); font-size: 11px; font-weight: 700; }
.column header button, .card-top button { border: 0; background: transparent; color: #77766e; cursor: pointer; }
.card-list { display: grid; width: 100%; min-width: 0; gap: 9px; }
.guest-card { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; padding: 14px; border: 1px solid var(--card-border); border-radius: 12px; background: var(--card-bg); box-shadow: 0 6px 20px rgba(0,0,0,.1); transition: border .2s, transform .2s, filter .2s; }
.guest-card:hover { border-color: var(--accent); transform: translateY(-2px); filter: brightness(1.06); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 20px; padding: 4px 7px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.status-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-tag.pending { color: #ffc26e; background: rgba(255,194,110,.1); }
.status-tag.complete { color: var(--green); background: rgba(109,216,160,.1); }
.guest-card h4 { margin: 15px 0 7px; overflow-wrap: anywhere; font: 700 16px Manrope, sans-serif; letter-spacing: -.02em; }
.guest-card p { min-height: 31px; margin: 0 0 11px; overflow-wrap: anywhere; color: rgba(255,255,255,.74); font-size: 11px; line-height: 1.45; }
.guest-card a { display: block; color: rgba(255,255,255,.48); text-decoration: none; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest-card a:hover { color: #fff; }
.guest-card footer { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.09); }
.guest-card footer small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-avatar { flex: 0 0 auto; width: 23px; height: 23px; border-radius: 7px; }
.profile-image { display: block; object-fit: cover; background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.initials { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: white; font-size: 8px; font-weight: 800; }
.initials.violet { background: #745c9e; }.initials.amber { background: #9b6e36; }.initials.blue { background: #3f6d99; }.initials.green { background: #3f8263; }.initials.pink { background: #90536c; }
.guest-card small { color: #73726a; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.add-inline { width: 100%; margin-top: 9px; padding: 10px; border: 1px dashed var(--card-border); border-radius: 10px; background: transparent; color: color-mix(in srgb, var(--accent) 72%, white); text-align: left; font-size: 11px; cursor: pointer; }
.add-inline:hover { color: #fff; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

@media (max-width: 960px) {
  .summary { grid-template-columns: repeat(3, 1fr); }
  .summary article:nth-child(3n) { border-right: 0; }
  .summary article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .board { --column-width: 250px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 18px; }.access-pill { display: none; } main { padding: 0 18px 36px; }
  .hero { padding: 47px 0 34px; }.hero-line { display: block; }.hero p { font-size: 14px; }.primary-button { margin-top: 26px; width: 100%; justify-content: center; }
  .summary { grid-template-columns: repeat(2, 1fr); }.summary article { padding: 16px; display: block; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.summary article:nth-child(even) { border-right: 0; }.summary article:nth-last-child(-n+2) { border-bottom: 0; }.summary span { display: block; margin-top: 4px; }
  .board-toolbar { display: block; }.search { margin-top: 16px; width: 100%; }
  .board { --column-width: calc(100vw - 70px); --content-offset: 18px; gap: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .board::-webkit-scrollbar { display: none; }
  .column { scroll-snap-align: start; scroll-snap-stop: always; }
}

.account-wrap { position: relative; }
.account-menu { position: absolute; z-index: 30; top: 44px; right: 0; width: 238px; padding: 10px; border: 1px solid #35352f; border-radius: 13px; background: #20201c; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.account-menu > div { display: grid; gap: 3px; padding: 9px 9px 12px; border-bottom: 1px solid #34342e; }
.account-menu strong { font-size: 12px; }.account-menu div span { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.account-menu button { width: 100%; display: flex; justify-content: space-between; margin-top: 7px; padding: 9px; border: 0; border-radius: 8px; background: transparent; color: #bbb9af; text-align: left; font-size: 11px; cursor: pointer; }
.account-menu button:hover { background: #2a2a25; color: var(--text); }
.access-pill.admin-disabled { opacity: .6; }
.more-dots { color: #77766e; font-size: 11px; }
.guest-card.dragging { opacity: .35; transform: rotate(2deg); }
.column.drop-target { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 12%, transparent); }
.empty-column { display: grid; place-items: center; min-height: 90px; border: 1px dashed var(--card-border); border-radius: 11px; color: color-mix(in srgb, var(--accent) 50%, #8b8a82); font-size: 10px; text-align: center; padding: 16px; }

.modal { width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 22px; background: rgba(7,7,6,.72); backdrop-filter: blur(5px); color: var(--text); }
.modal::backdrop { background: transparent; }
.modal[open] { display: grid; place-items: center; }
.modal-panel { width: min(610px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; margin: auto; padding: 26px; border: 1px solid #393933; border-radius: 18px; background: #1c1c18; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.modal-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.modal-kicker { color: var(--lime); font: 700 9px Manrope, sans-serif; letter-spacing: .14em; }
.modal-panel h2 { margin: 5px 0 0; font: 700 24px Manrope, sans-serif; letter-spacing: -.035em; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid #3b3b35; border-radius: 10px; background: #24241f; color: #aaa99f; font-size: 20px; cursor: pointer; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.field-grid .wide { grid-column: 1 / -1; }
.field-grid.single-column { grid-template-columns: 1fr; }
.field-grid textarea { min-height: 82px; resize: vertical; }
.field-grid select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #86857c 50%), linear-gradient(135deg, #86857c 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.modal-panel > footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #33332e; }
.modal-panel > footer > div { display: flex; gap: 8px; margin-left: auto; }
.primary-button.compact, .secondary-button, .danger-button { min-height: 39px; padding: 10px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.secondary-button { border: 1px solid #3c3c35; background: transparent; color: #aaa99f; }
.danger-button { border: 1px solid rgba(255,118,103,.25); background: rgba(255,118,103,.08); color: #ff8c80; }
.modal-intro { margin: -7px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.access-panel { width: min(720px, 100%); }
.password-panel { width: min(460px, 100%); }
.user-list { display: grid; gap: 7px; }
.user-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid #33332e; border-radius: 11px; background: #20201c; }
.user-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #3b4d35; color: #dfffc7; font-size: 9px; font-weight: 800; }
.user-row > div { display: grid; min-width: 0; }.user-row strong { font-size: 11px; }.user-row div span { color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; }
.role-tag { padding: 5px 7px; border-radius: 20px; background: rgba(105,167,255,.08); color: #8abaff; font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.remove-user { border: 0; background: transparent; color: #bd7770; font-size: 9px; cursor: pointer; }
.invite-form { margin-top: 18px; padding: 18px; border: 1px solid #33332e; border-radius: 13px; background: #171714; }
.invite-form h3 { margin: 0; font: 700 13px Manrope, sans-serif; }.invite-form .primary-button { margin: 16px 0 0 auto; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 12px 16px; border: 1px solid rgba(109,216,160,.3); border-radius: 11px; background: #203428; color: #baf4d2; box-shadow: 0 15px 45px rgba(0,0,0,.3); font-size: 11px; }
.toast[data-tone="error"] { border-color: rgba(255,118,103,.3); background: #3b2421; color: #ffaaa1; }

@media (max-width: 800px) {
  .login-screen { background: radial-gradient(circle at 50% 0, rgba(212,255,84,.08), transparent 34%), #11110f; }
}

@media (max-width: 640px) {
  .login-screen { padding: 24px 18px; }.login-card { padding: 25px 20px; }
  .modal { padding: 10px; }.modal-panel { max-height: calc(100vh - 20px); padding: 21px 17px; }.field-grid { grid-template-columns: 1fr; }.field-grid .wide { grid-column: auto; }
  .modal-panel > footer { align-items: stretch; flex-direction: column-reverse; }.modal-panel > footer > div { width: 100%; margin-left: 0; }.modal-panel > footer button { flex: 1; }
  .user-row { grid-template-columns: auto 1fr auto; }.role-tag { display: none; }.remove-user { grid-column: 2 / -1; text-align: left; padding: 0; }
}
