@charset "UTF-8";
:root { color-scheme: dark; --bg: #15191f; --panel: #1d252e; --field: #192129; --text: #eff2f4; --muted: #a5b2be; --subtle: #8998a6; --blue: #abc4d8; --line: #34414c; --gutter: clamp(20px,4vw,58px); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 14px; font-synthesis: none; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
button,input,textarea,select { font: inherit; color: inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(27px,3vw,34px); font-weight: 590; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 19px; font-weight: 570; line-height: 1.4; letter-spacing: -.02em; }
h3 { font-size: 15px; font-weight: 570; line-height: 1.5; }
::selection { background: var(--blue); color: #17232d; }
.muted { color: var(--muted); }
.skip-link { position: absolute; z-index: 50; top: -100px; left: 18px; padding: 10px 16px; background: var(--blue); color: #17232d; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.studio-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1440px; min-height: 91px; padding: 0 var(--gutter); margin: auto; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 620; letter-spacing: -.6px; line-height: 1.1; flex-shrink: 0; }
.brand-mark { width: 38px; height: 40px; border: 1px solid #596b7c; border-radius: 11px; background: #263440; color: #d1e0ea; font-size: 34px; line-height: 36px; text-align: center; font-weight: 650; }
.brand-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.2; font-weight: 400; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 25px; font-size: 12px; }
.store-link { color: #c3d4e1; }
.store-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.studio-shell { max-width: 1440px; min-height: 72vh; margin: auto; padding: 42px var(--gutter) 72px; }
.studio-shell.signed-in { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: clamp(28px,4vw,58px); }
main { min-width: 0; outline: 0; }
.studio-nav { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
.nav-identity { padding: 0 10px 20px; margin-bottom: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.nav-identity b { display: block; font-size: 14px; font-weight: 560; }
.nav-identity span { display: block; margin-top: 4px; color: var(--subtle); font-size: 11px; }
.studio-nav > a { padding: 10px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); font-size: 12px; }
.studio-nav > a:hover { color: var(--text); background: #1e2832; }
.studio-nav > a[aria-current] { color: #d5e4ef; border-color: #455c6e; background: #26343f; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading > div { min-width: 0; }
.page-heading p { max-width: 650px; margin-top: 11px; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.page-heading > .primary,.page-heading > .secondary { flex-shrink: 0; }
.page-heading .form-shortcut { display: none; }
.primary,.secondary,.quiet,.danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 550; line-height: 1.5; text-align: center; }
.primary { background: var(--blue); color: #172631; border-color: #bfd2df; }
.primary:hover:not(:disabled) { background: #c1d6e5; }
.secondary { color: #d8e4ed; background: #293743; border-color: #526677; }
.secondary:hover:not(:disabled) { border-color: #869eb0; background: #344654; }
.quiet { color: var(--muted); background: transparent; padding-inline: 7px; }
.quiet:hover:not(:disabled) { color: var(--text); }
.danger { color: #f2d9d9; border-color: #976f75; background: #65434a; }
.danger:hover { background: #79515a; }
.danger-text { color: #d6a9ae; }
.danger-text:hover { color: #efcdd0; }
.text-link { color: #b7d0e3; text-decoration: underline; text-decoration-color: #60798c; text-underline-offset: 4px; font-size: 12px; }
.text-link:hover { text-decoration-color: currentColor; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 19px; }
.field > span { color: #c7d2dc; font-size: 12px; }
.field input,.field textarea,.field select { width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #4c5d6c; border-radius: 7px; background: var(--field); font-size: 13px; line-height: 1.55; }
.field input[readonly],.field textarea[readonly] { color: #bbd1e2; background: #17232d; }
.field input::placeholder,.field textarea::placeholder { color: #8595a4; }
.field textarea { resize: vertical; }
.field small,.form-note { color: var(--subtle); font-size: 11px; line-height: 1.75; }
form > .primary,form > .secondary { margin-top: 23px; }
form > .form-note { margin-top: 17px; }
.panel { min-width: 0; padding: 23px; border: 1px solid #3c4b58; border-radius: 11px; background: var(--panel); }
.panel > .muted { margin-top: 12px; font-size: 12px; line-height: 1.8; }
.panel > .form-note { margin-top: 17px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.section-heading > .muted { font-size: 12px; }
.empty-state { padding: 30px 24px; border: 1px solid var(--line); border-radius: 9px; background: #1b232b; }
.empty-state p { max-width: 600px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.empty-state h2 { margin-bottom: 11px; }
.empty-state .primary,.empty-state .secondary { margin-top: 21px; }
.empty-state.compact { padding: 23px; }
.auth-page { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,380px); gap: clamp(40px,8vw,120px); align-items: start; max-width: 940px; margin: 27px auto 0; }
.auth-intro { padding-top: 17px; }
.auth-intro h1 { max-width: 480px; font-size: clamp(30px,3.4vw,40px); }
.auth-intro > p { max-width: 450px; margin-top: 21px; color: #c4d0db; font-size: 15px; line-height: 1.85; }
.auth-intro > .muted { color: var(--subtle); font-size: 12px; }
.eyebrow { display: block; margin-bottom: 15px; color: #95adbf; font-size: 12px; }
.auth-form { padding: 27px; border: 1px solid #415362; border-radius: 12px; background: var(--panel); }
.auth-form h2 { font-size: 23px; }
.auth-form > .primary { width: 100%; }
.auth-form > .muted { margin-top: 18px; font-size: 13px; }
.auth-page.single { display: block; max-width: 650px; }
.auth-page.single .button-row { margin-top: 22px; }
.auth-page.single h1 { font-size: 29px; }
.notice { margin-top: 18px; padding: 13px 15px; border-left: 2px solid #819eb4; background: #26343f; color: #ccdce8; font-size: 12px; line-height: 1.8; }
.error-message { margin: 17px 0; padding: 13px 15px; border-left: 2px solid #ae8189; background: #33272f; color: #e7c7cc; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; outline: 0; }
.account-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 30px; align-items: start; }
.account-layout > section { min-width: 0; }
.account-aside { padding: 3px 0 0 23px; border-left: 1px solid var(--line); min-width: 0; }
.account-aside h2 { overflow-wrap: anywhere; }
.account-aside > .muted { margin-top: 7px; font-size: 12px; }
.account-aside > .form-note { margin-top: 21px; }
.facts { margin: 24px 0; }
.facts > div + div { margin-top: 17px; }
.facts dt { color: var(--subtle); font-size: 11px; }
.facts dd { margin: 4px 0 0; font-size: 13px; }
.next-step { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.next-step p { max-width: 690px; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.next-step > .button-row { margin-top: 18px; }
.project-list,.member-list,.token-list { border-top: 1px solid var(--line); }
.project-row,.member-row,.token-row { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.project-row > div:first-child,.member-row > div:first-child,.token-row > div:first-child { min-width: 0; }
.project-title { display: inline-block; color: #e4ecf2; font-size: 17px; line-height: 1.5; font-weight: 560; overflow-wrap: anywhere; }
.project-title:hover { color: #c4def0; }
.project-meta { color: var(--subtle); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.project-meta + .project-meta { margin-top: 4px; }
.project-title + .project-meta,.member-row h3 + .project-meta,.token-row h3 + .project-meta { margin-top: 6px; }
.row-end { display: flex; align-items: flex-end; flex-direction: column; flex-shrink: 0; gap: 15px; }
.status { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 7px; border: 1px solid #496353; border-radius: 5px; color: #b7cec1; font-size: 10px; line-height: 1.6; white-space: nowrap; }
.muted-status { color: #aab9c6; border-color: #435563; }
.projects-layout,.members-layout,.tokens-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 30px; align-items: start; }
.projects-layout > section,.members-layout > section,.tokens-layout > section { min-width: 0; }
.projects-layout > .panel,.members-layout > .panel,.tokens-layout > .panel { position: sticky; top: 25px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.back-link:hover { color: var(--text); }
.project-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 32px; align-items: start; }
.project-detail-layout > section { min-width: 0; }
.project-guidance { margin-top: 25px; }
.project-guidance > p { max-width: 650px; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-guidance .button-row { margin-top: 15px; }
.project-settings { display: flex; flex-direction: column; min-width: 0; gap: 22px; }
.project-settings .panel h2 { font-size: 17px; }
.visibility-control { margin-top: 25px; padding-top: 21px; border-top: 1px solid var(--line); }
.visibility-control p { color: var(--subtle); font-size: 11px; line-height: 1.8; }
.visibility-control .secondary { margin-top: 14px; }
.versions-section { margin-top: 35px; }
.version-list { border-top: 1px solid var(--line); }
.version-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.version-row > div { min-width: 0; }
.version-row h3 { overflow-wrap: anywhere; }
.version-row > .text-link { flex-shrink: 0; margin-top: 3px; }
.version-note { max-width: 620px; margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.recommended { color: #afc9bc; font-size: 10px; margin-left: 7px; }
.member-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 10px; }
.member-actions .button-row { gap: 3px; justify-content: flex-end; }
.member-actions .quiet { min-height: 34px; padding: 5px; font-size: 10px; }
.invites-section { margin-top: 35px; }
.invites-section > h2 { margin-bottom: 18px; }
.invite-list { border-top: 1px solid var(--line); }
.invite-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.invite-row > div { min-width: 0; }
.invite-row h3 { overflow-wrap: anywhere; }
.invite-row .quiet { min-height: 33px; font-size: 11px; }
.invite-result,.secret-panel { margin-bottom: 30px; padding: 24px; border: 1px solid #59758a; border-radius: 10px; background: #23323e; }
.invite-result > p,.secret-panel > p { max-width: 760px; margin-top: 11px; color: #bdcdda; font-size: 12px; line-height: 1.8; }
.invite-result .button-row,.secret-panel .button-row { margin-top: 15px; }
.invite-result .form-note,.secret-panel .form-note { color: #92a9bb; font-size: 11px; }
.invite-result textarea,.secret-panel textarea { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.instruction-preview { margin-top: 20px; }
.instruction-preview textarea { min-height: 320px; font-size: 12px; line-height: 1.8; }
.instruction-preview > .secondary { margin-top: 15px; }
.audit-list { border-top: 1px solid var(--line); }
.audit-row { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 25px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.audit-row time { padding-top: 3px; color: var(--subtle); font-size: 11px; line-height: 1.8; }
.audit-row h2 { font-size: 15px; line-height: 1.7; letter-spacing: -.01em; overflow-wrap: anywhere; }
.audit-row p { margin-top: 6px; color: var(--subtle); font-size: 11px; overflow-wrap: anywhere; }
.audit-row .text-link { font-size: 11px; }
.loading { padding: 80px 0; color: var(--muted); text-align: center; font-size: 13px; }
.load-error { max-width: 700px; padding-top: 20px; }
.load-error > p { margin: 20px 0; color: #d3b8bd; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.load-error > .quiet { margin-left: 8px; }
dialog { width: min(500px,calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 28px; border: 1px solid #627686; border-radius: 12px; background: #222d37; color: var(--text); }
dialog::backdrop { background: #090f16b8; }
dialog h2 { font-size: 22px; overflow-wrap: anywhere; }
dialog p { margin-top: 17px; color: #c2ced9; font-size: 13px; line-height: 1.85; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.toast { position: fixed; z-index: 50; bottom: 25px; left: 50%; max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid #698092; border-radius: 8px; background: #d4e2ec; color: #1b2c39; font-size: 12px; line-height: 1.6; text-align: center; transform: translateX(-50%); }
footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; width: calc(100% - 2 * var(--gutter)); max-width: calc(1440px - 2 * var(--gutter)); margin: 0 auto; padding: 26px 0 32px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 10px; }
footer > span:first-child { color: #bacbd8; }
@media (max-width: 1150px) {
  .studio-shell.signed-in { grid-template-columns: 145px minmax(0,1fr); gap: 27px; }
  .projects-layout,.members-layout,.tokens-layout,.project-detail-layout { grid-template-columns: minmax(0,1fr) 255px; gap: 24px; }
  .account-layout { grid-template-columns: minmax(0,1fr) 220px; gap: 24px; }
  .panel { padding: 20px; }
  .project-row,.member-row,.token-row { gap: 18px; }
  .project-row { flex-direction: column; gap: 12px; }
  .project-row .row-end { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; }
  .member-row { flex-direction: column; gap: 13px; }
  .member-actions { align-items: flex-start; gap: 8px; }
  .member-actions .button-row { justify-content: flex-start; margin-left: -5px; }
}
@media (max-width: 900px) {
  .studio-shell.signed-in { display: block; padding-top: 25px; }
  .studio-nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 31px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
  .nav-identity { width: 100%; margin: 0 0 5px; padding: 0; border: 0; display: flex; align-items: baseline; gap: 10px; }
  .nav-identity span { margin: 0; }
  .studio-nav > a { padding: 8px 10px; }
  .page-heading { margin-bottom: 27px; }
  .project-row { flex-direction: row; }
  .project-row .row-end { align-items: flex-end; flex-direction: column; }
}
@media (max-width: 700px) {
  .page-heading .form-shortcut { display: inline-flex; }
  .auth-page { grid-template-columns: minmax(0,1fr); gap: 29px; max-width: 480px; margin-top: 0; }
  .auth-intro { padding-top: 0; }
  .auth-intro h1 { font-size: 32px; }
  .auth-intro > p { font-size: 14px; margin-top: 15px; }
  .auth-intro > .muted { font-size: 12px; }
  .account-layout,.projects-layout,.members-layout,.tokens-layout,.project-detail-layout { grid-template-columns: minmax(0,1fr); gap: 29px; }
  .projects-layout > .panel,.members-layout > .panel,.tokens-layout > .panel { position: static; }
  .account-aside { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts { display: flex; flex-wrap: wrap; gap: 18px 30px; }
  .facts > div + div { margin-top: 0; }
  .member-row { flex-direction: row; }
  .member-actions { align-items: flex-end; }
  .member-actions .button-row { justify-content: flex-end; }
  .page-heading { gap: 19px; flex-wrap: wrap; }
  .page-heading > .primary,.page-heading > .secondary { flex-shrink: 1; }
  .audit-row { grid-template-columns: 140px minmax(0,1fr); gap: 20px; }
}
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .studio-header { align-items: flex-start; min-height: 0; padding-top: 20px; padding-bottom: 19px; gap: 15px; }
  .brand { font-size: 20px; gap: 9px; }
  .brand-mark { width: 33px; height: 36px; font-size: 31px; line-height: 32px; border-radius: 9px; }
  .brand-caption { font-size: 9px; }
  .header-actions { align-items: flex-end; flex-direction: column; gap: 3px; padding-top: 1px; font-size: 10px; }
  .header-actions .quiet { min-height: 28px; padding: 4px 0; font-size: 11px; }
  .studio-shell { padding-top: 29px; padding-bottom: 45px; }
  .studio-shell.signed-in { padding-top: 23px; }
  .studio-nav { gap: 5px; margin-bottom: 26px; padding-bottom: 16px; }
  .studio-nav > a { padding: 7px 8px; font-size: 11px; }
  .nav-identity { margin-bottom: 9px; }
  .nav-identity b { font-size: 13px; }
  .nav-identity span { font-size: 10px; }
  .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 12px; }
  .page-heading { margin-bottom: 25px; }
  h2 { font-size: 18px; }
  .auth-form { padding: 22px; }
  .auth-form h2 { font-size: 22px; }
  .auth-intro h1 { font-size: 30px; }
  .auth-intro > p { font-size: 13px; }
  .auth-intro > .muted { font-size: 11px; }
  .field > span { font-size: 11px; }
  .field input,.field textarea,.field select { font-size: 13px; }
  .project-row,.member-row,.token-row { flex-direction: column; gap: 14px; padding: 21px 0; }
  .project-row .row-end,.token-row .row-end { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 9px 18px; }
  .project-title { font-size: 16px; }
  .project-meta { font-size: 10px; }
  .project-meta > span { display: block; }
  .status { font-size: 10px; }
  .member-actions { align-items: flex-start; gap: 9px; }
  .member-actions .button-row { justify-content: flex-start; margin-left: -5px; }
  .member-actions .quiet { font-size: 11px; min-height: 36px; }
  .version-row { flex-direction: column; gap: 12px; }
  .version-row h3 { font-size: 14px; }
  .version-note { font-size: 11px; }
  .version-row > .text-link { margin: 0; }
  .project-guidance .button-row { align-items: flex-start; flex-direction: column; }
  .panel { padding: 21px; }
  .panel .primary { width: 100%; }
  .invite-result,.secret-panel { padding: 21px; }
  .invite-result textarea,.secret-panel textarea { font-size: 11px; }
  .invite-result .button-row,.secret-panel .button-row { align-items: stretch; flex-direction: column; }
  .invite-row { gap: 10px; }
  .invite-row .quiet { font-size: 10px; padding-inline: 0; }
  .audit-row { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 21px 0; }
  .audit-row time { font-size: 10px; }
  .audit-row h2 { font-size: 14px; }
  dialog { padding: 23px; }
  dialog h2 { font-size: 20px; }
  dialog p { font-size: 12px; }
  .dialog-actions { flex-direction: column-reverse; align-items: stretch; }
  .toast { bottom: 16px; font-size: 11px; }
  footer { margin-inline: auto; padding-bottom: 25px; font-size: 10px; }
}
@media (max-width: 350px) {
  :root { --gutter: 16px; }
  .brand { font-size: 18px; }
  .brand-caption { font-size: 8px; }
  .header-actions { max-width: 117px; font-size: 9px; }
  .auth-form,.panel { padding: 19px; }
  .auth-form h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }
