:root { color-scheme: light; --ink:#17243b; --muted:#5c6b80; --line:#e1e7ef; --blue:#2256c7; --wash:#f2f5fa; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--wash); font:15px/1.5 system-ui,-apple-system,sans-serif; }
a { color:var(--blue); text-decoration:none; }
a:hover { text-decoration:underline; }
button,input { font:inherit; }
button,a,input { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:active,.prototype-row:active,.domain-link:active { opacity:.72; }
a:focus-visible,button:focus-visible,input:focus-visible { outline:3px solid #85aaff; outline-offset:3px; }
button { border:1px solid var(--line); border-radius:9px; background:white; color:var(--ink); padding:.55rem .9rem; line-height:1.2; }
button:disabled { cursor:wait; opacity:.55; }
.primary { background:var(--blue); border-color:var(--blue); color:white; width:100%; margin-top:1.2rem; padding:.8rem; }
.quiet { background:transparent; }
.muted { color:var(--muted); }
.eyebrow { font-size:11px; font-weight:750; letter-spacing:.13em; color:var(--muted); }
.login-page { min-height:100dvh; display:grid; place-items:center; padding:2rem 1rem; }
.login-card { width:min(100%,410px); background:white; border:1px solid var(--line); border-radius:18px; padding:2rem; box-shadow:0 16px 48px #17243b08; }
.login-card h1 { font-size:25px; line-height:1.2; margin:.7rem 0; }
label { display:block; font-weight:600; margin:1.1rem 0 .4rem; }
input:not([type=hidden]) { width:100%; border:1px solid #bac6d7; border-radius:8px; padding:.7rem; color:var(--ink); background:white; }
.form-error { color:#a11f38; font-size:14px; min-height:3em; margin:1rem 0 0; }
.app-header { height:76px; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:0 28px; background:white; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); font-size:23px; font-weight:800; letter-spacing:-.04em; }
.header-label { border-left:1px solid var(--line); padding-left:1rem; margin-left:1rem; color:var(--muted); }
.account { display:flex; align-items:center; gap:1rem; }
.workspace { display:grid; grid-template-columns:210px minmax(0,1fr); gap:20px; padding:24px; height:calc(100dvh - 76px); max-width:1760px; margin:auto; }
.domains { min-width:0; overflow:auto; padding:8px 0; }
.domains h2 { margin:0 12px 16px; text-transform:uppercase; font-size:11px; letter-spacing:.12em; color:var(--muted); }
.domain-link { display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:11px 12px; color:var(--muted); border-radius:9px; margin-bottom:5px; }
.domain-link span:first-child { overflow-wrap:anywhere; }
.domain-link.selected { background:#e2eafa; color:#1c479f; font-weight:650; }
.count { border-radius:6px; background:#e9eef5; color:#4b5e78; font-size:11px; line-height:1.3; padding:3px 6px; flex-shrink:0; }
.collection { min-width:0; min-height:0; display:grid; grid-template-columns:minmax(260px,.95fr) minmax(300px,1.15fr); border:1px solid var(--line); border-radius:14px; background:white; overflow:hidden; }
.prototype-list { border-right:1px solid var(--line); overflow:auto; min-width:0; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:22px; border-bottom:1px solid var(--line); }
.panel-heading h1 { font-size:18px; margin:0; overflow-wrap:anywhere; }
.prototype-row { display:block; color:var(--ink); border-bottom:1px solid var(--line); padding:19px 22px; }
.prototype-row:hover { background:#f7f9fd; text-decoration:none; }
.prototype-row.selected { background:#edf3ff; box-shadow:inset 3px 0 var(--blue); }
.row-title { display:flex; justify-content:space-between; gap:1rem; overflow-wrap:anywhere; }
.row-arrow { color:#7d8fa8; }
.row-path { font-size:12px; color:var(--muted); margin:6px 0 12px; overflow-wrap:anywhere; }
.badges { display:flex; gap:6px; flex-wrap:wrap; }
.badge { font-size:10px; line-height:1.3; border-radius:5px; padding:3px 6px; color:#56657a; background:#eef1f6; }
.badge.enabled { color:#216648; background:#e5f3eb; }
.badge.public { color:#1c479f; background:#e2eafa; }
.badge.unlisted { color:#80500c; background:#fff1d6; }
.prototype-detail { overflow:auto; min-width:0; padding:30px; }
.prototype-detail h2 { font-size:26px; line-height:1.2; overflow-wrap:anywhere; margin:10px 0 18px; }
.description { white-space:pre-wrap; overflow-wrap:anywhere; margin:24px 0; }
.open-prototype { display:inline-block; margin:22px 0 8px; border:1px solid #bdceef; border-radius:8px; padding:.55rem .85rem; }
dl { margin-top:26px; border-top:1px solid var(--line); }
dt { font-size:11px; color:var(--muted); margin-top:18px; }
dd { margin:4px 0 20px; font-size:13px; overflow-wrap:anywhere; }
.empty-state { padding:32px 22px; }
.empty-state h2 { font-size:17px; margin:0 0 7px; }
.detail-empty { margin-top:20%; }
.back-link { display:none; }
.status-message { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#17243b; color:white; padding:10px 18px; border-radius:10px; z-index:10; }
@media (max-width:900px) {
  .workspace { grid-template-columns:160px minmax(0,1fr); gap:12px; padding:16px; }
  .collection { grid-template-columns:minmax(220px,1fr) minmax(240px,1fr); }
  .prototype-detail { padding:22px; }
}
@media (max-width:700px) {
  .app-header { height:66px; padding:0 16px; }
  .header-label { display:none; }
  .account { gap:.6rem; font-size:13px; }
  .workspace { display:flex; flex-direction:column; gap:12px; height:calc(100dvh - 66px); padding:12px; }
  .domains { flex-shrink:0; overflow:visible; padding:0; }
  .domains h2 { display:none; }
  .domains nav { display:flex; gap:5px; overflow:auto; }
  .domain-link { white-space:nowrap; flex-shrink:0; margin:0; padding:9px 12px; }
  .collection { display:block; flex:1; }
  .prototype-list,.prototype-detail { height:100%; overflow:auto; }
  .prototype-list { border:0; }
  .prototype-detail { display:none; }
  .collection.is-detail .prototype-list { display:none; }
  .collection.is-detail .prototype-detail { display:block; }
  .back-link { display:inline-block; margin-bottom:24px; }
}
@media (prefers-reduced-motion:no-preference) {
  button,.domain-link,.prototype-row { transition:background-color .12s,opacity .12s; }
}

.account .muted { max-width:12rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:700px) { .account .muted { max-width:7rem; } }
.domain-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; margin:0 12px 16px; }
.domain-heading h2 { margin:0; }
.small-action { font-size:12px; line-height:1.3; padding:6px 8px; border:1px solid #bdceef; border-radius:7px; background:white; white-space:nowrap; }
.small-action:active { opacity:.72; }
.list-actions { display:flex; align-items:center; gap:9px; }
.panel-heading { flex-wrap:wrap; }
.panel-heading h1 { min-width:0; }
select,textarea { width:100%; border:1px solid #bac6d7; border-radius:8px; padding:.7rem; font:inherit; color:var(--ink); background:white; }
textarea { resize:vertical; }
fieldset { min-width:0; border:1px solid var(--line); border-radius:10px; margin:14px 0 0; padding:0 14px 14px; }
fieldset[hidden] { display:none; }
.checkbox-label { display:flex; align-items:center; gap:9px; font-weight:500; }
input[type=checkbox] { width:18px; height:18px; accent-color:var(--blue); }
.field-error { color:#a11f38; font-size:13px; margin:6px 0; }
.form-actions { display:flex; align-items:center; gap:16px; margin:24px 0 10px; }
.form-actions .primary { width:auto; margin:0; }
.cancel-create { display:inline-block; margin-bottom:18px; }
@media(max-width:700px) { .domain-heading { margin:0 0 8px; justify-content:flex-end; } }



.upload-section { border:1px solid var(--line); border-radius:10px; padding:16px; margin:16px 0; }
.upload-section h3 { margin:0; font-size:16px; }
.upload-section input[type=file] { font-size:12px; padding:.5rem; }
.upload-section button { margin-top:14px; }
.upload-status { min-height:3em; font-size:13px; margin-bottom:0; }
#upload-progress { width:100%; margin-top:12px; }
#upload-preview h4 { margin-bottom:8px; }
#upload-preview details { margin:16px 0; }
.upload-file-list { max-height:220px; overflow:auto; padding-left:20px; font:12px/1.6 ui-monospace,monospace; overflow-wrap:anywhere; }
.registration-fields { border:0; padding:0; margin:0; }
.registration-fields:disabled { opacity:.55; }
.replacement-notice { border-left:3px solid var(--blue); padding-left:12px; }

.status-message { pointer-events:none; }

.upload-dropzone { border:2px dashed #a8badd; border-radius:10px; padding:24px 16px; text-align:center; background:#f7f9fd; margin:16px 0; overflow-wrap:anywhere; }
.upload-dropzone.is-dragging { border-color:var(--blue); background:#e6eeff; }
.upload-dropzone p { margin:10px 0 0; font-size:13px; min-height:3em; }

.slug-url { min-height:1.5em; margin:8px 0 0; font-size:13px; overflow-wrap:anywhere; }

.prototype-detail p { overflow-wrap:anywhere; }
