:root {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #192f2a;
  background: #f4f5ef;
  line-height: 1.5;
  --green: #17463d;
  --edge: #d3d9ce;
  --muted: #50625b;
  --paper: #fffefa;
  --signal: #def282;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .65rem 1rem; border-radius: .65rem; border: 1px solid transparent;
  font-weight: 650; text-decoration: none; cursor: pointer;
}
button:disabled { opacity: .52; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, main:focus-visible {
  outline: 3px solid #b06511; outline-offset: 3px;
}
main:focus { outline: none; }
button, a, input, .panel, .row { min-width: 0; }
button, .button, label, h1, h2, h3, p, dd, dt, .place { overflow-wrap: anywhere; }
.primary { color: white; background: var(--green); }
.primary:hover:enabled, a.primary:hover { background: #0c392f; }
.secondary { color: var(--green); background: var(--paper); border-color: #a9b9ad; }
.quiet { color: var(--green); background: transparent; }
.quiet:hover:enabled, .secondary:hover:enabled { background: #e9eee3; }
svg.icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mast { background: var(--green); color: white; }
.mast-inner { max-width: 62rem; padding: 1.15rem 2rem; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.45rem; font-weight: 710; line-height: 1.15; letter-spacing: -.055em; }
.brand small { font-size: .75rem; color: #d5e5d9; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--signal); display: grid; place-items: center; }
.brand-mark i { width: 18px; height: 23px; transform: rotate(-6deg); border: 2px solid var(--green); border-radius: 2px; position: relative; }
.brand-mark i::before, .brand-mark i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; border-top: 2px solid var(--green); }
.brand-mark i::after { top: 10px; right: 5px; }
#account { position: relative; min-width: 0; }
#account summary { cursor: pointer; border: 1px solid #6a8e7e; border-radius: .65rem; padding: .55rem .75rem; min-height: 44px; display: flex; gap: .4rem; align-items: center; list-style: none; }
#account summary::-webkit-details-marker { display: none; }
.account-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 13rem; }
.menu-name { display: none; }
.account-menu { position: absolute; z-index: 3; right: 0; top: 100%; margin-top: .5rem; padding: .5rem; box-shadow: 0 5px 16px #10291e22; border: 1px solid var(--edge); background: var(--paper); border-radius: .75rem; }
.shell { max-width: 52rem; margin: auto; padding: 1.5rem 2rem 4rem; }
nav { display: flex; gap: .4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--edge); margin-bottom: 1.8rem; }
nav button { color: var(--muted); background: transparent; font-size: .95rem; }
nav button[aria-current="page"] { background: #e0e8d9; color: var(--green); }
#notice { padding: .85rem 1rem; border: 1px solid #b3c7ac; background: #edf5e6; color: #214d32; border-radius: .7rem; margin: 0 0 1rem; }
#notice.error { color: #773a20; border-color: #d5a383; background: #fff0e2; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.15rem); line-height: 1.1; font-weight: 690; letter-spacing: -.055em; }
h2 { font-size: 1.12rem; line-height: 1.35; font-weight: 690; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
.intro { margin: 0 0 1.45rem; }
.intro p, .muted { color: var(--muted); }
.intro p { margin-top: .6rem; }
.panel { padding: 1.4rem; background: var(--paper); border: 1px solid var(--edge); border-radius: .95rem; }
.panel + .panel, .panel + .actions, .actions + .panel { margin-top: 1rem; }
.panel-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
.panel-title .icon { color: #47705c; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; align-content: start; gap: .35rem; font-weight: 620; font-size: .94rem; }
.field small { font-size: .85rem; color: var(--muted); font-weight: 400; }
input[type=text] { border: 1px solid #a9b7aa; border-radius: .5rem; background: #fff; min-height: 48px; padding: .65rem .75rem; width: 100%; color: #213a2f; font-size: 1rem; }
::placeholder { color: #657168; opacity: 1; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { font-size: 1.12rem; font-weight: 680; margin-bottom: .9rem; padding: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice { cursor: pointer; border: 1px solid #bcc8b9; border-radius: .65rem; display: flex; align-items: center; gap: .55rem; font-weight: 630; padding: .85rem .7rem; }
.choice:has(input:checked) { background: #eef4e5; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.choice input { accent-color: var(--green); width: 17px; height: 17px; margin: 0 0 0 auto; order: 1; }
.choice .icon { color: #315c46; }
.hint { font-size: .9rem; color: var(--muted); margin-top: .75rem; }
.actions, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.actions { margin-top: 1.1rem; }
.toolbar { justify-content: space-between; }
.actions .primary { min-width: 12rem; }
.page-list, .receipt-list { list-style: none; padding: 0; margin: 0; }
.page-list > li, .receipt-list > li { border-top: 1px solid var(--edge); }
.page-list > li:first-child, .receipt-list > li:first-child { border: 0; }
.page-list > li { padding: .85rem 0; }
.page-list > li:last-child { padding-bottom: 0; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.page-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.page-actions button { min-width: 44px; padding: .4rem; }
.page-name { flex: 1 1 6.5rem; }
.page-name small, .receipt-link small, .detail-info { display: block; color: var(--muted); font-size: .86rem; font-weight: 420; }
.receipt-link { display: flex; gap: .75rem; width: 100%; text-align: left; justify-content: flex-start; background: transparent; color: inherit; padding: .95rem .2rem; }
.receipt-link .grow { flex: 1; }
.receipt-link:hover { background: #f1f5ed; }
.list-icon { background: #e8eee1; color: #3d6049; border-radius: .6rem; flex: none; width: 42px; height: 46px; display: grid; place-items: center; }
.status { display: inline-flex; align-items:center; background: #e9efdf; color: #31543a; padding: .2rem .55rem; border-radius: .4rem; font-size: .8rem; font-weight: 650; }
.status.draft { background: #faf0cd; color: #684e15; }
.detail-info { margin: .8rem 0 0; }
.location { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.location dt { color: var(--muted); }
.location dd { margin: 0; font-weight: 630; }
.place { font-weight: 640; }
.stage { background: #15221f; border-radius: .85rem; overflow: hidden; display: grid; place-items: center; position: relative; }
.stage video, .stage img { max-width: 100%; width: 100%; height: min(52vh, 34rem); display: block; object-fit: contain; }
.stage video { min-height: 12rem; }
.stage .live { position: absolute; top: .8rem; left: .8rem; border-radius: .4rem; background: #15221fe8; color: white; padding: .35rem .6rem; font-size: .8rem; }
.live::before { content: ''; background: var(--signal); border-radius: 50%; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; }
.review-image { padding: 0; width: 100%; background: transparent; border: 0; border-radius: 0; cursor: zoom-in; }
.review-image, .review-image img, #viewer-image, #live {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.saved-panel { border-top: 4px solid var(--green); }
.success-icon { background: var(--signal); color: var(--green); width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; margin-bottom: 1rem; }
.success-icon svg { width: 26px; height: 26px; }
.login-panel { margin: clamp(1rem, 8vh, 6rem) auto; max-width: 38rem; border-top: 4px solid var(--green); padding: clamp(1.4rem, 5vw, 2.7rem); }
.login-panel .brand-mark { margin-bottom: 1.2rem; width: 3rem; height: 3rem; }
.login-panel p { color: var(--muted); margin: 1rem 0 1.5rem; }
dialog { width: min(95vw, 70rem); max-width: 100%; padding: 0; border: 1px solid #819383; border-radius: .8rem; background: var(--paper); color: inherit; }
dialog::backdrop { background: #13231ee0; }
.viewer-bar { display: flex; align-items: center; gap: .4rem; padding: .45rem .65rem; }
.viewer-bar strong { margin-right: auto; }
.viewer-frame { overflow: auto; background: #17231f; max-height: 75dvh; }
.viewer-frame img { display: block; margin: auto; max-width: 100%; max-height: 75dvh; }
.viewer-frame.actual img { max-width: none; max-height: none; }
@media (max-width: 600px) {
  .mast-inner { padding: .85rem 1rem; }
  .shell { padding: .85rem 1rem 2.4rem; }
  nav { margin-bottom: 1.3rem; padding-bottom: .7rem; }
  nav button { flex: 1; }
  .intro { margin-bottom: 1rem; }
  .panel { padding: 1.05rem; }
  .fields { grid-template-columns: 1fr; }
  .choices { gap: .5rem; }
  .choice { font-size: .92rem; padding: .75rem .55rem; }
  .choice .icon { width: 17px; }
  .actions > .primary { width: 100%; }
  .account-label { max-width: 8rem; font-size: .88rem; }
  .page-actions { margin-left: 0; }
  .receipt-link { gap: .5rem; }
}
@media (max-width: 365px) {
  .choices { grid-template-columns: 1fr; }
  .account-label { display: none; }
  .menu-name { display: block; padding: .4rem .55rem; color: var(--green); font-size: .86rem; overflow-wrap: anywhere; }
  .row { align-items: flex-start; }
}
