:root{font-family:Inter,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;color:#263c37;background:#f4f6f3;--line:#dce5dd;--green:#247861;--soft:#657a70;font-size:15px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
.bar{min-height:63px;padding:10px clamp(16px,5vw,72px);display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:9px;font-weight:730;color:inherit;text-decoration:none}
.mark{background:#277f69;border-radius:4px;box-shadow:-4px -2px 0 #a2bfb0;display:inline-block;width:17px;height:22px;transform:rotate(8deg);flex:none}
button,.button,input,select,textarea{font:inherit;border-radius:8px}
button,.button{background:#fff;border:1px solid var(--line);color:inherit;padding:9px 14px;cursor:pointer;text-decoration:none;display:inline-block;font-weight:650}
button:hover,.button:hover{border-color:var(--green)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green);outline-offset:2px}
button:disabled{cursor:default;opacity:.55}
.primary{background:var(--green);border-color:var(--green);color:#fff}
.home,.portal{max-width:1200px;margin:0 auto;padding:26px clamp(16px,5vw,72px)}
.hero{min-height:370px;padding:clamp(24px,5vw,70px);border-radius:16px;border:1px solid var(--line);background:linear-gradient(115deg,#fff 35%,#e9f1eb);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:16px}
h1,h2,h3,p{margin-top:0}
.hero h1{font-size:clamp(30px,5vw,55px);line-height:1.16;letter-spacing:-.025em;margin-bottom:18px}
.hero p{line-height:1.7;color:var(--soft);max-width:34ch}
.actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.hero-deck{height:246px;position:relative;overflow:hidden;isolation:isolate}
.hero-deck span,.hero-deck strong{position:absolute;top:50%;left:50%;width:96px;height:135px;border:1px solid currentColor;border-radius:10px;background:linear-gradient(145deg,#fff,#ebefec);box-shadow:inset 0 0 0 4px #ffffff9f,0 4px 8px #263c3720;display:grid;place-items:center;font-weight:670;font-size:13px;transform:translate(calc(-50% + var(--x,0px)),-50%) rotate(var(--r,0deg))}
.hero-deck span:nth-child(1){--x:-92px;--r:-22deg;color:#397b91}
.hero-deck span:nth-child(2){--x:-48px;--r:-11deg;color:#96664e}
.hero-deck span:nth-child(3){--x:48px;--r:11deg;color:#876422}
.hero-deck span:nth-child(4){--x:92px;--r:22deg;color:#537e6f}
.hero-deck strong{font:600 59px Georgia,serif;color:var(--green);background:linear-gradient(145deg,#fff,#dcebe6)}
.carriers{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:22px 0;color:var(--soft)}
.carriers span{border:1px solid var(--line);border-radius:8px;padding:7px 12px}
.signature{text-align:center;padding:8px 16px 25px;color:var(--soft)}
.paper{border:1px solid var(--line);background:#fff;border-radius:13px;padding:clamp(16px,3vw,27px);margin-bottom:14px}
.login{max-width:460px;margin:24px auto}
label{display:grid;gap:5px}
input,select,textarea{min-width:0;width:100%;border:1px solid var(--line);background:#f8faf8;color:inherit;padding:8px}
form{display:grid;gap:12px}
.row-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.row-form label{flex:1 1 135px}
.row-form button{flex:none}
body.account-open>.bar{display:none}
.account{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
#editor iframe{display:block;width:100%;height:100%;border:0}
body.editor-open{display:flex;flex-direction:column;height:100dvh}
.editor-open #editor{min-height:0;flex:1 1 auto}
.editor-open .portal{max-width:none;width:100%;padding:8px clamp(16px,5vw,72px) 0}
.editor-open .paper{padding:9px 12px;margin-bottom:5px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse}
th,td{padding:9px 10px;text-align:left;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
th{white-space:nowrap;font-size:13px;color:var(--soft)}
[data-notice]{color:var(--soft);margin:10px 0 0}
[data-notice].error{color:#973e2a}
small,.muted{color:var(--soft)}
code{overflow-wrap:anywhere}
.admin-nav{margin-bottom:12px}
.admin-nav button[aria-pressed="true"]{border-color:var(--green);color:var(--green);background:#eef5ef}
.issue-result{margin-top:14px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.inline-dialog{border:1px solid var(--line);border-radius:13px;color:inherit;width:min(480px,calc(100% - 32px))}
.inline-dialog::backdrop{background:#263c3750}
.conflict-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:8px 0}
@media(max-width:640px){.hero{grid-template-columns:1fr;gap:8px}.hero-deck{height:170px}.hero-deck span:nth-child(1){--x:-77px}.hero-deck span:nth-child(4){--x:77px}.brand{font-size:13px}.bar{min-height:54px}.row-form input{min-width:120px}}
.studio-guide-overview .studio-guide-card{padding:0}

.copy-code-button{white-space:nowrap;padding:5px 8px;color:var(--green)}
.copy-code-actions{margin-top:12px}
#full-code{font-family:ui-monospace,monospace}

.admin-detail{width:min(1060px,calc(100% - 32px));max-height:calc(100dvh - 36px)}
.admin-detail section{margin-top:18px}
.admin-row-actions{white-space:nowrap}
.admin-row-actions button+button{margin-left:6px}

.editor-open .compact-workspace-portal{padding:0}

.grant-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.grant-fields > label { margin-top: 8px; }
.grant-fields textarea { resize: vertical; }
#grant-form [role="status"] { min-height: 1.5em; }

.admin-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 15px 0 25px;
}
.admin-heading h1 { font-size: clamp(27px, 4vw, 37px); letter-spacing: -.025em; margin-bottom: 7px; }
.admin-heading p { margin-bottom: 0; }
.admin-session { display: grid; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.admin-session span, .admin-detail-facts dt { color: var(--soft); font-size: 12px; }
.admin-nav { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.admin-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.admin-overview button {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 16px 18px;
  text-align: left;
  border-radius: 13px;
}
.admin-overview button span { color: var(--soft); font-size: 13px; }
.admin-overview button strong { color: var(--green); font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.admin-overview button[aria-pressed="true"] { border-color: #8fb8a8; background: #edf5ef; }
.admin-results { padding: 0; overflow: hidden; }
.admin-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px clamp(14px, 3vw, 24px) 0;
}
.admin-table-head h2 { font-size: 18px; margin: 0; }
.admin-results form, .admin-results .admin-pagination { padding: 14px clamp(14px, 3vw, 24px); }
.admin-results .admin-pagination:not(:has(button:not([hidden]))) { display: none; }
.admin-results [data-notice] { padding-inline: 24px; }
.admin-results [data-notice]:empty { margin: 0; }
.admin-table th { background: #f1f6f1; }
.admin-table th, .admin-table td { padding: 11px 13px; vertical-align: middle; }
.admin-results .admin-table th:first-child, .admin-results .admin-table td:first-child { padding-left: clamp(14px, 3vw, 24px); }
.admin-table-users td:first-child { width: 39%; }
.admin-table-users td:first-child small { display: block; }
.admin-email-link { border: 0; background: transparent; padding: 3px 0; color: inherit; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.admin-email-link:hover { color: var(--green); text-decoration: underline; }
.admin-status { display: inline-block; border: 1px solid var(--line); background: #f2f4f2; border-radius: 6px; padding: 3px 8px; font-size: 12px; white-space: nowrap; }
.admin-status.is-active { border-color: #c4ded1; background: #edf7f1; color: #285b46; }
.admin-status.is-pending { border-color: #e5dfc5; background: #f8f5e9; color: #735d28; }
.admin-empty { padding: 26px; margin: 0; text-align: center; border-top: 1px solid var(--line); }
.admin-detail { padding: clamp(16px, 3vw, 24px); }
.admin-detail-header h2, .admin-detail-header p { margin-bottom: 4px; overflow-wrap: anywhere; }
.admin-detail-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 16px 0; padding: 14px; background: #f3f7f3; border-radius: 9px; }
.admin-detail-facts dd { margin: 5px 0 0; }
.admin-legacy { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.admin-legacy summary { cursor: pointer; font-weight: 650; margin-bottom: 10px; }

@media(max-width: 640px) {
  .admin-heading { margin-top: 2px; }
  .admin-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-table-users thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-table-users tbody, .admin-table-users { display: block; }
  .admin-table-users tr {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
  }
  .admin-results .admin-table-users tr td, .admin-results .admin-table-users tr td:first-child { padding: 4px 0; border: 0; width: auto; }
  .admin-table-users td:first-child, .admin-table-users td:last-child { grid-column: 1 / -1; }
  .admin-table-users td[data-label] { font-size: 13px; }
  .admin-table-users td[data-label]::before { content: attr(data-label) ' '; color: var(--soft); }
  .admin-detail-facts { gap: 10px 16px; }
}

/* Approved pale paper visual system, shared by home, account and operations. */
:root {
  --line: #e2e2e0; --green: #28282a; --soft: #747478;
  color: #242426; background: #fafafa; font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body { background: #fafafa; color: #242426; }
h1,h2,h3 { font-weight: 500; letter-spacing: .015em; }
.bar { min-height: 69px; padding: 16px max(24px, calc((100vw - 1200px)/2)); background: #fff; border-color: #e8e8e6; }
.brand { font-size: 16px; font-weight: 500; letter-spacing: .025em; }
.mark { background: #f1e8ce; border: 1px solid #77777a; box-shadow: -5px -2px 0 #eadfe4, -6px -3px 0 #88888b; }
button,.button {
  padding: 8px 13px; font-weight: 400; font-size: 12px; border-radius: 7px;
  background: linear-gradient(#fff,#f8f8f7); border-color: #d9d9d7;
  box-shadow: inset 0 1px 0 #fff, 0 1px 1px #20202614, 0 3px 5px #20202607;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
button:hover,.button:hover { border-color: #a4a4a8; }
button:active,.button:active { transform: translateY(1px); }
button:disabled { box-shadow: none; }
.primary { background: linear-gradient(#444446,#252527); color: #fff; border-color: #303032; box-shadow: inset 0 1px 0 #ffffff30, 0 2px 0 #1c1c1f, 0 4px 7px #16161c1c; }
input,select,textarea { background: #fdfdfd; border-color: #dcdcdc; padding: 9px 10px; font-size: 13px; }
.home { max-width: 1248px; padding: 30px 24px 0; }
.hero { min-height: 470px; padding: 42px 32px; border: 0; border-radius: 0; background: #fff; grid-template-columns: 1.04fr 1fr; gap: 24px; }
.hero h1 { font-size: clamp(27px,3.3vw,40px); font-weight: 500; line-height: 1.5; letter-spacing: .01em; margin-bottom: 19px; }
.hero p { font-size: 13px; line-height: 1.9; color: #66666c; max-width: 39ch; margin-bottom: 28px; }
.hero .actions { gap: 15px; }.hero .button { padding: 10px 18px; font-size: 13px; }
.hero-deck { height: 368px; overflow: visible; perspective: 950px; }
.hero-deck > span,.hero-deck > strong {
  --paper: #e2dce9; --x: 0px; --y: 0px; --r: 0deg;
  width: 145px; height: 207px; top: 47%; left: 50%; padding: 16px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 13px;
  background: linear-gradient(130deg, color-mix(in srgb,var(--paper) 64%,white),var(--paper));
  border: 1px solid #fff; border-radius: 13px; color: #29292c;
  box-shadow: inset 0 0 0 1px #0000000a, 0 2px 0 #fff, 0 3px 0 #cdcdcb, 0 5px 0 #fafafa, 0 6px 0 #d5d5d2, 0 8px 0 #f8f8f6, 0 9px 0 #d7d7d3, 6px 18px 23px #26262c24;
  transform: translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(var(--r)) rotateY(-7deg) rotateX(7deg);
}
.hero-deck > span:nth-child(1) { --paper: #ebd5df; --x: -68px; --y: -49px; --r: -12deg; }
.hero-deck > span:nth-child(2) { --paper: #f1e8ce; --x: 83px; --y: -40px; --r: 12deg; }
.hero-deck > span:nth-child(3) { --paper: #dedcea; --x: -103px; --y: 88px; --r: -13deg; }
.hero-deck > span:nth-child(4) { --paper: #eaddd0; --x: 112px; --y: 84px; --r: 12deg; }
.hero-deck > strong { --paper: #d7e5de; --x: 10px; --y: 87px; --r: 3deg; z-index: 3; height: 219px; font-family: inherit; font-weight: 400; }
.hero-deck i { font: 12px/1.2 inherit; font-style: normal; }
.hero-deck span b { font-size: 19px; font-weight: 500; }
.hero-deck svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; align-self: center; margin-top: 5px; }
.hero-deck strong b { font-size: 83px; line-height: 1; font-weight: 400; align-self: center; letter-spacing: -.06em; }
.hero-deck strong em { font-size: 12px; font-style: normal; align-self: center; margin-top: 9px; padding-top: 12px; border-top: 1px solid #00000015; width: 100%; text-align: center; }
.carriers { background: #f4f4f3; border: 1px solid #eaeae8; border-radius: 9px; margin: 16px 24px 0; padding: 16px 8px; gap: 0; justify-content: space-evenly; }
.carriers span { border: 0; border-radius: 0; padding: 0 12px; font-size: 12px; color: #54545a; }
.carriers span+span { border-left: 1px solid #d5d5d3; }
.signature { max-width: 1200px; margin: auto; padding: 24px 24px 30px; text-align: left; color: #727278; font-size: 11px; }
.paper { border-color: #e2e2df; box-shadow: 0 4px 16px #26262c06; }
.login h1 { font-size: 26px; font-weight: 500; }.login { margin-top: 48px; }
.admin-heading h1 { font-size: 29px; font-weight: 500; }.admin-heading p { font-size: 13px; }
.admin-overview button { background: #fff; padding: 19px; border-color: #e2e2df; box-shadow: 0 3px 0 #f2f2f0, 0 6px 12px #22222806; }
.admin-overview button strong { color: #29292d; font-weight: 500; font-size: 28px; }
.admin-overview button[aria-pressed=true], .admin-nav button[aria-pressed=true] { border-color: #aaaab0; color: #252529; background: #f0f0ee; }
.admin-table th { background: #f4f4f3; color: #707076; font-weight: 400; }
.admin-table td { font-size: 13px; padding-block: 17px; }
.admin-table td strong { font-weight: 500; }.admin-email-link { box-shadow: none; background: none; }
.admin-detail-facts { background: #f4f4f3; }.admin-detail { box-shadow: 0 20px 70px #1d1d2630; }
.admin-status { font-weight: 400; }.admin-status.is-active { background: #eff4f0; color: #4f6b58; border-color: #d5e1d7; }
.admin-status.is-pending { background: #f7f3e9; color: #786a49; }
.admin-table-head h2 { font-size: 17px; font-weight: 500; }
.inline-dialog::backdrop { background: #24242b45; backdrop-filter: blur(3px); }
@media(max-width:800px) { .hero { grid-template-columns: 1fr; padding: 28px 16px; gap: 15px; }.hero-deck { width: 100%; max-width: 460px; margin: auto; }.hero h1 { font-size: 32px; }.carriers { row-gap: 12px; }.hero p { max-width: none; }.brand { font-size: 14px; } }
@media(max-width:480px) { .bar { padding: 15px 18px; }.home { padding: 16px 12px 0; }.hero h1 { font-size: 27px; }.hero-deck { height: 310px; }.hero-deck > span,.hero-deck > strong { width: 119px; height: 171px; padding: 12px; }.hero-deck > span:nth-child(1) { --x: -55px; --y: -35px; }.hero-deck > span:nth-child(2) { --x: 64px; --y: -28px; }.hero-deck > span:nth-child(3) { --x: -77px; --y: 72px; }.hero-deck > span:nth-child(4) { --x: 82px; --y: 68px; }.hero-deck > strong { --x: 0px; --y: 76px; height: 179px; }.hero-deck span b { font-size: 16px; }.hero-deck strong b { font-size: 65px; }.hero-deck svg { width: 31px; height: 31px; }.carriers { margin-inline: 4px; }.carriers span { padding: 0 8px; font-size: 11px; } }
@media(prefers-reduced-motion:reduce) { button,.button { transition: none; } }
.hero-deck > strong { font-size: 13px; line-height: 1.3; }
.hero-deck i { font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.2; }
.hero-deck > span:nth-child(n) { color: #303034; }
.hero h1 { font-size: clamp(27px,3.2vw,38px); }
@media(max-width:480px) { .hero h1 { font-size: 27px; } }
.hero-deck[role=button] { cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 16px; }
.hero-deck[role=button]:focus-visible { outline: 2px solid #a5a5ab; outline-offset: 6px; }

.auth-tabs{display:flex;gap:6px;margin:16px 0}.auth-tabs button{flex:1;font-size:13px}.auth-tabs button[aria-pressed="true"]{background:#eeeeed;border-color:#aaa;color:#222}.auth-links{margin:12px 0}.auth-links button{border:0;box-shadow:none;background:transparent;padding:2px 0;font-size:12px;color:var(--soft)}#password-dialog{max-height:calc(100dvh - 32px);overflow:auto}#password-dialog h2{font-size:20px}#password-dialog [data-result]{font-size:13px;color:var(--soft)}
