@font-face{font-family:Manrope;src:url('/portal/assets/manrope.ttf') format('truetype');font-weight:200 800;font-style:normal;font-display:swap}
:root{--ink:#f3f2ef;--muted:#a8a8a6;--line:#303030;--canvas:#090909;--paper:#131313;--accent:#f1f0eb;--focus:#e1c991;--danger:#ffaaa3;--radius:12px;font:14px/1.6 Manrope,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas);color-scheme:dark}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-underline-offset:5px}button{cursor:pointer;border:0;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:5px}::selection{background:#ece5d3;color:#141414}*{scrollbar-color:#5c5c5a #161616;scrollbar-width:thin}input{caret-color:var(--ink)}input::placeholder{color:#999996}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}h1{font-size:36px;font-weight:500;line-height:1.35;letter-spacing:-.03em}h2{font-size:20px;line-height:1.45;font-weight:550;letter-spacing:-.02em}h3{font-size:16px;font-weight:600}p{max-width:72ch}.muted{color:var(--muted)}.boot{margin:40vh auto;text-align:center;color:var(--muted)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;white-space:nowrap}.brand img{width:31px;height:31px}.brand strong{font-size:21px;letter-spacing:-.02em;font-weight:750;line-height:1}.brand strong>span{font-size:12px;letter-spacing:0;font-weight:500;margin-left:7px;vertical-align:top;color:#b6b6b2}
.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:46px;border-radius:99px;padding:12px 22px;text-decoration:none;font-weight:650;background:var(--accent);color:#141414;transition:background .2s ease-out,color .2s ease-out;white-space:nowrap}.button:hover{background:#d9d7d0}.button svg{transition:transform .25s ease-out}.button:hover svg{transform:translateX(3px)}.button.secondary{background:transparent;color:var(--ink);border:1px solid #535352}.button.secondary:hover{background:#272726;border-color:#9b9b97}.button.small{min-height:36px;padding:6px 15px;font-size:12px}.text-button{display:inline-flex;align-items:center;gap:9px;background:none;padding:8px 0;color:var(--ink);font-weight:500;text-decoration:none;min-height:40px}.text-button:hover{text-decoration:underline}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;padding:0;background:transparent;color:var(--muted)}.icon-button:hover{background:#30302e;color:white}.wide{width:100%}
/* One quiet navigation line; account administration stays within the account menu. */
.shell{min-height:100dvh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:40px;height:94px;margin:0 4.45%;border-bottom:1px solid var(--line);position:relative;z-index:10}.nav{display:flex;align-items:center;gap:34px;margin-left:auto;margin-right:auto;height:100%}.nav a{display:flex;align-items:center;height:100%;position:relative;text-decoration:none;color:var(--muted);font-size:13px;white-space:nowrap}.nav a:hover{color:var(--ink)}.nav a.active{color:var(--ink)}.nav a.active:after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--ink)}.account-menu{position:relative;min-width:130px}.account-menu summary{list-style:none;display:flex;align-items:center;justify-content:flex-end;gap:10px;cursor:pointer;font-size:13px;min-height:44px}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary>span:not(.avatar){max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu summary>svg{transform:rotate(90deg);color:var(--muted)}.account-menu[open] summary>svg{transform:rotate(-90deg)}.avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:50%;background:#deddd6;color:#272726;font-size:13px;font-weight:600;flex-shrink:0}.account-dropdown{position:absolute;top:calc(100% + 14px);right:0;width:210px;background:#20201f;padding:12px;border-radius:12px;box-shadow:0 16px 60px #0008}.account-dropdown p{padding:6px 10px 10px;color:var(--muted);font-size:11px;border-bottom:1px solid #393937;margin-bottom:6px}.account-dropdown a,.account-dropdown button{display:flex;width:100%;padding:10px;min-height:44px;border-radius:6px;text-decoration:none;font-size:13px;text-align:left}.account-dropdown a:hover,.account-dropdown button:hover,.account-dropdown a[aria-current]{background:#353533}.account-dropdown button{color:#c4c4c0}.skip-link{position:fixed;left:24px;top:-100px;z-index:100;padding:10px 20px;background:white;color:black}.skip-link:focus{top:12px}.main{width:100%;max-width:1480px;margin:auto;padding:54px 4.45% 20px;flex:1;min-width:0}.page-title{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:40px}.page-title p{color:var(--muted);font-size:13px;margin-top:13px}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:34px 4.45% 0;padding:25px 0;border-top:1px solid var(--line);font-size:11px;color:#a3a39f}.page-footer>span:first-child{letter-spacing:.06em;font-size:11px;font-weight:600;color:#c1c1bd}
/* The doorway and both product entrances share one centered composition. */
.portal-shell .topbar,.studio-shell .topbar{justify-content:space-between;flex-wrap:nowrap;flex-shrink:0;height:80px}
.portal-shell .account-menu,.studio-shell .account-menu{min-width:0}.portal-shell .account-menu summary>span:not(.avatar),.studio-shell .account-menu summary>span:not(.avatar){display:none}
.portal-shell .main{position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;max-width:none;margin:0;padding:clamp(150px,43dvh,510px) 22px clamp(28px,12dvh,116px)}
.portal-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.portal-art{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.portal-art::before{
  content:"";position:absolute;left:50%;top:0;height:94%;aspect-ratio:1672/941;transform:translateX(-70.5%);
  background:url('/portal/assets/portal-light.webp') center/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent,#000 14%,#000 86%,transparent),linear-gradient(180deg,transparent,#000 9%,#000 60%,transparent);
  mask-composite:intersect;animation:light-arrival 1.15s cubic-bezier(.16,1,.3,1) both
}
.product-grid{width:min(100%,768px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-block:1px solid var(--line);background:#090909c2}
.product-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:104px;padding:18px;text-decoration:none}
.product-card+.product-card{border-left:1px solid var(--line)}
.product-card h2{display:flex;align-items:center;justify-content:center;gap:12px;text-align:center;font-size:clamp(18px,2.2vw,27px);font-weight:550;line-height:1.3;letter-spacing:-.025em}
a.product-card{transition:background-color .2s ease-out}a.product-card:focus-visible{outline-offset:-4px}a.product-card svg{flex-shrink:0;transition:transform .25s ease-out}
@media(hover:hover){a.product-card:hover{background-color:var(--paper)}a.product-card:hover svg{transform:translateX(3px)}}
.product-state{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}
.workspace-loading{position:fixed;inset:0;z-index:1000;background:var(--canvas)}
.workspace-loading[hidden]{display:none}
.no-access{padding:12px 16px;background:var(--paper);border:1px solid var(--line);border-radius:8px;margin-bottom:16px;color:var(--muted)}
.status{display:inline-flex;align-items:center;gap:6px;font-size:10px;line-height:1.6;padding:4px 9px;color:#d4d4c8;background:#242421;border-radius:5px;white-space:nowrap}.status.off{color:#b8b8b4;background:#202020}
/* The doorway fills the stage, with sign-in set into the dark wall. */
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}
.auth-header {
  height: clamp(68px, 9vh, 88px);
  margin-inline: clamp(24px, 4.5vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.auth-header > span { color: var(--muted); font-size: 12px; }
.login-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding: 42px clamp(32px, 8vw, 168px) 56px;
}
.login-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--canvas), transparent 57%),
    url('/portal/assets/portal-light.webp') 57% center / cover no-repeat;
  animation: light-arrival 1.15s cubic-bezier(.16,1,.3,1) both;
}
.login-panel { width: min(100%, 520px); }
.login-panel h1 {
  margin-bottom: clamp(28px, 5vh, 48px);
  color: var(--ink);
  font-size: clamp(44px, 4.6vw, 72px);
  font-weight: 450;
  line-height: 1.07;
  letter-spacing: -.04em;
  text-wrap: wrap;
}
.login-panel form { width: min(100%, 368px); }
.login-panel .form-field { margin-bottom: 17px; font-size: 13px; }
.login-panel .form-field input {
  min-height: 52px;
  font-size: 16px;
}
.login-panel .password-wrap input { padding-right: 52px; }
.login-panel .password-wrap .icon-button {
  width: 44px;
  height: 44px;
  top: 4px;
  right: 4px;
}
.login-panel .login-remember {
  width: fit-content;
  margin-block: -7px 10px;
  color: var(--muted);
  font-size: 13px;
}
.login-panel .login-remember:hover { color: var(--ink); }
.login-submit { min-height: 52px; justify-content: space-between; }
@media (max-width: 680px) {
  .login-stage {
    align-items: start;
    padding: clamp(86px, 14svh, 132px) 24px 40px;
  }
  .login-stage::before {
    inset-block-end: auto;
    height: clamp(300px, 49svh, 450px);
    background:
      linear-gradient(180deg, transparent 26%, var(--canvas) 100%),
      linear-gradient(90deg, var(--canvas), transparent 78%),
      url('/portal/assets/portal-light.webp') 57% center / cover no-repeat;
  }
  .login-panel { margin-inline: auto; width: min(100%, 368px); }
  .login-panel h1 {
    margin-bottom: clamp(58px, 10svh, 86px);
    font-size: clamp(28px, 8.2vw, 50px);
  }
}
.form-field{display:flex;flex-direction:column;gap:8px;margin-bottom:22px;font-size:12px;font-weight:500;color:#d4d4cd}.form-field small{font-weight:400;color:var(--muted);font-size:11px;line-height:1.8}.form-field input,.form-field select,.search-input{border:1px solid #484845;color:var(--ink);border-radius:8px;width:100%;min-height:46px;background:#1b1b1a;padding:11px 13px;transition:border-color .18s ease-out;font-size:13px}.form-field input:hover,.form-field select:hover{border-color:#808078}.form-field input:disabled{color:#b6b6b0;background:#252523;cursor:not-allowed}.password-wrap{position:relative;display:flex}.password-wrap input{padding-right:47px}.password-wrap .icon-button{position:absolute;top:5px;right:5px}.form-error{background:#3a201e;color:var(--danger);padding:10px 12px;border-radius:6px;margin-bottom:18px;font-size:12px}.form-error:empty{display:none}
/* Studio uses the same quiet shell, with a compact workspace directory. */
.studio-shell .main{width:min(100%,920px);max-width:none;display:flex;flex-direction:column;justify-content:center;margin:0 auto;padding:clamp(28px,7dvh,72px) clamp(22px,4vw,48px)}
.ops-title{position:relative;margin-bottom:32px}
.ops-title h1{text-align:center;font-size:clamp(27px,4vw,52px);font-weight:550;line-height:1.12;letter-spacing:-.035em}
.back-products{position:absolute;left:0;top:50%;transform:translateY(-50%);color:var(--muted);font-size:12px;min-height:44px}
.back-products svg{transform:rotate(180deg)}
.workspace-list{border-top:1px solid #676760}
.workspace-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:20px;min-height:104px;padding:20px 16px;border-bottom:1px solid var(--line);text-decoration:none}
.module-symbol{display:grid;place-items:center;color:var(--muted)}
.module-heading h2{font-size:24px;font-weight:550;line-height:1.3}
.module-heading p{margin-top:4px;color:var(--muted);font-size:13px;line-height:1.5}
.workspace-action{display:flex;align-items:center;justify-content:flex-end;gap:16px}
.workspace-state{color:var(--muted);font-size:12px;text-align:right}
article.workspace-row h2{color:#c6c6c2}
a.workspace-row{transition:background-color .2s ease-out}
a.workspace-row:focus-visible{outline-offset:-3px}
.workspace-action svg{flex-shrink:0;transition:transform .25s ease-out}
@media(hover:hover){a.workspace-row:hover{background-color:var(--paper)}a.workspace-row:hover .workspace-action svg{transform:translateX(3px)}}
/* Member and account tools share the dark system, with native controls and clear states. */
.table-panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0}.table-toolbar{display:flex;gap:16px;padding:20px;align-items:center;justify-content:space-between}.table-toolbar>.muted{font-size:12px;white-space:nowrap}.search-wrap{position:relative;max-width:340px;width:100%}.search-wrap>svg{position:absolute;top:14px;left:13px;color:var(--muted)}.search-input{padding-left:40px;min-height:44px}.member-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;align-items:start}.member-layout>section{min-width:0}.member-layout.editing{grid-template-columns:minmax(0,1fr) 340px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;color:#b6b6ae;background:#1b1b19;padding:15px 20px;white-space:nowrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:20px;border-bottom:1px solid var(--line);vertical-align:middle}tr:last-child td{border-bottom:0}.member-name{display:flex;align-items:center;gap:13px}.member-name strong{font-size:13px;display:block;font-weight:500;white-space:nowrap}.member-name small{font-size:11px;color:var(--muted)}.table-perms{display:flex;gap:5px;flex-wrap:wrap;min-width:100px}.table-perms span{font-size:10px;border:1px solid #484841;border-radius:4px;padding:2px 7px;white-space:nowrap;color:#c5c5bc}.table-caption{font-size:11px;line-height:1.9;color:var(--muted);margin-top:17px}.editor-panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:26px}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.editor-heading h2{font-size:20px}.editor-panel .form-field{margin-bottom:18px}.field-title{display:block;font-size:12px;margin-bottom:10px}.permission-options{border:1px solid var(--line);border-radius:8px;padding:4px 13px}.check-label{display:flex;align-items:center;gap:10px;font-size:12px;padding:12px 0;cursor:pointer;min-height:44px}.check-label+.check-label{border-top:1px solid var(--line)}.check-label input{width:16px;height:16px;accent-color:#dcdad0;margin:0}.check-label svg{color:var(--muted)}.permission-options.disabled{opacity:.65}.permission-group-heading{font-size:11px;color:var(--muted);padding:14px 0 3px;border-top:1px solid var(--line)}.permission-help{font-size:11px;line-height:1.85;color:var(--muted);margin:11px 0 22px}.form-actions{display:flex;gap:10px;align-items:center;margin-top:22px}.form-actions .button:first-child{flex:1}.account-note{font-size:12px;line-height:1.9;color:var(--muted);padding:16px 0 24px}.reset-area{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}.reset-area h3{font-size:14px;margin-bottom:10px}.reset-area p{font-size:11px;color:var(--muted);line-height:1.85;margin-bottom:17px}.empty{text-align:center;padding:55px 25px;color:var(--muted)}.account-layout{max-width:820px;display:grid;grid-template-columns:1fr 1.35fr;gap:60px}.account-info{padding:25px 0}.account-info .avatar{width:56px;height:56px;font-size:22px;margin-bottom:22px}.account-info h2{font-size:24px;margin-bottom:5px;overflow-wrap:anywhere}.account-info>p{font-size:12px;color:var(--muted);margin-bottom:28px}.account-info dl{display:grid;grid-template-columns:50px 1fr;gap:16px;font-size:12px;margin:0}.account-info dt{color:var(--muted)}.account-info dd{margin:0;overflow-wrap:anywhere}.audit-time{font-variant-numeric:tabular-nums;white-space:nowrap;color:#babbb4}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);max-width:min(90vw,520px);background:#ecebe3;color:#1e1e1c;padding:13px 21px;border-radius:10px;box-shadow:0 10px 38px #0006;z-index:50;display:none;font-size:13px}#toast.visible{display:block;animation:toast-in .25s ease-out}.failure-page{max-width:600px;margin:18vh auto;padding:30px}.failure-page h1{margin-top:45px;font-size:30px}.failure-page p{color:var(--muted);margin:16px 0 30px}
@keyframes toast-in{from{transform:translate(-50%,8px);opacity:.8}to{transform:translate(-50%,0);opacity:1}}
@keyframes light-arrival{from{filter:brightness(.65) blur(3px)}to{filter:brightness(1) blur(0)}}
@media(max-width:1100px){.topbar{gap:24px}.member-layout.editing{grid-template-columns:minmax(0,1fr)}.member-layout.editing .editor-panel{grid-row:1;max-width:620px}}
@media(max-width:760px){h1{font-size:29px}.topbar{height:80px;margin:0 22px;gap:20px;flex-wrap:wrap}.brand strong{font-size:18px}.brand img{width:28px;height:28px}.brand strong>span{font-size:10px}.nav{gap:24px;margin:0 auto 0 0}.nav a{font-size:12px}.account-menu{min-width:0;margin-left:auto}.account-menu summary>span:not(.avatar){display:none}.account-menu summary{gap:5px}.main{padding:35px 22px 20px}.page-title{margin-bottom:30px;align-items:flex-start;gap:18px}.page-title p{font-size:12px;line-height:1.8}.page-title>.button{font-size:12px;padding:10px 17px;min-height:44px}.page-footer{margin:24px 22px 0;padding:22px 0;font-size:10px}.page-footer>span:last-child{display:none}.form-field{font-size:12px;margin-bottom:20px}.table-toolbar{padding:15px}.table-toolbar>.muted{font-size:11px}td,th{padding:16px}.table-perms{min-width:130px}.table-caption{font-size:10px}.editor-panel{padding:22px}.account-layout{grid-template-columns:minmax(0,1fr);gap:20px}.account-info{padding:0 0 16px}.member-name strong{font-size:12px}.member-layout.editing .editor-panel{max-width:none}.no-access{padding:15px;font-size:12px}.failure-page{padding:24px;margin:12vh auto}.failure-page h1{font-size:27px}}
@media(max-width:560px){.topbar{height:112px;gap:0;align-content:center;justify-content:space-between}.topbar>.brand{order:0}.account-menu{order:1}.nav{order:2;height:38px;width:100%;margin-top:12px;gap:26px}.nav a.active:after{bottom:0}.page-title:has(>.button){flex-wrap:wrap}}
@media(max-width:760px){
  .portal-shell .topbar,.studio-shell .topbar{height:68px}
  .product-grid{width:min(100%,420px);grid-template-columns:minmax(0,1fr)}
  .product-card{min-height:72px;padding:14px}
  .product-card+.product-card{border-left:0;border-top:1px solid var(--line)}
  .ops-title{margin-bottom:22px}
  .back-products{position:static;transform:none;margin-bottom:8px}
  .workspace-row{grid-template-columns:24px minmax(0,1fr) auto;gap:10px;min-height:92px;padding:14px 4px}
  .module-symbol svg{width:20px;height:20px}
  .module-heading h2{font-size:18px}
  .module-heading p,.workspace-state{font-size:11px}
  .workspace-action{gap:7px}
  .workspace-action svg{width:16px;height:16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Table content keeps readable words; narrow screens scroll within the table. */
td:not(:first-child){white-space:nowrap}.table-perms{white-space:normal}.member-name small{overflow-wrap:anywhere}

.table-scroll-hint{display:none}@media(max-width:760px){.table-scroll-hint{display:flex;align-items:center;gap:9px;font-size:11px;color:#c9c9c0;padding:12px 16px;border-top:1px solid var(--line);background:#20201d}.table-scroll-hint svg{flex-shrink:0}.table-scroll-hint+.table-scroll{border-top:0}}

.password-vault .form-field{margin-bottom:10px}
.password-vault-actions{display:flex;flex-wrap:wrap;gap:8px}
.password-vault-actions button[hidden]{display:none}
.password-vault .form-error{color:var(--danger);margin:10px 0 0}
