:root {
  color-scheme: light;
  --ink: #221d29;
  --muted: #645c6d;
  --paper: #fcf9f5;
  --line: #e6dfe7;
  --purple: #542b66;
  --plum: #2e183a;
  --lavender: #f2e9f6;
  --green: #23513c;
  --mint: #e2f1e5;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
h1,h2,h3,p { margin: 0; }
h1,h2 { letter-spacing: -.035em; }
h3 { font-size: 1rem; }
p { line-height: 1.55; }
button,input,select,textarea { font: inherit; }
button { border: 1px solid transparent; border-radius: .55rem; padding: .64rem .9rem; background: var(--purple); color: white; cursor: pointer; font-weight: 650; }
button:hover { filter: brightness(.92); }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #9a63b2; outline-offset: 3px; }
button.secondary { color: var(--purple); background: #fff; border-color: var(--line); }
button.link { background: none; color: var(--purple); text-decoration: underline; margin-top: .7rem; padding-left: 0; text-align: left; }
.masthead { display: flex; align-items: center; gap: 1.25rem; padding: .85rem clamp(1rem,4vw,4rem); background: #fff; border-bottom: 1px solid var(--line); min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; background: var(--plum); border-radius: .55rem; }
.header-label,.eyebrow { font-size: .72rem; letter-spacing: .13em; font-weight: 750; color: var(--muted); }
#account { display: flex; align-items: center; gap: .8rem; margin-left: auto; font-size: .87rem; }
.welcome { max-width: 1160px; margin: clamp(1rem,6vw,5rem) auto; padding: 0 1rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; }
.intro { border-radius: 1rem; background: var(--plum); color: #fff; padding: clamp(1.5rem,6vw,4rem); min-height: 25rem; }
.intro .eyebrow { color: #e6b9eb; }
.intro h1 { font-size: clamp(2.7rem,6.3vw,5.5rem); line-height: .99; margin: 1.15rem 0; }
.intro > p:not(.eyebrow) { max-width: 28rem; color: #f0e5f3; }
.intro-tags,.actions,.summary { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; align-items: center; }
.intro-tags span { border: 1px solid #9973a2; padding: .35rem .6rem; border-radius: 2rem; font-size: .8rem; }
.workspace { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 1250px; margin: 0 auto; }
aside { border-right: 1px solid var(--line); padding: 1.5rem 1rem; min-height: calc(100vh - 4.5rem); }
aside h2 { margin: .3rem 0 1rem; font-size: 1.2rem; }
nav { display: grid; gap: .3rem; }
nav button { text-align: left; color: var(--muted); background: transparent; }
nav button.current { color: var(--purple); background: var(--lavender); }
.content { padding: clamp(1rem,4vw,2.7rem); }
.page-heading { margin-bottom: 1.2rem; }
.page-heading h1 { font-size: clamp(1.9rem,4vw,3rem); margin-top: .15rem; }
.panel { border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem,3vw,1.5rem); background: white; margin-bottom: 1rem; }
.panel h2 { font-size: 1.28rem; margin-bottom: .9rem; }
.record { border: 1px solid var(--line); border-radius: .65rem; margin: .65rem 0; padding: .85rem; overflow-wrap: anywhere; }
.record p,.record time { color: var(--muted); font-size: .9rem; margin-top: .2rem; white-space: pre-wrap; }
.record .event-name { color: var(--purple); font-weight: 650; }
.spread { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-block; border-radius: 1rem; padding: .2rem .55rem; font-size: .76rem; font-weight: 650; background: var(--lavender); color: var(--purple); text-transform: capitalize; }
.badge.confirmed,.badge.approved,.badge.open,.badge.resolved { background: var(--mint); color: var(--green); }
.badge.suspended,.badge.cancelled,.badge.declined { background: #f7e7e5; color: #782e28; }
form { display: grid; gap: .8rem; justify-items: start; }
form label,.panel > label { display: grid; width: 100%; gap: .35rem; color: var(--ink); font-size: .9rem; font-weight: 650; min-width: 0; }
.fields { width: 100%; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
input,select,textarea { width: 100%; color: var(--ink); padding: .58rem .65rem; border: 1px solid #c9bccc; border-radius: .45rem; background: #fff; }
textarea { min-height: 5rem; resize: vertical; }
.inline { display: flex; align-items: end; flex-wrap: wrap; margin-top: .55rem; }
.inline label { width: auto; flex: 1 1 12rem; }
details { margin-top: .55rem; color: var(--purple); font-size: .9rem; }
summary { cursor: pointer; }
.empty { color: var(--muted); padding: .6rem 0; }
.summary span,.callout { background: var(--lavender); padding: .55rem .7rem; border-radius: .5rem; }
.callout { margin-bottom: 1rem; }
#notice:not(:empty) { position: fixed; bottom: 1rem; right: 1rem; max-width: calc(100vw - 2rem); padding: .7rem 1rem; border-radius: .55rem; color: white; background: var(--green); box-shadow: 0 .2rem 1rem #0003; }
#notice.error:not(:empty) { background: #782e28; }
@media (max-width: 680px) {
  .welcome,.workspace { grid-template-columns: 1fr; }
  .intro { min-height: auto; }
  aside { min-height: auto; border: 0; border-bottom: 1px solid var(--line); }
  nav { display: flex; flex-wrap: wrap; }
  .header-label,#account span { display: none; }
}

/* MyNanya visual system */
:root {
  --ink: #262325;
  --muted: #676064;
  --paper: #f7f4ec;
  --line: #e2dad0;
  --purple: #392052;
  --plum: #261739;
  --lavender: #f0e9fa;
  --green: #214b34;
  --mint: #e2f1e0;
  --lime: #e9fa9d;
}
.masthead { background: var(--paper); min-height: 4.75rem; gap: 1.3rem; }
.brand { font-size: 1.45rem; gap: .5rem; }
.brand-dot { margin-left: -.48rem; color: #65417f; }
.mark { background: var(--plum); color: var(--lime); border-radius: 50%; font-size: 1.25rem; }
.header-label { border-left: 1px solid var(--line); padding-left: 1.3rem; }
.header-access { font-weight: 700; text-decoration: none; }
.header-access span { margin-left: .3rem; }
.welcome { max-width: 1420px; margin: clamp(1.1rem,4vw,3.5rem) auto 0; padding: 0 clamp(1rem,3vw,3rem); grid-template-columns: minmax(0,1.62fr) minmax(0,1fr); gap: clamp(1rem,2vw,1.75rem); align-items: stretch; }
.intro { position: relative; display: grid; align-content: space-between; overflow: hidden; border-radius: 1.35rem; padding: clamp(1.35rem,4vw,3.5rem); min-height: 39rem; isolation: isolate; }
.intro-copy { position: relative; z-index: 2; }
.hero-label { display: flex; align-items: center; gap: .55rem; }
.hero-label span,.access-kicker span { width: .46rem; height: .46rem; border-radius: 50%; background: var(--lime); }
.intro h1 { font-size: clamp(3rem,6.05vw,6.35rem); line-height: .91; letter-spacing: -.085em; margin: 1.55rem 0 1.25rem; max-width: 11ch; }
.intro h1 em { color: var(--lime); font-style: normal; }
.intro-copy > p:not(.eyebrow) { color: #f2e6f7; max-width: 29rem; }
.intro-tags span { border-color: #826c96; }
.hero-art { position: relative; min-height: 13.5rem; margin-top: 1rem; }
.art-grid { position: absolute; inset: -1rem -3.5rem -3.5rem; background-image: linear-gradient(#ead7ff23 1px,transparent 1px),linear-gradient(90deg,#ead7ff23 1px,transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(transparent,#000 62%); }
.orb { position: absolute; right: 6%; bottom: -12%; width: 18rem; aspect-ratio: 1; background: #b497ed; border-radius: 50%; opacity: .85; }
.spark { position: absolute; left: 3%; bottom: 4%; color: var(--lime); font-size: clamp(2.5rem,6vw,5rem); }
.art-ticket { position: absolute; bottom: 9%; right: 12%; width: min(68%,20rem); transform: rotate(-9deg); color: var(--plum); background: var(--lime); border-radius: .7rem; box-shadow: 0 1.1rem 2.5rem #100b2788; }
.ticket-top,.ticket-bottom { display: flex; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; font-size: .58rem; font-weight: 800; letter-spacing: .06em; }
.ticket-top { border-bottom: 1px solid #30203a55; }
.ticket-main { padding: .7rem .8rem; }
.ticket-main span { font-size: .61rem; font-weight: 750; letter-spacing: .1em; }
.ticket-main strong { display: block; font-size: clamp(1.65rem,4vw,3.2rem); letter-spacing: -.08em; line-height: .9; margin-top: .4rem; }
.ticket-bottom { border-top: 1px dashed #30203a88; align-items: center; }
.ticket-bottom i { width: 2.5rem; height: .8rem; background: repeating-linear-gradient(90deg,#261739 0 2px,transparent 2px 4px,#261739 4px 5px,transparent 5px 7px); }
.art-note { position: absolute; right: 0; bottom: 0; display: flex; gap: .5rem; align-items: center; border-radius: .65rem; padding: .55rem .8rem; background: #fff9ef; color: var(--plum); box-shadow: 0 .4rem 1rem #100b2755; font-size: .77rem; }
.art-note > span { display: grid; place-items: center; background: var(--mint); color: var(--green); border-radius: 50%; width: 1.65rem; height: 1.65rem; }
.art-note small { display: block; color: var(--muted); }
.access { border-radius: 1.35rem; background: #fffdf8; padding: clamp(1.25rem,4vw,3.1rem); margin: 0; }
.access-kicker { display: flex; align-items: center; gap: .5rem; color: var(--muted); letter-spacing: .13em; font-size: .68rem; font-weight: 800; }
.access-kicker span { background: #9a6fce; }
.access h2 { font-size: clamp(2rem,4vw,3.7rem); line-height: 1; margin: .85rem 0 .6rem; letter-spacing: -.07em; }
.access-description { margin-bottom: 1.45rem; color: var(--muted); }
.access form { gap: .9rem; }
.access form > button { width: 100%; display: flex; justify-content: space-between; margin-top: .3rem; }
.access input:not([type=radio]) { min-height: 2.9rem; }
.role-picker { width: 100%; padding: 0; margin: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.role-picker legend { margin-bottom: .35rem; font-size: .9rem; font-weight: 650; }
.role-picker label { display: flex; gap: .4rem; padding: .65rem .5rem; align-items: flex-start; border: 1px solid var(--line); border-radius: .55rem; cursor: pointer; }
.role-picker label:has(:checked) { background: var(--lavender); border-color: #9d79be; }
.role-picker input { width: auto; accent-color: var(--purple); margin: .22rem 0 0; }
.role-picker small { display: block; color: var(--muted); font-weight: 500; }
.landing-footer { max-width: 1420px; margin: 0 auto; padding: 1.4rem clamp(1rem,3vw,3rem); display: flex; justify-content: space-between; align-items: center; gap: .75rem; color: var(--muted); }
.landing-footer span:first-child { font-weight: 800; }
.landing-footer span:last-child { font-size: .62rem; letter-spacing: .11em; }
.signed-in .masthead { background: #fffdf8; }
.workspace { max-width: 1380px; }
.workspace aside { background: #f3eee6; }
nav button.current { color: var(--lime); background: var(--plum); }
.workspace-hero { background: var(--plum); color: white; border-radius: .95rem; padding: clamp(1.1rem,4vw,2.2rem); margin-bottom: 1rem; }
.workspace-hero .eyebrow { color: #dec7f4; }
.workspace-hero h2 { font-size: clamp(1.75rem,4vw,3rem); margin: .35rem 0; line-height: 1.05; }
.workspace-hero p { color: #f2e6f7; }
.workspace-hero button { background: var(--lime); color: var(--plum); margin-top: 1rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; margin-bottom: 1rem; }
.metric { display: grid; gap: .25rem; border-radius: .75rem; padding: clamp(.65rem,3vw,1.2rem); background: #fffdf8; border: 1px solid var(--line); }
.metric b { font-size: clamp(1.3rem,4vw,2.2rem); line-height: 1; color: var(--plum); }
.metric span { color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; }
  .intro { min-height: 0; }
  .intro h1 { font-size: clamp(2.75rem,10vw,4.25rem); }
  .hero-art { min-height: 11.5rem; }
  .orb { width: 12rem; }
  .header-label { display: none; }
}
