    * { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --bg: #101417;
      --bg-soft: #172026;
      --card: rgba(20, 27, 33, 0.9);
      --card-strong: #1b242c;
      --line: rgba(255, 255, 255, 0.08);
      --text: #f4f8fb;
      --muted: #98a7b3;
      --green: #7dff8a;
      --yellow: #ffd966;
      --red: #ff7d7d;
      --blue: #7bc8ff;
      --mono: "JetBrains Mono", monospace;
      --display: "Space Grotesk", sans-serif;
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    }

    html, body {
      min-height: 100%;
      background:
        radial-gradient(circle at top, rgba(123, 200, 255, 0.12), transparent 40%),
        radial-gradient(circle at bottom, rgba(125, 255, 138, 0.12), transparent 30%),
        var(--bg);
      color: var(--text);
      font-family: var(--display);
      overflow-x: hidden;
    }

    button, input {
      font: inherit;
    }

    button {
      border: 0;
      cursor: pointer;
    }

    a {
      color: inherit;
    }

    .hidden {
      display: none !important;
    }

    .shell {
      min-height: 100dvh;
    }

    .setup-banner {
      position: fixed;
      top: 16px;
      left: 16px;
      right: 16px;
      z-index: 999;
      padding: 14px 16px;
      border: 1px solid rgba(255, 125, 125, 0.35);
      border-radius: 18px;
      background: rgba(35, 16, 16, 0.92);
      backdrop-filter: blur(16px);
      box-shadow: var(--shadow);
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .setup-banner strong {
      display: block;
      margin-bottom: 6px;
      color: var(--red);
    }

    .auth-shell {
      display: grid;
      gap: 24px;
      align-items: center;
      min-height: 100dvh;
      padding: 32px 20px calc(24px + var(--safe-bottom));
      max-width: 1120px;
      margin: 0 auto;
    }

    .auth-hero {
      padding-top: 24px;
    }

    .kicker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(123, 200, 255, 0.1);
      color: var(--blue);
      font-family: var(--mono);
      font-size: 0.78rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    h1 {
      margin-top: 18px;
      font-size: clamp(2.5rem, 8vw, 4.8rem);
      line-height: 0.95;
      letter-spacing: -0.05em;
    }

    .auth-hero p {
      max-width: 540px;
      margin-top: 18px;
      color: var(--muted);
      font-size: 1.05rem;
      line-height: 1.7;
    }

    .hero-points {
      display: grid;
      gap: 12px;
      margin-top: 24px;
    }

    .hero-points div {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      color: var(--muted);
    }

    .hero-points strong {
      color: var(--text);
      font-weight: 600;
    }

    .auth-card {
      width: 100%;
      max-width: 460px;
      margin-left: auto;
      background: rgba(20, 27, 33, 0.85);
      border: 1px solid var(--line);
      border-radius: 28px;
      padding: 22px;
      backdrop-filter: blur(18px);
      box-shadow: var(--shadow);
    }

    .auth-tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 18px;
    }

    .auth-tab {
      padding: 12px 10px;
      border-radius: 14px;
      background: transparent;
      color: var(--muted);
      font-size: 0.88rem;
      font-weight: 700;
    }

    .auth-tab.active {
      background: var(--card-strong);
      color: var(--text);
    }

    .auth-card h2 {
      font-size: 1.6rem;
      letter-spacing: -0.03em;
    }

    .auth-copy {
      margin: 8px 0 20px;
      color: var(--muted);
      line-height: 1.6;
    }

    .form-grid {
      display: grid;
      gap: 14px;
    }

    .field {
      display: grid;
      gap: 8px;
    }

    .field label {
      font-size: 0.88rem;
      color: var(--muted);
    }

    .field input {
      width: 100%;
      padding: 14px 16px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(11, 16, 19, 0.85);
      color: var(--text);
      outline: none;
    }

    .field input:focus {
      border-color: rgba(123, 200, 255, 0.5);
      box-shadow: 0 0 0 3px rgba(123, 200, 255, 0.12);
    }

    .primary-btn, .secondary-btn, .ghost-btn {
      width: 100%;
      border-radius: 18px;
      padding: 15px 16px;
      font-weight: 700;
      transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    }

    .primary-btn:active, .secondary-btn:active, .ghost-btn:active, .punch-btn:active:not(:disabled), .nav-btn:active {
      transform: scale(0.98);
    }

    .primary-btn {
      background: linear-gradient(135deg, var(--green), #a7ffcb);
      color: #07220d;
    }

    .secondary-btn {
      background: rgba(123, 200, 255, 0.12);
      color: var(--blue);
      border: 1px solid rgba(123, 200, 255, 0.18);
    }

    .ghost-btn {
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--line);
    }

    .form-note {
      margin-top: 14px;
      min-height: 20px;
      color: var(--muted);
      font-size: 0.88rem;
    }

    .form-note.error {
      color: var(--red);
    }

    .app-shell {
      max-width: 1200px;
      margin: 0 auto;
      padding: 24px 20px calc(88px + var(--safe-bottom));
    }

    .topbar {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 22px;
    }

    .topbar small, .muted {
      color: var(--muted);
    }

    .topbar strong {
      display: block;
      margin-top: 4px;
      font-size: 1.8rem;
      letter-spacing: -0.03em;
    }

    .account-box {
      min-width: 0;
      text-align: right;
    }

    .account-box span {
      display: block;
      font-family: var(--mono);
      font-size: 0.78rem;
      color: var(--muted);
      overflow-wrap: anywhere;
    }

    .status-chip {
      display: inline-flex;
      gap: 8px;
      align-items: center;
      padding: 10px 12px;
      border-radius: 14px;
      background: rgba(123, 200, 255, 0.08);
      color: var(--blue);
      font-family: var(--mono);
      font-size: 0.78rem;
      letter-spacing: 0.04em;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 16px currentColor;
    }

    .screen {
      display: none;
    }

    .screen.active {
      display: block;
    }

    .grid {
      display: grid;
      gap: 16px;
    }

    .hero-card, .panel, .report-card, .settings-card, .install-card {
      border: 1px solid var(--line);
      border-radius: 24px;
      background: rgba(20, 27, 33, 0.84);
      backdrop-filter: blur(14px);
      box-shadow: var(--shadow);
    }

    .hero-card {
      padding: 22px;
    }

    .today-label {
      color: var(--muted);
      font-size: 0.88rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      font-family: var(--mono);
    }

    .date-line {
      margin-top: 10px;
      font-size: 1.2rem;
      font-weight: 600;
    }

    .clock {
      margin-top: 18px;
      font-family: var(--mono);
      font-size: clamp(2.8rem, 12vw, 4.8rem);
      letter-spacing: -0.06em;
    }

    .status-card {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      padding: 18px 20px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.03);
      margin-top: 18px;
    }

    .status-card strong {
      display: block;
      font-size: 1rem;
    }

    .status-card span {
      color: var(--muted);
      font-size: 0.9rem;
    }

    .status-pill {
      padding: 10px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.04);
      font-family: var(--mono);
      color: var(--muted);
      white-space: nowrap;
    }

    .punch-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .punch-btn {
      min-height: 126px;
      padding: 18px;
      border-radius: 22px;
      background: rgba(20, 27, 33, 0.84);
      border: 1px solid var(--line);
      color: var(--text);
      text-align: left;
      box-shadow: var(--shadow);
    }

    .punch-btn.next {
      border-color: rgba(125, 255, 138, 0.28);
      box-shadow: 0 0 0 1px rgba(125, 255, 138, 0.12), var(--shadow);
    }

    .punch-btn.done {
      opacity: 0.7;
    }

    .punch-btn:disabled {
      cursor: not-allowed;
      opacity: 0.4;
    }

    .punch-step {
      font-size: 0.82rem;
      font-family: var(--mono);
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .punch-title {
      display: block;
      margin-top: 10px;
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .punch-time {
      display: block;
      margin-top: 18px;
      font-family: var(--mono);
      color: var(--blue);
    }

    .summary-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
    }

    .panel {
      padding: 18px;
    }

    .panel small {
      display: block;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 0.76rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .panel strong {
      display: block;
      margin-top: 8px;
      font-size: 1.35rem;
      letter-spacing: -0.03em;
    }

    .progress-wrap {
      padding: 20px;
      border-radius: 24px;
      border: 1px solid var(--line);
      background: rgba(20, 27, 33, 0.84);
      box-shadow: var(--shadow);
    }

    .progress-head {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 10px;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 0.76rem;
    }

    .progress-track {
      position: relative;
      height: 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--blue), var(--green));
      transition: width 0.35s ease;
    }

    .progress-marker {
      position: absolute;
      top: -2px;
      width: 2px;
      height: 14px;
      background: var(--yellow);
      border-radius: 4px;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 16px;
      margin-bottom: 16px;
    }

    .section-head h2 {
      font-size: 1.55rem;
      letter-spacing: -0.03em;
    }

    .report-list, .settings-stack {
      display: grid;
      gap: 12px;
    }

    .report-card {
      overflow: hidden;
    }

    .report-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: center;
      padding: 16px 18px;
      cursor: pointer;
    }

    .report-date {
      font-weight: 700;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }

    .badge {
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 0.72rem;
      font-family: var(--mono);
      border: 1px solid transparent;
    }

    .badge.green { background: rgba(125, 255, 138, 0.12); color: var(--green); border-color: rgba(125, 255, 138, 0.2); }
    .badge.yellow { background: rgba(255, 217, 102, 0.12); color: var(--yellow); border-color: rgba(255, 217, 102, 0.2); }
    .badge.red { background: rgba(255, 125, 125, 0.12); color: var(--red); border-color: rgba(255, 125, 125, 0.2); }
    .badge.blue { background: rgba(123, 200, 255, 0.12); color: var(--blue); border-color: rgba(123, 200, 255, 0.2); }

    .report-body {
      display: none;
      padding: 0 18px 18px;
      border-top: 1px solid var(--line);
    }

    .report-body.open {
      display: grid;
      gap: 10px;
      padding-top: 16px;
    }

    .report-row {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      font-family: var(--mono);
      font-size: 0.82rem;
    }

    .report-row span:first-child {
      color: var(--muted);
    }

    .settings-card {
      padding: 18px;
    }

    .settings-card h3 {
      margin-bottom: 14px;
      font-size: 1rem;
    }

    .settings-card .field + .field {
      margin-top: 14px;
    }

    .settings-card .muted {
      line-height: 1.6;
    }

    .inline-check {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      color: var(--muted);
      font-size: 0.92rem;
    }

    .inline-check input {
      width: 18px;
      height: 18px;
    }

    .admin-user-card strong {
      display: block;
      font-size: 1rem;
    }

    .admin-head {
      display: flex;
      justify-content: space-between;
      align-items: start;
      gap: 16px;
      margin-bottom: 14px;
    }

    .admin-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 14px;
    }

    .section-mini {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin: 22px 0 14px;
    }

    .section-mini strong {
      font-size: 1rem;
    }

    .nav {
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: calc(16px + var(--safe-bottom));
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      padding: 10px;
      border-radius: 22px;
      border: 1px solid var(--line);
      background: rgba(12, 17, 20, 0.9);
      backdrop-filter: blur(20px);
      box-shadow: var(--shadow);
      z-index: 100;
    }

    .nav-btn {
      padding: 12px 10px;
      border-radius: 16px;
      background: transparent;
      color: var(--muted);
      font-family: var(--mono);
      font-size: 0.74rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .nav-btn.active {
      background: rgba(123, 200, 255, 0.12);
      color: var(--text);
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: calc(98px + var(--safe-bottom));
      transform: translate(-50%, 20px);
      padding: 12px 16px;
      border-radius: 999px;
      background: #eff9f2;
      color: #13261a;
      font-family: var(--mono);
      font-size: 0.78rem;
      opacity: 0;
      pointer-events: none;
      transition: all 0.25s ease;
      z-index: 120;
    }

    .toast.show {
      opacity: 1;
      transform: translate(-50%, 0);
    }

    .modal-overlay {
      position: fixed;
      inset: 0;
      display: none;
      align-items: end;
      background: rgba(0, 0, 0, 0.72);
      backdrop-filter: blur(10px);
      z-index: 160;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal {
      width: 100%;
      padding: 24px 20px calc(24px + var(--safe-bottom));
      border-radius: 26px 26px 0 0;
      background: #152028;
      border-top: 1px solid var(--line);
    }

    .modal h3 {
      font-size: 1.35rem;
      letter-spacing: -0.03em;
    }

    .modal p {
      margin: 8px 0 20px;
      color: var(--muted);
      line-height: 1.6;
    }

    .modal-time {
      margin-bottom: 14px;
      font-size: 3rem;
      font-family: var(--mono);
      letter-spacing: -0.05em;
      text-align: center;
    }

    .adjust-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 18px;
    }

    .adjust-btn {
      padding: 14px 10px;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      border: 1px solid var(--line);
    }

    .modal-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .install-card {
      display: none;
      padding: 16px 18px;
      align-items: center;
      gap: 14px;
    }

    .install-card.show {
      display: flex;
    }

    .install-card strong {
      display: block;
    }

    .install-card span {
      color: var(--muted);
      font-size: 0.9rem;
      line-height: 1.5;
    }

    @media (min-width: 880px) {
      .auth-shell {
        grid-template-columns: minmax(0, 1.2fr) minmax(360px, 460px);
      }

      .home-layout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 18px;
      }

      .summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .nav {
        max-width: 460px;
        margin: 0 auto;
      }
    }

    @media (max-width: 720px) {
      .auth-card {
        margin-left: 0;
      }

      .topbar {
        flex-direction: column;
      }

      .account-box {
        text-align: left;
      }
    }
