/* Screenshot-derived authenticated controls; excludes public and auth screens. */
body:has(.shell){--control-bg:#fafafa;--control-line:#c9ced8;--control-text:#111216;--control-muted:#667080}
body:has(.shell) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select){background:var(--control-bg);border:1px solid var(--control-line);border-radius:7px;color:var(--control-text);font-size:16px;min-height:48px;padding:11px 14px;box-shadow:inset 0 1px 0 #ffffff03;color-scheme:light}
body:has(.shell) :is(input,textarea)::placeholder{color:var(--control-muted);opacity:1}
body:has(.shell) :is(input,textarea,select):hover:enabled{border-color:#9099a8}
body:has(.shell) :is(input,textarea,select):focus-visible{outline:2px solid #243bf5;outline-offset:2px;border-color:#9196af}
body:has(.shell) :is(input,textarea,select):disabled{background-color:#e8ebf0;color:#697281;cursor:not-allowed;opacity:1}
body:has(.shell) :is(input,textarea,select)[aria-invalid=true]{border-color:#d65f68!important}
body:has(.shell) :is(input[type=checkbox],input[type=radio]){accent-color:#243bf5;min-height:18px;width:18px;flex-shrink:0}
body:has(.shell) select:not([multiple]):not([size]){padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23505866' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-position:right 14px center;background-size:20px;background-repeat:no-repeat}
body:has(.shell) :is(input[type=search],input#search){padding-left:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23505866' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");background-position:14px center;background-size:20px;background-repeat:no-repeat}
body:has(.shell) select option{color:#111216;background:#fafafa}
@supports (appearance:base-select){
 body:has(.shell) select::picker(select){background:#fafafa;color:#111216;border:1px solid #c9ced8;border-radius:10px;padding:6px;box-shadow:0 12px 28px #0004}
 body:has(.shell) select option{min-height:42px;border-radius:6px}
 body:has(.shell) select option:checked{background:#dfe6ff;color:#172ab7}
 body:has(.shell) select option:hover,body:has(.shell) select option:focus-visible{background:#eef1f7;color:#111216;outline-color:#243bf5}
 body:has(.shell) select option::checkmark{color:#243bf5}
}
body:has(.shell) :is(.main,dialog) button{border-radius:999px;min-height:44px;font-weight:500}
body:has(.shell) :is(.main,dialog) button:not(.primary):not(.text-btn):not(.industry-cta):not(.home-profile):not(.language-placeholder){background:#fafafa;color:#111216;border-color:#c9ced8}
body:has(.shell) :is(.main,dialog) button:not(.primary):not(.text-btn):hover:enabled{background:#e8edf6;color:#111216}
body:has(.shell) :is(.main,dialog) button.primary{background:#243bf5;color:white;border-color:#243bf5}
body:has(.shell) :is(.main,dialog) button.primary:hover:enabled{background:#192bd7}
body:has(.shell) :is(.main,dialog) button:focus-visible{outline:2px solid #243bf5;outline-offset:3px}
body:has(.shell) .industry-flow figcaption button{background:transparent!important;color:#505866!important;border:0}
body:has(.shell) dialog{border-radius:16px;border-color:#c9ced8}
.ui-icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex-shrink:0}
.profile-shortcuts button>span{display:flex;align-items:center;gap:12px}
.profile-services .ui-icon{width:24px;height:24px}
.task-symbol .ui-icon{width:22px;height:22px}
.dialog-head button{display:grid;place-items:center;width:44px;padding:10px}
body:has(.shell) .topbar .language-placeholder{display:inline-grid;place-items:center;width:44px;height:44px;padding:10px;border:1px solid #d8d9de;background:#f4f4f5;color:#555860;opacity:1;cursor:default;flex-shrink:0}
@media(forced-colors:active){body:has(.shell) :is(input,textarea,select){background:Canvas;color:CanvasText;border-color:ButtonText}body:has(.shell) select{appearance:auto}}

.public-nav .language-placeholder{display:inline-grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:10px;border-radius:50%;border:1px solid #ffffff24;background:#1d1d22;color:#c8c9d1;opacity:1;cursor:default}
@media(max-width:700px){.public-nav .landing-actions{flex-wrap:wrap;gap:4px}.public-nav .language-placeholder{width:44px}}

body:has(.shell) .industry-closing button{background:transparent!important;color:#fafafa!important;border-color:#626771!important}

/* The task canvas grows with the list, including the space behind the mobile dock. */
.user-shell .main:has(.start-panel) {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--ui-page, #eff1f5);
}
.user-shell .main:has(.start-panel)::before {
  content: "";
  position: absolute;
  inset: -16px 0 0 -16px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, #586f9d46 .9px, transparent 1.2px) 0 0 / 16px 16px;
  mask-image: linear-gradient(90deg, black, #0009 20%, #0009 80%, black);
}
.user-shell .main:has(.start-panel) .topbar { background: #fafafab8; }
@media (prefers-reduced-motion: no-preference) {
  .user-shell .main:has(.start-panel)::before { animation: task-dot-drift 8s linear infinite; }
}
/* One grid interval creates a continuous loop at every scroll position. */
@keyframes task-dot-drift { to { transform: translate(16px, 16px); } }
.user-shell .start-panel {
  background: linear-gradient(110deg, #eff1f566 50%, #e4eafbdb);
  isolation: isolate;
}
.user-shell .start-panel .panel-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(160px,24%);
  align-items: center;
  gap: 24px;
}
.start-copy { min-width: 0; position: relative; z-index: 1; }
.start-ai-art {
  --chip-right: 8%;
  --chip-size: 48px;
  position: relative;
  min-width: 0;
  height: 148px;
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
}
.start-ai-art img { width: 100%; height: auto; display: block; opacity: .26; }
.start-ai-art::after {
  content: "";
  position: absolute;
  right: calc(var(--chip-right) + var(--chip-size));
  top: calc(50% - 8px);
  width: 42%;
  height: 16px;
  background:
    linear-gradient(90deg, transparent 76%, #6e81d4 77% 98%, transparent 99%) 0 0 / 48px 1.5px repeat-x,
    linear-gradient(90deg, transparent 62%, #687bc9 63% 97%, transparent 98%) 9px 50% / 32px 2px repeat-x,
    linear-gradient(90deg, transparent 80%, #7f90d9 81% 98%, transparent 99%) 16px 100% / 48px 1.5px repeat-x;
  mask-image: linear-gradient(90deg, transparent, black 26%, black 98%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .start-ai-art::after { animation: task-chip-stream 3.6s linear infinite; }
}
@keyframes task-chip-stream {
  to { background-position: 48px 0, 73px 50%, 64px 100%; }
}
.start-ai-node {
  position: absolute;
  right: var(--chip-right);
  top: 50%;
  transform: translateY(-50%);
  width: var(--chip-size);
  height: var(--chip-size);
  display: grid;
  place-items: center;
  background: #eff2fc;
  border: 1px solid #cbd4f3;
  border-radius: 12px;
  color: #526bd4;
}
.start-ai-node .ui-icon { width: 28px; height: 28px; }
@media (max-width:1000px) {
  .user-shell .start-panel .panel-body { grid-template-columns: minmax(0,1fr) 140px; gap: 16px; }
  .start-ai-art { --chip-right: 0px; --chip-size: 40px; }
  .start-ai-node .ui-icon { width: 24px; height: 24px; }
}
@media (max-width:700px) {
  .user-shell .start-panel .panel-body { display: block; }
  .start-ai-art {
    --chip-size: 32px;
    position: absolute; right: 20px; top: 12px; width: 88px; height: 36px;
  }
  .start-ai-art img { display: none; }
  .start-ai-art::after { width: calc(100% - var(--chip-size)); }
  .start-ai-node { border-radius: 9px; }
  .start-ai-node .ui-icon { width: 20px; height: 20px; }
  .start-copy > .badge { max-width: calc(100% - 94px); }
}

/* Task economics use the locked claim terms. */
.attempt-steps{display:flex;gap:0;list-style:none;margin:0 0 20px;padding:0;font-size:12px;color:#667080}
.attempt-steps li{flex:1;border-top:2px solid #d8dde6;padding-top:9px}
.attempt-steps li:first-child{border-color:#9aabea}
.attempt-steps li[aria-current=step]{border-color:#243bf5;color:#243bf5;font-weight:600}
.attempt-summary{margin:20px 0 24px;padding:16px 0;border-block:1px solid #d7dce6}
.attempt-types{display:flex;flex-wrap:wrap;gap:10px 16px;color:#505866;font-size:12px;align-items:center}
.attempt-types>span{display:inline-flex;align-items:center;gap:6px}
.attempt-types>span+span{border-left:1px solid #d2d8e3;padding-left:16px}
.attempt-types .ui-icon{width:16px;height:16px}
.attempt-metrics{display:grid;grid-template-columns:1.25fr .9fr 1fr;margin:20px 0 16px;gap:16px}
.attempt-metrics>div+div{border-left:1px solid #d7dce6;padding-left:16px}
.attempt-metrics dt{font-size:12px;color:#505866;line-height:1.6}
.attempt-metrics dt small{display:block;font-size:11px;color:#667080}
.attempt-metrics dd{margin:7px 0 0;font-size:26px;line-height:1.3;letter-spacing:-.6px;font-weight:600;color:#111216;font-variant-numeric:tabular-nums}
.attempt-metrics dd small{font-size:11px;margin-left:5px;letter-spacing:0;font-weight:400;color:#505866}
.attempt-metrics dd.attempt-gain{color:#243bf5}
body:has(.shell) .dialog-body .attempt-settlement{font-size:12px;line-height:1.8;margin:0 0 6px;color:#343d50}
.attempt-terms{display:block;font-size:11px;line-height:1.75;color:#667080}
.attempt-deadline{font-size:12px;color:#505866}
@media(max-width:400px){.attempt-metrics{gap:8px}.attempt-metrics>div+div{padding-left:8px}.attempt-metrics dd{font-size:22px}.attempt-metrics dd small{display:block;margin:3px 0 0}.attempt-types{gap:8px}.attempt-types>span+span{padding-left:8px}}

/* Compact answer dialog: preserve readable text and touch targets. */
body:has(.shell) dialog:has(#submit-task){width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto}
body:has(.shell) dialog:has(#submit-task) .dialog-head{padding:10px 20px;position:sticky;top:0;background:#fafafa;z-index:2}
body:has(.shell) dialog:has(#submit-task) .dialog-body{padding:16px 20px 0}
dialog:has(#submit-task) .attempt-steps{margin-bottom:12px}
dialog:has(#submit-task) .attempt-steps li{padding-top:5px}
dialog:has(#submit-task) .dialog-body>h2{font-size:19px!important;line-height:1.4;margin:12px 0 4px!important}
dialog:has(#submit-task) .dialog-body>p{margin:4px 0;line-height:1.5}
dialog:has(#submit-task) .attempt-summary{margin:12px 0;padding:10px 0}
dialog:has(#submit-task) .attempt-metrics{margin:10px 0 8px}
dialog:has(#submit-task) .attempt-metrics dt small{display:inline;margin-left:4px}
dialog:has(#submit-task) .attempt-metrics dd{margin-top:2px;font-size:24px}
body:has(.shell) dialog:has(#submit-task) .attempt-settlement{margin:0;line-height:1.6}
dialog:has(#submit-task) .sample{padding:12px 14px;margin:12px 0;font-size:15px;line-height:1.65}
dialog:has(#submit-task) .sample-image{max-height:220px;object-fit:contain;margin:6px 0 12px}
body:has(.shell) #submit-task{gap:8px}
#submit-task>label:first-child{font-size:13px;margin:0 0 2px}
body:has(.shell) #submit-task .choice{padding:10px 12px;min-height:44px;font-size:15px;line-height:1.5}
.attempt-note{margin-top:2px;font-size:13px;color:#505866}
.attempt-note summary{cursor:pointer;min-height:44px;align-content:center}
.attempt-note label{display:block;margin-bottom:6px}
body:has(.shell) .attempt-note textarea{min-height:72px;height:72px;padding:10px 12px}
#submit-task .dialog-foot{position:sticky;bottom:0;margin:4px -20px 0;padding:12px 20px;background:#fafafa;border-top:1px solid #d7dce6;z-index:1}
@media(max-width:400px){
 body:has(.shell) dialog:has(#submit-task) .dialog-head{padding-inline:14px}
 body:has(.shell) dialog:has(#submit-task) .dialog-body{padding-inline:14px}
 #submit-task .dialog-foot{margin-inline:-14px;padding-inline:14px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 dialog:has(#submit-task) .attempt-metrics dd{font-size:22px}
 dialog:has(#submit-task) .attempt-metrics dt small{display:block;margin-left:0}
}

/* Restrained frosted shell, opaque reading surfaces, lightweight AI motion. */
body:has(.shell) dialog{background:rgba(250,251,254,.96);border:1px solid rgba(255,255,255,.85);box-shadow:0 24px 80px #111b3430,inset 0 1px 0 #fff;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
body:has(.shell) dialog::backdrop{background:rgba(18,24,39,.34);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
body:has(.shell) dialog:has(.ai-pending){width:min(460px,calc(100vw - 28px));background:rgba(247,249,255,.94)}
dialog:has(.ai-pending) .dialog-head{padding:10px 20px;background:#ffffff60;border-bottom:1px solid #dce2f0}
dialog:has(.ai-pending) .dialog-head button{visibility:hidden}
dialog:has(.ai-pending) .dialog-body{padding:18px 24px 28px}
.ai-pending{text-align:center;color:#243bf5}
.ai-stage{width:230px;height:190px;position:relative;margin:0 auto 12px;display:grid;place-items:center;isolation:isolate}
.ai-grid{position:absolute;inset:0;background:linear-gradient(#243bf50c 1px,transparent 1px),linear-gradient(90deg,#243bf50c 1px,transparent 1px);background-size:20px 20px;mask-image:radial-gradient(ellipse,#000,transparent 70%)}
.ai-orbit{position:absolute;width:180px;height:180px;border:1px solid #243bf51c;border-radius:50%;border-top-color:#6885f8;animation:ai-rotate 5s linear infinite}
.ai-orbit:after{content:'';position:absolute;inset:12px;border:1px dashed #243bf529;border-radius:50%}
.ai-robot{width:140px;height:140px;filter:drop-shadow(0 8px 10px #243bf518);animation:ai-float 3s ease-in-out infinite}
.robot-eyes{transform-box:fill-box;transform-origin:center;animation:ai-blink 3.4s ease-in-out infinite}
.robot-beacon{animation:ai-beacon 1.8s ease-in-out infinite}
.ai-scan{position:absolute;width:158px;height:26px;left:36px;top:35px;border-bottom:1px solid #5475ef66;background:linear-gradient(transparent,#678afa18);animation:ai-scan 2.5s ease-in-out infinite;pointer-events:none}
.ai-packet{position:absolute;width:7px;height:7px;border:1px solid #728cf5;background:#dfe6ff;border-radius:2px;animation:ai-inbound 2.4s ease-in-out infinite;--x:-86px;--y:-45px}
.packet-two{--x:88px;--y:-12px;animation-delay:.8s}.packet-three{--x:65px;--y:68px;animation-delay:1.6s}
.is-submitting .ai-packet{animation-name:ai-outbound}.is-submitting .ai-scan{display:none}.is-submitting .ai-orbit{animation-direction:reverse}
.ai-mode{font-size:11px;letter-spacing:2px;color:#556acc}
.ai-pending h2{font-size:21px;color:#111827;margin:10px 0 8px}
body:has(.shell) .ai-pending p{font-size:14px;line-height:1.6;color:#626c7e;margin:0 auto;max-width:330px}
.ai-pending>small{font-size:12px;color:#667080}
.ai-activity{display:flex;justify-content:center;align-items:center;gap:5px;height:26px;margin:16px 0 8px}
.ai-activity i{height:4px;width:4px;border-radius:4px;background:#6d83ee;animation:ai-signal 1.4s ease-in-out infinite}
.ai-activity i:nth-child(3n){animation-delay:.2s}.ai-activity i:nth-child(3n + 1){animation-delay:.4s}
@keyframes ai-rotate{to{transform:rotate(360deg)}}
@keyframes ai-float{50%{transform:translateY(-5px)}}
@keyframes ai-blink{0%,42%,50%,100%{transform:scaleY(1)}46%{transform:scaleY(.15)}}
@keyframes ai-beacon{50%{opacity:.4}}
@keyframes ai-scan{0%,100%{transform:translateY(0);opacity:0}20%,80%{opacity:1}90%{transform:translateY(94px);opacity:0}}
@keyframes ai-inbound{0%{transform:translate(var(--x),var(--y));opacity:0}25%{opacity:.9}100%{transform:translate(0,0);opacity:0}}
@keyframes ai-outbound{0%{transform:translate(0,0);opacity:0}25%{opacity:.9}100%{transform:translate(var(--x),var(--y));opacity:0}}
@keyframes ai-signal{50%{height:15px;opacity:.4}}
@media(prefers-reduced-motion:reduce){.ai-pending *{animation:none!important}.ai-scan,.ai-packet{display:none}.ai-orbit{border-color:#b9c5f5}}

/* Rendered robot is the main visual, with a quiet holographic stage. */
.ai-stage{width:min(320px,100%);height:270px;margin-bottom:16px;background:radial-gradient(ellipse at 50% 58%,#92b5ff24,transparent 68%)}
.ai-robot-render{width:260px;height:260px;object-fit:contain;position:relative;z-index:1;filter:drop-shadow(0 12px 16px #4058a31c);animation:ai-float 3.6s ease-in-out infinite}
.ai-orbit{width:255px;height:255px;opacity:.5}
.ai-grid{opacity:.5}
.ai-scan{width:230px;left:calc(50% - 115px);top:44px;z-index:2;animation-name:ai-render-scan}
.ai-packet{z-index:2;--x:-130px;--y:-66px}.packet-two{--x:130px;--y:-20px}.packet-three{--x:110px;--y:100px}
@keyframes ai-render-scan{0%,100%{transform:translateY(0);opacity:0}20%,75%{opacity:.65}90%{transform:translateY(175px);opacity:0}}
@media(max-height:650px){.ai-stage{height:200px}.ai-robot-render{width:195px;height:195px}.ai-orbit{width:190px;height:190px}}

/* Notices sit below the header, away from the task content and mobile dock. */
body:has(.shell) #toast{inset:96px 24px auto auto;transform:none;align-items:center;gap:12px;width:max-content;max-width:min(400px,calc(100vw - 32px));padding:12px 12px 12px 16px;background:rgba(255,255,255,.97);color:#28344d;border:1px solid #dce3f0;border-radius:14px;box-shadow:0 8px 32px #1e325019;backdrop-filter:blur(16px);font-size:14px;line-height:1.6;z-index:30;animation:toast-appear .2s ease-out}
.toast-status-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:50%;background:#eef2ff;color:#4162d9}.toast-status-icon .ui-icon{width:19px;height:19px}.toast-message{min-width:0;overflow-wrap:anywhere}
#toast button{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;padding:10px;background:transparent;color:#7a8599;border:0;border-radius:8px}#toast button:hover{background:#f0f3f9}#toast button .ui-icon{width:16px;height:16px}#toast button:focus-visible{outline:2px solid #243bf5;outline-offset:1px}
@keyframes toast-appear{from{opacity:0;translate:0 -5px}to{opacity:1;translate:0 0}}
@media(max-width:700px){body:has(.shell) #toast{inset:70px 12px auto 12px;width:auto;max-width:none;padding:10px 8px 10px 12px;font-size:13px;gap:9px}}
@media(prefers-reduced-motion:reduce){body:has(.shell) #toast{animation:none}}

#toast button{margin-left:auto}

/* Small-radius rectangular controls; only the mobile navigation remains pill-shaped. */
body button,body a.button,body .button{border-radius:8px!important}
body:has(.shell) .topbar :is(.language-placeholder,.home-profile){width:44px;height:44px;min-height:44px;border-radius:8px!important;border:1px solid #e0e3e9;background:#fff;color:#414854;box-shadow:0 1px 2px #1d293510;padding:10px}
body:has(.shell) .topbar .home-profile{display:inline-grid;place-items:center;font-size:13px;font-weight:600}
body:has(.shell) :is(.main,dialog) button.primary{border-radius:8px!important}
.public-nav .language-placeholder{border-radius:8px!important}
@media(max-width:700px){
 .user-shell{--nav-height:62px;--nav-bottom:calc(10px + env(safe-area-inset-bottom,0px));--nav-clearance:calc(var(--nav-height) + var(--nav-bottom) + 18px)}
 .user-shell .sidebar{left:max(18px,calc((100vw - 420px)/2));right:max(18px,calc((100vw - 420px)/2));padding:5px 7px;background:linear-gradient(145deg,#202127,#111217);border-color:#ffffff14;box-shadow:0 5px 20px #11182726,inset 0 1px 0 #ffffff08}
 .user-shell .sidebar .nav{gap:4px}
 .user-shell .sidebar .nav button{border-radius:999px!important;min-height:44px;padding:4px 2px;font-size:10px;line-height:1.25;gap:3px;font-weight:400}
 .user-shell .sidebar .nav button.active{background:linear-gradient(150deg,#3b3e46,#2b2d34);box-shadow:inset 0 1px 0 #ffffff0a}
 .user-shell .sidebar .nav .icon,.user-shell .sidebar .nav .icon svg{width:21px;height:21px}
 .user-shell .sidebar .nav button.active::before{display:none}
}

.shell .brand .site-logo{width:32px;height:32px;max-width:32px;object-fit:contain;flex-shrink:0}
.shell .brand>span:last-child:not(.mark){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
@media(max-width:1000px){.shell .brand>span:last-child:not(.mark){max-width:140px}}
@media(max-width:700px){.shell .brand .site-logo{width:26px;height:26px;max-width:26px}.shell .brand>span:last-child:not(.mark){max-width:180px}}

/* Compact task reader: only the content scrolls; actions remain visible. */
body:has(.shell) dialog[open]:has(#submit-task){display:flex;flex-direction:column;overflow:hidden;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
body:has(.shell) dialog:has(#submit-task) .dialog-head{flex-shrink:0;padding:10px 18px}
body:has(.shell) dialog:has(#submit-task) .dialog-body{overflow-y:auto;min-height:0;padding:12px 18px 14px;overscroll-behavior:contain}

dialog:has(#submit-task) .attempt-steps{font-size:11px;margin:0 0 10px}
dialog:has(#submit-task) .attempt-summary{margin:10px 0;padding:8px 0}
dialog:has(#submit-task) .attempt-types{font-size:12px;gap:10px}
dialog:has(#submit-task) .attempt-metrics{grid-template-columns:1fr 1fr;margin:10px 0;gap:14px}
dialog:has(#submit-task) .attempt-metrics dd{font-size:24px}
dialog:has(#submit-task) .attempt-metrics dt small{display:inline;margin-left:6px}
.attempt-rules{font-size:12px;color:#667080;line-height:1.6}.attempt-rules summary{cursor:pointer;padding:4px 0}.attempt-rules p{font-size:12px!important;margin:8px 0!important}
body:has(.shell) dialog:has(#submit-task)>.attempt-actions{flex-shrink:0;display:flex;gap:10px;justify-content:flex-end;margin:0;padding:12px 18px;background:#fafafa;border-top:1px solid #d7dce6}
body:has(.shell) dialog:has(#submit-task)>.attempt-actions button{min-height:44px;margin:0;font-size:14px;padding:10px 18px}
@media(max-width:700px){
 body:has(.shell) dialog[open]:has(#submit-task){width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}
 body:has(.shell) dialog:has(#submit-task) .dialog-head{padding:8px 14px}
 body:has(.shell) dialog:has(#submit-task) .dialog-head h2{font-size:17px}
 body:has(.shell) dialog:has(#submit-task) .dialog-body{padding:10px 14px 12px}
 dialog:has(#submit-task) .dialog-body>h2{font-size:17px!important;margin:8px 0!important}
 dialog:has(#submit-task) .attempt-metrics dd{font-size:22px}
 dialog:has(#submit-task) .attempt-metrics dd small{display:inline;margin-left:5px}
 dialog:has(#submit-task) .sample{font-size:14px;padding:10px 12px;line-height:1.6;margin:10px 0}
 body:has(.shell) #submit-task .choice{font-size:14px;padding:8px 10px}
 body:has(.shell) dialog:has(#submit-task)>.attempt-actions{padding:10px 14px max(10px,env(safe-area-inset-bottom))}
 dialog:has(#submit-task)>.attempt-actions button{flex:1}
 .attempt-deadline{font-size:11px}
}

.history-list { margin: 0; padding: 0; list-style: none; }
.history-list li {
  display: grid;
  grid-template-columns: minmax(12rem, 1.4fr) 6rem minmax(17rem, 1fr) auto;
  gap: 1rem; align-items: center; padding: 16px 20px;
}
.history-list li + li { border-top: 1px solid var(--border); }
.history-title { min-width: 0; overflow-wrap: anywhere; }
.history-title strong { font-size: 15px; }
.history-title small, .history-amounts dt { color: var(--muted); font-size: 12px; }
.history-title small { display: block; margin-top: 4px; }
.history-amounts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; }
.history-amounts dd { margin: 4px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.history-earned { color: #2844bb; }
.history-action { min-height: 44px; }
@media (max-width: 900px) {
  .history-list li { grid-template-columns: minmax(0,1fr) auto; gap: 10px 8px; padding: 14px 16px; }
  .history-status, .history-action { justify-self: end; }
}
@media (max-width: 420px) {
  .history-list li { padding-inline: 12px; }
  .history-amounts { grid-column: 1/-1; grid-row: 2; padding-right: 0; }
  .history-action { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .toolbar.history-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
}
/* Record history: quiet rows, concise metadata, no extra toolbar. */
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.history-heading h1{margin:0;font-size:30px}.history-heading p{margin:8px 0 0;color:#667080;font-size:14px}.history-heading>span{font-size:12px;color:#667080;white-space:nowrap}.history-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(0,1.3fr);padding:20px 0;margin-bottom:14px;border-block:1px solid #d5dce7}.history-overview>div{padding:0 22px}.history-overview>div{min-width:0;overflow-wrap:anywhere}.history-overview>div+div{border-left:1px solid #d5dce7}.history-overview span{display:block;font-size:12px;color:#667080}.history-overview strong{display:block;font-size:26px;font-weight:550;margin-top:8px;font-variant-numeric:tabular-nums}.history-page .history-list li{padding:22px 0;align-items:center}.history-page .history-title strong{font-size:15px;line-height:1.5;font-weight:550}.history-page .history-title small{font-size:11px;margin-top:6px}.history-page .history-amounts dd{font-size:18px;font-weight:500}.history-page .history-action{font-size:12px;padding:8px 12px;background:transparent}.history-page .badge{font-size:11px;padding:4px 8px}.history-page .history-amounts dt{font-size:11px}
@media(max-width:700px){.history-heading{margin-bottom:18px}.history-heading h1{font-size:25px}.history-heading p{font-size:12px}.history-overview{padding:16px 0}.history-overview>div{padding:0 12px}.history-overview strong{font-size:clamp(18px,5vw,23px)}.history-overview span{font-size:10px}.history-page .history-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;padding:18px 0}.history-page .history-status{grid-column:2;grid-row:1;align-self:start}.history-page .history-amounts{grid-column:1/-1;grid-row:2;gap:12px;padding:0}.history-page .history-action{grid-row:3;grid-column:2;justify-self:end;min-height:44px}.history-page .history-title strong{font-size:14px}.history-page .history-amounts dd{font-size:18px}}

.account-page { max-width: 1080px; margin-inline: auto; color: #192137; }
.account-title,.account-identity,.account-services,.account-row,.account-facts>div { display:flex; align-items:center; }
.account-title { justify-content:space-between; gap:12px; margin:0 0 20px; }
.account-title h1 { margin:0; font-size:clamp(24px,3vw,34px); letter-spacing:-.04em; }
.account-balance { background:linear-gradient(110deg,#182752,#263f82); color:#fff; padding:20px 26px; border-radius:8px; }
.account-identity { gap:10px; flex-wrap:wrap; padding-bottom:14px; border-bottom:1px solid #ffffff38; overflow-wrap:anywhere; }
.account-identity small,.account-balance dt { color:#d4def5; }
.account-balance dl { margin:16px 0 0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.account-balance dt,.account-facts dt {font-size:13px;}
.account-balance dd {margin:4px 0 0;font-variant-numeric:tabular-nums;font-size:clamp(20px,2.3vw,32px);font-weight:600;overflow-wrap:anywhere;}
.account-services {gap:8px;margin:12px 0 20px;}
.account-services button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;}
.account-services .ui-icon {width:18px;height:18px;}
.account-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;}
.account-columns h2 {font-size:17px;margin:22px 0 6px;}
.account-page button.account-row,.account-facts>div {width:100%;gap:10px;min-height:48px;padding:8px 0;border:0;border-bottom:1px solid #cbd2df;background:transparent;border-radius:0;text-align:left;box-shadow:none;}
.account-page button.account-row:hover {background:#e4e9f3;}
.account-row small,.account-facts dd {margin:0 0 0 auto;text-align:right;color:#49576d;overflow-wrap:anywhere;}
.account-row span:last-child {color:#586984;font-size:19px;}
.account-facts {margin:0;}
.account-facts dd {font-size:14px;}
.account-page .account-copy {min-height:44px;color:#2847b9;background:transparent;border:0;box-shadow:none;}
.account-logout {margin-top:16px;}
@media(max-width:700px){
  .account-title {margin-bottom:12px;}
  .account-balance {padding:14px 16px;}
  .account-balance dl {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:10px;margin-top:10px;}
  .account-balance dt {font-size:12px;}
  .account-identity {padding-bottom:10px;}
  .account-services {margin-bottom:4px;}
  .account-services button {flex:1;padding-inline:4px;}
  .account-columns {grid-template-columns:minmax(0,1fr);gap:0;}
}


/* Editable reward matrix in the operations console. */
.token-rules { width:100%; max-width:1050px; }
.token-rules fieldset { border:0; padding:0; margin:0; min-width:0; }
.rule-section-head,.rule-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.rule-section-head { margin-bottom:12px; }
.rule-section-head h2 { font-size:17px; margin:0; }
.token-rules table { table-layout:fixed; white-space:normal; border-collapse:collapse; width:100%; }
.token-rules th,.token-rules td { text-align:left; padding:9px 14px; border-bottom:1px solid #ccd3df; }
.token-rules th { background:#e4e9f1; color:#465269; font-size:13px; }
.token-rules td { background:#f8f9fc; }
.token-rules input:not([type=hidden]) { width:100%; min-width:0; height:44px; margin:0; padding:8px 10px; font-variant-numeric:tabular-nums; }
.rule-rate { position:relative; }
.token-rules .rule-rate input { padding-right:32px; }
.rule-rate span { position:absolute; top:50%; right:10px; transform:translateY(-50%); color:#52617a; font-size:12px; pointer-events:none; }
.rule-note,.rule-footer small,.rule-review small { color:#52617a; font-size:13px; }
.rule-note { margin:10px 0 24px; }
.rule-review { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:16px 0; border-block:1px solid #ccd3df; }
.rule-review label { margin:0; font-weight:600; }
.rule-review .rule-rate { width:104px; }
.token-rules .rule-review input { padding-right:40px; }
.rule-footer { margin-top:18px; }
@media(max-width:700px){
  .token-rules th,.token-rules td { padding:7px 4px; }
  .token-rules th { font-size:12px; }
  .token-rules input:not([type=hidden]) { padding-left:6px; font-size:16px; }
  .token-rules table input[type=number] { appearance:textfield; }
  .token-rules table input::-webkit-inner-spin-button { -webkit-appearance:none; }
  .rule-review small { flex-basis:100%; }
  .rule-footer { align-items:flex-start; flex-wrap:wrap; }
}

.admin-task-list { min-width:0; max-width:100%; }
#admin-task-search { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-bottom:24px; }
#admin-task-search label { min-width:0; margin:0; flex:1 1 140px; }
#admin-task-search label:first-child { flex:2 1 220px; }
#admin-task-search button { min-height:44px; }
.task-list-heading { display:flex; gap:12px; align-items:baseline; margin-bottom:10px; }
.task-list-heading h2 { font-size:17px; margin:0; }
.task-list-heading small,.task-scroll td small,.task-cell small { color:#56647b; font-weight:400; }
.task-scroll { max-width:100%; overflow-x:auto; background:#fafbfd; }
.task-scroll table { width:100%; min-width:850px; border-collapse:collapse; }
.task-scroll thead th { padding:10px 12px; background:#e4e9f1; color:#465269; }
.task-scroll tbody th,.task-scroll td { padding:10px 12px; text-align:left; border-bottom:1px solid #d4dae4; background:transparent; }
.task-scroll tbody tr:hover { background:#f0f4fa; }
.task-cell,.task-row-actions { display:flex; gap:8px; align-items:center; }
.task-cell { width:clamp(160px,16vw,260px); white-space:normal; overflow-wrap:anywhere; }
.task-cell strong {font-size:14px;}
.task-scroll small { display:block; margin-top:3px; font-size:12px; }
.task-thumbnail { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:6px; background:#e8edf7; color:#536897; overflow:hidden; }
.task-thumbnail img { width:100%; height:100%; object-fit:cover; }
.task-number {font-variant-numeric:tabular-nums;}
.task-row-actions button {min-height:36px;padding:4px 9px;}
@media(max-width:700px){
  #admin-task-search { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  #admin-task-search label:first-child { grid-column:1/-1; }
  .task-row-actions button { min-height:44px; }
}

/* Member workspace typography and navigation */
.user-shell {
  --work-font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--work-font);
}
.user-shell :is(h1,h2,h3,button,input,select,textarea,dt,dd,.metric strong) { font-family: var(--work-font); }
.user-shell :is(h1,h2,h3) { letter-spacing: -.015em; }
.user-shell :is(dd,.metric strong,.scene-metric strong) { font-variant-numeric: tabular-nums; }
.user-shell .home-profile svg { width: 20px; height: 20px; }
@media (max-width:700px) {
  .user-shell .sidebar {
    background: #fff; border-color: #cdd8dc;
    box-shadow: 0 4px 16px #17303e20;
    left: max(8px,calc((100vw - 420px)/2)); right: max(8px,calc((100vw - 420px)/2));
  }
  .user-shell .sidebar .nav { gap: 0; }
  .user-shell .sidebar .nav button {
    color: #485a64; font-size: 11px; font-weight: 500; letter-spacing: 0;
    line-height: 1.15; white-space: normal; overflow-wrap: anywhere; background: transparent;
  }
  .user-shell .sidebar .nav button.active {
    color: #075747; background: #d9f2e9; font-weight: 650; box-shadow: none;
  }
  .user-shell .sidebar .nav button:focus-visible { outline: 2px solid #187461; outline-offset: -2px; }
}
@media (min-width:701px) {
  .user-shell .topbar .desktop-workspace-nav button.active {
    color: #075747!important; background: #e3f4ed!important; font-weight: 600;
  }
}

.user-shell .history-status .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0; border: 0; background: transparent; box-shadow: none;
  font: 500 13px/1.4 var(--work-font); color: #596474;
}
.user-shell .history-status .badge::before {
  content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor;
}
.user-shell .history-status .green { color: #21664f; }
.user-shell .history-status .amber { color: #875811; }
.user-shell .history-status .red { color: #a13b42; }
body:has(.user-shell) .main .history-page button.history-action {
  display: inline-flex; align-items: center; justify-content: end; gap: 8px;
  min-height: 44px; padding: 4px 2px; background: transparent !important;
  border: 0; box-shadow: none; color: #245c52 !important; font: 600 14px/1.4 var(--work-font);
}
.history-action::after {
  content: ""; width: 7px; height: 7px; border: solid currentColor;
  border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); flex: none;
}
body:has(.user-shell) .main .history-page button.history-action:hover {
  color: #124b40 !important; text-decoration: underline; text-underline-offset: 3px;
}
