@layer reset, base, components, views, auth, device;
@layer reset {
  /* 1. Use a more-intuitive box-sizing model */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  /* 2. Remove default margin */
  *:not(dialog) {
    margin: 0;
    padding: 0;
  }
  /* 3. Enable keyword animations */
  @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  }
  body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
  }
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    margin: 0;
  }
  /* 9. Improve line wrapping */
  p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  li, a {
    text-decoration: none;
    list-style-type: none;
  }
  a, button {
    cursor: pointer;
    transition: all 400ms ease;
  }
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }
}
@layer base {
  /* Mytko design tokens: the one source of the Mytko colours, fonts, radii, sizes and shadows. Plain CSS without a cascade
   * layer, so any app can load it: the vanilla apps from Sass (@layer base { @include kit.tokens; }), Mytko Workflow with
   * a plain import before its own styles.
   *
   * Dark is the default (every Mytko app is dark, Workflow's dark theme is the same palette). [data-theme="light"] on
   * <html> (or on any element) switches to the light palette, [data-theme="dark"] makes an element a dark island in a
   * light page (Workflow's sidebar). The light palette comes from Mytko Workflow's light theme; no vanilla app uses it yet.
   *
   * Sizes are rem: the vanilla apps scale the whole interface with --ui-scale (html font-size = 16px * --ui-scale, 75% on
   * computers, 70% on phones). The size tokens below describe what the kit's components draw today (2.75rem buttons, etc.);
   * new code uses them, the components move to them in later kit versions.
   */
  :root, [data-theme=dark] {
    --bg: #0b110d;
    --surface: #111813;
    --surface-2: #151d17;
    --surface-3: #1b251d;
    --text: #edf4ee;
    --muted: #98a49a;
    --faint: #84918a; /* at least 4.5:1 on every surface (small text, WCAG AA) */
    --border: #233026;
    --border-strong: #2f3e31;
    --accent: #b7e34d;
    --accent-strong: #c9f27a;
    --accent-contrast: #142006;
    --accent-soft: #b7e34d1f;
    --accent-text: #b7e34d; /* the accent as text (on light surfaces lime is unreadable: a darker green there) */
    --warning: #f2c463;
    --warning-soft: #f2c4631c;
    --success: #8fd65a;
    --success-soft: #8fd65a1f;
    --danger: #ff9a89;
    --danger-soft: #ff9a891a;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --shadow: 0 1.125rem 3.125rem #00000073;
    --shadow-color: #00000073; /* the shadow's colour alone, for an app's own shadow shapes */
    --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --tabbar-h: 4.75rem;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --control-h: 2.75rem;
    --control-h-sm: 2.25rem;
    --control-radius: 0.6875rem;
    --radius-sm: 0.625rem;
    --sidebar-w: 15.5rem;
    --sidebar-rail-w: 4.75rem;
    color-scheme: dark;
  }
  [data-theme=light] {
    --bg: #f4f5ef;
    --surface: #ffffff;
    --surface-2: #f7f8f4;
    --surface-3: #edf0e8;
    --text: #19231b;
    --muted: #6a766c;
    --faint: #646f66;
    --border: #e0e4dc;
    --border-strong: #dce1d8;
    --accent: #b7e34d;
    --accent-strong: #c9f27a;
    --accent-contrast: #17210d;
    --accent-soft: #b7e34d33;
    --accent-text: #4f6b12;
    --warning: #875b05;
    --warning-soft: #fff0c9;
    --success: #48630a;
    --success-soft: #e8f4d0;
    --danger: #9b3525;
    --danger-soft: #ffe4de;
    --shadow: 0 0.875rem 2.375rem #17211712;
    --shadow-color: #17211712;
    color-scheme: light;
  }
  :root {
    --ui-scale: .75;
  }
  @media (max-width: 600px) {
    :root {
      --ui-scale: .7;
    }
  }
  html {
    background: var(--bg);
    font-size: calc(16px * var(--ui-scale));
  }
  body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--text);
    font: 400 0.9375rem/1.45 var(--font);
    font-synthesis: none;
    font-variant-numeric: tabular-nums;
  }
  button {
    color: inherit;
    background: none;
    border: 0;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  }
  input, select, textarea {
    color: inherit;
  }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  ::selection {
    background: rgba(183, 227, 77, 0.3333333333);
  }
  [hidden] {
    display: none !important;
  }
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .muted {
    color: var(--faint);
  }
  .i {
    flex: 0 0 auto;
    display: block;
  }
}
@layer components {
  .icon-btn {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    color: var(--muted);
  }
  .icon-btn:hover {
    color: var(--text);
    background: var(--surface-3);
  }
  .icon-btn--box {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
  }
  .icon-btn--danger:hover {
    color: var(--danger);
    background: var(--danger-soft);
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0 1.125rem;
    border-radius: 0.6875rem;
    font-weight: 650;
    white-space: nowrap;
  }
  .btn--primary {
    color: var(--accent-contrast);
    background: linear-gradient(90deg, #c3f27f, #b1ea65);
    box-shadow: 0 0.5rem 1.375rem rgba(166, 228, 91, 0.1803921569);
  }
  .btn--primary:hover {
    filter: brightness(1.05);
  }
  .btn--primary:disabled {
    opacity: 0.6;
    cursor: default;
  }
  .btn--ghost {
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
  }
  .btn--ghost:hover {
    background: var(--surface-3);
  }
  .btn--danger {
    color: #2b0d08;
    background: var(--danger);
  }
  .btn--danger-text {
    color: var(--danger);
    border-color: rgba(255, 154, 137, 0.2666666667);
  }
  .btn--danger-text:hover {
    background: var(--danger-soft);
  }
  .btn--sm {
    min-height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5625rem;
  }
  input:not([type=checkbox], [type=radio]), textarea, select {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.6875rem;
    background: var(--surface-2);
    font-size: 0.9375rem;
  }
  input:not([type=checkbox], [type=radio])::placeholder, textarea::placeholder, select::placeholder {
    color: var(--faint);
  }
  input:not([type=checkbox], [type=radio]):focus, textarea:focus, select:focus {
    border-color: #79bf55;
    outline: none;
    box-shadow: 0 0 0 0.1875rem rgba(166, 228, 91, 0.1490196078);
  }
  .field {
    display: grid;
    gap: 0.5rem;
    min-width: 0;
  }
  .field > span:first-child {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
  }
  .field__hint {
    color: var(--faint);
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  select {
    appearance: none;
    padding-right: 2.25rem;
    cursor: pointer;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a49a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  }
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    align-items: start;
  }
  .field-error {
    margin: 0;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(255, 154, 137, 0.3333333333);
    border-radius: 0.625rem;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 0.875rem;
  }
  .password-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .password-row input {
    flex: 1;
    min-width: 0;
    letter-spacing: 0.02em;
  }
  .switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
  }
  .switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .switch__track {
    position: relative;
    flex: none;
    width: 2.75rem;
    height: 1.625rem;
    border-radius: 6.1875rem;
    background: #2a352c;
    transition: background 0.15s;
  }
  .switch__track::after {
    content: "";
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #e7efe8;
    transition: transform 0.15s;
  }
  .switch input:checked + .switch__track {
    background: var(--accent);
  }
  .switch input:checked + .switch__track::after {
    transform: translateX(1.125rem);
    background: var(--accent-contrast);
  }
  .switch input:focus-visible + .switch__track {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    cursor: pointer;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4375rem;
    max-width: 100%;
    min-height: 1.75rem;
    padding: 0 0.6875rem;
    border-radius: 6.1875rem;
    border: 1px solid var(--border-strong);
    background: var(--surface-3);
    color: #dfe8e0;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chip--stage {
    border-color: rgba(183, 227, 77, 0.3333333333);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.02em;
  }
  .chip--role {
    border-color: rgba(183, 227, 77, 0.3333333333);
    color: var(--accent);
  }
  .chip--danger {
    border-color: rgba(255, 154, 137, 0.4);
    background: var(--danger-soft);
    color: var(--danger);
  }
  .avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: #2c372e;
    color: #f2f7f2;
    font-size: 0.8125rem;
    font-weight: 750;
    letter-spacing: 0.02em;
  }
  .avatar--lime {
    background: var(--accent);
    color: var(--accent-contrast);
  }
  .avatar--lg {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.125rem;
  }
  .seg {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.3125rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
  }
  .seg button {
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.625rem;
    color: #cfd8d0;
    font-size: 0.9375rem;
    font-weight: 600;
  }
  .seg button:hover {
    background: var(--surface-3);
  }
  .seg button[aria-selected=true], .seg button[aria-pressed=true] {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 750;
    box-shadow: inset 0 0 0 1px rgba(183, 227, 77, 0.4);
  }
  .seg--tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    width: min(100%, 36rem);
  }
  .seg--tabs button {
    min-height: 2.75rem;
  }
  .toasts {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 1.5rem;
    display: grid;
    gap: 0.5rem;
    transform: translateX(-50%);
    width: min(32.5rem, 100vw - 2rem);
  }
  .toast {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.75rem;
    background: #18221a;
    box-shadow: var(--shadow);
    font-size: 0.875rem;
    animation: rise 0.2s ease;
  }
  .toast span {
    flex: 1;
  }
  .toast button {
    color: var(--accent);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.4375rem;
  }
  .toast button:hover {
    background: var(--accent-soft);
  }
  .toast--error {
    border-color: rgba(255, 154, 137, 0.4);
    background: #2a1916;
  }
  @keyframes rise {
    from {
      transform: translateY(0.5rem);
      opacity: 0;
    }
  }
  .scale-options {
    display: grid;
    gap: 0.5rem;
  }
  .scale-options .check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: border-color 0.12s, background 0.12s;
  }
  .scale-options .check:hover {
    border-color: var(--border-strong);
  }
  .scale-options .check:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .scale-options .check:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .scale-options input[type=radio] {
    appearance: none;
    display: grid;
    place-content: center;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .scale-options input[type=radio]::before {
    content: "";
    width: 0.5625rem;
    height: 0.5625rem;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.12s;
  }
  .scale-options input[type=radio]:checked {
    border-color: var(--accent);
  }
  .scale-options input[type=radio]:checked::before {
    transform: scale(1);
  }
  .scale-options input[type=radio]:focus-visible {
    outline: none;
  }
  .scale-options--row {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
  .scale-options__code {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  .scale-options .check:has(input:checked) .scale-options__code {
    border-color: var(--accent);
    color: var(--accent);
  }
  .dialog {
    margin: auto;
    width: min(37.5rem, 100vw - 1.5rem);
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 1.125rem;
    background: #111913;
    color: var(--text);
    box-shadow: var(--shadow);
  }
  .dialog::backdrop {
    background: rgba(0, 0, 0, 0.6274509804);
  }
  .dialog__body {
    display: grid;
    gap: 1rem;
    padding: 1.375rem 1.5rem 1.5rem;
  }
  .dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .dialog__head h2 {
    font-size: 1.375rem;
    font-weight: 800;
  }
  .dialog__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.625rem;
    flex-wrap: wrap;
  }
  .dialog--confirm {
    width: min(28.75rem, 100vw - 1.5rem);
  }
  .dialog--sheet {
    width: min(24rem, 100vw - 1.5rem);
  }
  .dialog--form {
    width: min(36rem, 100vw - 1.5rem);
  }
  .dialog--narrow {
    width: min(28rem, 100vw - 1.5rem);
  }
  .dialog__message {
    font-size: 1rem;
    line-height: 1.55;
  }
  .dialog__left {
    margin-right: auto;
  }
  .soon-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: #cfd8d0;
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  .soon-note .i {
    color: var(--accent);
    margin-top: 0.125rem;
  }
  .empty {
    padding: 3rem 1rem;
    color: var(--faint);
    text-align: center;
  }
  .chip--own {
    min-height: 1.375rem;
    padding: 0 0.5rem;
    border-color: rgba(183, 227, 77, 0.2666666667);
    color: var(--accent);
    font-size: 0.6875rem;
  }
}
@layer views {
  .app {
    display: grid;
    grid-template-columns: 15.5rem minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
  }
  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 1.375rem 0.75rem 1rem;
    border-right: 1px solid var(--border);
    background: #090e0b;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #2f3e31 transparent;
  }
  .sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.375rem 1.625rem;
  }
  .sidebar__brand img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }
  .sidebar__brand strong {
    display: block;
    font-size: 1.25rem;
    line-height: 1.1;
    font-weight: 800;
  }
  .sidebar__brand small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .sidebar__collapse {
    margin-left: auto;
    color: var(--faint);
  }
  .sidebar__nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    align-content: start;
  }
  .sidebar__foot {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    color: #dbe4dc;
    font-size: 0.9375rem;
    font-weight: 550;
    text-align: left;
  }
  .nav-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-item .i {
    color: var(--muted);
  }
  .nav-item:hover {
    background: rgba(255, 255, 255, 0.0392156863);
  }
  .nav-item.is-active {
    border-color: rgba(183, 227, 77, 0.2509803922);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
  }
  .nav-item.is-active .i {
    color: var(--accent);
  }
  .nav-item--danger, .nav-item--danger .i {
    color: var(--danger);
  }
  .profile {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.25rem;
  }
  .profile__text {
    flex: 1;
    min-width: 0;
  }
  .profile__text strong, .profile__text small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile__text strong {
    font-size: 0.875rem;
  }
  .profile__text small {
    color: var(--muted);
    font-size: 0.7812rem;
  }
  .main {
    min-width: 0;
    padding: 1.5rem 2rem 3rem;
    outline: none;
  }
  .main > * {
    max-width: 78rem;
  }
  .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 1.5rem;
  }
  .page-head__title {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    min-width: 0;
  }
  .page-head__title h1 {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .page-head__title p {
    margin-top: 2px;
    color: #cfd8d0;
    font-size: 1.0625rem;
  }
  .page-head__eyebrow {
    margin: 0 0 0.125rem !important;
    color: var(--muted) !important;
    font-size: 0.9375rem !important;
    font-weight: 600;
  }
  .page-head__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3.625rem;
    height: 3.625rem;
    border-radius: 0.875rem;
    background: var(--accent);
    color: var(--accent-contrast);
  }
  .page-head__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .spinner {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .load-state {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 46rem;
    padding: 1.25rem 1.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
  .load-state__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: var(--surface-3);
    color: var(--accent);
  }
  .load-state__title {
    font-weight: 750;
    font-size: 1.0625rem;
  }
  .load-state > div {
    flex: 1;
    min-width: 12rem;
    display: grid;
    gap: 0.25rem;
  }
  .section-title {
    margin: 0 0 0.625rem;
    color: var(--faint);
    font-size: 0.8125rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .ord {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: var(--surface-3);
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 750;
  }
  .today-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.25rem 0 1rem;
    max-width: 46rem;
  }
  .today-head h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .today-head__date {
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 550;
  }
  .today-head__date::first-letter {
    text-transform: uppercase;
  }
  .today-head .avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    font-size: 1rem;
  }
  .week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.375rem;
    max-width: 46rem;
    margin-bottom: 1rem;
  }
  .week__day {
    display: grid;
    justify-items: center;
    gap: 0.1875rem;
    padding: 0.5rem 0 0.5625rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
  }
  .week__day.is-today {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
  }
  .week__name {
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 650;
  }
  .week__date {
    font-size: 1.125rem;
    font-weight: 750;
  }
  .week__mark {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
  }
  .week__day.is-planned .week__mark {
    border: 0.125rem solid var(--accent);
  }
  .today-card {
    display: grid;
    gap: 0.75rem;
    max-width: 46rem;
    padding: 1.125rem;
    border: 1px solid #2f4220;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #18240f 0%, var(--surface) 55%);
  }
  .today-card h2 {
    font-size: 1.375rem;
    font-weight: 800;
  }
  .today-card p {
    color: #cfd8d0;
    line-height: 1.5;
  }
  .today-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
  }
  .today-card__start {
    width: 100%;
    min-height: 3.25rem;
    font-size: 1.0625rem;
  }
  .today-card__meta {
    color: var(--faint) !important;
    font-size: 0.875rem;
    text-align: center;
  }
  .today-card__none {
    color: var(--muted) !important;
  }
  .today-card--rest, .today-card--empty {
    border-color: var(--border);
    background: var(--surface);
  }
  .today-card--empty {
    justify-items: start;
    padding: 1.5rem;
  }
  .today-card__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: var(--accent-soft);
    color: var(--accent);
  }
  .today-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .today-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--border);
  }
  .today-list li:first-child {
    border-top: 0;
  }
  .today-list__name {
    flex: 1;
    min-width: 0;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .today-list__sets {
    color: var(--muted);
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .plan-switch {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 46rem;
    margin-bottom: 0.875rem;
  }
  .plan-switch__item {
    min-height: 2.25rem;
    padding: 0 0.875rem;
    font-size: 0.875rem;
  }
  .plan-switch__item.is-on {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .plan-switch__dot {
    width: 0.4375rem;
    height: 0.4375rem;
    border-radius: 50%;
    background: var(--accent);
  }
  .plan-card {
    max-width: 46rem;
    margin-bottom: 1rem;
    padding: 1.125rem;
    border: 1px solid #2f4220;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #18240f 0%, var(--surface) 55%);
  }
  .plan-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .plan-card__head h2 {
    font-size: 1.375rem;
    font-weight: 800;
  }
  .plan-card__head p {
    margin-top: 0.25rem;
    font-size: 0.875rem;
  }
  .plan-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .schedule {
    max-width: 46rem;
    margin-bottom: 1rem;
  }
  .schedule__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.375rem;
  }
  .schedule__cell {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.125rem;
    min-height: 3.5rem;
    padding: 0.375rem 0.125rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
    color: var(--faint);
  }
  .schedule__cell.is-planned {
    border-color: rgba(183, 227, 77, 0.2509803922);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .schedule__cell.is-mine {
    border-color: transparent;
    background: var(--accent);
    color: var(--accent-contrast);
  }
  .schedule__cell:disabled {
    cursor: default;
  }
  .schedule__name {
    font-size: 0.8125rem;
    font-weight: 750;
  }
  .schedule__day {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6875rem;
    font-weight: 650;
  }
  .schedule__hint {
    margin-top: 0.5rem;
    color: var(--faint);
    font-size: 0.8125rem;
  }
  .day-tabs {
    display: flex;
    gap: 0.375rem;
    max-width: 46rem;
    margin-bottom: 0.75rem;
    padding: 0.3125rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
    scrollbar-width: none;
  }
  .day-tabs__tab, .day-tabs__add {
    flex: none;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.625rem;
    color: #cfd8d0;
    font-size: 0.9375rem;
    font-weight: 600;
  }
  .day-tabs__tab:hover {
    background: var(--surface-3);
  }
  .day-tabs__tab[aria-selected=true] {
    background: var(--surface-3);
    color: var(--text);
    font-weight: 750;
    box-shadow: inset 0 0 0 1px var(--border-strong);
  }
  .day-tabs__add {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--faint);
  }
  .day-panel {
    display: grid;
    gap: 0.75rem;
    max-width: 46rem;
  }
  .day-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .day-panel__head h3 {
    font-size: 1.1875rem;
    font-weight: 800;
  }
  .day-panel__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .day-panel__actions .icon-btn:disabled {
    opacity: 0.25;
    cursor: default;
  }
  .day-panel__empty {
    color: var(--muted);
  }
  .day-panel--first {
    justify-items: start;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--surface);
  }
  .day-panel--first p {
    color: #cfd8d0;
  }
  .items {
    display: grid;
    margin: 0;
    padding: 0.25rem 0.875rem;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
  }
  .item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0;
    border-top: 1px solid var(--border);
  }
  .item:first-child {
    border-top: 0;
  }
  .item__main {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.125rem;
    padding: 0.25rem 0;
    text-align: left;
  }
  .item__main strong {
    font-size: 0.9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .item__main small {
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .item__main:hover strong {
    color: var(--accent);
  }
  .item__note {
    color: var(--faint) !important;
    font-style: italic;
  }
  .item__move {
    display: flex;
    flex: none;
  }
  .item__move .icon-btn:disabled {
    opacity: 0.25;
    cursor: default;
  }
  .add-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    border: 1px dashed var(--border-strong);
    border-radius: 0.875rem;
    color: var(--muted);
    font-weight: 650;
  }
  .add-row:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .dialog--picker {
    width: min(40rem, 100vw - 1.5rem);
  }
  .dialog--picker .dialog__body {
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 2rem);
  }
  .picker__muscles {
    display: flex;
    gap: 0.375rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .picker__muscles .chip {
    flex: none;
    min-height: 2rem;
    cursor: pointer;
  }
  .picker__muscles .chip[aria-pressed=true] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .picker__list {
    display: grid;
    align-content: start;
    min-height: 12rem;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
  }
  .picker__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
  }
  .picker__row:first-child {
    border-top: 0;
  }
  .picker__pick {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.125rem;
    padding: 0.625rem 0.25rem;
    text-align: left;
  }
  .picker__pick small {
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .picker__pick:hover .picker__name {
    color: var(--accent);
  }
  .picker__pick:disabled {
    opacity: 0.6;
  }
  .picker__name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 650;
  }
  .picker__added {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 750;
  }
  .picker__none {
    padding: 1.5rem 0.5rem;
    color: var(--faint);
    text-align: center;
  }
  .targets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
  .today-card--live {
    border-color: var(--accent);
  }
  .today-card__empty {
    width: 100%;
  }
  .today-offline, .workout__sync {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 46rem;
    margin-bottom: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.875rem;
    line-height: 1.4;
  }
  .today-offline span, .workout__sync span {
    flex: 1;
  }
  .workout__sync--saving {
    background: var(--surface-2);
    color: var(--muted);
  }
  .workout__sync--error {
    background: var(--danger-soft);
    color: var(--danger);
  }
  .link-btn {
    flex: none;
    color: inherit;
    font-weight: 750;
    text-decoration: underline;
  }
  .workout {
    display: grid;
    gap: 0.625rem;
    max-width: 46rem;
    padding-bottom: 6rem;
  }
  .workout__top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  .workout__top .btn {
    flex: none;
  }
  .workout__title {
    flex: 1;
    min-width: 0;
    display: grid;
    text-align: center;
  }
  .workout__title strong {
    font-size: 1.0625rem;
  }
  .workout__title small {
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .workout__clock {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
  }
  .workout__clock span {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
  }
  .workout__clock small {
    color: var(--muted);
    font-size: 0.875rem;
    padding-bottom: 0.25rem;
    text-align: right;
  }
  .workout__progress {
    height: 0.375rem;
    border-radius: 999px;
    background: var(--surface-3);
    overflow: hidden;
  }
  .workout__progress i {
    display: block;
    width: var(--w, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
  }
  .workout__progress.is-saving i {
    animation: saving 0.9s ease-in-out infinite alternate;
  }
  @keyframes saving {
    from {
      opacity: 1;
    }
    to {
      opacity: 0.45;
    }
  }
  .workout__empty {
    padding: 1.5rem 0;
    color: var(--muted);
    text-align: center;
  }
  .workout__discard {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    color: var(--faint);
    font-size: 0.875rem;
  }
  .workout__discard:hover {
    color: var(--danger);
  }
  .ex {
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
  }
  .ex.is-open {
    border-color: var(--border-strong);
    padding-bottom: 0.75rem;
  }
  .ex__head {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem 0.875rem 0.5rem;
  }
  .ex__title {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.375rem;
  }
  .ex__title h2 {
    font-size: 1.0625rem;
    font-weight: 800;
  }
  .ex__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .ex__chips .chip {
    min-height: 1.5rem;
    font-size: 0.75rem;
  }
  .ex__note {
    margin: 0 0.875rem 0.5rem;
    color: var(--faint);
    font-size: 0.8125rem;
    font-style: italic;
  }
  .ex__hint {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0.625rem 0.75rem 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.8125rem;
    line-height: 1.4;
  }
  .ex__hint .i {
    margin-top: 0.0625rem;
  }
  .ex__sets-actions {
    display: flex;
    gap: 0.5rem;
    margin: 0.625rem 0.75rem 0;
  }
  .ex__sets-actions .btn {
    flex: 1;
  }
  .ex__closed {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    text-align: left;
  }
  .ex__tick {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.5rem;
    background: var(--surface-3);
    color: var(--faint);
    border: 1px solid var(--border-strong);
  }
  .ex__tick.is-on {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-contrast);
  }
  .ex__closed-text {
    flex: 1;
    min-width: 0;
    display: grid;
  }
  .ex__closed-text strong {
    font-size: 0.9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ex__closed-text small {
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .ex__chev {
    color: var(--faint);
  }
  .sets {
    display: grid;
    gap: 0.25rem;
    padding: 0 0.5rem;
  }
  .set-row {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) 2.25rem;
    gap: 0.375rem;
    align-items: center;
    padding: 0.1875rem 0.25rem;
    border-radius: 0.625rem;
  }
  .sets--rir .set-row {
    grid-template-columns: 2rem minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.65fr) 2.25rem;
  }
  .set-row--head {
    color: var(--faint);
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .set-row--head span:nth-child(n+3) {
    text-align: center;
  }
  .set-row.is-done {
    background: rgba(183, 227, 77, 0.0705882353);
  }
  .set-row__n {
    height: 2.25rem;
    border-radius: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 750;
  }
  .set-row__n--warmup {
    color: var(--warning);
  }
  .set-row__n--drop {
    color: #8fb7ff;
  }
  .set-row__prev {
    color: var(--faint);
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .set-row input.set-row__in {
    min-height: 2.5rem;
    padding: 0.375rem 0.25rem;
    border-radius: 0.5625rem;
    text-align: center;
    font-weight: 750;
    font-size: 1rem;
  }
  .set-row.is-done input.set-row__in {
    border-color: transparent;
    background: transparent;
  }
  .set-row__check {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    border: 1px solid var(--border-strong);
    background: var(--surface-3);
    color: var(--faint);
  }
  .set-row__check[aria-pressed=true] {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-contrast);
  }
  .rest {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: min(44rem, 100vw - 1.5rem);
    padding: 0.75rem 0.875rem;
    border: 1px solid #3a5226;
    border-radius: 1.25rem;
    background: rgba(26, 38, 20, 0.9490196078);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(0.75rem);
  }
  .rest__ring {
    flex: none;
  }
  .rest__ring circle {
    fill: none;
    stroke-width: 4;
  }
  .rest__ring circle:first-child {
    stroke: rgba(255, 255, 255, 0.1019607843);
  }
  .rest__ring circle:last-child {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 113;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.25s linear;
  }
  .rest__text {
    flex: 1;
    min-width: 0;
    display: grid;
  }
  .rest__text small {
    color: var(--muted);
    font-size: 0.75rem;
  }
  .rest__text strong {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .rest .btn {
    flex: none;
    padding: 0 0.625rem;
    background: rgba(255, 255, 255, 0.062745098);
    border: 1px solid rgba(255, 255, 255, 0.0941176471);
  }
  .rest.is-over {
    border-color: var(--accent);
  }
  .rest.is-over strong {
    color: var(--accent);
  }
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .stat {
    display: grid;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
  }
  .stat strong {
    font-size: 1.375rem;
    font-weight: 800;
  }
  .stat small {
    color: var(--muted);
    font-size: 0.75rem;
  }
  .finish fieldset {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .finish legend {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
  }
  .finish__left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--warning);
    font-size: 0.875rem;
  }
  .finish__own {
    display: flex;
    gap: 0.5rem;
  }
  .finish__own input {
    flex: 1;
  }
  .scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.375rem;
  }
  .scale__item {
    display: grid;
    justify-items: center;
    gap: 0.125rem;
    padding: 0.5rem 0.125rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    text-align: center;
  }
  .scale__item input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .scale__item strong {
    font-size: 1.125rem;
  }
  .scale__item small {
    font-size: 0.6875rem;
  }
  .scale__item:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .scale__item:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .tags .chip {
    min-height: 2rem;
    cursor: pointer;
  }
  .tags .chip[aria-pressed=true] {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
  }
  .month-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    max-width: 46rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface);
  }
  .month-switch strong {
    font-size: 1rem;
    font-weight: 750;
  }
  .month-switch strong::first-letter {
    text-transform: uppercase;
  }
  .history-total {
    max-width: 46rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.875rem;
  }
  .history-list {
    display: grid;
    gap: 0.5rem;
    max-width: 46rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .history-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
    text-align: left;
  }
  .history-card:hover {
    border-color: var(--border-strong);
  }
  .history-card__date {
    display: grid;
    justify-items: center;
    flex: none;
    width: 2.75rem;
    padding: 0.25rem 0;
    border-radius: 0.75rem;
    background: var(--surface-3);
  }
  .history-card__date strong {
    font-size: 1.125rem;
    font-weight: 800;
  }
  .history-card__date small {
    color: var(--muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
  }
  .history-card__main {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 0.125rem;
  }
  .history-card__main strong {
    font-size: 0.9375rem;
  }
  .history-card__main small {
    color: var(--muted);
    font-size: 0.8125rem;
  }
  .history-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
  }
  .history-card__tags .chip {
    min-height: 1.375rem;
    font-size: 0.6875rem;
  }
  .dialog--history {
    width: min(38rem, 100vw - 1.5rem);
  }
  .detail {
    display: grid;
    gap: 0.75rem;
  }
  .detail__item {
    display: grid;
    gap: 0.375rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border);
  }
  .detail__item h3 {
    font-size: 0.9375rem;
    font-weight: 750;
  }
  .detail__note {
    color: var(--faint);
    font-size: 0.8125rem;
    font-style: italic;
  }
  .detail__sets {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .detail__sets li {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
  }
  .detail__sets li:has(> span:nth-child(2):last-child) {
    grid-template-columns: 1.75rem minmax(0, 1fr);
  }
  .detail__sets input {
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
  }
  .detail__head {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    color: var(--faint);
    font-size: 0.75rem;
    font-weight: 650;
    text-align: center;
  }
  .detail__n {
    color: var(--muted);
    font-weight: 750;
    text-align: center;
  }
  .detail__n--warmup {
    color: var(--warning);
  }
  .detail__n--drop {
    color: #8fb7ff;
  }
  .progress {
    display: grid;
    gap: 0.75rem;
    max-width: 46rem;
    margin-top: 0.75rem;
  }
  .card {
    display: grid;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--surface);
  }
  .card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .card__head h2 {
    font-size: 1.0625rem;
    font-weight: 800;
  }
  .progress__exercise {
    font-weight: 700;
  }
  .progress__big {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    margin-top: 0.25rem;
  }
  .progress__big strong {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .chart {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0.25rem;
  }
  .chart line {
    stroke: var(--border);
    stroke-width: 1;
  }
  .chart__area {
    fill: rgba(183, 227, 77, 0.1215686275);
  }
  .chart__line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
  }
  .chart circle {
    fill: var(--accent);
    stroke: var(--surface);
    stroke-width: 2;
  }
  .chart--small {
    margin: 0;
  }
  .chart__dates {
    display: flex;
    justify-content: space-between;
    color: var(--faint);
    font-size: 0.75rem;
  }
  .progress__records {
    display: grid;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
  }
  .progress__records li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
  }
  .progress__records .grow {
    flex: 1;
    font-weight: 650;
  }
  .progress__trophy {
    color: var(--warning);
    display: grid;
  }
  .bars {
    display: grid;
    gap: 0.375rem;
  }
  .bars__row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) 2.75rem;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
  }
  .bars__track {
    position: relative;
    height: 0.625rem;
    border-radius: 999px;
    background: var(--surface-3);
  }
  .bars__track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w, 0%);
    border-radius: inherit;
    background: var(--accent);
  }
  .bars__track i.is-low {
    background: var(--warning);
  }
  .bars__zone {
    position: absolute;
    inset: 0 0 0 50%;
    border-left: 1px dashed rgba(183, 227, 77, 0.4);
    background: rgba(183, 227, 77, 0.0705882353);
    border-radius: 0 999px 999px 0;
  }
  .bars__value {
    text-align: right;
    color: var(--muted);
    font-weight: 650;
  }
  .bars__value.is-low {
    color: var(--warning);
  }
  .body-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .body-list button {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    text-align: left;
  }
  .body-list button span:first-child {
    color: var(--muted);
  }
  .body-list button:hover span:last-child {
    color: var(--accent);
  }
  .today-stats {
    max-width: 46rem;
    margin-top: 0.75rem;
  }
  .today-stats .stat small small, .today-stats .stat strong small {
    color: var(--faint);
    font-size: 0.9375rem;
  }
  .soon {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    max-width: 46rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    background: var(--surface);
  }
  .soon__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--accent-soft);
    color: var(--accent);
  }
  .soon__text {
    display: grid;
    gap: 0.5rem;
  }
  .soon__text p {
    color: #cfd8d0;
    line-height: 1.55;
  }
  .soon__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--text) !important;
    font-size: 1.1875rem;
    font-weight: 800;
  }
  .settings {
    display: grid;
    gap: 1rem;
    max-width: 46rem;
  }
  .settings-block {
    display: grid;
    gap: 0.875rem;
    padding: 1.25rem 1.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
  }
  .settings-block__title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.125rem;
    font-weight: 750;
  }
  .settings-block__title .i {
    color: var(--accent);
  }
  .settings-block__note {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .settings-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .settings-block__buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
  }
  .accounts {
    display: grid;
    gap: 0.5rem;
  }
  .accounts__empty {
    padding: 0.75rem 0.25rem;
    font-size: 0.9375rem;
  }
  .account-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.625rem 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    background: var(--surface-2);
  }
  .account-row.is-disabled {
    opacity: 0.72;
  }
  .account-row.is-disabled .avatar {
    filter: grayscale(1);
  }
  .account-row__text {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
  }
  .account-row__text strong {
    font-size: 1rem;
  }
  .account-row__text small {
    color: var(--muted);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
  }
  .account-row__me {
    color: var(--faint);
    font-weight: 500;
  }
  .account-row__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.125rem;
  }
  .account-row__chips .chip {
    min-height: 1.5rem;
    font-size: 0.75rem;
  }
  .account-row__actions {
    grid-column: 2/-1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
  }
  .account {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
  }
  .account__text {
    flex: 1;
    min-width: 10rem;
    display: grid;
    gap: 0.125rem;
  }
  .account__text strong {
    font-size: 1.0625rem;
  }
  .account__text span {
    color: var(--muted);
    font-size: 0.875rem;
  }
  .account__text b {
    color: var(--text);
    font-weight: 650;
  }
  .sheet-nav {
    display: grid;
    gap: 0.25rem;
  }
  .sheet-nav .nav-item {
    min-height: 3.25rem;
    font-size: 1rem;
  }
  .tabbar {
    display: none;
  }
  @media (min-width: 901px) {
    .app.sidebar-collapsed {
      grid-template-columns: 4.75rem minmax(0, 1fr);
    }
    .app.sidebar-collapsed .sidebar {
      padding: 1.125rem 0.625rem 0.875rem;
    }
    .app.sidebar-collapsed .sidebar__brand {
      flex-direction: column;
      gap: 0.625rem;
      padding: 0 0 1.125rem;
    }
    .app.sidebar-collapsed .sidebar__brand > span {
      display: none;
    }
    .app.sidebar-collapsed .sidebar__collapse {
      margin: 0;
    }
    .app.sidebar-collapsed .nav-item {
      justify-content: center;
      padding: 0;
    }
    .app.sidebar-collapsed .nav-item > span {
      display: none;
    }
    .app.sidebar-collapsed .profile {
      flex-direction: column;
      gap: 0.5rem;
    }
    .app.sidebar-collapsed .profile__text {
      display: none;
    }
  }
  @media (max-width: 900px) {
    .app {
      grid-template-columns: minmax(0, 1fr);
    }
    .sidebar {
      display: none;
    }
    .main {
      padding: calc(1rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) calc(var(--tabbar-h) + 2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    }
    .page-head {
      margin: 0.25rem 0 1rem;
    }
    .page-head__title h1 {
      font-size: 1.75rem;
    }
    .page-head__title p {
      font-size: 0.9375rem;
    }
    .page-head__icon {
      width: 3rem;
      height: 3rem;
    }
    .soon {
      padding: 1.125rem;
      gap: 1rem;
    }
    .field-row {
      grid-template-columns: 1fr;
    }
    .account-row__actions {
      grid-column: 1/-1;
    }
    .password-row {
      flex-wrap: wrap;
    }
    .password-row .btn {
      flex: 1 1 100%;
    }
    .toasts {
      bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom));
    }
    .tabbar {
      position: fixed;
      z-index: 50;
      inset: auto 0 0 0;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      align-items: end;
      height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
      padding: 0 max(0.5rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0.5rem, env(safe-area-inset-left));
      border-top: 1px solid var(--border);
      background: color-mix(in srgb, #090e0b 94%, transparent);
      backdrop-filter: blur(0.75rem);
    }
    .tabbar__item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.25rem;
      height: var(--tabbar-h);
      color: var(--faint);
      font-size: 0.75rem;
      font-weight: 650;
    }
    .tabbar__item span {
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .tabbar__item.is-active {
      color: var(--accent);
    }
    .tabbar__add {
      justify-self: center;
      display: grid;
      place-items: center;
      width: 4rem;
      height: 4rem;
      margin-bottom: calc(var(--tabbar-h) - 4rem + 1.125rem);
      border-radius: 1.375rem;
      color: var(--accent-contrast);
      background: linear-gradient(135deg, #c9f27a, #a9e25b);
      box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.6666666667), 0 0 0 0.3125rem var(--bg), 0 0 1.5rem rgba(183, 227, 77, 0.2509803922);
    }
    .tabbar__add:active {
      transform: scale(0.96);
    }
    body:has(dialog[open]) .tabbar {
      display: none;
    }
    .dialog {
      width: 100vw;
      max-width: 100vw;
      margin: auto 0 0;
      max-height: 92dvh;
      border-radius: 1.25rem 1.25rem 0 0;
      border-bottom: 0;
    }
    .dialog__body {
      padding: 1.125rem 1rem calc(1rem + env(safe-area-inset-bottom));
      gap: 0.875rem;
    }
    .dialog__actions .btn {
      flex: 1;
    }
    .today-head h1 {
      font-size: 1.75rem;
    }
    .week {
      gap: 0.25rem;
    }
    .schedule__grid {
      gap: 0.25rem;
    }
    .dialog--picker .dialog__body {
      max-height: 92dvh;
    }
    .app.is-workout .tabbar {
      display: none;
    }
    .app.is-workout .main {
      padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    }
    .workout__clock span {
      font-size: 2.5rem;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .spinner {
      animation-duration: 2.4s;
    }
  }
}
@layer auth {
  /* Operator login and start-up screens (AUTH-01). Brand screens: fixed palette in both themes. */
  .auth {
    --auth-ink:#0e1a12;
    --auth-deep:#07110b;
    --auth-lime:#b6ef74;
    --auth-lime-strong:#a6e45b;
    --auth-muted:#5d6b66;
    --auth-line:#dfe6e1;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  }
  /* Decorative orbits shared by both screens */
  .orbits {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .orbits__sphere {
    position: absolute;
    border-radius: 50%;
  }
  .orbits__ring {
    position: absolute;
    border: 1px solid rgba(182, 239, 116, 0.1490196078);
    border-radius: 50%;
    animation: orbit-spin 120s linear infinite;
  }
  .orbits__ring--inner {
    animation-duration: 90s;
    animation-direction: reverse;
  }
  .orbits__ring i {
    position: absolute;
    inset: -1px;
    transform: rotate(var(--a, 0deg));
  }
  .orbits__ring i::after {
    content: "";
    position: absolute;
    top: -0.25rem;
    left: 50%;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: -0.25rem;
    border-radius: 50%;
    background: #c9f78f;
    box-shadow: 0 0 0.375rem 2px rgba(182, 239, 116, 0.6901960784), 0 0 1.125rem 0.375rem rgba(143, 220, 90, 0.2509803922);
  }
  @keyframes orbit-spin {
    to {
      transform: rotate(360deg);
    }
  }
  /* Login: split screen */
  .auth {
    display: grid;
    grid-template-columns: minmax(0, 59fr) minmax(0, 41fr);
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    color: var(--auth-ink);
  }
  .auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2.5rem, 5.7vw, 6rem) clamp(1.75rem, 5vw, 5.25rem) clamp(2.5rem, 5.4vw, 5.625rem);
    color: #f4f8f3;
    background: radial-gradient(ellipse 70% 60% at 100% 100%, rgba(62, 154, 58, 0.5019607843) 0%, transparent 60%), linear-gradient(180deg, #0a1711 0%, #08130d 55%, #0b1d12 100%);
    isolation: isolate;
  }
  .auth-hero .orbits {
    z-index: -1;
  }
  .orbits--login .orbits__ring--outer {
    --d:min(50rem,82vw);
    width: var(--d);
    height: var(--d);
    left: calc(100% - var(--d) * 0.5);
    top: calc(49% - var(--d) * 0.5);
  }
  .orbits--login .orbits__ring--inner {
    --d:min(46.25rem,76vw);
    width: var(--d);
    height: var(--d);
    left: calc(100% - var(--d) * 0.49);
    top: calc(41% - var(--d) * 0.5);
    border-color: rgba(182, 239, 116, 0.1019607843);
  }
  .orbits--login .orbits__ring--outer i:first-child {
    --a:-35deg;
  }
  .orbits--login .orbits__ring--outer i:last-child {
    --a:233deg;
  }
  .orbits--login .orbits__ring--inner i {
    display: none;
  }
  .orbits--login .orbits__sphere--a {
    --d:min(42.5rem,70vw);
    width: var(--d);
    height: var(--d);
    left: calc(100% - var(--d) * 0.34);
    top: calc(60% - var(--d) * 0.5);
    background: radial-gradient(circle at 74% 78%, #a6ee77 0%, #5fbd4b 16%, #2a6d2d 36%, #123620 56%, #0c2015 70%);
    box-shadow: inset 0.1875rem 0 0 rgba(159, 233, 114, 0.3333333333), inset 1.125rem 0 2.5rem rgba(111, 211, 90, 0.1882352941), 0 0 5.625rem rgba(95, 189, 75, 0.2509803922);
  }
  .orbits--login .orbits__sphere--b {
    display: none;
  }
  .auth-brand {
    display: flex;
    align-items: center;
    gap: 1.875rem;
  }
  .auth-brand__tile {
    width: 5.375rem;
    height: 5.375rem;
    border-radius: 1.375rem;
    box-shadow: 0 0 0 1px rgba(182, 239, 116, 0.2), 0 0.75rem 1.875rem rgba(0, 0, 0, 0.5333333333), 0 0 1.875rem rgba(127, 214, 90, 0.1490196078);
  }
  .auth-brand strong, .auth-brand span span {
    display: block;
    font: 700 clamp(1.5rem, 1.85vw, 1.9375rem)/1.2 Manrope, Inter, sans-serif;
  }
  .auth-brand span span {
    color: #a9b4ad;
    font-weight: 600;
  }
  .auth-hero__copy {
    margin-top: auto;
    max-width: 40rem;
  }
  .auth-hero__title {
    margin: 0;
    font: 800 clamp(2.125rem, 3.75vw, 4rem)/1.12 Manrope, Inter, sans-serif;
    letter-spacing: -0.025em;
  }
  .auth-hero__title span {
    display: block;
    color: var(--auth-lime);
  }
  .auth-hero__lead {
    margin: 1.375rem 0 0;
    color: #c6d0c9;
    font-size: clamp(1rem, 1.3vw, 1.375rem);
    line-height: 1.6;
  }
  .auth-features {
    display: grid;
    gap: clamp(1.125rem, 2vw, 1.75rem);
    margin: clamp(2rem, 3.6vw, 3.75rem) 0 0;
    padding: 0;
    list-style: none;
  }
  .auth-features li {
    display: flex;
    align-items: center;
    gap: 1.875rem;
  }
  .auth-features__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid rgba(182, 239, 116, 0.1803921569);
    border-radius: 0.875rem;
    color: var(--auth-lime);
    background: linear-gradient(160deg, #16301e, #0d1c13);
  }
  .auth-features strong, .auth-features li > span:last-child > span {
    display: block;
  }
  .auth-features strong {
    font-size: clamp(1rem, 1.15vw, 1.1875rem);
    font-weight: 650;
  }
  .auth-features li > span:last-child > span {
    margin-top: 0.375rem;
    color: #b4bfb7;
    font-size: clamp(0.875rem, 1vw, 1.0625rem);
  }
  .auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 6.3vw, 6.625rem);
    background: #fff;
  }
  .auth-card {
    width: 100%;
    max-width: 30.625rem;
  }
  .auth-card h1 {
    margin: 0;
    color: var(--auth-ink);
    font: 800 clamp(1.875rem, 2.3vw, 2.375rem)/1.15 Manrope, Inter, sans-serif;
    letter-spacing: -0.02em;
  }
  .auth-card__lead {
    margin: 0.875rem 0 0;
    color: var(--auth-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
  }
  .auth-notice, .auth-alert {
    margin: 1.125rem 0 0;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.45;
  }
  .auth-notice {
    background: #eef7e3;
    color: #365216;
    border: 1px solid #d3e8b8;
  }
  .auth-alert {
    background: #fff1ee;
    color: #8f2f21;
    border: 1px solid #f1c7bd;
  }
  .auth-quick {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    min-height: 3.75rem;
    margin-top: 2.375rem;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 0.75rem;
    color: #f3f8f1;
    background: linear-gradient(90deg, #0f2416 0%, #1d4524 100%);
    box-shadow: 0 0.625rem 1.625rem rgba(29, 69, 36, 0.2509803922);
    font-size: 1.125rem;
    font-weight: 550;
  }
  .auth-quick img {
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 0.4375rem;
  }
  .auth-quick strong {
    font-weight: 800;
  }
  .auth-quick:not(:disabled):hover {
    filter: brightness(1.12);
  }
  .auth-quick:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
  }
  .auth-divider {
    display: flex;
    align-items: center;
    gap: 1.375rem;
    margin: 2rem 0 0;
    color: var(--auth-muted);
    font-size: 1rem;
  }
  .auth-divider::before, .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
  }
  .auth-form {
    display: grid;
    margin-top: 1.625rem;
  }
  .auth-form label {
    margin: 0 0 0.625rem;
    color: var(--auth-ink);
    font-size: 1rem;
    font-weight: 550;
  }
  .auth-form label:not(:first-child) {
    margin-top: 1.625rem;
  }
  .auth-form input {
    width: 100%;
    min-height: 3.375rem;
    padding: 0.75rem 1.375rem;
    border: 1px solid var(--auth-line);
    border-radius: 0.6875rem;
    color: var(--auth-ink);
    background: #f6f8f7;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  }
  .auth-form input:focus, .auth-form input:focus-visible {
    border-color: #79bf55;
    background: #f4faf2;
    box-shadow: 0 0 0 0.25rem rgba(166, 228, 91, 0.2196078431);
    outline: none;
  }
  .auth-form input[aria-invalid=true] {
    border-color: #d9897a;
  }
  .auth-form input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  .auth-form__hint {
    margin: 0.5625rem 0 0;
    color: var(--auth-muted);
    font-size: 0.875rem;
  }
  .auth-password {
    position: relative;
    display: flex;
  }
  .auth-password input {
    padding-right: 4.875rem;
    letter-spacing: 0.02em;
  }
  .auth-password input[type=password] {
    letter-spacing: 0.18em;
  }
  .auth-password__toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: grid;
    place-items: center;
    width: 3.75rem;
    border: 0;
    border-left: 1px solid var(--auth-line);
    border-radius: 0 0.625rem 0.625rem 0;
    color: #76837d;
    background: transparent;
  }
  .auth-password__toggle:hover {
    color: var(--auth-ink);
    background: #eef2ef;
  }
  .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.75rem;
    margin-top: 1.875rem;
    border: 0;
    border-radius: 0.75rem;
    color: #14220d;
    background: linear-gradient(90deg, #c3f27f 0%, #b1ea65 100%);
    box-shadow: 0 0.625rem 1.5rem rgba(166, 228, 91, 0.2784313725);
    font-size: 1.1875rem;
    font-weight: 700;
  }
  .auth-submit:not(:disabled):hover {
    filter: brightness(0.97);
  }
  .auth-submit:disabled {
    cursor: default;
    opacity: 0.7;
  }
  .auth-form .auth-alert {
    margin-top: 1.125rem;
  }
  .auth-card__foot {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    font-size: 0.9375rem;
    text-align: center;
  }
  .auth-card__foot p {
    margin: 0;
  }
  .auth-lang {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1.25rem !important;
  }
  .auth-lang button {
    min-width: 3.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--auth-line);
    border-radius: 999px;
    background: transparent;
    color: var(--auth-muted);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
  }
  .auth-lang button[aria-pressed=true] {
    border-color: #79bf55;
    color: var(--auth-ink);
    background: #eef7e8;
  }
  .auth-link {
    padding: 0;
    border: 0;
    background: none;
    color: #2f7a1e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.1875rem;
  }
  .auth-link:hover {
    color: #1f5a12;
  }
  .auth-card__help {
    margin: 0.875rem 0 0 !important;
    color: var(--auth-muted);
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .auth-quick:focus-visible, .auth-submit:focus-visible, .auth-password__toggle:focus-visible, .auth-link:focus-visible, .auth-lang button:focus-visible {
    outline: 0.1875rem solid #79bf55;
    outline-offset: 0.1875rem;
  }
  .auth-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2.5px solid rgba(255, 255, 255, 0.3333333333);
    border-top-color: #fff;
    border-radius: 50%;
    animation: orbit-spin 0.8s linear infinite;
  }
  .auth-spinner--dark {
    border-color: rgba(20, 34, 13, 0.2509803922);
    border-top-color: #14220d;
  }
  @media (max-width: 1180px) {
    .auth {
      grid-template-columns: minmax(0, 1fr) minmax(25rem, 1fr);
    }
    .auth-features li {
      gap: 1.25rem;
    }
  }
  @media (max-width: 860px) {
    .auth {
      display: flex;
      flex-direction: column;
    }
    .auth-hero {
      padding: calc(1.75rem + env(safe-area-inset-top)) 1.5rem 2.125rem;
    }
    .auth-brand {
      gap: 1rem;
    }
    .auth-brand__tile {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 0.9375rem;
    }
    .auth-hero__copy {
      margin-top: 1.875rem;
    }
    .auth-hero__lead {
      font-size: 0.9375rem;
    }
    .auth-features {
      display: none;
    }
    .orbits--login .orbits__ring--outer {
      --d:32.5rem;
    }
    .orbits--login .orbits__ring--inner {
      --d:30rem;
    }
    .orbits--login .orbits__sphere--a {
      --d:26.25rem;
      top: calc(70% - var(--d) * 0.5);
    }
    .auth-panel {
      align-items: flex-start;
      padding: 2rem 1.25rem 2.5rem;
    }
    .auth-quick {
      margin-top: 1.75rem;
    }
  }
  @media (max-width: 480px) {
    .auth-hero__lead {
      display: none;
    }
    .auth-card__lead {
      font-size: 0.9375rem;
    }
    .auth-quick, .auth-submit {
      font-size: 1.0625rem;
    }
  }
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .auth button {
    cursor: pointer;
    font: inherit;
  }
  .auth *, .auth *::before, .auth *::after {
    box-sizing: border-box;
  }
  .auth-hero, .auth-panel {
    min-width: 0;
  }
  .auth-offline {
    margin: 40vh auto 0;
    max-width: 26.25rem;
    color: #c6d0c9;
    text-align: center;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  }
  .auth-offline a {
    color: #b6ef74;
  }
  :where(.auth) :where(p, h1, span, strong, label, footer, ul, li, a, input, button) {
    color: inherit;
    font-family: inherit;
  }
  :where(.auth) :where(footer, p, ul, li) {
    background: none;
  }
  /* Start-up screen (preloader), as in Mytko Workflow (StartupScreen): shown at load and after signing in. The bar
     fills by real steps (data-done), the screen stays for a minimum time (js/startup.js), then fades out. */
  .startup {
    --auth-deep:#07110b;
    --auth-lime:#b6ef74;
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #f3f7f2;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    background: radial-gradient(ellipse 52% 46% at 50% 34%, #173a24 0%, #0f2518 42%, transparent 75%), radial-gradient(ellipse at 50% 50%, #0c1b12 0%, var(--auth-deep) 100%);
  }
  .startup[hidden] {
    display: none;
  }
  .orbits--startup .orbits__ring--outer {
    --d:max(35rem,min(67vw,119vh));
    width: var(--d);
    height: var(--d);
    left: calc(50% - var(--d) / 2);
    top: calc(49% - var(--d) / 2);
    border-color: rgba(182, 239, 116, 0.1098039216);
  }
  .orbits--startup .orbits__ring--inner {
    --d:max(28.75rem,min(55.5vw,99vh));
    width: var(--d);
    height: var(--d);
    left: calc(50% - var(--d) / 2);
    top: calc(49% - var(--d) / 2);
  }
  .orbits--startup .orbits__ring--outer i:first-child {
    --a:80deg;
  }
  .orbits--startup .orbits__ring--outer i:last-child {
    --a:200deg;
    opacity: 0;
  }
  .orbits--startup .orbits__ring--inner i:first-child {
    --a:-53deg;
  }
  .orbits--startup .orbits__ring--inner i:last-child {
    --a:229deg;
  }
  .orbits--startup .orbits__sphere--a {
    --d:max(32.5rem,58vw);
    width: var(--d);
    height: var(--d);
    left: calc(var(--d) * -0.52);
    bottom: calc(var(--d) * -0.62);
    background: radial-gradient(circle at 62% 22%, #74d75e 0%, #3f9a3c 18%, #1b4f26 40%, #0d2616 62%, transparent 72%);
    box-shadow: inset 0 2px 0 rgba(168, 240, 122, 0.3333333333);
    filter: saturate(1.05);
  }
  .orbits--startup .orbits__sphere--b {
    --d:max(23.75rem,42vw);
    width: var(--d);
    height: var(--d);
    right: calc(var(--d) * -0.38);
    top: calc(var(--d) * -0.45);
    background: radial-gradient(circle at 30% 78%, #74d75e 0%, #3f9a3c 18%, #1b4f26 42%, #0d2616 64%, transparent 72%);
  }
  .startup__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(34.5rem, 100vw - 3rem);
    text-align: center;
  }
  .startup__tile {
    position: relative;
    width: 12.25rem;
    height: 12.25rem;
  }
  .startup__tile::before {
    content: "";
    position: absolute;
    inset: -4.375rem -3.75rem -2.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 194, 78, 0.2509803922) 0%, transparent 65%);
    filter: blur(0.375rem);
  }
  /* the app logo is a tile with its own glow on transparency (design/make-icons.py): no extra frame */
  .startup__tile img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
  }
  .startup__wordmark {
    margin: 1.625rem 0 0;
    color: #f3f7f2;
    font: 700 1.0625rem/1 Manrope, Inter, sans-serif;
    letter-spacing: 0.32em;
    text-transform: lowercase;
  }
  .startup__wordmark span {
    color: #8d9a91;
    font-weight: 600;
  }
  .startup__title {
    margin: 2.75rem 0 0;
    font: 800 clamp(2.125rem, 3.1vw, 3.375rem)/1.1 Manrope, Inter, sans-serif;
    letter-spacing: -0.01em;
  }
  .startup__title span {
    color: var(--auth-lime);
  }
  .startup__bar {
    position: relative;
    width: 100%;
    height: 0.5625rem;
    margin-top: 2.75rem;
    overflow: hidden;
    border-radius: 6.1875rem;
    background: rgba(255, 255, 255, 0.1098039216);
  }
  .startup__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8fdc5a, #c9f78f);
    box-shadow: 0 0 0.875rem rgba(166, 228, 91, 0.6);
    transition: width 0.35s ease;
  }
  .startup__bar[data-done="1"] span {
    width: 34%;
  }
  .startup__bar[data-done="2"] span {
    width: 67%;
  }
  .startup__bar[data-done="3"] span {
    width: 100%;
  }
  .startup__status {
    min-height: 1.4em;
    margin: 2rem 0 0;
    color: #e3ebe4;
    font-size: 1.0625rem;
  }
  /* the start failed (Mytko Workflow): the reason and "try again" */
  .startup__error {
    display: grid;
    justify-items: center;
    gap: 0.875rem;
    margin-top: 1.75rem;
    color: #ffd5cc;
    font-size: 0.9375rem;
  }
  .startup__error p {
    margin: 0;
  }
  .startup__retry {
    min-height: 2.75rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(182, 239, 116, 0.4);
    border-radius: 0.6875rem;
    background: rgba(182, 239, 116, 0.1019607843);
    color: #eaf7de;
    font-weight: 700;
  }
  .startup__retry:hover {
    background: rgba(182, 239, 116, 0.1803921569);
  }
  .startup__retry:focus-visible {
    outline: 3px solid #79bf55;
    outline-offset: 3px;
  }
  .startup--leaving {
    pointer-events: none;
    animation: startup-leave 0.45s ease forwards;
  }
  @keyframes startup-leave {
    to {
      opacity: 0;
      visibility: hidden;
    }
  }
  @media (max-width: 480px) {
    .startup__tile {
      width: 9.375rem;
      height: 9.375rem;
    }
    .startup__title {
      margin-top: 1.875rem;
    }
    .startup__bar {
      margin-top: 2rem;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .orbits__ring, .auth-spinner {
      animation: none;
    }
    .startup__bar span {
      transition: none;
    }
    .startup--leaving {
      display: none;
    }
  }
}
@layer device {
  @media (max-width: 900px) {
    @supports (-webkit-touch-callout: none) {
      input, select, textarea {
        font-size: max(16px, 1rem);
      }
    }
  }
  @media (pointer: coarse) {
    .icon-btn {
      min-width: max(2.25rem, 40px);
      min-height: max(2.25rem, 40px);
    }
  }
  @media (pointer: coarse) {
    .set-row {
      grid-template-columns: max(2rem, 34px) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.9fr) max(2.25rem, 42px);
    }
    .sets--rir .set-row {
      grid-template-columns: max(2rem, 34px) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.65fr) max(2.25rem, 42px);
    }
    .set-row__n {
      height: max(2.25rem, 42px);
    }
    .set-row__check {
      width: max(2.25rem, 42px);
      height: max(2.25rem, 42px);
    }
    .set-row input.set-row__in {
      min-height: max(2.5rem, 42px);
    }
    .rest .btn, .workout__top .btn {
      min-height: max(2.25rem, 40px);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .workout__progress.is-saving i {
      animation: none;
      opacity: 0.7;
    }
  }
}
