    :root {
      color-scheme: light;
      --bg: #fafaf7;
      --surface: #ffffff;
      --surface-soft: #f6f6f1;
      --text: #111111;
      --muted: #5b5b52;
      --line: #e7e3d8;
      --dark: #111111;
      --gold: #ffd23f;
      --accent: #ffd23f;
      --action: #111111;
      --danger: #d92d20;
      --ok: #1f8a5b;
      font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
    }
    * { box-sizing: border-box; }
    .page-loader {
      position: fixed;
      inset: 0 0 auto;
      height: 3px;
      z-index: 9999;
      pointer-events: none;
      opacity: 0;
      transition: opacity .16s ease;
    }
    .page-loader span {
      display: block;
      width: 100%;
      height: 100%;
      transform: scaleX(0);
      transform-origin: left center;
      background: linear-gradient(90deg, #111 0%, var(--gold) 62%, #fff4a8 100%);
      box-shadow: 0 0 20px rgba(255, 210, 63, .55);
    }
    .page-loader.is-active {
      opacity: 1;
    }
    .page-loader.is-active span {
      animation: pageLoaderRun 1.15s cubic-bezier(.22, .9, .32, 1) infinite;
    }
    .page-loader.is-finishing {
      opacity: 0;
    }
    .page-loader.is-finishing span {
      animation: none;
      transform: scaleX(1);
      transition: transform .16s ease;
    }
    @keyframes pageLoaderRun {
      0% { transform: scaleX(.06); }
      45% { transform: scaleX(.62); }
      100% { transform: scaleX(.96); }
    }
    body {
      margin: 0;
      min-height: 100vh;
      background: linear-gradient(180deg, #fffef9 0%, #f7f7f2 100%);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    .auth {
      min-height: 100vh;
      display: grid;
      place-items: center;
      overflow: auto;
      padding: clamp(16px, 4vw, 44px);
      position: relative;
    }
    .auth::before,
    .auth::after {
      content: "";
      position: fixed;
      border-radius: 999px;
      pointer-events: none;
      filter: blur(50px);
      opacity: .55;
    }
    .auth::before {
      width: 300px;
      height: 300px;
      left: -120px;
      top: 12%;
      background: rgba(255, 210, 63, .22);
    }
    .auth::after {
      width: 320px;
      height: 320px;
      right: -130px;
      bottom: 8%;
      background: rgba(17, 17, 17, .05);
    }
    .login-shell {
      width: min(440px, 100%);
      min-height: auto;
      display: grid;
      grid-template-columns: 1fr;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 30px;
      background: rgba(255,255,255,.88);
      box-shadow: 0 26px 70px rgba(24,23,20,.12);
      overflow: hidden;
      position: relative;
      z-index: 1;
      backdrop-filter: blur(20px);
    }
    .login-hero {
      position: relative;
      min-height: auto;
      padding: 30px 30px 8px;
      color: var(--text);
      background: transparent;
      overflow: visible;
    }
    .login-hero::before {
      display: none;
    }
    .login-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      position: relative;
      z-index: 1;
    }
    .login-logo__mark {
      width: 54px;
      height: 54px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      background: #111;
      color: #111111;
      font-size: 24px;
      font-weight: 950;
      color: var(--gold);
      box-shadow: 0 14px 30px rgba(17,17,17,.14);
    }
    .login-logo strong { display: block; color: var(--text); letter-spacing: .06em; }
    .login-logo small { color: var(--muted); font-size: 11px; font-weight: 800; }
    .login-card {
      display: grid;
      align-content: center;
      gap: 16px;
      padding: 18px 30px 30px;
      background: transparent;
    }
    .login-card__head {
      display: grid;
      gap: 10px;
      margin-bottom: 2px;
      text-align: center;
    }
    .login-card h1 {
      margin: 0;
      font-size: clamp(30px, 8vw, 40px);
      letter-spacing: -.04em;
    }
    .login-form {
      display: grid;
      gap: 12px;
    }
    .login-field {
      display: grid;
      gap: 8px;
    }
    .login-field input {
      min-height: 52px;
      border-radius: 16px;
      font-size: 16px;
      padding: 12px 14px;
      background: #fff;
    }
    .login-button {
      min-height: 52px;
      border-radius: 16px;
      margin-top: 4px;
      font-size: 16px;
      box-shadow: 0 14px 28px rgba(17,17,17,.14);
    }
    .shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
    .side {
      background: var(--dark);
      color: white;
      height: 100vh;
      position: sticky;
      top: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    .brand {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid rgba(255,255,255,.05);
    }
    .brand-mark {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      color: #111111;
      background: rgba(255,255,255,.95);
      font-weight: 950;
      box-shadow: 0 12px 28px rgba(0,0,0,.28);
    }
    .brand strong { display: block; color: var(--gold); letter-spacing: .03em; }
    .brand small { color: rgba(255,255,255,.58); font-size: 10px; font-weight: 700; }
    .nav { display: grid; gap: 5px; padding: 16px; overflow: auto; }
    .nav a {
      display: flex;
      align-items: center;
      gap: 10px;
      border-left: 3px solid transparent;
      border-radius: 12px;
      padding: 11px 12px;
      color: rgba(255,255,255,.58);
      font-weight: 750;
      transition: .16s ease;
    }
    .nav a:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.9); transform: translateX(2px); }
    .nav a.active { background: rgba(255,210,63,.14); border-left-color: var(--gold); color: #fff; }
    .nav a.needs-attention {
      background: rgba(255,210,63,.16);
      border-left-color: var(--gold);
      color: #fff;
    }
    .nav-icon, .bottom-nav__icon {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 10px;
      background: rgba(255,255,255,.08);
      color: currentColor;
      flex: 0 0 auto;
    }
    .nav a.active .nav-icon,
    .bottom-nav a.active .bottom-nav__icon {
      background: var(--gold);
      color: #111;
    }
    .nav-icon svg,
    .bottom-nav__icon svg {
      width: 17px;
      height: 17px;
      fill: currentColor;
    }
    .side-user { margin-top: auto; padding: 16px; color: rgba(255,255,255,.7); font-size: 13px; border-top: 1px solid rgba(255,255,255,.05); }
    .side-user b { display: block; color: white; margin-bottom: 3px; }
    .logout { color: var(--gold); display: inline-block; margin-top: 10px; font-weight: 800; }
    .main { min-width: 0; padding: 22px 28px 94px; }
    .top {
      max-width: 1560px;
      margin: 0 auto 14px;
      padding: 14px 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(255,255,255,.82);
      box-shadow: 0 10px 26px rgba(24,23,20,.04);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
    }
    .eyebrow { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
    h1 { margin: 4px 0; font-size: clamp(28px, 3vw, 40px); line-height: .98; letter-spacing: -.04em; }
    h2 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.02em; }
    .muted { color: var(--muted); font-size: 13px; font-weight: 650; }
    .page { max-width: 1560px; margin: 0 auto; display: grid; gap: 12px; }
    .grid { display: grid; gap: 12px; }
    .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card {
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--surface);
      box-shadow: 0 10px 26px rgba(24,23,20,.045);
      padding: 16px;
      overflow: hidden;
    }
    .hero-card {
      border-radius: 24px;
      background: linear-gradient(145deg, #111111 0%, #242424 70%, #3c320b 100%);
      color: #fff;
      box-shadow: 0 18px 44px rgba(17,17,17,.14);
      padding: clamp(18px, 3vw, 26px);
    }
    .hero-card h2, .hero-card h3 { color: #fff; margin-bottom: 8px; }
    .hero-card .muted { color: rgba(255,255,255,.68); }
    .hero-card .pill { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.12); }
    .hero-card .button, .hero-card button { background: var(--gold); border-color: var(--gold); color: #111; box-shadow: none; }
    .hero-card .owner-logout-button {
      background: rgba(255,255,255,.1);
      border-color: rgba(255,255,255,.18);
      color: #fff;
    }
    .hero-card .owner-logout-button:hover {
      background: rgba(255,255,255,.16);
      color: #fff;
    }
    .hero-card .secondary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.16); color: #fff; }
    .hero-card .metric {
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 16px;
      background: rgba(255,255,255,.055);
    }
    .hero-card .metric span { color: rgba(255,255,255,.52); }
    .hero-card .metric strong { color: #fff; }
    .employee-hero {
      position: relative;
      overflow: hidden;
      color: var(--text);
      background:
        radial-gradient(circle at top right, rgba(255,210,63,.34), transparent 34%),
        linear-gradient(145deg, #fffaf0 0%, #ffffff 48%, #f5f1e8 100%);
      border: 1px solid rgba(31,43,61,.08);
      box-shadow: 0 18px 44px rgba(24,23,20,.08);
    }
    .employee-hero::after {
      content: "";
      position: absolute;
      right: -60px;
      bottom: -90px;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: rgba(17,17,17,.055);
      pointer-events: none;
    }
    .employee-hero .muted { color: var(--muted); }
    .employee-hero .pill {
      background: rgba(17,17,17,.055);
      color: var(--text);
      border-color: rgba(17,17,17,.08);
    }
    .employee-hero .pill.ok {
      background: rgba(34,197,94,.12);
      color: #14532d;
      border-color: rgba(34,197,94,.2);
    }
    .employee-hero .pill.warn {
      background: rgba(255,210,63,.2);
      color: #4a3600;
      border-color: rgba(255,210,63,.32);
    }
    .employee-hero .pill.bad {
      background: rgba(239,68,68,.1);
      color: #7f1d1d;
      border-color: rgba(239,68,68,.18);
    }
    .employee-hero-top {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 18px;
    }
    .employee-back {
      display: inline-flex;
      min-height: 36px;
      align-items: center;
      padding: 8px 12px;
      border: 1px solid rgba(17,17,17,.08);
      border-radius: 999px;
      background: rgba(255,255,255,.74);
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
    }
    .employee-hero-badges {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .employee-hero-main {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 14px;
      align-items: center;
    }
    .employee-hero-avatar {
      width: 74px;
      height: 74px;
      display: grid;
      place-items: center;
      border-radius: 24px;
      background: #111;
      color: var(--gold);
      font-size: 34px;
      font-weight: 950;
      box-shadow: 0 18px 34px rgba(17,17,17,.18);
    }
    .employee-hero-title h2 {
      margin: 4px 0 6px;
      color: var(--text);
      font-size: clamp(32px, 7vw, 56px);
      line-height: .9;
      letter-spacing: -.06em;
    }
    .employee-hero-facts {
      position: relative;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 18px;
    }
    .employee-hero-facts div {
      display: grid;
      gap: 5px;
      min-height: 72px;
      padding: 12px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 16px;
      background: rgba(255,255,255,.74);
      backdrop-filter: blur(12px);
    }
    .employee-hero-facts span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .employee-hero-facts strong {
      min-width: 0;
      color: var(--text);
      font-size: 15px;
      font-weight: 950;
      letter-spacing: -.02em;
      overflow-wrap: anywhere;
    }
    .shift-hero-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(240px, .34fr);
      gap: 16px;
      align-items: start;
    }
    .shift-hero-headline {
      display: grid;
      gap: 10px;
      max-width: 760px;
    }
    .shift-hero-kicker {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      color: rgba(255,255,255,.68);
      font-size: 13px;
      font-weight: 800;
    }
    .shift-hero-meta {
      color: rgba(255,255,255,.66);
    }
    .shift-hero-headline h2 {
      margin: 0;
      font-size: clamp(25px, 3vw, 36px);
      line-height: 1;
      letter-spacing: -.04em;
    }
    .shift-hero-summary {
      margin-top: 18px;
      display: grid;
      gap: 10px;
      padding: 16px;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 18px;
      background: rgba(255,255,255,.055);
    }
    .shift-hero-summary > span {
      color: rgba(255,255,255,.52);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .shift-hero-number {
      color: #fff;
      font-size: clamp(34px, 8vw, 64px);
      line-height: .95;
      font-weight: 950;
      letter-spacing: -.06em;
      font-variant-numeric: tabular-nums;
    }
    .shift-hero-facts {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .shift-hero-facts span {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,.08);
      color: rgba(255,255,255,.78);
      font-size: 12px;
      font-weight: 850;
    }
    .shift-hero-controls {
      display: grid;
      gap: 10px;
      justify-items: stretch;
    }
    .shift-date-card {
      display: grid;
      gap: 8px;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 16px;
      background: rgba(255,255,255,.06);
    }
    .shift-calendar-head {
      display: grid;
      grid-template-columns: 34px 1fr 34px;
      gap: 8px;
      align-items: center;
      text-align: center;
    }
    .shift-calendar-head span {
      display: block;
      color: rgba(255,255,255,.52);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .shift-calendar-head strong {
      display: block;
      margin-top: 2px;
      color: #fff;
      font-size: 14px;
      font-weight: 950;
    }
    .shift-calendar-nav {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 12px;
      background: rgba(255,255,255,.08);
      color: #fff;
      font-size: 22px;
      font-weight: 950;
    }
    .shift-calendar-weekdays,
    .shift-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 4px;
    }
    .shift-calendar-weekdays span {
      color: rgba(255,255,255,.45);
      font-size: 10px;
      font-weight: 900;
      text-align: center;
    }
    .shift-calendar-day {
      min-height: 32px;
      display: grid;
      place-items: center;
      position: relative;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 10px;
      background: rgba(255,255,255,.055);
      color: rgba(255,255,255,.78);
      font-size: 12px;
      font-weight: 900;
    }
    .shift-calendar-day.is-empty {
      border-color: transparent;
      background: transparent;
      pointer-events: none;
    }
    .shift-calendar-day.is-today {
      border-color: rgba(255,211,77,.55);
    }
    .shift-calendar-day.has-real-shift {
      background: rgba(35, 197, 94, .22);
      border-color: rgba(35, 197, 94, .52);
      color: #ecfdf5;
    }
    .shift-calendar-day.is-rainy {
      background: rgba(239, 68, 68, .24);
      border-color: rgba(239, 68, 68, .58);
      color: #fff1f2;
    }
    .shift-calendar-day.has-real-shift.is-rainy {
      background: linear-gradient(135deg, rgba(34,197,94,.72) 0 50%, rgba(239,68,68,.78) 50% 100%);
      border-color: rgba(255,255,255,.18);
      color: #fff;
    }
    .shift-calendar-day.is-selected {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
    }
    .shift-calendar-day.has-real-shift.is-selected {
      background: #22c55e;
      border-color: var(--gold);
      color: #052e16;
      box-shadow: 0 0 0 2px var(--gold) inset;
    }
    .shift-calendar-day.is-rainy.is-selected {
      background: #ef4444;
      border-color: var(--gold);
      color: #fff;
      box-shadow: 0 0 0 2px var(--gold) inset;
    }
    .shift-calendar-day.has-real-shift.is-rainy.is-selected {
      background: linear-gradient(135deg, #22c55e 0 50%, #ef4444 50% 100%);
      border-color: var(--gold);
      color: #fff;
      box-shadow: 0 0 0 2px var(--gold) inset;
    }
    .shift-calendar-day small {
      position: absolute;
      right: 4px;
      bottom: 3px;
      color: currentColor;
      font-size: 8px;
      font-weight: 950;
      opacity: .82;
    }
    .shift-calendar-legend {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      color: rgba(255,255,255,.55);
      font-size: 11px;
      font-weight: 800;
    }
    .shift-calendar-legend span {
      width: 8px;
      height: 8px;
      border-radius: 999px;
    }
    .shift-calendar-legend .legend-work {
      background: #22c55e;
      box-shadow: 0 0 0 4px rgba(34,197,94,.12);
    }
    .shift-calendar-legend .legend-rain {
      background: #ef4444;
      box-shadow: 0 0 0 4px rgba(239,68,68,.12);
      margin-left: 6px;
    }
    .shift-rain-action,
    .shift-rain-state {
      display: grid;
      padding: 12px;
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 16px;
      background: rgba(255,255,255,.06);
    }
    .shift-rain-action button {
      width: 100%;
    }
    .shift-rain-state {
      grid-template-columns: auto 1fr;
      align-items: center;
      gap: 8px;
      color: rgba(255,255,255,.78);
      font-size: 12px;
      font-weight: 900;
    }
    .shift-rain-state span {
      width: 9px;
      height: 9px;
      border-radius: 999px;
      background: #ef4444;
      box-shadow: 0 0 0 4px rgba(239,68,68,.12);
    }
    .shift-date-card label {
      color: rgba(255,255,255,.7);
    }
    .shift-date-card input {
      min-height: 40px;
      background: rgba(255,255,255,.94);
    }
    .shift-hero-head { align-items: stretch; }
    .shift-actions {
      min-width: min(420px, 42vw);
      justify-content: flex-end;
      align-items: stretch;
    }
    .shift-actions form { flex: 1 1 180px; }
    .shift-actions button { width: 100%; }
    .shift-participants-head { align-items: center; }
    .shift-add-form { width: min(520px, 100%); }
    .shift-team-note {
      display: grid;
      gap: 4px;
      padding: 12px;
      margin-bottom: 12px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 16px;
      background: var(--surface-soft);
    }
    .shift-manual-add {
      margin-bottom: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      overflow: hidden;
    }
    .shift-manual-add summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px;
      cursor: pointer;
      list-style: none;
      font-weight: 900;
    }
    .shift-manual-add summary::-webkit-details-marker { display: none; }
    .shift-manual-add form {
      padding: 0 12px 12px;
    }
    .employee-work-layout {
      display: grid;
      grid-template-columns: minmax(280px, .86fr) minmax(0, 1.14fr);
      gap: 14px;
      align-items: start;
    }
    .employee-calendar-card,
    .employee-day-card {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface-soft);
    }
    .employee-calendar-card .shift-calendar-head span,
    .employee-calendar-card .shift-calendar-weekdays span {
      color: var(--muted);
    }
    .employee-calendar-card .shift-calendar-head strong {
      color: var(--text);
    }
    .employee-calendar-card .shift-calendar-nav {
      border-color: var(--line);
      background: #fff;
      color: var(--text);
    }
    .employee-calendar-card .shift-calendar-day {
      border-color: var(--line);
      background: #fff;
      color: var(--text);
    }
    .employee-calendar-card .shift-calendar-day.is-empty {
      background: transparent;
    }
    .employee-calendar-card .shift-calendar-day.has-real-shift {
      background: rgba(34,197,94,.14);
      border-color: rgba(34,197,94,.38);
      color: #14532d;
    }
    .employee-calendar-card .shift-calendar-day.is-selected {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
    }
    .employee-calendar-card .shift-calendar-day.has-real-shift.is-selected {
      background: #22c55e;
      border-color: var(--gold);
      color: #052e16;
      box-shadow: 0 0 0 2px var(--gold) inset;
    }
    .employee-calendar-legend {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .employee-calendar-legend span {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #22c55e;
      box-shadow: 0 0 0 4px rgba(34,197,94,.12);
    }
    .employee-work-mini {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .employee-work-mini div {
      display: grid;
      gap: 3px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }
    .employee-work-mini span,
    .employee-work-mini small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 800;
    }
    .employee-work-mini strong {
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.03em;
    }
    .employee-day-events {
      margin-top: 2px;
    }
    .employee-day-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      flex-wrap: wrap;
    }
    .employee-shift-context {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .employee-shift-context div,
    .employee-day-empty {
      display: grid;
      gap: 4px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
    }
    .employee-shift-context span,
    .employee-shift-context small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }
    .employee-shift-context strong {
      font-size: 22px;
      font-weight: 950;
      letter-spacing: -.04em;
    }
    .employee-team-list {
      gap: 6px;
    }
    .employee-team-list .list-row.is-current {
      border-color: rgba(34,197,94,.28);
      background: rgba(34,197,94,.08);
    }
    .employee-shift-list {
      gap: 8px;
    }
    .employee-shift-item {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      overflow: hidden;
    }
    .employee-shift-item summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      cursor: pointer;
      list-style: none;
    }
    .employee-shift-item summary::-webkit-details-marker { display: none; }
    .employee-shift-details {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      padding: 0 12px 12px;
    }
    .employee-shift-details span {
      display: inline-flex;
      min-height: 28px;
      align-items: center;
      padding: 5px 9px;
      border-radius: 999px;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .employee-day-sales-list {
      padding: 0 12px 12px;
      gap: 6px;
    }
    .employee-access-settings {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface-soft);
      overflow: hidden;
    }
    .employee-access-settings summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 16px;
      cursor: pointer;
      list-style: none;
    }
    .employee-access-settings summary::-webkit-details-marker { display: none; }
    .employee-access-settings summary h2 {
      margin: 2px 0 4px;
    }
    .employee-access-settings[open] summary {
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.72);
    }
    .employee-access-body {
      display: grid;
      gap: 16px;
      padding: 16px;
      background: #fff;
    }
    .employee-password-box {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px dashed rgba(31,43,61,.18);
      border-radius: 16px;
      background: var(--surface-soft);
    }
    .employee-password-box h3 {
      margin-bottom: 4px;
    }
    .shift-empty-state {
      padding: 18px;
      border: 1px dashed rgba(31,43,61,.2);
      border-radius: 18px;
      background: var(--surface-soft);
    }
    .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .metric-card, .metric {
      min-height: 84px;
      display: grid;
      align-content: space-between;
      padding: 14px;
    }
    .metric-card span, .metric span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .metric-card strong, .metric strong {
      display: block;
      margin-top: 10px;
      font-size: clamp(22px, 2vw, 30px);
      line-height: 1;
      font-weight: 920;
      font-variant-numeric: tabular-nums;
    }
    .employee-shift-page {
      gap: 12px;
    }
    .employee-state-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
      gap: 16px;
      align-items: center;
      border-color: rgba(255,210,63,.32);
      background:
        radial-gradient(circle at top left, rgba(255,210,63,.18), transparent 34%),
        #fff;
    }
    .employee-state-card h2 {
      margin-bottom: 6px;
      font-size: clamp(26px, 4vw, 42px);
      letter-spacing: -.05em;
    }
    .employee-state-copy {
      display: grid;
      gap: 8px;
    }
    .employee-state-copy p {
      max-width: 620px;
      color: var(--muted);
      font-weight: 750;
    }
    .employee-state-closed {
      border-color: rgba(31,138,91,.18);
      background:
        radial-gradient(circle at top right, rgba(31,138,91,.14), transparent 34%),
        #fff;
    }
    .employee-state-summary {
      display: grid;
      gap: 10px;
    }
    .employee-state-summary .employee-work-stats {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .employee-state-total {
      display: grid;
      gap: 8px;
      padding: 16px;
      border-radius: 20px;
      background: #111;
      color: #fff;
      box-shadow: 0 16px 34px rgba(17,17,17,.16);
    }
    .employee-state-total span {
      color: rgba(255,255,255,.62);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .employee-state-total strong {
      font-size: clamp(30px, 5vw, 48px);
      line-height: 1;
      letter-spacing: -.05em;
    }
    .employee-current-panel {
      display: grid;
      grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr);
      gap: 12px;
      align-items: stretch;
      border-color: rgba(221,227,234,.95);
      background:
        radial-gradient(circle at top right, rgba(255,210,63,.22), transparent 28%),
        #fff;
    }
    .employee-work-main,
    .employee-close-panel,
    .employee-live-panel,
    .employee-live-card {
      display: grid;
      gap: 12px;
    }
    .employee-work-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .employee-work-head h2 {
      margin: 8px 0 6px;
      font-size: clamp(28px, 4vw, 46px);
      letter-spacing: -.06em;
    }
    .employee-work-head p,
    .employee-close-panel p {
      max-width: 680px;
      color: var(--muted);
      font-weight: 750;
    }
    .employee-work-stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .employee-work-stats div {
      min-height: 86px;
      display: grid;
      align-content: space-between;
      gap: 8px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(250,250,247,.92);
    }
    .employee-work-stats span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .employee-work-stats strong {
      font-size: clamp(20px, 2.5vw, 28px);
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.04em;
      font-variant-numeric: tabular-nums;
    }
    .employee-work-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .employee-work-actions .button {
      min-height: 62px;
      border-radius: 18px;
      font-size: 16px;
      font-weight: 950;
    }
    .employee-action-primary {
      background: #111;
      border-color: #111;
    }
    .employee-action-secondary.needs-attention {
      border-color: rgba(255,210,63,.95);
      background: rgba(255,210,63,.34);
      color: #111;
    }
    .employee-close-panel {
      align-content: space-between;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: var(--surface-soft);
    }
    .employee-close-panel h3,
    .employee-live-card h3 {
      margin: 0;
      font-size: 18px;
      letter-spacing: -.03em;
    }
    .employee-join-confirm {
      display: grid;
      gap: 10px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface-soft);
    }
    .employee-join-confirm input {
      min-height: 52px;
      border-radius: 16px;
      font-size: 18px;
      font-weight: 850;
      text-transform: lowercase;
    }
    .employee-join-confirm button {
      min-height: 52px;
      border-radius: 16px;
    }
    .employee-close-confirm .danger {
      background: #111;
      color: #fff;
      border-color: #111;
    }
    .employee-live-panel {
      background: #fff;
    }
    .employee-live-head {
      margin-bottom: 0;
    }
    .employee-live-columns {
      display: grid;
      grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
      gap: 10px;
    }
    .employee-live-card {
      align-content: start;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface-soft);
    }
    .employee-pay-summary {
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
      gap: 12px;
      align-items: stretch;
    }
    .employee-pay-main {
      min-height: 168px;
      display: grid;
      align-content: space-between;
      gap: 18px;
      overflow: hidden;
      position: relative;
      background:
        radial-gradient(circle at 88% 8%, rgba(255,210,63,.5), transparent 30%),
        linear-gradient(145deg, #111 0%, #202020 72%, #3a3009 100%);
      color: #fff;
      border-color: rgba(17,17,17,.1);
    }
    .employee-pay-main::after {
      content: "";
      position: absolute;
      right: -42px;
      bottom: -56px;
      width: 170px;
      height: 170px;
      border-radius: 50%;
      border: 28px solid rgba(255,210,63,.16);
      pointer-events: none;
    }
    .employee-pay-kicker {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      color: rgba(255,255,255,.68);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .employee-pay-main strong {
      display: block;
      margin-top: 10px;
      font-size: clamp(42px, 8vw, 72px);
      line-height: .92;
      letter-spacing: -.07em;
      font-variant-numeric: tabular-nums;
    }
    .employee-pay-main p {
      max-width: 420px;
      color: rgba(255,255,255,.74);
      font-weight: 750;
    }
    .employee-pay-side {
      display: grid;
      gap: 10px;
    }
    .employee-pay-mini {
      display: grid;
      align-content: space-between;
      gap: 12px;
      min-height: 78px;
      padding: 14px;
      border-radius: 20px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
    }
    .employee-pay-mini span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .employee-pay-mini strong {
      font-size: clamp(22px, 3vw, 30px);
      line-height: 1;
      font-weight: 920;
      font-variant-numeric: tabular-nums;
    }
    .employee-pay-mini small {
      color: var(--muted);
      font-weight: 750;
    }
    .employee-profile-hero {
      display: flex;
      gap: 16px;
      align-items: center;
    }
    .employee-profile-avatar {
      width: 74px;
      height: 74px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 24px;
      background: var(--gold);
      color: #111;
      font-size: 34px;
      font-weight: 950;
      box-shadow: 0 16px 34px rgba(0,0,0,.18);
    }
    .always-list {
      display: grid !important;
      gap: 8px;
    }
    .section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .section-head h2 { margin-bottom: 2px; }
    .status-line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
    .alert-list { display: grid; gap: 8px; }
    .alert-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      border-radius: 16px;
      background: rgba(255,210,63,.13);
      border: 1px solid rgba(255,210,63,.45);
      color: #28220b;
      font-weight: 750;
    }
    .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
    .quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .quick-actions .button, .quick-actions button { min-height: 58px; font-size: 15px; }
    .sale-page { gap: 12px; }
    .sale-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(250px, .62fr);
      gap: 16px;
      overflow: hidden;
      background:
        radial-gradient(circle at top right, rgba(255,210,63,.38), transparent 34%),
        linear-gradient(145deg, #111 0%, #202020 70%, #3a3009 100%);
    }
    .sale-hero h2 {
      margin: 10px 0 8px;
      color: #fff;
      font-size: clamp(34px, 7vw, 68px);
      line-height: .92;
      letter-spacing: -.07em;
    }
    .sale-hero p { color: rgba(255,255,255,.7); font-weight: 750; }
    .sale-hero .eyebrow { color: rgba(255,255,255,.62); }
    .sale-hero-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 18px;
    }
    .sale-hero-stats div,
    .sale-operator-card {
      padding: 12px;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 18px;
      background: rgba(255,255,255,.08);
    }
    .sale-hero-stats span,
    .sale-operator-card span {
      display: block;
      color: rgba(255,255,255,.58);
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .sale-hero-stats strong,
    .sale-operator-card strong {
      display: block;
      margin-top: 6px;
      color: #fff;
      font-size: 22px;
      line-height: 1;
      font-weight: 920;
      font-variant-numeric: tabular-nums;
    }
    .sale-operator-card {
      align-self: stretch;
      display: grid;
      align-content: space-between;
      gap: 14px;
    }
    .sale-operator-card p { margin: 0; }
    .sale-gate {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      align-items: center;
      border-color: rgba(255,210,63,.5);
      background: rgba(255,210,63,.13);
    }
    .sale-workspace {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, .34fr);
      gap: 12px;
      align-items: start;
    }
    .sale-register {
      display: grid;
      gap: 12px;
      background: var(--surface-soft);
    }
    .sale-toolbar {
      display: grid;
      grid-template-columns: minmax(180px, 1fr) auto;
      gap: 10px;
      align-items: end;
    }
    .sale-search input {
      min-height: 50px;
      border-radius: 16px;
      font-size: 17px;
      font-weight: 800;
    }
    .sale-filter-row {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .sale-filter {
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: #1f2b3d;
      min-height: 36px;
      padding: 7px 12px;
      box-shadow: none;
      font-size: 12px;
    }
    .sale-filter.is-active {
      background: #111;
      color: #fff;
      border-color: #111;
    }
    .sale-product-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .sale-product-card {
      display: grid;
      gap: 12px;
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: #fff;
      box-shadow: 0 10px 24px rgba(24,23,20,.04);
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    }
    .sale-product-card:not(.is-disabled):hover {
      transform: translateY(-1px);
      border-color: rgba(255,210,63,.85);
      box-shadow: 0 16px 34px rgba(24,23,20,.08);
    }
    .sale-product-card.is-disabled {
      opacity: .64;
      background: #f7f7f2;
    }
    .sale-product-top {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: flex-start;
    }
    .sale-product-kind {
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .sale-stock-pill {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 5px 9px;
      border-radius: 999px;
      background: rgba(31,138,91,.1);
      color: #176b46;
      font-size: 12px;
      font-weight: 850;
      white-space: nowrap;
    }
    .sale-stock-pill.warn { background: rgba(255,210,63,.2); color: #7a5a00; }
    .sale-stock-pill.bad { background: rgba(217,45,32,.1); color: #b42318; }
    .sale-product-card h3 {
      margin: 4px 0 0;
      font-size: 24px;
      line-height: 1.02;
      letter-spacing: -.045em;
    }
    .sale-price-row {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: end;
    }
    .sale-price-row strong {
      font-size: 36px;
      line-height: .95;
      letter-spacing: -.06em;
      font-variant-numeric: tabular-nums;
    }
    .sale-price-row small {
      color: var(--muted);
      font-weight: 750;
      text-align: right;
    }
    .sale-qty-row {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) 44px;
      gap: 6px;
      align-items: center;
    }
    .sale-qty-row button {
      min-height: 44px;
      padding: 0;
      border-radius: 14px;
      background: rgba(31,43,61,.08);
      color: #111;
      box-shadow: none;
    }
    .sale-qty-row input {
      min-height: 44px;
      border-radius: 14px;
      text-align: center;
      font-size: 18px;
      font-weight: 900;
    }
    .sale-pay-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .sale-pay-actions button {
      min-height: 54px;
      border-radius: 16px;
      font-size: 16px;
      font-weight: 950;
    }
    .sale-side {
      display: grid;
      gap: 12px;
      position: sticky;
      top: 12px;
    }
    .sale-live-card,
    .sale-recent-card {
      background: #fff;
    }
    .sale-live-list,
    .sale-recent-list {
      max-height: 420px;
      overflow: auto;
      padding-right: 2px;
    }
    .sale-page {
      padding-bottom: 210px;
    }
    .sale-topbar {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 12px;
      min-height: 82px;
      padding-bottom: 14px;
    }
    .sale-topbar h2 {
      margin-top: 4px;
      font-size: clamp(28px, 6vw, 44px);
      line-height: .95;
      letter-spacing: -.06em;
    }
    .sale-topbar p {
      margin-top: 6px;
      max-width: 480px;
      font-weight: 750;
    }
    .sale-topbar-meta {
      display: flex;
      gap: 8px;
      align-items: center;
      flex-wrap: wrap;
      justify-content: flex-end;
      color: var(--muted);
      font-weight: 800;
    }
    .sale-pos-shell {
      display: grid;
      gap: 14px;
      background: rgba(248,250,252,.88);
    }
    .sale-barcode-search {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 54px;
      padding: 0 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      color: #111;
      font-size: 22px;
      font-weight: 950;
    }
    .sale-barcode-search input {
      border: 0;
      box-shadow: none;
      padding: 0;
      min-height: 50px;
      font-size: 16px;
      font-weight: 850;
    }
    .sale-barcode-search input:focus {
      box-shadow: none;
    }
    .sale-helper-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }
    .sale-helper-row b {
      color: #111;
      white-space: nowrap;
    }
    .sale-category-row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: none;
    }
    .sale-category-row::-webkit-scrollbar {
      display: none;
    }
    .sale-category {
      flex: 0 0 auto;
      min-height: 42px;
      padding: 8px 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      color: #1f2b3d;
      box-shadow: none;
      font-size: 16px;
      font-weight: 850;
    }
    .sale-category small {
      display: inline-flex;
      min-width: 24px;
      min-height: 22px;
      align-items: center;
      justify-content: center;
      margin-left: 2px;
      border-radius: 999px;
      background: #eef2f7;
      color: #667085;
      font-size: 11px;
      font-weight: 900;
    }
    .sale-category.is-active {
      background: #111;
      border-color: #111;
      color: #fff;
    }
    .sale-category.is-active small {
      background: var(--gold);
      color: #111;
    }
    .sale-pos-shell .sale-product-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .sale-pos-shell .sale-product-card {
      min-height: 136px;
      align-content: space-between;
      padding: 12px;
      border-radius: 16px;
    }
    .sale-pos-shell .sale-product-card.is-in-cart {
      border-color: rgba(255,210,63,.9);
      box-shadow: 0 14px 30px rgba(17,17,17,.08);
    }
    .sale-pos-shell .sale-product-card.is-disabled {
      min-height: 124px;
      opacity: .72;
      background: #fafaf7;
    }
    .sale-pos-shell .sale-product-card h3 {
      margin-top: 12px;
      font-size: 17px;
      line-height: 1.22;
      letter-spacing: -.02em;
    }
    .sale-pos-shell .sale-product-card p {
      margin: 8px 0 0;
      color: #667085;
      font-size: 11px;
      font-weight: 800;
      text-transform: lowercase;
    }
    .sale-stock-note.warn { color: #7a5a00 !important; }
    .sale-stock-note.bad { color: var(--danger) !important; }
    .sale-pos-shell .sale-product-kind {
      display: inline-flex;
      min-height: 24px;
      align-items: center;
      padding: 4px 8px;
      border-radius: 8px;
      background: rgba(255,210,63,.22);
      color: #2b2406;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0;
      text-transform: none;
    }
    .sale-product-bottom {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 8px;
    }
    .sale-product-bottom strong {
      color: #111;
      font-size: 18px;
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.03em;
    }
    .sale-add-button {
      width: 42px;
      min-height: 42px;
      padding: 0;
      border: 0;
      border-radius: 14px;
      background: var(--gold);
      color: #111;
      font-size: 30px;
      line-height: 1;
      box-shadow: none;
    }
    .sale-unavailable-pill {
      display: inline-flex;
      min-height: 34px;
      align-items: center;
      justify-content: center;
      padding: 7px 10px;
      border-radius: 12px;
      background: rgba(31,43,61,.08);
      color: #667085;
      font-size: 12px;
      font-weight: 900;
    }
    .sale-bottom-sheet {
      position: fixed;
      left: max(10px, env(safe-area-inset-left));
      right: max(10px, env(safe-area-inset-right));
      bottom: 12px;
      z-index: 60;
      display: grid;
      border: 1px solid rgba(221,227,234,.95);
      border-radius: 16px 16px 0 0;
      background: rgba(255,255,255,.98);
      box-shadow: 0 -16px 34px rgba(15,23,42,.12);
      overflow: hidden;
    }
    .sale-bottom-sheet > summary {
      list-style: none;
    }
    .sale-bottom-sheet > summary::-webkit-details-marker {
      display: none;
    }
    .sale-check-panel {
      display: grid;
      gap: 10px;
      padding: 0 14px 10px;
    }
    .sale-check-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 14px;
      color: #667085;
      font-weight: 900;
      cursor: pointer;
      border-radius: 13px;
      -webkit-tap-highlight-color: transparent;
    }
    .sale-check-summary:active {
      transform: translateY(1px);
    }
    .sale-check-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      min-height: 42px;
      padding: 0;
      border: 0;
      background: transparent;
      color: #111;
      box-shadow: none;
      font-size: 14px;
    }
    .sale-check-toggle::after {
      content: "Раскрыть";
      margin-left: auto;
      padding: 6px 9px;
      border-radius: 999px;
      background: rgba(31,43,61,.08);
      color: #667085;
      font-size: 11px;
      font-weight: 950;
      text-transform: none;
      letter-spacing: 0;
    }
    .sale-bottom-sheet[open] .sale-check-toggle::after {
      content: "Свернуть";
      background: rgba(255,210,63,.32);
      color: #111;
    }
    .sale-check-toggle span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .sale-check-summary strong {
      color: #111;
      font-size: 22px;
      font-weight: 950;
      font-variant-numeric: tabular-nums;
    }
    .sale-check-lines {
      display: none;
      gap: 6px;
      max-height: 220px;
      overflow: auto;
    }
    .sale-bottom-sheet[open] .sale-check-lines {
      display: grid;
    }
    .sale-checkout-form {
      display: none;
    }
    .sale-bottom-sheet[open].has-items .sale-checkout-form {
      display: block;
    }
    .sale-history-compact {
      display: none;
      padding-top: 8px;
      border-top: 1px solid var(--line);
    }
    .sale-bottom-sheet[open] .sale-history-compact {
      display: grid;
      gap: 8px;
    }
    .sale-history-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .sale-history-head b {
      color: #111;
    }
    .sale-check-line {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      padding: 8px 0;
      border-top: 1px solid var(--line);
    }
    .sale-check-line span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }
    .sale-check-line-actions {
      display: grid;
      grid-template-columns: 30px auto 30px;
      gap: 6px;
      align-items: center;
    }
    .sale-check-line-actions button {
      min-height: 30px;
      padding: 0;
      border: 0;
      border-radius: 9px;
      background: #eef2f7;
      color: #111;
      box-shadow: none;
      font-size: 18px;
    }
    .sale-check-line-actions strong {
      min-width: 74px;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .sale-checkout-form .sale-pay-actions {
      margin-top: 4px;
    }
    form { margin: 0; }
    .form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: 12px; align-items: end; }
    .form.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 760; letter-spacing: 0; text-transform: none; }
    input, select, textarea {
      width: 100%;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: 13px;
      background: rgba(255,255,255,.88);
      color: var(--text);
      outline: none;
      padding: 10px 12px;
    }
    textarea { min-height: 54px; resize: vertical; }
    input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,210,63,.18); background: white; }
    button, .button {
      min-height: 44px;
      border: 1px solid var(--action);
      border-radius: 13px;
      background: var(--action);
      color: white;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 15px;
      font-weight: 850;
      box-shadow: 0 8px 18px rgba(17,17,17,.12);
      transition: .16s ease;
    }
    button:hover, .button:hover { transform: translateY(-1px); background: #000; }
    .secondary { background: rgba(31,43,61,.08); border-color: rgba(31,43,61,.08); color: #1f2b3d; box-shadow: none; }
    .danger { background: rgba(220,38,38,.1); border-color: rgba(220,38,38,.14); color: #b91c1c; box-shadow: none; }
    .pill { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: rgba(255,210,63,.22); color: #2b2406; font-size: 12px; font-weight: 850; }
    .ok { background: rgba(31,138,91,.11); color: #176b46; }
    .warn { background: rgba(255,210,63,.22); color: #3a300b; }
    .bad { background: rgba(217,45,32,.1); color: #b42318; }
    table { width: 100%; border-collapse: separate; border-spacing: 0; }
    th, td { padding: 12px 10px; border-bottom: 1px solid rgba(31,43,61,.08); text-align: left; vertical-align: top; }
    th { color: #64748b; background: rgba(248,250,252,.82); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
    tr:last-child td { border-bottom: 0; }
    .mobile-list { display: none; }
    .list-stack { display: grid; gap: 8px; }
    .list-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
    }
    .list-row__title { font-weight: 850; }
    .list-row__meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
    .list-row__value { font-weight: 900; text-align: right; white-space: nowrap; }
    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .people-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .money-hero {
      color: var(--text);
      background:
        radial-gradient(circle at top right, rgba(255,210,63,.34), transparent 34%),
        linear-gradient(145deg, #fffaf0 0%, #ffffff 48%, #f3efe5 100%);
      border: 1px solid rgba(31,43,61,.08);
    }
    .money-hero .muted { color: var(--muted); }
    .money-hero .pill {
      background: rgba(17,17,17,.055);
      color: var(--text);
      border-color: rgba(17,17,17,.08);
    }
    .money-hero .secondary {
      background: #111;
      border-color: #111;
      color: #fff;
    }
    .money-hero-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(230px, .34fr);
      gap: 16px;
      align-items: start;
    }
    .money-hero-head h2 {
      margin: 4px 0 8px;
      color: var(--text);
      font-size: clamp(34px, 6vw, 58px);
      line-height: .9;
      letter-spacing: -.06em;
    }
    .money-period-card {
      display: grid;
      gap: 8px;
      padding: 12px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 18px;
      background: rgba(255,255,255,.72);
    }
    .money-period-nav {
      display: grid;
      grid-template-columns: minmax(72px, auto) minmax(0, 1fr) minmax(72px, auto);
      gap: 8px;
      align-items: center;
      text-align: center;
    }
    .money-period-nav a,
    .money-current-month {
      display: inline-flex;
      min-height: 34px;
      align-items: center;
      justify-content: center;
      padding: 7px 10px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 999px;
      background: #fff;
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
    }
    .money-period-nav span {
      display: block;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .money-period-nav strong {
      display: block;
      margin-top: 2px;
      color: var(--text);
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.03em;
    }
    .money-current-month {
      width: 100%;
      background: rgba(255,210,63,.22);
    }
    .money-hero-grid,
    .money-signal-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .money-hero-grid {
      margin-top: 18px;
      position: relative;
      z-index: 1;
    }
    .money-hero-grid div,
    .money-signal {
      display: grid;
      gap: 6px;
      min-height: 94px;
      padding: 14px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 18px;
      background: rgba(255,255,255,.78);
    }
    .money-signal {
      background: #fff;
    }
    .money-hero-grid span,
    .money-signal span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .money-hero-grid strong,
    .money-signal strong {
      color: var(--text);
      font-size: clamp(20px, 3vw, 30px);
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.05em;
    }
    .money-hero-grid small,
    .money-signal small {
      color: var(--muted);
      font-size: 11px;
      font-weight: 750;
      line-height: 1.3;
    }
    .money-focus {
      display: grid;
      gap: 8px;
      margin-top: 18px;
      padding: 18px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 22px;
      background: rgba(255,255,255,.82);
      box-shadow: 0 18px 42px rgba(31,43,61,.08);
    }
    .money-focus span,
    .money-facts span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: .09em;
      text-transform: uppercase;
    }
    .money-focus strong {
      color: var(--text);
      font-size: clamp(42px, 8vw, 78px);
      line-height: .9;
      font-weight: 950;
      letter-spacing: -.07em;
    }
    .money-focus.is-bad strong {
      color: #b42318;
    }
    .money-focus small {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }
    .money-facts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
    }
    .money-facts div {
      display: flex;
      min-height: 58px;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 14px;
      border: 1px solid rgba(31,43,61,.08);
      border-radius: 16px;
      background: rgba(255,255,255,.68);
    }
    .money-facts strong {
      color: var(--text);
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.04em;
      text-align: right;
    }
    .money-alerts {
      display: grid;
      gap: 8px;
    }
    .money-alert {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
    }
    .money-alert b {
      font-size: 14px;
      font-weight: 950;
    }
    .money-alert span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      text-align: right;
    }
    .money-alert.ok {
      border-color: rgba(18, 146, 84, .18);
      background: rgba(18, 146, 84, .07);
    }
    .money-alert.warn {
      border-color: rgba(255, 178, 36, .34);
      background: rgba(255, 210, 63, .12);
    }
    .money-alert.bad {
      border-color: rgba(180, 35, 24, .2);
      background: rgba(180, 35, 24, .07);
    }
    .money-accordion-list {
      display: grid;
      gap: 10px;
    }
    .money-fold {
      padding: 0;
    }
    .money-fold summary::-webkit-details-marker { display: none; }
    .money-fold-summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, .74fr) auto;
      gap: 12px;
      align-items: center;
      padding: 16px;
      cursor: pointer;
      list-style: none;
    }
    .money-fold-summary h2 {
      margin-bottom: 4px;
    }
    .money-fold-preview {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .money-fold-preview span {
      display: inline-flex;
      min-height: 30px;
      align-items: center;
      padding: 6px 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--surface-soft);
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }
    .money-fold[open] .money-fold-summary {
      border-bottom: 1px solid var(--line);
      background: var(--surface-soft);
    }
    .money-fold-body {
      padding: 16px;
    }
    .money-line-list {
      display: grid;
      gap: 8px;
    }
    .money-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
    }
    .money-line div {
      display: grid;
      gap: 3px;
      min-width: 0;
    }
    .money-line b {
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
    }
    .money-line span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }
    .money-line strong {
      color: var(--text);
      font-size: 18px;
      font-weight: 950;
      letter-spacing: -.04em;
      white-space: nowrap;
    }
    .money-summary-action {
      border-color: rgba(255,210,63,.58) !important;
      background: rgba(255,210,63,.22) !important;
      color: #111 !important;
    }
    .money-expense-form {
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--surface-soft);
      overflow: hidden;
    }
    .money-expense-form summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 13px;
      cursor: pointer;
      list-style: none;
      font-weight: 950;
    }
    .money-expense-form summary::-webkit-details-marker { display: none; }
    .money-expense-form form {
      padding: 0 13px 13px;
    }
    .money-compact-form {
      margin-top: 12px;
      background: #fff;
    }
    .money-expense-chips {
      margin-bottom: 12px;
    }
    .money-expense-chips .inventory-chip {
      min-height: 28px;
      padding: 5px 9px;
      font-size: 10px;
      background: var(--surface-soft);
    }
    .inventory-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    .inventory-grid .person-card {
      align-content: start;
    }
    .inventory-grid .metric {
      min-height: 72px;
      background: var(--surface-soft);
      border-radius: 14px;
    }
    .inventory-filter {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) minmax(130px, .32fr) minmax(180px, .46fr) minmax(145px, .36fr) auto;
      gap: 8px;
      align-items: end;
    }
    .inventory-filter label {
      min-width: 0;
    }
    .inventory-signals {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
    }
    .inventory-signal {
      display: grid;
      gap: 8px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff;
    }
    .inventory-signal strong {
      font-size: 22px;
      line-height: 1;
    }
    .inventory-filter-panel {
      display: grid;
      gap: 10px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-soft);
    }
    .inventory-reference {
      scroll-margin-top: 14px;
    }
    .inventory-chip-row {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
    }
    .inventory-filter-label {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .04em;
      text-transform: uppercase;
    }
    .inventory-chips {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: none;
      white-space: nowrap;
    }
    .inventory-chips::-webkit-scrollbar {
      display: none;
    }
    .inventory-chip {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      min-height: 30px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }
    .inventory-chip.active {
      border-color: rgba(255,210,63,.72);
      background: rgba(255,210,63,.24);
      color: #111;
    }
    .inventory-ref-row {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
      overflow: hidden;
      box-shadow: 0 5px 12px rgba(24,23,20,.03);
    }
    .inventory-ref-row summary {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(140px, .35fr) minmax(180px, .52fr);
      gap: 12px;
      align-items: center;
      padding: 12px;
      cursor: pointer;
      list-style: none;
    }
    .inventory-ref-row summary::-webkit-details-marker { display: none; }
    .inventory-ref-row[open] summary { border-bottom: 1px solid var(--line); background: var(--surface-soft); }
    .inventory-ref-row .list-row__title {
      line-height: 1.2;
      font-size: 16px;
      font-weight: 950;
      letter-spacing: -.02em;
    }
    .inventory-ref-row .pill {
      min-height: 24px;
      padding: 4px 8px;
      font-size: 11px;
    }
    .inventory-ref-main {
      min-width: 0;
      display: grid;
      gap: 4px;
    }
    .inventory-stock-focus {
      display: grid;
      gap: 3px;
      justify-items: end;
      text-align: right;
      white-space: nowrap;
    }
    .inventory-stock-primary {
      color: #111;
      font-size: clamp(22px, 2.2vw, 30px);
      line-height: 1;
      font-weight: 950;
      letter-spacing: -.04em;
      font-variant-numeric: tabular-nums;
    }
    .inventory-stock-secondary {
      color: var(--muted);
      font-size: 12px;
      font-weight: 820;
    }
    .inventory-ref-hints {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.25;
      text-align: right;
    }
    .inventory-ref-hints strong {
      color: #111;
      font-size: 13px;
      font-weight: 920;
      white-space: nowrap;
    }
    .inventory-ref-list {
      gap: 8px;
    }
    .inventory-code {
      display: inline-flex;
      max-width: 100%;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(31,43,61,.06);
      color: #475467;
      font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
      font-size: 11px;
    }
    .inventory-taxonomy {
      color: #1f2b3d;
      font-weight: 800;
    }
    .inventory-ref-details {
      display: grid;
      gap: 12px;
      padding: 14px;
    }
    .inventory-detail-alert {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-soft);
    }
    .inventory-detail-warn {
      border-color: rgba(255,210,63,.5);
      background: rgba(255,210,63,.12);
    }
    .inventory-detail-bad {
      border-color: rgba(217,45,32,.24);
      background: rgba(217,45,32,.06);
    }
    .inventory-detail-ok {
      border-color: rgba(31,138,91,.18);
      background: rgba(31,138,91,.07);
    }
    .inventory-detail-neutral {
      border-color: rgba(17,17,17,.12);
      background: rgba(31,43,61,.05);
    }
    .inventory-detail-facts {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .inventory-detail-fact {
      min-height: 74px;
      display: grid;
      align-content: space-between;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }
    .inventory-detail-fact span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .inventory-detail-fact strong {
      display: block;
      margin-top: 10px;
      color: #111;
      font-size: 18px;
      line-height: 1.05;
      font-weight: 930;
    }
    .inventory-row-actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 12px;
      border-radius: 16px;
      background: var(--surface-soft);
    }
    .inventory-row-actions .actions {
      justify-content: flex-end;
    }
    .inventory-row-actions .button,
    .inventory-row-actions button {
      min-height: 38px;
    }
    .inventory-delete-box {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(220,38,38,.12);
      border-radius: 14px;
      background: rgba(220,38,38,.04);
    }
    .inventory-edit-modal .modal__panel {
      width: min(720px, 100%);
      max-height: calc(100vh - 32px);
      overflow: auto;
    }
    .inventory-edit-summary {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 14px;
    }
    .inventory-edit-summary > div,
    .inventory-edit-section {
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--surface-soft);
    }
    .inventory-edit-summary span {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .inventory-edit-summary strong {
      display: block;
      margin-top: 8px;
      font-size: 16px;
      line-height: 1.15;
    }
    .inventory-edit-form {
      display: grid;
      gap: 10px;
    }
    .inventory-edit-section {
      display: grid;
      gap: 10px;
    }
    .inventory-package-hint {
      padding: 10px;
      border: 1px dashed rgba(31,43,61,.18);
      border-radius: 14px;
      background: rgba(255,255,255,.72);
    }
    .inventory-edit-actions {
      position: sticky;
      bottom: -18px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      padding: 12px 0 0;
      background: linear-gradient(to top, #fff 82%, rgba(255,255,255,0));
    }
    .inventory-type-consumable { border-left: 5px solid var(--gold); }
    .inventory-type-product { border-left: 5px solid rgba(17,17,17,.18); }
    .inventory-type-asset,
    .inventory-type-equipment { border-left: 5px solid #111; }
    .inventory-state-low { border-color: rgba(217,45,32,.32); }
    .inventory-state-missing-cost { border-color: rgba(255,210,63,.72); }
    .inventory-state-asset { border-color: rgba(17,17,17,.22); }
    .inventory-state-ok { border-color: var(--line); }
    .person-card {
      display: grid;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    }
    .person-card:hover {
      transform: translateY(-1px);
      border-color: var(--gold);
      box-shadow: 0 12px 26px rgba(17,17,17,.08);
    }
    .person-card__top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }
    .avatar {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: var(--gold);
      color: #111;
      font-weight: 950;
      text-transform: uppercase;
    }
    .modal {
      position: fixed;
      inset: 0;
      z-index: 100;
      display: none;
      place-items: center;
      padding: 16px;
      background: rgba(17,17,17,.48);
    }
    .modal:target { display: grid; }
    .modal__panel {
      width: min(520px, 100%);
      border: 1px solid var(--line);
      border-radius: 24px;
      background: #fff;
      box-shadow: 0 28px 80px rgba(0,0,0,.22);
      padding: 18px;
    }
    .modal__head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }
    .modal__close {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: #f4f4ef;
      font-weight: 950;
    }
    .messages { max-width: 1560px; margin: 0 auto 16px; display: grid; gap: 8px; }
    .message { border: 1px solid rgba(21,128,61,.18); border-radius: 16px; background: rgba(220,252,231,.88); color: #047857; padding: 12px 14px; font-weight: 750; }
    .message.warn {
      border-color: rgba(217,119,6,.22);
      background: rgba(255,247,214,.94);
      color: #7a4b00;
    }
    .bottom-nav { display: none; }
    @media (max-width: 980px) {
      .auth {
        padding: 14px;
        place-items: center;
      }
      .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 26px;
      }
      .login-hero {
        min-height: auto;
        padding: 26px 24px 8px;
      }
      .login-card {
        align-content: start;
        padding: 16px 24px 24px;
      }
      .shell { grid-template-columns: 1fr; }
      .side { display: none; }
      .main { padding: 12px 12px 92px; }
      .top {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 18px;
        padding: 12px 14px;
        margin-bottom: 10px;
      }
      h1 { font-size: 26px; }
      h2 { font-size: 18px; }
      .cards, .two, .form, .form.two, .metric-grid { grid-template-columns: 1fr; }
      .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .sale-hero,
      .sale-workspace,
      .sale-toolbar {
        grid-template-columns: 1fr;
      }
      .sale-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .sale-product-grid {
        grid-template-columns: 1fr;
      }
      .sale-side {
        position: static;
      }
      .sale-live-list,
      .sale-recent-list {
        max-height: none;
      }
      .sale-page {
        padding-bottom: 300px;
      }
      .sale-bottom-sheet {
        bottom: calc(74px + env(safe-area-inset-bottom));
        z-index: 45;
      }
      .card { border-radius: 18px; padding: 14px; box-shadow: 0 6px 18px rgba(24,23,20,.035); }
      .hero-card { border-radius: 20px; padding: 18px; }
      .employee-state-card,
      .employee-current-panel,
      .employee-live-columns {
        grid-template-columns: 1fr;
      }
      .employee-work-head {
        display: grid;
      }
      .employee-work-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .employee-work-actions {
        grid-template-columns: 1fr 1fr;
      }
      .employee-profile-hero {
        align-items: flex-start;
      }
      .employee-pay-summary {
        grid-template-columns: 1fr;
      }
      .employee-pay-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .shift-hero-head,
      .shift-participants-head {
        display: grid;
        gap: 14px;
      }
      .shift-hero-layout {
        grid-template-columns: 1fr;
      }
      .shift-hero-controls {
        justify-items: stretch;
      }
      .employee-hero-top {
        align-items: flex-start;
        flex-direction: column;
      }
      .employee-hero-badges {
        justify-content: flex-start;
      }
      .employee-hero-main {
        grid-template-columns: 1fr;
      }
      .employee-hero-avatar {
        width: 68px;
        height: 68px;
        border-radius: 22px;
        font-size: 30px;
      }
      .employee-hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .employee-work-layout,
      .employee-work-mini,
      .employee-shift-context {
        grid-template-columns: 1fr;
      }
      .shift-actions {
        min-width: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
      }
      .shift-add-form {
        width: 100%;
        max-width: none !important;
      }
      .metric-card, .metric { min-height: 78px; }
      .people-grid, .inventory-grid, .inventory-signals { grid-template-columns: 1fr; }
      .money-hero-head,
      .money-hero-grid,
      .money-facts,
      .money-signal-grid {
        grid-template-columns: 1fr;
      }
      .money-period-nav {
        grid-template-columns: 1fr;
      }
      .money-fold-summary {
        grid-template-columns: 1fr;
      }
      .money-fold-preview {
        justify-content: flex-start;
      }
      .money-alert,
      .money-line,
      .money-facts div {
        align-items: flex-start;
      }
      .money-alert,
      .money-line {
        flex-direction: column;
      }
      .money-alert span,
      .money-line strong {
        text-align: left;
      }
      .inventory-filter {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
      }
      .inventory-filter label:first-child,
      .inventory-filter button {
        grid-column: 1 / -1;
      }
      .inventory-ref-row summary {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
      }
      .inventory-ref-hints {
        grid-column: 1 / -1;
        justify-content: flex-start;
        text-align: left;
      }
      .inventory-detail-alert,
      .inventory-row-actions {
        grid-template-columns: 1fr;
      }
      .inventory-detail-facts {
        grid-template-columns: 1fr;
      }
      .inventory-edit-summary {
        grid-template-columns: 1fr;
      }
      .desktop-table { display: none; }
      .mobile-list { display: grid; gap: 8px; }
      .actions, .actions form, .actions button, .button { width: 100%; }
      .bottom-nav {
        display: grid;
        grid-template-columns: repeat(var(--nav-count), minmax(0, 1fr));
        gap: 4px;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 0;
        z-index: 50;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border: 1px solid rgba(221,227,234,.95);
        border-radius: 16px 16px 0 0;
        background: rgba(255,255,255,.98);
        box-shadow: 0 -16px 34px rgba(15,23,42,.1);
      }
      .bottom-nav a {
        display: grid;
        place-items: center;
        gap: 2px;
        min-height: 52px;
        border-radius: 12px;
        color: #667085;
        font-size: 11px;
        font-weight: 800;
      }
      .bottom-nav__icon {
        width: 28px;
        height: 28px;
        background: #f2f2ec;
      }
      .bottom-nav a.active { background: rgba(255,210,63,.22); color: #111; }
      .bottom-nav a.needs-attention {
        background: rgba(255,210,63,.28);
        color: #111;
      }
      .bottom-nav a.needs-attention .bottom-nav__icon {
        background: var(--gold);
        color: #111;
      }
    }
    @media (max-width: 430px) {
      .sale-hero-stats {
        grid-template-columns: 1fr;
      }
      .sale-filter-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }
      .sale-filter {
        width: 100%;
      }
      .employee-pay-side {
        grid-template-columns: 1fr;
      }
      .inventory-filter {
        grid-template-columns: 1fr;
      }
      .inventory-filter label:first-child,
      .inventory-filter button {
        grid-column: auto;
      }
      .inventory-chip-row {
        grid-template-columns: 1fr;
        gap: 4px;
      }
      .inventory-ref-row summary {
        grid-template-columns: 1fr;
      }
      .inventory-stock-focus {
        justify-items: start;
        text-align: left;
      }
      .inventory-delete-box {
        grid-template-columns: 1fr;
      }
      .inventory-edit-actions {
        grid-template-columns: 1fr;
      }
      .employee-work-stats,
      .employee-state-summary .employee-work-stats,
      .employee-work-actions {
        grid-template-columns: 1fr;
      }
    }

    /* ==== Owner dashboard ==== */
    .owner-dashboard { display: grid; gap: 16px; }
    .owner-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(220px, .9fr);
      gap: 24px;
      align-items: center;
    }
    .owner-hero__left { display: grid; gap: 10px; }
    .owner-hero h2 {
      margin: 4px 0 0;
      font-size: clamp(28px, 4vw, 44px);
      line-height: 1;
      letter-spacing: -.04em;
    }
    .owner-hero__sub {
      color: rgba(255,255,255,.78);
      font-weight: 700;
      margin-bottom: 8px;
    }
    .owner-hero__sub b { color: #fff; }
    .owner-hero__actions { gap: 10px; flex-wrap: wrap; }
    .owner-hero .button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
      box-shadow: 0 8px 22px rgba(255,210,63,.35);
    }
    .owner-hero .button.is-highlight:hover {
      background: #ffe27d;
      border-color: #ffe27d;
      color: #111;
    }
    .owner-hero__right {
      display: grid;
      gap: 4px;
      justify-items: end;
      text-align: right;
      color: rgba(255,255,255,.85);
      align-self: stretch;
      align-content: center;
      border-left: 1px solid rgba(255,255,255,.08);
      padding-left: 24px;
    }
    .owner-hero__clock {
      font-size: clamp(36px, 5vw, 56px);
      font-weight: 920;
      line-height: 1;
      letter-spacing: -.04em;
      color: #fff;
      font-variant-numeric: tabular-nums;
    }
    .owner-hero__date {
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: 12px;
      color: rgba(255,255,255,.7);
    }
    .owner-hero__updated {
      font-size: 11px;
      color: rgba(255,255,255,.5);
      margin-top: 6px;
    }

    .owner-metric-grid { gap: 12px; }
    .owner-metric-grid .metric-card {
      display: grid;
      align-content: space-between;
      gap: 6px;
      transition: .16s ease;
      text-decoration: none;
      color: inherit;
    }
    .owner-metric-grid .metric-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 32px rgba(24,23,20,.08);
    }
    .metric-card__sub {
      font-style: normal;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
      margin-top: 6px;
      display: block;
    }
    .delta { font-weight: 900; }
    .delta--up { color: var(--ok); }
    .delta--down { color: var(--danger); }
    .metric-card--alert {
      border-color: rgba(217,45,32,.32);
      background: linear-gradient(180deg, rgba(217,45,32,.05) 0%, #fff 70%);
    }
    .metric-card--alert strong { color: var(--danger); }

    .owner-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }
    .owner-col { display: grid; gap: 16px; min-width: 0; }

    .owner-shift-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      margin: 4px 0 14px;
    }
    .owner-shift-stats > div {
      padding: 12px;
      border-radius: 14px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      display: grid;
      gap: 6px;
    }
    .owner-shift-stats span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .owner-shift-stats strong {
      font-size: 20px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .owner-shift-team { display: grid; gap: 8px; }
    .owner-shift-person {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }
    .owner-shift-person__main {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-width: 0;
    }
    .owner-shift-person__avatar {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      background: rgba(255,210,63,.22);
      color: #2b2406;
      display: grid;
      place-items: center;
      font-weight: 920;
      font-size: 16px;
    }
    .owner-shift-person__name { font-weight: 850; }
    .owner-shift-person__meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
    .owner-shift-person__value {
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .owner-shift-empty {
      padding: 14px;
      border: 1px dashed rgba(31,43,61,.18);
      border-radius: 14px;
      background: var(--surface-soft);
      display: grid;
      gap: 4px;
    }
    .owner-shift-empty strong { font-weight: 900; }
    .owner-shift-empty span { color: var(--muted); font-size: 13px; }
    .owner-shift-empty--bad {
      border-color: rgba(217,45,32,.32);
      background: rgba(217,45,32,.06);
    }
    .owner-shift-empty--bad strong { color: var(--danger); }
    .owner-shift-finished { font-size: 12px; margin-top: 10px; }

    .owner-sales-table tr {
      cursor: default;
    }
    .owner-sales-total td { border-top: 1px solid rgba(31,43,61,.08); }

    .owner-attention .alert-list { gap: 8px; }
    .alert-item {
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 11px 12px;
      border-radius: 14px;
      background: rgba(255,210,63,.13);
      border: 1px solid rgba(255,210,63,.45);
      color: #28220b;
      font-weight: 750;
    }
    .alert-item__icon {
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 10px;
      background: rgba(255,255,255,.5);
    }
    .alert-item__icon svg { width: 16px; height: 16px; fill: currentColor; }
    .alert-item__title { font-size: 14px; }
    .alert-item__value { font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
    .alert-item--critical {
      background: rgba(217,45,32,.08);
      border-color: rgba(217,45,32,.32);
      color: #7f1d1d;
    }
    .alert-item--critical .alert-item__icon { background: rgba(217,45,32,.16); color: #b42318; }
    .alert-item--warning {
      background: rgba(255,210,63,.13);
      border-color: rgba(255,210,63,.45);
      color: #5a4a07;
    }
    .alert-item--warning .alert-item__icon { background: rgba(255,210,63,.32); color: #7a4b00; }
    .alert-item--info {
      background: rgba(56,132,255,.07);
      border-color: rgba(56,132,255,.22);
      color: #1d3a72;
    }
    .alert-item--info .alert-item__icon { background: rgba(56,132,255,.14); color: #1d3a72; }

    .owner-attention__ok {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(31,138,91,.08);
      border: 1px solid rgba(31,138,91,.22);
    }
    .owner-attention__ok strong { display: block; color: #14532d; font-weight: 900; }
    .owner-attention__ok span { font-size: 13px; }
    .owner-attention__check {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(31,138,91,.16);
      color: #14532d;
      display: grid;
      place-items: center;
      font-size: 22px;
      font-weight: 900;
    }

    .owner-review-card__body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
    }
    .owner-review-card__count strong {
      display: block;
      font-size: 38px;
      font-weight: 920;
      line-height: 1;
      letter-spacing: -.03em;
      font-variant-numeric: tabular-nums;
    }
    .owner-review-card__count span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 750;
    }
    .owner-review-card .button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
      box-shadow: 0 8px 22px rgba(255,210,63,.32);
    }

    .owner-spark {
      width: 100%;
      height: 70px;
      display: block;
      margin-top: 6px;
    }
    .owner-spark__line { stroke: #111; }
    .owner-spark__fill { fill: rgba(255,210,63,.22); }
    .owner-spark__today { fill: var(--gold); stroke: #111; stroke-width: 1.5; }
    .owner-spark-foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      margin-top: 6px;
      font-variant-numeric: tabular-nums;
    }

    @media (max-width: 1180px) {
      .owner-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 980px) {
      .owner-hero {
        grid-template-columns: 1fr;
        gap: 14px;
      }
      .owner-hero__right {
        border-left: 0;
        padding-left: 0;
        justify-items: start;
        text-align: left;
        border-top: 1px solid rgba(255,255,255,.08);
        padding-top: 14px;
      }
      .owner-shift-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .owner-review-card__body { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .owner-shift-stats { grid-template-columns: 1fr; }
      .alert-item { grid-template-columns: 24px minmax(0, 1fr) auto; }
    }

    /* ==== Owner reports ==== */
    .reports-page { display: grid; gap: 16px; }
    .reports-toolbar { display: grid; gap: 14px; }
    .reports-toolbar__head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 14px;
      flex-wrap: wrap;
    }
    .reports-toolbar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .reports-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .reports-chip {
      display: inline-flex;
      align-items: center;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
      color: var(--text);
      font-weight: 850;
      font-size: 13px;
      transition: .14s ease;
    }
    .reports-chip:hover {
      border-color: rgba(17,17,17,.4);
    }
    .reports-chip.is-active {
      background: #111;
      color: #fff;
      border-color: #111;
    }
    .reports-range {
      display: flex;
      gap: 10px;
      align-items: end;
      flex-wrap: wrap;
    }
    .reports-range label {
      display: grid;
      gap: 4px;
      font-size: 12px;
      font-weight: 850;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .reports-range input { min-width: 140px; }
    .reports-range button { min-height: 44px; }

    .reports-kpi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .reports-profit--good { color: var(--ok); }
    .reports-profit--bad { color: var(--danger); }

    .reports-trend .reports-chart {
      width: 100%;
      height: 160px;
      display: block;
    }
    .reports-chart__bar { fill: #111; transition: opacity .15s ease; }
    .reports-chart__bar:hover { opacity: .75; }
    .reports-chart__bar.is-weekend { fill: var(--gold); }
    .reports-trend-foot {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 8px;
      font-size: 12px;
      font-variant-numeric: tabular-nums;
    }

    .reports-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 16px;
      align-items: start;
    }
    .reports-col { display: grid; gap: 16px; min-width: 0; }

    .reports-bars { display: grid; gap: 12px; }
    .reports-bar-row { display: grid; gap: 4px; }
    .reports-bar-row__head {
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }
    .reports-bar-row__title { font-weight: 850; }
    .reports-bar-row__value { font-weight: 900; font-variant-numeric: tabular-nums; }
    .reports-bar-row__track {
      height: 8px;
      border-radius: 999px;
      background: rgba(17,17,17,.06);
      overflow: hidden;
    }
    .reports-bar-row__fill {
      height: 100%;
      background: linear-gradient(90deg, #111 0%, #2b2b2b 80%, var(--gold) 100%);
      border-radius: 999px;
    }
    .reports-bar-row__meta { font-size: 12px; }

    .reports-payments { display: grid; gap: 12px; }
    .reports-payment { display: grid; gap: 4px; }
    .reports-payment__head { display: flex; justify-content: space-between; gap: 10px; }
    .reports-payment__title { font-weight: 850; }
    .reports-payment__value { font-weight: 900; font-variant-numeric: tabular-nums; }
    .reports-payment__track {
      height: 10px;
      border-radius: 999px;
      background: rgba(17,17,17,.06);
      overflow: hidden;
    }
    .reports-payment__fill {
      height: 100%;
      background: var(--gold);
      border-radius: 999px;
    }
    .reports-payment__fill--alt { background: #111; }
    .reports-payment__meta { font-size: 12px; }

    .reports-weekdays { display: grid; gap: 8px; }
    .reports-weekday {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
    }
    .reports-weekday__label {
      font-weight: 850;
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .reports-weekday.is-weekend .reports-weekday__label { color: #b85b00; }
    .reports-weekday__track {
      height: 10px;
      background: rgba(17,17,17,.06);
      border-radius: 999px;
      overflow: hidden;
    }
    .reports-weekday__fill {
      height: 100%;
      background: linear-gradient(90deg, #111, #3a3a3a);
      border-radius: 999px;
    }
    .reports-weekday.is-weekend .reports-weekday__fill {
      background: linear-gradient(90deg, var(--gold), #ffae3f);
    }
    .reports-weekday__value {
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      font-size: 13px;
      white-space: nowrap;
    }

    .reports-hourly {
      display: flex;
      align-items: end;
      gap: 4px;
      height: 110px;
      margin-top: 4px;
    }
    .reports-hourly__col {
      display: grid;
      grid-template-rows: 1fr auto;
      gap: 4px;
      flex: 1 1 0;
      min-width: 0;
      align-items: end;
    }
    .reports-hourly__bar-wrap {
      height: 100%;
      display: flex;
      align-items: end;
    }
    .reports-hourly__bar {
      width: 100%;
      min-height: 1px;
      background: linear-gradient(180deg, var(--gold), #ffae3f);
      border-radius: 4px 4px 0 0;
      transition: opacity .15s ease;
    }
    .reports-hourly__bar:hover { opacity: .8; }
    .reports-hourly__label {
      font-size: 10px;
      color: var(--muted);
      text-align: center;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }

    .reports-highlight-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .reports-highlight {
      display: grid;
      gap: 4px;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface-soft);
    }
    .reports-highlight__label {
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
    }
    .reports-highlight strong {
      font-size: 16px;
      font-weight: 900;
      line-height: 1.15;
      word-break: break-word;
    }
    .reports-highlight em {
      font-style: normal;
      color: var(--muted);
      font-size: 12px;
      font-weight: 750;
    }

    @media (max-width: 1180px) {
      .reports-grid { grid-template-columns: 1fr; }
      .reports-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 980px) {
      .reports-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .reports-toolbar__head { align-items: flex-start; }
      .reports-trend .reports-chart { height: 120px; }
    }
    @media (max-width: 560px) {
      .reports-kpi { grid-template-columns: 1fr; }
      .reports-highlight-list { grid-template-columns: 1fr; }
      .reports-weekday { grid-template-columns: 32px minmax(0, 1fr) auto; }
    }

    /* ==== Owner review ==== */
    .review-page { display: grid; gap: 16px; }
    .review-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) auto;
      gap: 24px;
      align-items: center;
    }
    .review-hero__left { display: grid; gap: 8px; }
    .review-hero h2 {
      margin: 4px 0 0;
      font-size: clamp(24px, 3.4vw, 36px);
      line-height: 1.05;
      letter-spacing: -.03em;
    }
    .review-hero__sub {
      color: rgba(255,255,255,.78);
      font-weight: 700;
      max-width: 540px;
    }
    .review-hero__stats {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .review-hero__stat {
      min-width: 96px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.08);
      color: #fff;
      display: grid;
      gap: 4px;
    }
    .review-hero__stat span {
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.65);
    }
    .review-hero__stat strong {
      font-size: 26px;
      font-weight: 920;
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }
    .review-hero__stat--ok {
      background: rgba(31,138,91,.18);
      border-color: rgba(31,138,91,.32);
    }
    .review-hero__stat--bad {
      background: rgba(217,45,32,.18);
      border-color: rgba(217,45,32,.32);
    }

    .review-filters { padding: 12px 14px; }

    .review-empty {
      display: grid;
      grid-template-columns: 56px minmax(0, 1fr);
      gap: 14px;
      align-items: center;
      padding: 16px 18px;
    }
    .review-empty .owner-attention__check {
      width: 56px;
      height: 56px;
      border-radius: 18px;
      font-size: 28px;
    }
    .review-empty strong { display: block; font-weight: 900; margin-bottom: 4px; }

    .review-list { display: grid; gap: 12px; }
    .review-card {
      display: grid;
      gap: 12px;
      padding: 16px 18px;
      border-left: 4px solid var(--line);
    }
    .review-card--pending { border-left-color: var(--gold); }
    .review-card--approved { border-left-color: rgba(31,138,91,.65); }
    .review-card--rejected { border-left-color: rgba(217,45,32,.65); }

    .review-card__head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }
    .review-card__person {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      min-width: 0;
    }
    .review-card__avatar {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(255,210,63,.22);
      color: #2b2406;
      display: grid;
      place-items: center;
      font-weight: 920;
      font-size: 18px;
    }
    .review-card__name { font-weight: 900; font-size: 16px; }
    .review-card__meta { font-size: 12px; margin-top: 2px; }

    .review-card__facts {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 8px;
    }
    .review-card__facts > div {
      padding: 10px 12px;
      border-radius: 12px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      display: grid;
      gap: 4px;
    }
    .review-card__facts span {
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--muted);
    }
    .review-card__facts strong {
      font-size: 15px;
      font-weight: 900;
    }

    .review-card__note {
      margin: 0;
      padding: 10px 12px;
      border-radius: 12px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      font-size: 13px;
      line-height: 1.45;
    }
    .review-card__note b { font-weight: 850; }
    .review-card__note--reject {
      background: rgba(217,45,32,.06);
      border-color: rgba(217,45,32,.22);
    }

    .review-card__actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: stretch;
    }
    .review-card__approve { display: inline-flex; }
    .review-card__open { white-space: nowrap; }
    .review-card .button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
      box-shadow: 0 8px 22px rgba(255,210,63,.32);
    }
    .review-card__reject { position: relative; }
    .review-card__reject summary {
      list-style: none;
      cursor: pointer;
    }
    .review-card__reject summary::-webkit-details-marker { display: none; }
    .review-card__reject[open] summary {
      background: rgba(217,45,32,.16);
    }
    .review-card__reject-form {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid rgba(217,45,32,.22);
      background: rgba(217,45,32,.04);
      width: min(360px, 100%);
    }
    .review-card__reject-form textarea {
      min-height: 64px;
      resize: vertical;
    }

    @media (max-width: 980px) {
      .review-hero {
        grid-template-columns: 1fr;
        gap: 16px;
      }
      .review-hero__stats {
        justify-content: flex-start;
      }
      .review-card__head { flex-direction: column; gap: 8px; }
      .review-card__actions { flex-direction: column; }
      .review-card__actions .button,
      .review-card__actions form,
      .review-card__actions details,
      .review-card__actions .review-card__open { width: 100%; }
      .review-card__reject summary { width: 100%; text-align: center; }
      .review-card__reject-form { width: 100%; }
    }

    /* ==== Owner money v2 (financial hub, mobile-first) ==== */
    .money-page { display: grid; gap: 14px; }
    .money-hero--v2 {
      display: grid;
      gap: 16px;
      padding: clamp(16px, 4vw, 24px);
    }
    .money-hero__head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 14px;
      flex-wrap: wrap;
    }
    .money-hero__title h2 {
      margin: 6px 0 0;
      color: #fff;
      font-size: clamp(28px, 5vw, 40px);
      letter-spacing: -.04em;
      line-height: 1;
    }
    .money-hero__live {
      display: inline-block;
      margin-top: 6px;
      color: rgba(255,255,255,.6);
      font-size: 12px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .money-period-nav--v2 {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,.06);
      border-radius: 12px;
      padding: 4px;
    }
    .money-period-nav--v2 a {
      min-width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff;
      font-weight: 900;
      font-size: 18px;
      line-height: 1;
      transition: .14s ease;
    }
    .money-period-nav--v2 a:hover { background: rgba(255,255,255,.1); }
    .money-period-nav--v2 .money-current-month {
      padding: 0 12px;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .08em;
      background: var(--gold);
      color: #111;
    }
    .money-hero__profit {
      display: grid;
      gap: 4px;
      padding: 18px 20px;
      border-radius: 18px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.08);
    }
    .money-hero__profit span {
      font-size: 12px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: rgba(255,255,255,.55);
    }
    .money-hero__profit strong {
      font-size: clamp(32px, 7vw, 56px);
      font-weight: 920;
      line-height: 1;
      letter-spacing: -.04em;
      color: #fff;
      font-variant-numeric: tabular-nums;
    }
    .money-hero__profit small { color: rgba(255,255,255,.7); font-weight: 750; font-size: 13px; }
    .money-hero__profit.is-bad strong { color: #ff6b5e; }
    .money-hero__profit.is-ok strong { color: #ffd23f; }
    .money-hero__profit .delta--up { color: #6ee08a; }
    .money-hero__profit .delta--down { color: #ff6b5e; }
    .money-hero__facts {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .money-hero__facts > div {
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.06);
    }
    .money-hero__facts span {
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.55);
    }
    .money-hero__facts strong {
      color: #fff;
      font-size: 17px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }

    .money-quick {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .money-quick__btn {
      min-height: 48px;
      display: grid;
      place-items: center;
      padding: 10px 14px;
      border-radius: 14px;
      background: #111;
      color: #fff;
      font-weight: 850;
      font-size: 14px;
      text-align: center;
      transition: .14s ease;
    }
    .money-quick__btn:hover { transform: translateY(-1px); background: #000; }
    .money-quick__btn--alt {
      background: var(--gold);
      color: #111;
    }
    .money-quick__btn--alt:hover { background: #ffe27d; color: #111; }
    .money-quick__btn--ghost {
      background: var(--surface-soft);
      color: var(--text);
      border: 1px solid var(--line);
    }
    .money-quick__btn--ghost:hover {
      background: #ebe7da;
      color: var(--text);
      border-color: rgba(17, 17, 17, 0.18);
    }

    .money-kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .money-kpi .metric-card { position: relative; padding: 14px; }
    .kpi-spark {
      width: 100%;
      height: 28px;
      margin-top: 8px;
      display: block;
    }
    .kpi-spark polyline { stroke: #111; }
    .kpi-spark circle { fill: var(--gold); stroke: #111; stroke-width: 1; }
    .kpi-spark line { stroke: #ddd; stroke-dasharray: 2 3; }
    .metric-card--alert .kpi-spark polyline { stroke: var(--danger); }
    .metric-card--alert .kpi-spark circle { fill: var(--danger); stroke: #fff; }

    .money-flow-card { padding: 14px; }
    .money-flow {
      width: 100%;
      height: 160px;
      display: block;
      margin-top: 6px;
    }
    .money-flow__rev { fill: #1f8a5b; }
    .money-flow__exp { fill: #2b2b2b; }
    .money-flow__col.is-today .money-flow__rev { fill: var(--gold); }
    .money-flow__col.is-today .money-flow__exp { fill: #111; }
    .money-flow__col.is-future .money-flow__rev,
    .money-flow__col.is-future .money-flow__exp { opacity: .25; }
    .money-flow-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      margin-top: 8px;
      font-size: 12px;
      font-weight: 750;
    }
    .money-flow-legend i {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 2px;
      margin-right: 6px;
      vertical-align: -1px;
    }
    .money-flow-legend__rev { background: #1f8a5b; }
    .money-flow-legend__exp { background: #2b2b2b; }

    .money-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 14px;
      align-items: start;
    }
    .money-col { display: grid; gap: 14px; min-width: 0; }

    .money-history {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 6px;
      align-items: end;
      margin-top: 6px;
    }
    .money-history__col {
      display: grid;
      gap: 4px;
      justify-items: center;
      padding: 8px 4px;
      border-radius: 10px;
      transition: background .14s ease;
    }
    .money-history__col.is-current { background: var(--surface-soft); }
    .money-history__bars {
      display: flex;
      align-items: end;
      gap: 2px;
      height: 90px;
      width: 100%;
      justify-content: center;
    }
    .money-history__bar {
      width: 14px;
      border-radius: 3px 3px 0 0;
      min-height: 1px;
    }
    .money-history__bar--rev { background: linear-gradient(180deg, #2db872, #1f8a5b); }
    .money-history__bar--exp { background: linear-gradient(180deg, #555, #222); }
    .money-history__col.is-current .money-history__bar--rev { background: linear-gradient(180deg, #ffe27d, #f0b400); }
    .money-history__label {
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: var(--muted);
    }
    .money-history__profit {
      font-size: 11px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .money-history__profit--good { color: var(--ok); }
    .money-history__profit--bad { color: var(--danger); }

    .money-debts { display: grid; gap: 8px; }
    .money-debt {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: #fff;
    }
    .money-debt__person {
      display: grid;
      grid-template-columns: 36px minmax(0, 1fr);
      gap: 10px;
      align-items: center;
      min-width: 0;
    }
    .money-debt__avatar {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      background: rgba(217,45,32,.12);
      color: #b42318;
      display: grid;
      place-items: center;
      font-weight: 920;
      font-size: 16px;
    }
    .money-debt__name { font-weight: 850; }
    .money-debt__sum {
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      color: var(--danger);
    }
    .money-debt .button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
      box-shadow: 0 6px 14px rgba(255,210,63,.32);
      min-height: 38px;
      padding: 8px 14px;
    }

    .money-asset-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
    }
    .money-asset {
      padding: 12px;
      border-radius: 12px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      display: grid;
      gap: 6px;
    }
    .money-asset span {
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
    }
    .money-asset strong {
      font-size: 16px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .money-asset-foot {
      margin-top: 10px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .money-asset-foot > div {
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--line);
      display: grid;
      gap: 4px;
    }
    .money-asset-foot span { font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
    .money-asset-foot strong { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }

    .money-alerts-v2 { gap: 8px; }

    @media (max-width: 1180px) {
      .money-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 860px) {
      .money-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .money-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .money-asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .money-history__bars { height: 70px; }
      .money-history__bar { width: 10px; }
    }
    @media (max-width: 560px) {
      .money-kpi { grid-template-columns: 1fr; }
      .money-quick { grid-template-columns: 1fr; }
      .money-quick__btn { min-height: 52px; font-size: 15px; }
      .money-debt {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
          "person sum"
          "form form";
        gap: 8px;
      }
      .money-debt__person { grid-area: person; }
      .money-debt__sum { grid-area: sum; }
      .money-debt__form { grid-area: form; }
      .money-debt__form .button { width: 100%; }
      .money-history { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
      .money-history__bar { width: 8px; }
      .money-history__profit { font-size: 10px; }
      .money-asset-foot { grid-template-columns: 1fr; }
    }

    /* ==== Owner inventory v2 (mobile-first stock hub) ==== */
    .inv-page { display: grid; gap: 14px; }

    .inv-hero {
      display: grid;
      gap: 16px;
      padding: clamp(16px, 4vw, 22px);
    }
    .inv-hero__head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
      flex-wrap: wrap;
    }
    .inv-hero h2 {
      margin: 6px 0 0;
      color: #fff;
      font-size: clamp(24px, 4vw, 32px);
      letter-spacing: -.03em;
      line-height: 1.1;
    }
    .inv-hero__sub {
      color: rgba(255,255,255,.7);
      margin-top: 4px;
      font-weight: 700;
      font-size: 13px;
    }
    .inv-hero .button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
      box-shadow: 0 8px 22px rgba(255,210,63,.32);
    }
    .inv-hero__total {
      display: grid;
      gap: 4px;
      padding: 16px 18px;
      border-radius: 16px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.08);
    }
    .inv-hero__total span {
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: rgba(255,255,255,.6);
    }
    .inv-hero__total strong {
      font-size: clamp(28px, 6vw, 44px);
      font-weight: 920;
      line-height: 1;
      color: var(--gold);
      font-variant-numeric: tabular-nums;
    }
    .inv-hero__total small { color: rgba(255,255,255,.65); font-size: 12px; font-weight: 750; }
    .inv-hero__kpi {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .inv-hero-kpi {
      display: grid;
      gap: 4px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.08);
      color: #fff;
      transition: .14s ease;
    }
    .inv-hero-kpi:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
    .inv-hero-kpi span {
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: rgba(255,255,255,.55);
    }
    .inv-hero-kpi strong {
      font-size: 22px;
      font-weight: 920;
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .inv-hero-kpi small { color: rgba(255,255,255,.65); font-size: 11px; font-weight: 750; }
    .inv-hero-kpi.is-bad { background: rgba(217,45,32,.18); border-color: rgba(217,45,32,.32); }
    .inv-hero-kpi.is-bad strong { color: #ff8b80; }
    .inv-hero-kpi.is-warn { background: rgba(255,210,63,.14); border-color: rgba(255,210,63,.32); }
    .inv-hero-kpi.is-warn strong { color: var(--gold); }
    .inv-hero-kpi.is-ok strong { color: #6ee08a; }

    .inv-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
      gap: 12px;
    }
    .inv-distribution { display: grid; gap: 10px; }
    .inv-dist {
      display: grid;
      gap: 4px;
      padding: 12px;
      border-radius: 12px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      transition: .14s ease;
    }
    .inv-dist:hover { transform: translateY(-1px); border-color: rgba(17,17,17,.32); }
    .inv-dist__head { display: flex; justify-content: space-between; gap: 8px; }
    .inv-dist__label { font-weight: 850; }
    .inv-dist__value { font-weight: 900; font-variant-numeric: tabular-nums; }
    .inv-dist__track {
      height: 8px;
      background: rgba(17,17,17,.06);
      border-radius: 999px;
      overflow: hidden;
    }
    .inv-dist__fill {
      height: 100%;
      background: linear-gradient(90deg, #111, #2b2b2b);
      border-radius: 999px;
    }
    .inv-dist__meta { font-size: 11px; }
    .inv-dist--consumable .inv-dist__fill { background: linear-gradient(90deg, #1f8a5b, #2db872); }
    .inv-dist--product .inv-dist__fill { background: linear-gradient(90deg, #f0b400, #ffd23f); }
    .inv-dist--asset .inv-dist__fill { background: linear-gradient(90deg, #4a3aff, #7a6cff); }
    .inv-dist--equipment .inv-dist__fill { background: linear-gradient(90deg, #2b2b2b, #555); }

    .inv-top { display: grid; gap: 6px; }
    .inv-top__row {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 8px 10px;
      border-radius: 10px;
      transition: .14s ease;
    }
    .inv-top__row:hover { background: var(--surface-soft); }
    .inv-top__rank {
      width: 24px;
      height: 24px;
      border-radius: 8px;
      background: var(--surface-soft);
      color: var(--text);
      display: grid;
      place-items: center;
      font-weight: 920;
      font-size: 12px;
    }
    .inv-top__row:nth-child(1) .inv-top__rank { background: var(--gold); color: #111; }
    .inv-top__name { font-weight: 850; font-size: 14px; }
    .inv-top__row strong { font-weight: 900; font-variant-numeric: tabular-nums; }

    .inv-urgent-card { border-left: 4px solid var(--danger); padding: 14px 16px; }
    .inv-urgent { display: grid; gap: 8px; }
    .inv-urgent__row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border: 1px solid rgba(217,45,32,.22);
      background: rgba(217,45,32,.04);
      border-radius: 12px;
    }
    .inv-urgent__main { min-width: 0; }
    .inv-urgent__name { font-weight: 900; }
    .inv-urgent__meta { font-size: 12px; margin-top: 2px; }
    .inv-urgent__cost {
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      color: var(--danger);
    }
    .inv-urgent__form .button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
      min-height: 38px;
      padding: 8px 14px;
      box-shadow: 0 6px 14px rgba(255,210,63,.32);
    }

    .inv-toolbar-card { padding: 14px; display: grid; gap: 10px; }
    .inv-search {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: stretch;
    }
    .inv-search input {
      min-height: 48px;
      font-size: 15px;
      padding: 10px 38px 10px 14px;
    }
    .inv-search__clear {
      position: absolute;
      right: 100px;
      top: 50%;
      transform: translateY(-50%);
      width: 30px;
      height: 30px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: rgba(17,17,17,.06);
      color: var(--text);
      font-size: 18px;
      font-weight: 900;
    }
    .inv-search__submit { min-height: 48px; padding: 0 18px; }
    .inv-chips { gap: 6px; }
    .inv-toolbar-foot { font-size: 12px; }

    .inv-cards {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 12px;
    }
    .inv-card {
      display: grid;
      gap: 12px;
      padding: 14px 16px;
      border-left: 4px solid var(--line);
      transition: .14s ease;
      scroll-margin-top: 80px;
    }
    .inv-card--consumable { border-left-color: #2db872; }
    .inv-card--product { border-left-color: var(--gold); }
    .inv-card--asset { border-left-color: #7a6cff; }
    .inv-card--equipment { border-left-color: #555; }
    .inv-card--low { background: linear-gradient(180deg, rgba(217,45,32,.04) 0%, #fff 60%); border-left-color: var(--danger); }
    .inv-card--warn { background: linear-gradient(180deg, rgba(255,210,63,.06) 0%, #fff 60%); }
    .inv-card:target { box-shadow: 0 0 0 3px rgba(255,210,63,.45); }

    .inv-card__head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 10px;
    }
    .inv-card__title-block { min-width: 0; }
    .inv-card__name {
      font-size: 16px;
      font-weight: 900;
      line-height: 1.2;
      word-break: break-word;
    }
    .inv-card__meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
      margin-top: 4px;
      font-size: 12px;
      color: var(--muted);
    }
    .inv-card__type {
      background: var(--surface-soft);
      border: 1px solid var(--line);
      padding: 2px 8px;
      border-radius: 999px;
      font-weight: 850;
      color: var(--text);
    }
    .inv-card__badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }
    .inv-card__badge--ok { background: rgba(31,138,91,.11); color: #176b46; }
    .inv-card__badge--warn { background: rgba(255,210,63,.22); color: #3a300b; }
    .inv-card__badge--bad { background: rgba(217,45,32,.1); color: #b42318; }

    .inv-card__stock { display: grid; gap: 6px; }
    .inv-card__stock-row {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 8px;
    }
    .inv-card__stock-value {
      font-size: clamp(20px, 4vw, 26px);
      font-weight: 920;
      letter-spacing: -.02em;
      font-variant-numeric: tabular-nums;
    }
    .inv-card__stock-secondary { font-size: 13px; }
    .inv-card__threshold { font-size: 12px; margin-left: auto; }
    .inv-card__bar {
      position: relative;
      height: 10px;
      background: rgba(17,17,17,.06);
      border-radius: 999px;
      overflow: hidden;
    }
    .inv-card__bar-fill {
      height: 100%;
      border-radius: 999px;
      transition: width .25s ease;
    }
    .inv-card__bar--ok .inv-card__bar-fill { background: linear-gradient(90deg, #1f8a5b, #2db872); }
    .inv-card__bar--warn .inv-card__bar-fill { background: linear-gradient(90deg, #f0b400, #ffd23f); }
    .inv-card__bar--bad .inv-card__bar-fill { background: linear-gradient(90deg, #b42318, #ff5e51); }
    .inv-card__bar-mark {
      position: absolute;
      top: -2px;
      bottom: -2px;
      width: 2px;
      background: rgba(17,17,17,.45);
    }

    .inv-card__money {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
      gap: 8px;
    }
    .inv-card__money > div {
      padding: 8px 10px;
      border-radius: 10px;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      display: grid;
      gap: 2px;
    }
    .inv-card__money span {
      font-size: 10px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: .06em;
    }
    .inv-card__money strong {
      font-size: 14px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .inv-card__money-alert {
      background: rgba(217,45,32,.06) !important;
      border-color: rgba(217,45,32,.22) !important;
    }
    .inv-card__money-alert span { color: #b42318; }
    .inv-card__money-alert strong { color: var(--danger); }

    .inv-card__note {
      margin: 0;
      padding: 8px 10px;
      border-radius: 10px;
      background: var(--surface-soft);
      border: 1px dashed var(--line);
      font-size: 12px;
      line-height: 1.4;
    }

    .inv-card__quick {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
    }
    .inv-card__quick-label { font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
    .inv-card__qform { display: inline-flex; margin: 0; }
    .inv-card__qform--exact { display: inline-grid; grid-template-columns: minmax(0, 84px) auto; gap: 4px; flex: 1 1 auto; min-width: 160px; }
    .inv-card__qform--exact input { min-height: 36px; padding: 6px 10px; font-size: 13px; }
    .inv-card__qbtn {
      min-height: 36px;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 900;
      border-radius: 10px;
      box-shadow: none;
    }
    .inv-card__qbtn--alt {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
    }

    .inv-card__foot {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
    }
    .inv-card__edit { font-size: 13px; padding: 8px 14px; min-height: 36px; }

    .inv-empty {
      grid-column: 1 / -1;
      display: grid;
      gap: 8px;
      padding: 24px;
      justify-items: center;
      text-align: center;
    }
    .inv-empty strong { font-weight: 900; font-size: 16px; }

    .inv-checks { display: block; }
    .inv-checks summary { padding: 14px 16px; }

    @media (max-width: 980px) {
      .inv-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 720px) {
      .inv-hero__kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
      .inv-hero-kpi { padding: 10px; }
      .inv-hero-kpi strong { font-size: 18px; }
      .inv-hero-kpi small { display: none; }
      .inv-cards { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .inv-hero__head { gap: 10px; }
      .inv-hero__head .button { width: 100%; }
      .inv-search { grid-template-columns: 1fr; }
      .inv-search__submit { width: 100%; }
      .inv-search__clear { right: 14px; top: 14px; transform: none; }
      .inv-search input { padding-right: 50px; }
      .inv-card__quick { gap: 4px; }
      .inv-card__qbtn { padding: 6px 10px; font-size: 12px; }
      .inv-card__qform--exact { width: 100%; min-width: 0; }
      .inv-urgent__row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
          "main cost"
          "form form";
      }
      .inv-urgent__main { grid-area: main; }
      .inv-urgent__cost { grid-area: cost; }
      .inv-urgent__form { grid-area: form; }
      .inv-urgent__form .button { width: 100%; }
    }

    /* ===========================
       Money page v3/v4 — План/Факт + бюджеты
       =========================== */
    .money-page--v3,
    .money-page--v4 { display: grid; gap: 14px; }
    .money-hero--v2,
    .money-hero--v3,
    .money-hero--v4 {
      color: #fff;
      background:
        radial-gradient(circle at top right, rgba(255, 210, 63, 0.34), transparent 38%),
        linear-gradient(145deg, #111111 0%, #242424 70%, #3c320b 100%);
      border: 1px solid rgba(255, 255, 255, 0.04);
    }
    .money-hero--v2 .muted,
    .money-hero--v3 .muted,
    .money-hero--v4 .muted { color: rgba(255, 255, 255, 0.68); }
    .money-hero--v2 .pill,
    .money-hero--v3 .pill,
    .money-hero--v4 .pill {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* ---- Hero v4: plan-first compact layout ---- */
    .money-hero--v4 {
      display: grid;
      gap: 14px;
      padding: clamp(14px, 3vw, 22px);
    }
    .money-hero__bar {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }
    .money-hero--v4 .money-period-nav--v2 a { color: #fff; }

    /* Board: contains plan info + revenue + progress */
    .money-hero__board {
      display: grid;
      gap: 10px;
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 18px;
    }
    .money-hero__board-head {
      display: flex; justify-content: space-between; align-items: center; gap: 10px;
    }
    .money-hero__board-label {
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.6);
    }
    .money-hero__big {
      font-size: clamp(36px, 9vw, 56px);
      font-weight: 920;
      line-height: 1;
      letter-spacing: -0.04em;
      color: #fff;
      font-variant-numeric: tabular-nums;
    }

    /* Plan edit toggle (when plan is set) */
    .money-hero__edit { position: relative; }
    .money-hero__edit > summary {
      list-style: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 99px;
      color: #fff;
      font-weight: 800;
      font-size: 13px;
      font-variant-numeric: tabular-nums;
    }
    .money-hero__edit > summary::-webkit-details-marker { display: none; }
    .money-hero__edit > summary span { opacity: 0.6; font-size: 11px; }
    .money-hero__edit-form {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      z-index: 10;
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 8px;
      background: #1a1a1a;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 12px;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }
    .money-hero__edit-form input {
      background: rgba(255, 255, 255, 0.08);
      border: none;
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      padding: 6px 10px;
      border-radius: 8px;
      width: 130px;
      outline: none;
    }
    .money-hero__edit-form span { color: rgba(255, 255, 255, 0.5); font-weight: 700; }
    .money-hero__edit-form button {
      padding: 6px 12px;
      background: var(--gold);
      border: 1px solid var(--gold);
      color: #111;
      border-radius: 8px;
      font-weight: 900;
      font-size: 12px;
      cursor: pointer;
    }
    .money-hero__edit-form button.ghost {
      background: transparent;
      border-color: rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.7);
      padding: 6px 10px;
    }

    /* Progress bar */
    .money-hero__progress {
      display: grid;
      gap: 6px;
    }
    .money-hero__progress-bar {
      height: 10px;
      border-radius: 99px;
      background: rgba(255, 255, 255, 0.12);
      overflow: hidden;
    }
    .money-hero__progress-bar i {
      display: block;
      height: 100%;
      width: 0;
      background: var(--gold);
      transition: width 0.6s ease;
    }
    .money-hero__progress--ok .money-hero__progress-bar i { background: #6dd4a3; }
    .money-hero__progress--warn .money-hero__progress-bar i { background: var(--gold); }
    .money-hero__progress--bad .money-hero__progress-bar i { background: #ff8a73; }
    .money-hero__progress--none .money-hero__progress-bar i { background: rgba(255, 255, 255, 0.18); }
    .money-hero__progress-meta {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 12px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.78);
    }
    .money-hero__progress-meta .muted { color: rgba(255, 255, 255, 0.5) !important; }

    /* Empty plan state */
    .money-hero__board--empty { gap: 12px; }
    .money-hero__plan-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
    }
    .money-hero__plan-form input {
      background: transparent;
      border: none;
      color: #fff;
      font-size: clamp(24px, 6vw, 32px);
      font-weight: 900;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
      width: 100%;
      outline: none;
      padding: 0;
      min-width: 0;
    }
    .money-hero__plan-form input::placeholder {
      color: rgba(255, 255, 255, 0.3);
      font-weight: 700;
    }
    .money-hero__plan-form > span {
      font-size: 18px;
      font-weight: 800;
      color: rgba(255, 255, 255, 0.55);
    }
    .money-hero__plan-form button {
      padding: 8px 14px;
      background: var(--gold);
      border: 1px solid var(--gold);
      color: #111;
      border-radius: 99px;
      font-weight: 900;
      font-size: 13px;
      cursor: pointer;
    }

    /* Inline "review plan" details when plan is set */
    .money-hero__suggest--inline {
      margin-top: 4px;
      padding-top: 8px;
      border-top: 1px dashed rgba(255, 255, 255, 0.1);
    }
    .money-hero__suggest-toggle {
      list-style: none;
      cursor: pointer;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: rgba(255, 255, 255, 0.65);
      padding: 2px 0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .money-hero__suggest-toggle::-webkit-details-marker { display: none; }
    .money-hero__suggest-toggle::after {
      content: "▾";
      font-size: 10px;
      transition: transform 0.2s ease;
    }
    .money-hero__suggest--inline[open] .money-hero__suggest-toggle::after {
      transform: rotate(180deg);
    }
    .money-hero__suggest-body { display: grid; gap: 8px; margin-top: 8px; }
    .money-hero__suggest-custom {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto auto auto;
      gap: 6px;
      align-items: center;
      padding: 8px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
    }
    .money-hero__suggest-custom input {
      background: transparent;
      border: none;
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      padding: 4px 6px;
      outline: none;
      min-width: 0;
    }
    .money-hero__suggest-custom input::placeholder { color: rgba(255, 255, 255, 0.35); }
    .money-hero__suggest-custom > span {
      color: rgba(255, 255, 255, 0.5);
      font-weight: 700;
      font-size: 14px;
    }
    .money-hero__suggest-custom button {
      padding: 6px 10px;
      background: var(--gold);
      border: 1px solid var(--gold);
      color: #111;
      border-radius: 8px;
      font-weight: 900;
      font-size: 12px;
      cursor: pointer;
    }
    .money-hero__suggest-custom button.ghost {
      background: transparent;
      border-color: rgba(255, 255, 255, 0.18);
      color: rgba(255, 255, 255, 0.7);
    }
    @media (max-width: 480px) {
      .money-hero__suggest-custom {
        grid-template-columns: minmax(0, 1fr) auto;
      }
      .money-hero__suggest-custom button {
        grid-column: 1 / -1;
        width: 100%;
        padding: 8px;
      }
      .money-hero__suggest-custom button.ghost { grid-column: 1 / -1; }
    }

    /* Suggest grid */
    .money-hero__suggest { display: grid; gap: 8px; }
    .money-hero__suggest-label {
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.5);
    }
    .money-hero__suggest-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
    .money-hero__suggest-grid form { display: contents; }
    .money-hero__suggest-grid button {
      width: 100%;
      display: grid;
      gap: 2px;
      padding: 10px 8px;
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 12px;
      color: #fff;
      cursor: pointer;
      transition: 0.14s ease;
      text-align: center;
    }
    .money-hero__suggest-grid button:hover {
      background: rgba(255, 255, 255, 0.1);
      transform: translateY(-1px);
    }
    .money-hero__suggest-grid button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
    }
    .money-hero__suggest-grid button span {
      font-size: 10px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      opacity: 0.7;
      font-weight: 800;
    }
    .money-hero__suggest-grid button strong {
      font-size: 14px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .money-hero__suggest-why {
      margin-top: 4px;
      font-size: 12px;
    }
    .money-hero__suggest-why > summary {
      list-style: none;
      cursor: pointer;
      padding: 4px 0;
      color: rgba(255, 255, 255, 0.55);
      text-decoration: underline dotted;
    }
    .money-hero__suggest-why > summary::-webkit-details-marker { display: none; }
    .money-hero__suggest-why .money-hero__calc-breakdown {
      margin-top: 8px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
    }
    .money-hero__calc-breakdown { display: grid; gap: 4px; font-size: 12px; }
    .money-hero__calc-breakdown > div {
      display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
    }
    .money-hero__calc-breakdown b {
      color: #fff; font-weight: 800; font-variant-numeric: tabular-nums;
    }
    .money-hero__calc-breakdown a { color: var(--gold); }

    /* Stats line at bottom */
    .money-hero__line {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
      padding: 8px 4px 0;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .money-hero__line > span {
      display: grid;
      gap: 2px;
      text-align: left;
      padding: 4px 8px;
    }
    .money-hero__line em {
      font-style: normal;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.5);
    }
    .money-hero__line b {
      color: #fff;
      font-size: 15px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .money-hero__line b.is-bad { color: #ff8a73; }
    .money-hero__line b.is-ok { color: var(--gold); }

    @media (max-width: 560px) {
      .money-hero__plan-form { grid-template-columns: minmax(0, 1fr) auto; }
      .money-hero__plan-form button { grid-column: 1 / -1; width: 100%; padding: 10px; }
      .money-hero__suggest-grid { grid-template-columns: 1fr; }
      .money-hero__line { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
      .money-hero__line > span { padding: 4px; }
      .money-hero__edit-form { right: auto; left: 0; }
    }
    @media (max-width: 380px) {
      .money-hero__line { grid-template-columns: 1fr; }
    }

    /* Inline extras-row inside cards (obligations, templates) */
    .extras-row--inline {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--surface-soft);
      margin-top: 8px;
    }
    .extras-row--inline > summary { padding: 10px 12px; }
    .extras-row--inline[open] > summary { background: #fff; border-radius: 12px 12px 0 0; }
    .extras-row--inline .extras-row__body { padding: 12px; background: #fff; border-radius: 0 0 12px 12px; }

    /* ---- Hero plan calculator ---- */
    .money-hero__calc {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 14px;
      padding: 12px 14px;
    }
    .money-hero__calc > summary {
      display: flex; gap: 10px; align-items: center; justify-content: space-between;
      cursor: pointer;
      list-style: none;
      font-size: 13px;
      font-weight: 800;
      color: #fff;
    }
    .money-hero__calc > summary::-webkit-details-marker { display: none; }
    .money-hero__calc > summary::after {
      content: "▼";
      font-size: 10px;
      opacity: 0.5;
      transition: transform 0.2s ease;
    }
    .money-hero__calc[open] > summary::after { transform: rotate(180deg); }
    .money-hero__calc-body {
      display: grid;
      gap: 12px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed rgba(255, 255, 255, 0.12);
    }
    .money-hero__calc-breakdown {
      display: grid;
      gap: 6px;
      font-size: 13px;
    }
    .money-hero__calc-breakdown > div {
      display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
    }
    .money-hero__calc-breakdown b {
      color: #fff; font-weight: 800; font-variant-numeric: tabular-nums;
    }
    .money-hero__calc-breakdown .muted { color: rgba(255, 255, 255, 0.6) !important; }
    .money-hero__calc-divider {
      height: 1px;
      background: rgba(255, 255, 255, 0.1);
      margin: 4px 0;
    }
    .money-hero__calc-hint {
      margin: 0;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.6);
    }
    .money-hero__calc-hint a {
      color: var(--gold);
      text-decoration: underline;
    }
    .money-hero__calc-options {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }
    .money-hero__calc-options form {
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 12px;
      text-align: left;
    }
    .money-hero__calc-options span {
      font-size: 10px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.6);
      font-weight: 800;
    }
    .money-hero__calc-options strong {
      color: #fff;
      font-size: 16px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .money-hero__calc-options button {
      margin-top: 4px;
      padding: 6px 10px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 99px;
      color: #fff;
      font-weight: 800;
      font-size: 12px;
      cursor: pointer;
    }
    .money-hero__calc-options button.is-highlight {
      background: var(--gold);
      border-color: var(--gold);
      color: #111;
    }
    @media (max-width: 720px) {
      .money-hero__calc-options { grid-template-columns: 1fr; }
    }

    /* ---- Plan settings fieldset ---- */
    .plan-settings__group {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      margin: 0;
    }
    .plan-settings__group legend {
      padding: 0 8px;
      font-weight: 900;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted);
    }

    /* ---- Shift plan team bonus hint ---- */
    .shift-plan-card__bonus {
      display: flex;
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      background: var(--surface-soft);
      border: 1px dashed var(--line);
    }
    .shift-plan-card__bonus-icon { font-size: 16px; }
    .shift-plan-card__bonus--full {
      background: rgba(255, 210, 63, 0.18);
      border-color: rgba(255, 210, 63, 0.4);
      border-style: solid;
    }
    .shift-plan-card__bonus--over {
      background: rgba(31, 138, 91, 0.18);
      border-color: rgba(31, 138, 91, 0.45);
      border-style: solid;
      color: #155b3a;
    }
    .shift-plan-card__bonus--near { color: var(--text); }
    .shift-plan-card__bonus--miss { color: var(--muted); }

    /* ---- Money extras consolidated card ---- */
    .money-extras { padding: 14px 0 0; }
    .money-extras__head {
      padding: 0 16px 10px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 0;
    }
    .money-extras__head h2 { font-size: 16px; }
    .money-extras__head p { font-size: 12px; }
    .extras-row {
      border-bottom: 1px solid var(--line);
    }
    .extras-row:last-child { border-bottom: none; }
    .extras-row > summary {
      list-style: none;
      cursor: pointer;
      display: grid;
      grid-template-columns: 28px minmax(0, 1fr) auto 14px;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      transition: background 0.14s ease;
    }
    .extras-row > summary::-webkit-details-marker { display: none; }
    .extras-row > summary:hover { background: var(--surface-soft); }
    .extras-row[open] > summary {
      background: var(--surface-soft);
      border-bottom: 1px dashed var(--line);
    }
    .extras-row__icon {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: var(--surface-soft);
      color: var(--muted);
      font-weight: 900;
      font-size: 14px;
    }
    .extras-row[open] .extras-row__icon { background: #fff; color: var(--text); }
    .extras-row__title {
      display: grid;
      gap: 2px;
      min-width: 0;
    }
    .extras-row__title strong {
      font-weight: 800;
      font-size: 14px;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .extras-row__title em {
      font-style: normal;
      font-size: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .extras-row__meta {
      display: flex;
      gap: 6px;
      align-items: center;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      font-size: 14px;
      white-space: nowrap;
    }
    .extras-row__meta .pill { padding: 2px 8px; font-size: 11px; }
    .extras-row__chev {
      color: var(--muted);
      font-size: 18px;
      font-weight: 700;
      transition: transform 0.2s ease;
    }
    .extras-row[open] .extras-row__chev { transform: rotate(90deg); }
    .extras-row--alert .extras-row__icon {
      background: rgba(217, 45, 32, 0.12);
      color: var(--danger);
    }
    .extras-row__body {
      padding: 12px 16px 18px;
      display: grid;
      gap: 12px;
    }

    @media (max-width: 480px) {
      .extras-row > summary { grid-template-columns: 24px minmax(0, 1fr) auto 12px; gap: 10px; padding: 12px; }
      .extras-row__title em { display: none; }
      .extras-row__icon { width: 24px; height: 24px; font-size: 12px; }
      .extras-row__body { padding: 10px 12px 14px; }
      .money-extras__head { padding: 0 12px 8px; }
    }

    /* ---- Detailed debt rows in modal ---- */
    .money-debts--detailed { display: grid; gap: 8px; }
    .money-debt--fold {
      display: block;
      grid-template-columns: none;
      padding: 0;
      gap: 0;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
    }
    .money-debt--fold[open] { background: #fff; border-color: rgba(255, 210, 63, 0.45); }
    .money-debt__summary {
      list-style: none;
      cursor: pointer;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto 14px;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
    }
    .money-debt__summary::-webkit-details-marker { display: none; }
    .money-debt--fold .money-debt__person { display: flex; gap: 10px; align-items: center; min-width: 0; }
    .money-debt--fold .money-debt__avatar {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: var(--gold);
      color: #111;
      font-weight: 900;
      font-size: 14px;
    }
    .money-debt--fold .money-debt__name { font-weight: 800; font-size: 14px; }
    .money-debt--fold .money-debt__sum { font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .money-debt__chev { color: var(--muted); font-size: 18px; transition: transform 0.2s ease; }
    .money-debt--fold[open] .money-debt__chev { transform: rotate(90deg); }
    .money-debt__shifts {
      display: grid;
      gap: 6px;
      padding: 10px 14px;
      border-top: 1px dashed var(--line);
    }
    .money-debt__shift {
      padding: 8px 10px;
      background: var(--surface-soft);
      border-radius: 10px;
    }
    .money-debt__shift-head {
      display: flex; gap: 8px; align-items: baseline; justify-content: space-between;
    }
    .money-debt__shift-head strong { font-weight: 800; font-size: 13px; }
    .money-debt__shift-amount {
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      font-size: 14px;
      margin-left: auto;
    }
    .money-debt__shift-meta { font-size: 12px; margin-top: 2px; }
    .money-debt__shift-breakdown { font-size: 11px; margin-top: 2px; }
    .money-debt--fold .money-debt__form { padding: 0 14px 12px; }
    .money-debt--fold .money-debt__form button[disabled] {
      opacity: 0.55;
      cursor: not-allowed;
    }

    /* ---- Quick action modals ---- */
    .money-modal .modal__panel {
      max-height: 90vh;
      overflow-y: auto;
      width: min(560px, 100%);
    }
    .money-modal .modal__panel h2 { font-size: 18px; margin: 0 0 4px; }
    .money-modal .modal__panel .modal__close {
      cursor: pointer;
      text-decoration: none;
      color: var(--text);
      font-size: 22px;
      line-height: 1;
    }
    .money-modal .form { gap: 10px; }
    .money-modal .button.secondary {
      background: transparent;
      border: 1px solid var(--line);
      color: var(--text);
    }
    .money-modal .expense-presets { margin-bottom: 12px; }
    @media (max-width: 480px) {
      .money-modal { padding: 0; align-items: flex-end; }
      .money-modal .modal__panel {
        width: 100%;
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
        padding: 16px 14px 22px;
      }
    }

    /* ---- Money flow empty state ---- */
    .money-flow-card.is-empty .money-flow { opacity: 0.3; }
    .money-flow-card.is-empty .money-flow-legend { opacity: 0.45; }
    .money-flow-empty {
      position: absolute;
      inset: 56px 0 60px;
      display: grid;
      gap: 4px;
      place-content: center;
      text-align: center;
      pointer-events: none;
    }
    .money-flow-empty strong {
      font-weight: 800;
      font-size: 14px;
    }
    .money-flow-empty span { font-size: 12px; }
    .money-flow-card { position: relative; }

    /* ---- Employee plan bar bonus hint ---- */
    .employee-plan-bar__bonus {
      margin-top: 8px;
      padding: 6px 10px;
      border-radius: 10px;
      background: rgba(255, 210, 63, 0.18);
      border: 1px solid rgba(255, 210, 63, 0.4);
      font-size: 12px;
      font-weight: 800;
    }
    .employee-plan-bar--ok .employee-plan-bar__bonus {
      background: rgba(31, 138, 91, 0.18);
      border-color: rgba(31, 138, 91, 0.4);
      color: #155b3a;
    }
    .employee-plan-bar--bad .employee-plan-bar__bonus {
      background: rgba(217, 45, 32, 0.12);
      border-color: rgba(217, 45, 32, 0.3);
      color: var(--danger);
    }

    .money-hero--v3 .money-hero__tracks {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }
    .money-track {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      padding: 10px 12px;
      color: #fff;
    }
    .money-track__head {
      display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
      font-size: 12px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.78);
    }
    .money-track__head b { font-size: 16px; color: #fff; font-weight: 900; letter-spacing: 0; text-transform: none; }
    .money-track__bar {
      margin-top: 6px;
      height: 6px;
      border-radius: 99px;
      background: rgba(255, 255, 255, 0.18);
      overflow: hidden;
    }
    .money-track__fill {
      display: block;
      height: 100%;
      width: 0;
      background: var(--gold);
      transition: width 0.4s ease;
    }
    .money-track--rev .money-track__fill { background: var(--gold); }
    .money-track--exp .money-track__fill { background: #f8b66f; }
    .money-track--exp.is-over .money-track__fill { background: #ff8a73; }
    .money-track--profit .money-track__fill { background: #6dd4a3; }
    .money-track--profit.is-bad .money-track__fill { background: #ff8a73; }
    .money-track__meta {
      margin-top: 6px;
      font-size: 11px;
      letter-spacing: 0.02em;
      color: rgba(255, 255, 255, 0.7) !important;
    }
    .money-track__meta a { color: #fff; text-decoration: underline; }

    .money-quick a[href="#owner-plan-fact"] { background: rgba(17, 17, 17, 0.06); }

    /* План/Факт виджет */
    .money-plan-fact { padding: 18px; }
    .money-plan-fact .section-head { margin-bottom: 12px; }
    .plan-fact-grid {
      display: grid;
      grid-template-columns: 160px 1fr;
      gap: 18px;
      align-items: center;
    }
    .plan-ring {
      position: relative;
      width: 160px;
      height: 160px;
      display: grid;
      place-items: center;
    }
    .plan-ring svg { width: 160px; height: 160px; }
    .plan-ring__bg { fill: none; stroke: var(--surface-soft); stroke-width: 12; }
    .plan-ring__fill {
      fill: none;
      stroke: var(--gold);
      stroke-width: 12;
      stroke-linecap: round;
      transition: stroke-dasharray 0.6s ease;
    }
    .plan-ring--ok .plan-ring__fill { stroke: var(--ok); }
    .plan-ring--warn .plan-ring__fill { stroke: var(--gold); }
    .plan-ring--bad .plan-ring__fill { stroke: var(--danger); }
    .plan-ring--none .plan-ring__fill { stroke: var(--line); }
    .plan-ring__label {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      gap: 2px;
      text-align: center;
    }
    .plan-ring__label strong { font-size: 28px; font-weight: 900; line-height: 1; }
    .plan-ring__label span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

    .plan-fact-cards {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }
    .plan-card {
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      display: grid;
      gap: 4px;
    }
    .plan-card__label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
    .plan-card strong { font-size: 18px; font-weight: 900; }
    .plan-card em { font-style: normal; font-size: 12px; }
    .plan-card--bad strong { color: var(--danger); }
    .plan-card--good strong { color: var(--ok); }

    .plan-mini {
      margin-top: 14px;
      border-top: 1px dashed var(--line);
      padding-top: 12px;
      display: grid;
      gap: 6px;
    }
    .plan-mini__head {
      display: flex; justify-content: space-between; align-items: baseline;
      font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
      margin-bottom: 2px;
    }
    .plan-mini__row {
      display: grid;
      grid-template-columns: 110px minmax(80px, 1fr) 180px;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 10px;
      background: var(--surface-soft);
    }
    .plan-mini__row.is-today { background: #fffaef; outline: 1px solid rgba(255, 210, 63, 0.6); }
    .plan-mini__row--ok { border-left: 3px solid var(--ok); }
    .plan-mini__row--warn { border-left: 3px solid #f8b66f; }
    .plan-mini__row--bad { border-left: 3px solid var(--danger); }
    .plan-mini__row--future { border-left: 3px solid var(--line); opacity: 0.85; }
    .plan-mini__row--none { border-left: 3px solid var(--line); }
    .plan-mini__day { font-weight: 800; font-size: 13px; display: flex; gap: 6px; align-items: center; }
    .plan-mini__day i { color: var(--muted); font-style: normal; font-size: 12px; }
    .plan-mini__bar { height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
    .plan-mini__bar i { display: block; height: 100%; background: var(--gold); width: 0; }
    .plan-mini__row--ok .plan-mini__bar i { background: var(--ok); }
    .plan-mini__row--bad .plan-mini__bar i { background: var(--danger); }
    .plan-mini__row--future .plan-mini__bar i { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); }
    .plan-mini__values { display: flex; gap: 6px; align-items: baseline; justify-content: flex-end; font-size: 12px; }
    .plan-mini__values b { font-weight: 900; font-size: 14px; }
    .plan-mini__values em { color: var(--muted); font-style: normal; font-size: 12px; }

    /* План на канве "Касса по дням" */
    .money-flow--v3 .money-flow__plan { stroke: var(--text); stroke-width: 1.4; opacity: 0.55; }
    .money-flow--v3 .money-flow__col--ok .money-flow__plan { stroke: var(--ok); opacity: 0.9; }
    .money-flow--v3 .money-flow__col--warn .money-flow__plan { stroke: #d59340; opacity: 0.9; }
    .money-flow--v3 .money-flow__col--bad .money-flow__plan { stroke: var(--danger); opacity: 0.9; }
    .money-flow-legend__plan {
      display: inline-block;
      width: 14px; height: 2px;
      background: var(--text);
      vertical-align: middle;
      margin-right: 4px;
    }

    /* Expenses board */
    .expenses-board { display: grid; gap: 12px; padding: 16px; }
    .expenses-board__head { align-items: flex-start; gap: 10px; }
    .expenses-board__head h2 { font-size: 18px; }
    .expenses-board__head p { font-size: 12px; }
    .expenses-board__total { text-align: right; display: grid; gap: 2px; }
    .expenses-board__total strong { font-size: 20px; font-weight: 900; }

    /* Compact category strip */
    .expenses-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      padding: 8px;
      background: var(--surface-soft);
      border-radius: 12px;
      border: 1px solid var(--line);
    }
    .expenses-strip__cell {
      display: grid;
      gap: 1px;
      padding: 8px 10px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid transparent;
      min-width: 0;
    }
    .expenses-strip__cell span {
      font-size: 10px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 800;
    }
    .expenses-strip__cell strong {
      font-size: 15px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .expenses-strip__cell em {
      font-style: normal;
      font-size: 11px;
      color: var(--muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .expenses-strip__cell--ok { border-color: rgba(31, 138, 91, 0.35); }
    .expenses-strip__cell--warn { border-color: rgba(255, 210, 63, 0.6); }
    .expenses-strip__cell--over {
      border-color: rgba(217, 45, 32, 0.45);
      background: rgba(255, 235, 232, 0.6);
    }
    @media (max-width: 720px) {
      .expenses-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 380px) {
      .expenses-strip { grid-template-columns: 1fr; }
    }
    .expenses-budgets {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      align-items: stretch;
      position: relative;
    }
    .expense-budget {
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      display: grid;
      gap: 6px;
    }
    .expense-budget--over { border-color: rgba(217, 45, 32, 0.45); background: rgba(255, 235, 232, 0.7); }
    .expense-budget--warn { border-color: rgba(255, 210, 63, 0.7); }
    .expense-budget--ok { border-color: rgba(31, 138, 91, 0.35); }
    .expense-budget__head { display: flex; justify-content: space-between; align-items: baseline; }
    .expense-budget__label { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
    .expense-budget__amount { font-size: 17px; font-weight: 900; }
    .expense-budget__bar { height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.06); overflow: hidden; }
    .expense-budget__bar i { display: block; height: 100%; background: var(--gold); width: 0; }
    .expense-budget--over .expense-budget__bar i { background: var(--danger); }
    .expense-budget--ok .expense-budget__bar i { background: var(--ok); }
    .expense-budget__meta { font-size: 11px; }
    .expense-budget__period {
      display: grid;
      gap: 2px;
      padding-top: 6px;
      border-top: 1px dashed rgba(0, 0, 0, 0.08);
      font-size: 11px;
    }
    .expense-budget__period span:first-child { font-weight: 700; color: var(--text); }

    .expense-budget-total {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 12px 14px;
      background: var(--surface-soft);
      border: 1px dashed var(--line);
      border-radius: 12px;
    }
    .expense-budget-total > div { display: grid; gap: 2px; }
    .expense-budget-total strong { font-size: 17px; font-weight: 900; }
    .expense-budget-total .is-bad strong { color: var(--danger); }

    .expenses-board__budgets {
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      background: var(--surface);
    }
    .expenses-board__budgets > summary {
      display: flex; gap: 10px; align-items: center; cursor: pointer;
      padding: 4px 0;
      font-weight: 800;
    }
    .expense-budgets-list { display: grid; gap: 8px; margin: 8px 0 12px; }
    .expense-budget-item {
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 12px;
    }
    .expense-budget-item.is-active { border-color: rgba(255, 210, 63, 0.7); }
    .expense-budget-item[open] { background: #fff; border-color: rgba(255, 210, 63, 0.7); }
    .expense-budget-item > summary {
      display: grid;
      grid-template-columns: 86px minmax(0, 1.4fr) minmax(180px, 1fr);
      gap: 12px;
      align-items: center;
      padding: 10px 12px;
      cursor: pointer;
      list-style: none;
    }
    .expense-budget-item > summary::-webkit-details-marker { display: none; }
    .expense-budget-item__title { display: grid; gap: 2px; min-width: 0; }
    .expense-budget-item__title strong { font-weight: 800; }
    .expense-budget-item__title span { color: var(--muted); font-size: 12px; }
    .expense-budget-item__progress { display: grid; gap: 4px; }
    .expense-budget-item__bar { height: 6px; border-radius: 99px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
    .expense-budget-item__bar i { display: block; height: 100%; background: var(--gold); width: 0; }
    .expense-budget-item.is-active .expense-budget-item__bar i { background: var(--ok); }
    .expense-budget-edit {
      border-top: 1px dashed var(--line);
      padding: 12px;
      gap: 10px;
    }
    .expense-budget-new {
      border-top: 1px dashed var(--line);
      padding-top: 12px;
      gap: 10px;
    }

    .expenses-board__form summary { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; }
    .expense-presets {
      display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px;
    }
    .expense-presets .reports-chip { cursor: pointer; }

    .expenses-board__filters {
      display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between;
    }
    .expenses-board__search { display: flex; gap: 6px; align-items: center; flex: 1 1 220px; max-width: 320px; }
    .expenses-board__search input {
      flex: 1;
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid var(--line);
      background: #fff;
      font-size: 13px;
    }

    .expenses-board__list { display: grid; gap: 14px; }
    .expense-day { display: grid; gap: 4px; }
    .expense-day__head {
      display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
      padding: 4px 8px; border-bottom: 1px dashed var(--line);
      font-size: 13px; font-weight: 800;
    }
    .expense-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
    .expense-row[open] { border-color: rgba(255, 210, 63, 0.7); }
    .expense-row__summary {
      display: grid;
      grid-template-columns: 86px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      cursor: pointer;
      list-style: none;
    }
    .expense-row__summary::-webkit-details-marker { display: none; }
    .expense-row__pill {
      font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
      padding: 4px 8px; border-radius: 99px;
      background: rgba(0, 0, 0, 0.05);
      color: var(--text);
      text-align: center;
    }
    .expense-row__pill--rent { background: rgba(255, 210, 63, 0.25); }
    .expense-row__pill--service { background: rgba(80, 140, 255, 0.18); color: #1c3c80; }
    .expense-row__pill--purchase { background: rgba(31, 138, 91, 0.18); color: #155b3a; }
    .expense-row__pill--other { background: rgba(0, 0, 0, 0.06); }
    .expense-row__title { display: grid; gap: 2px; min-width: 0; }
    .expense-row__title strong { font-weight: 800; }
    .expense-row__title span { color: var(--muted); font-size: 12px; }
    .expense-row__amount { font-weight: 900; font-size: 16px; white-space: nowrap; }
    .expense-row__edit {
      border-top: 1px dashed var(--line);
      padding: 12px;
      gap: 10px;
    }
    .expense-row__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
    .expense-empty { padding: 20px; text-align: center; }

    .expenses-board__templates summary {
      display: flex; gap: 10px; align-items: center; cursor: pointer;
      padding: 10px 0; border-top: 1px dashed var(--line);
    }
    .expense-templates { display: grid; gap: 8px; margin: 8px 0 12px; }
    .expense-template {
      display: flex; gap: 12px; align-items: center; justify-content: space-between;
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 10px 12px;
    }
    .expense-template > div:first-child { display: grid; gap: 4px; }

    /* План в настройках */
    .plan-settings__form { gap: 10px; }
    .plan-settings__toggle { display: flex; align-items: center; gap: 8px; font-weight: 700; }
    .plan-settings__recompute { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }

    /* Карточка плана смены на /owner/shift */
    .shift-plan-card { display: grid; gap: 14px; padding: 18px; }
    .shift-plan-card--ok { border-left: 4px solid var(--ok); }
    .shift-plan-card--warn { border-left: 4px solid #f8b66f; }
    .shift-plan-card--bad { border-left: 4px solid var(--danger); }
    .shift-plan-card--none { border-left: 4px solid var(--line); }
    .shift-plan-card__main { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; }
    .shift-plan-ring { position: relative; width: 130px; height: 130px; display: grid; place-items: center; }
    .shift-plan-ring svg { width: 130px; height: 130px; }
    .shift-plan-ring__bg { fill: none; stroke: var(--surface-soft); stroke-width: 10; }
    .shift-plan-ring__fill { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray 0.6s ease; }
    .shift-plan-ring--ok .shift-plan-ring__fill { stroke: var(--ok); }
    .shift-plan-ring--warn .shift-plan-ring__fill { stroke: var(--gold); }
    .shift-plan-ring--bad .shift-plan-ring__fill { stroke: var(--danger); }
    .shift-plan-ring--none .shift-plan-ring__fill { stroke: var(--line); }
    .shift-plan-ring__label { position: absolute; inset: 0; display: grid; place-items: center; gap: 2px; text-align: center; }
    .shift-plan-ring__label strong { font-size: 24px; font-weight: 900; line-height: 1; }
    .shift-plan-ring__label span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
    .shift-plan-card__numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shift-plan-card__numbers > div { display: grid; gap: 2px; }
    .shift-plan-card__numbers strong { font-size: 20px; font-weight: 900; }
    .shift-plan-card__edit summary { display: flex; gap: 10px; align-items: center; padding: 8px 0; cursor: pointer; border-top: 1px dashed var(--line); }
    .shift-plan-card__actions { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }

    /* Цветные индикаторы плана в календаре смен */
    .shift-calendar-day--plan-ok { box-shadow: inset 0 -3px 0 var(--ok); }
    .shift-calendar-day--plan-warn { box-shadow: inset 0 -3px 0 #f8b66f; }
    .shift-calendar-day--plan-bad { box-shadow: inset 0 -3px 0 var(--danger); }
    .shift-calendar-day--plan-future { box-shadow: inset 0 -3px 0 transparent; }
    .shift-calendar-legend .legend-plan-ok,
    .shift-calendar-legend .legend-plan-bad {
      display: inline-block;
      width: 10px; height: 10px;
      border-radius: 99px;
      vertical-align: middle;
      margin: 0 4px;
    }
    .shift-calendar-legend .legend-plan-ok { background: var(--ok); }
    .shift-calendar-legend .legend-plan-bad { background: var(--danger); }

    /* Плашка плана в карточке сотрудника */
    .employee-plan-bar {
      background: var(--surface-soft);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 12px;
    }
    .employee-plan-bar--ok { border-color: rgba(31, 138, 91, 0.45); }
    .employee-plan-bar--warn { border-color: rgba(255, 210, 63, 0.65); }
    .employee-plan-bar--bad { border-color: rgba(217, 45, 32, 0.45); }
    .employee-plan-bar__head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
    .employee-plan-bar__head strong { font-size: 18px; font-weight: 900; }
    .employee-plan-bar__head em { font-style: normal; }
    .employee-plan-bar__track { margin-top: 8px; height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
    .employee-plan-bar__track i { display: block; height: 100%; background: var(--gold); width: 0; }
    .employee-plan-bar--ok .employee-plan-bar__track i { background: var(--ok); }
    .employee-plan-bar--bad .employee-plan-bar__track i { background: var(--danger); }

    @media (max-width: 980px) {
      .money-hero--v3 .money-hero__tracks { grid-template-columns: 1fr; }
      .plan-fact-grid { grid-template-columns: 1fr; }
      .plan-ring { margin: 0 auto; }
      .plan-fact-cards { grid-template-columns: 1fr 1fr; }
      .expenses-budgets { grid-template-columns: 1fr 1fr; }
      .expense-budget-total { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      .plan-fact-cards { grid-template-columns: 1fr; }
      .plan-mini__row { grid-template-columns: 90px 1fr; row-gap: 6px; }
      .plan-mini__values { grid-column: 1 / -1; justify-content: flex-start; }
      .expenses-budgets { grid-template-columns: 1fr; }
      .shift-plan-card__main { grid-template-columns: 1fr; }
      .shift-plan-ring { margin: 0 auto; }
      .expense-row__summary { grid-template-columns: 70px minmax(0, 1fr); row-gap: 6px; }
      .expense-row__amount { grid-column: 1 / -1; text-align: right; }
      .expense-budget-total { grid-template-columns: 1fr; }
      .expense-budget-item > summary { grid-template-columns: 70px 1fr; row-gap: 6px; }
      .expense-budget-item__progress { grid-column: 1 / -1; }
    }
