/* Greyloop Studio: a quiet workspace with a small, recognizable exchange mark. */
:root {
  --ink: #293a32;
  --green: #3e614a;
  --muted: #69736b;
  --line: #dfe5dc;
  --canvas: #f6f7f3;
  --surface: #fff;
  --soft: #edf2e6;
  --shadow: 0 3px 12px #263b2e04, 0 1px 2px #263b2e03;
  --ease: cubic-bezier(.2,.75,.3,1);
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { background: radial-gradient(ellipse at 12% 0%, #e9efdf55, transparent 52%), var(--canvas); }
::selection { background: #dbe7cf; color: #203329; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { border-radius: 9px; min-height: 40px; transition: background-color 150ms, border-color 150ms, box-shadow 180ms, transform 180ms var(--ease); }
button:disabled { cursor: not-allowed; }
button.primary { background: var(--green); border-color: var(--green); box-shadow: inset 0 1px #ffffff12, 0 2px 3px #24382f0b; }
button.primary:disabled { box-shadow: none; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #789665; outline-offset: 4px; }
.topbar { height: 90px; border-color: var(--line); gap: 28px; }
.brand, .auth .brand { display: inline-flex; align-items: center; gap: 11px; padding: 0; width: fit-content; color: var(--ink); }
.auth .brand:before { content: none; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; box-shadow: 0 2px 5px #293d3412; border-radius: 11px; }
.brand .brand-lockup { display: block; color: inherit; font-size: inherit; line-height: 1.1; letter-spacing: -.75px; }
.brand-lockup b { display: block; font-size: 21px; font-weight: 720; }
.brand-lockup small { display: block; color: var(--muted); margin-top: 6px; font-size: 10px; letter-spacing: .75px; font-weight: 450; }
.topbar nav { gap: 4px; padding: 4px; background: #ebeee570; border: 1px solid #e3e8dd85; border-radius: 12px; }
.topbar nav button { border-radius: 8px; min-height: 36px; padding: 9px 15px; color: #687568; font-weight: 550; }
.topbar nav button.active { background: white; color: var(--ink); border-color: #dce3d5; box-shadow: 0 1px 3px #24382f08; }
.topbar nav span { display: inline-grid; place-items: center; background: #eef2e7; border-radius: 4px; min-width: 17px; height: 17px; margin-left: 5px; color: #586b4f; font-size: 10px; }
.account { color: #5c695f; font-weight: 500; font-size: 12px; border-radius: 0; }
.page-heading { margin-top: 43px; }
.page-heading h1 { color: var(--ink); font-weight: 630; letter-spacing: -1.25px; }
.eyebrow { color: #60715b; letter-spacing: 1.7px; font-size: 9px; }
.page-heading p { color: #66725f; }
.score { box-shadow: var(--shadow); border-color: #e0e6da; border-radius: 13px; }
.score b { color: #3f5c43; font-weight: 600; }
.score span { color: #65705f; }
.progress-panel { background: linear-gradient(110deg, #edf2e5, #f0f4e9); border-color: #dce5d2; box-shadow: inset 0 1px #ffffff9c; position: relative; overflow: hidden; }
.progress-panel:before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; background: #9bb58a; border-radius: 0 3px 3px 0; }
.progress-panel h2 { color: #334b35; font-variant-numeric: tabular-nums; }
progress { height: 6px; }
progress::-webkit-progress-bar { background: #dce5cf; }
progress::-webkit-progress-value { background: #789363; transition: width 350ms var(--ease); }
progress::-moz-progress-bar { background: #789363; }
.panel, .test-list, .pick-toolbar, .pick-card { border-color: var(--line); box-shadow: var(--shadow); }
.panel { background: var(--surface); }
.empty { background: linear-gradient(155deg, #fff 45%, #fafcf7); border-color: #dfe6d9; box-shadow: var(--shadow); padding: 44px 26px; }
.empty-symbol { width: 50px; height: 50px; border-radius: 16px; background: #eef3e6; color: #68815a; font-size: 27px; box-shadow: 0 0 0 6px #f6f8f1; margin-bottom: 23px; }
.empty h3 { font-size: 18px; font-weight: 600; letter-spacing: -.35px; }
.empty p { color: #65705f; line-height: 1.75; }
.empty .primary { margin-top: 2px; padding-left: 21px; padding-right: 21px; }
.pick-card { cursor: default; transition: border-color 180ms, box-shadow 180ms, background 180ms; }
.pick-card:has(input:checked) { background: #f1f6e9; border-color: #91ac79; box-shadow: 0 0 0 1px #91ac7930, var(--shadow); }
.pick-card:focus-within { border-color: #91ac79; }
.pick-card input { cursor: pointer; }
.pick-card h3 { font-weight: 630; letter-spacing: -.2px; }
.signup-count { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 17px 0 9px; color: #435c43; }
.signup-count strong { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.6px; }
.signup-count strong span { color: #69736b; font-size: 14px; font-weight: 450; letter-spacing: 0; }
.signup-count > span { color: #65705f; font-size: 12px; }
.signup-meter { display: block; width: 100%; height: 5px; margin: 0; }
.signup-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 8px; color: #65705f; font-size: 11px; font-variant-numeric: tabular-nums; }
.app-icon { background: #edf2e6; color: #55754c; border: 1px solid #e2e9d9; border-radius: 11px; }
.test-plan { color: #62785a; border-color: #e5eadf; }
.test-row { transition: background-color 150ms; border-color: #edf0e8; }
.status { border-radius: 6px; }
.status.joined { background: #eef4e8; color: #4f6d40; }
.days i { border-radius: 3px; }
.days i.done { background: #8aa477; border-color: #829c6f; }
.history-section>summary, .help-detail>summary, .danger-zone>summary { cursor: pointer; color: #62745d; padding: 4px 0; }
.history-section[open]>summary { margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=hidden]), .form textarea, .form select, .auth input:not([type=checkbox]) { background: #fcfdf9; border-color: #dfe5d9; border-radius: 9px; min-height: 44px; }
.form input:hover, .form textarea:hover, .form select:hover { border-color: #bdcbb1; }
input[type=checkbox] { accent-color: var(--green); }
.form input:focus, .form textarea:focus, .form select:focus, .auth input:focus { background: white; border-color: #9db08c; }
.form label { color: #435341; font-weight: 550; }
.field-help { color: #65705f; }
.notice { background: #f0f4e8; border-color: #dde6d0; color: #53694a; border-radius: 10px; }
.auth { border-top: 1px solid var(--line); box-shadow: 0 15px 50px #273d3408, 0 1px 3px #273d3404; border-radius: 20px; background: #ffffffef; padding: 36px; }
.auth .brand { margin-bottom: 35px; }
.auth h1 { font-size: 31px; color: var(--ink); font-weight: 630; letter-spacing: -1.1px; }
.auth .free { background: #f0f5e9; border-color: #e0e8d5; color: #5c7551; border-radius: 8px; }
.auth .auth-links button, footer button { font-weight: 450; color: #607357; }
dialog { border-color: #e1e6db; border-radius: 18px; padding: 30px; box-shadow: 0 24px 90px #172e2420, 0 4px 16px #172e2410; }
dialog[open] { animation: dialog-arrive 180ms var(--ease) both; }
dialog::backdrop { background: #26372c40; backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: backdrop-arrive 180ms ease both; }
.dialog-head { margin-bottom: 25px; }
.dialog-head h2 { font-size: 20px; font-weight: 630; letter-spacing: -.45px; }
.dialog-head button { display: grid; place-items: center; background: #f3f5ee; border-radius: 50%; width: 30px; height: 30px; min-height: 30px; font-weight: 400; color: #819078; }
.step-list li:before { border: 1px solid #dfe8d4; background: #f0f5e9; color: #657f53; }
.test-links { border-color: var(--line); }
.test-links a { transition: background-color 150ms, color 150ms; }
.developer-reply { background: #f3f7ed; border-left-color: #91a97d; border-radius: 0 7px 7px 0; }
#toast { border: 1px solid #ffffff12; border-radius: 11px; background: #2f4539; box-shadow: 0 8px 25px #24382f20; font-size: 12px; }
#toast.visible { animation: toast-arrive 200ms var(--ease) both; }
footer { border-color: var(--line); font-size: 11px; }
footer b { color: #52644c; font-weight: 600; }
.shell main { animation: content-arrive 220ms var(--ease) both; }
@keyframes content-arrive { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-arrive { from { opacity: 0; transform: translateY(5px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-arrive { from { opacity: 0; margin-bottom: -4px; } to { opacity: 1; margin-bottom: 0; } }
@media (hover:hover) and (pointer:fine) {
  button.primary:hover:not(:disabled) { background: #324f3c; border-color: #324f3c; box-shadow: 0 4px 10px #263b2e17; transform: translateY(-1px); }
  .pick-card:hover { border-color: #bdcdb0; box-shadow: 0 5px 18px #263b2e08; }
  .test-row:hover { background: #fcfdf9; }
  .brand:hover .brand-mark { transform: rotate(-4deg); }
  .brand-mark { transition: transform 200ms var(--ease); }
}
@media (max-width:760px) {
  .topbar { gap: 15px; }
  .brand-lockup b { font-size: 19px; }
  .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .topbar nav button { padding: 9px 11px; }
}
@media (max-width:800px) {
  .account { font-size: 0; }
  .account:after { font-size: 11px; }
}
@media (max-width:520px) {
  .topbar { height: 119px; gap: 0; padding-top: 15px; }
  .brand, .auth .brand { gap: 9px; }
  .brand-lockup b { font-size: 19px; letter-spacing: -.6px; }
  .brand-lockup small { font-size: 9px; margin-top: 5px; letter-spacing: .5px; }
  .brand-mark { width: 33px; height: 33px; }
  .topbar nav { width: 100%; margin-top: 12px; margin-bottom: 8px; padding: 3px; }
  .topbar nav button { font-size: 12px; min-height: 35px; }
  .account { padding: 9px 0 9px 8px; }
  .page-heading { margin-top: 31px; }
  .page-heading h1 { font-size: 28px; }
  .score { padding: 11px 12px; }
  .score b { font-size: 21px; }
  .progress-panel { padding: 22px; }
  .empty { padding: 34px 22px; }
  .empty-symbol { width: 44px; height: 44px; border-radius: 14px; }
  .empty h3 { font-size: 17px; }
  .pick-card { padding: 15px; }
  .auth { margin: 24px 15px; padding: 29px 25px; }
  .auth h1 { font-size: 29px; }
  dialog { padding: 25px 22px; border-radius: 16px; }
  .dialog-head h2 { font-size: 19px; }
  .pick-toolbar { top: 8px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.loading { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
