:root {
      --black: #090909;
      --ink: #171717;
      --muted: #666666;
      --line: #ded8c5;
      --soft: #f8f6ef;
      --white: #ffffff;
      --gold: #c8a44d;
      --gold-dark: #92732c;
      --gold-soft: #fff2c7;
      --success: #14764c;
      --warning: #a76500;
      --danger: #b42318;
      --shadow: 0 18px 45px rgba(9, 9, 9, .12);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background:
        linear-gradient(135deg, rgba(200, 164, 77, .14), transparent 38%),
        linear-gradient(225deg, rgba(9, 9, 9, .08), transparent 34%),
        var(--soft);
    }

    button, input, select, textarea {
      font: inherit;
    }

    button {
      cursor: pointer;
      border: 0;
    }

    .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 278px minmax(0, 1fr);
    }

    .login-shell {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 22px;
      background:
        radial-gradient(circle at top left, rgba(200, 164, 77, .2), transparent 34%),
        linear-gradient(160deg, #070707 0%, #1a1710 54%, #ffffff 54%, #f8f6ef 100%);
    }

    .login-card {
      width: min(440px, 100%);
      background: rgba(255, 255, 255, .96);
      border: 1px solid rgba(200, 164, 77, .5);
      box-shadow: var(--shadow);
      border-radius: 8px;
      padding: 26px;
    }

    .brand {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
    }

    .brand-logo {
      width: 86px;
      height: 66px;
      object-fit: contain;
      flex: 0 0 auto;
      filter: drop-shadow(0 8px 16px rgba(9, 9, 9, .18));
    }

    .attendance-title {
      color: var(--gold-dark);
      font-size: 24px;
      font-weight: 950;
      line-height: 1;
      letter-spacing: 0;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .brand h1 {
      margin: 0;
      font-size: 22px;
      line-height: 1.05;
      letter-spacing: 0;
    }

    .brand p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .login-card form {
      display: grid;
      gap: 14px;
      margin-top: 26px;
    }

    label {
      display: grid;
      gap: 7px;
      font-weight: 700;
      font-size: 13px;
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid var(--line);
      background: var(--white);
      border-radius: 8px;
      min-height: 44px;
      padding: 10px 12px;
      color: var(--ink);
      outline: none;
    }

    textarea {
      min-height: 98px;
      resize: vertical;
    }

    input:focus, select:focus, textarea:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(200, 164, 77, .18);
    }

    .primary-btn, .ghost-btn, .icon-btn, .tab-btn {
      border-radius: 8px;
      min-height: 42px;
      padding: 10px 14px;
      font-weight: 800;
      transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    }

    .primary-btn {
      color: #0b0b0b;
      background: linear-gradient(180deg, #f0cf78, var(--gold));
      box-shadow: 0 10px 22px rgba(146, 115, 44, .24);
    }

    .primary-btn:hover, .ghost-btn:hover, .icon-btn:hover, .tab-btn:hover {
      transform: translateY(-1px);
    }

    .primary-btn:disabled, .ghost-btn:disabled {
      opacity: .48;
      cursor: not-allowed;
      transform: none;
    }

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

    .sidebar {
      min-height: 100vh;
      background: #090909;
      color: var(--white);
      padding: 20px;
      position: sticky;
      top: 0;
      align-self: start;
    }

    .sidebar .brand {
      justify-content: flex-start;
      padding-bottom: 18px;
      border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .sidebar .brand-logo {
      width: 58px;
      height: 48px;
      filter: drop-shadow(0 8px 14px rgba(200, 164, 77, .28));
    }

    .sidebar .attendance-title {
      color: var(--gold);
      font-size: 19px;
    }

    .sidebar .brand p { color: #d9cfac; }

    .nav {
      display: grid;
      gap: 7px;
      margin-top: 20px;
    }

    .nav button {
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
      color: #f8f6ef;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 8px;
      padding: 11px 12px;
      text-align: left;
      font-weight: 750;
    }

    .nav button.active {
      color: #0b0b0b;
      background: var(--gold);
    }

    .nav button:not(.active):hover {
      border-color: rgba(200, 164, 77, .45);
      background: rgba(255, 255, 255, .06);
    }

    .sidebar-footer {
      margin-top: 24px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, .12);
      display: grid;
      gap: 9px;
      color: #d9cfac;
      font-size: 13px;
    }

    .main {
      min-width: 0;
      padding: 22px;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
    }

    .topbar h2 {
      margin: 0;
      font-size: clamp(22px, 4vw, 34px);
      letter-spacing: 0;
    }

    .topbar p {
      margin: 5px 0 0;
      color: var(--muted);
    }

    .user-pill {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 8px 10px;
      box-shadow: 0 8px 24px rgba(9, 9, 9, .06);
    }

    .avatar {
      width: 42px;
      height: 42px;
      border-radius: 8px;
      background: #fffaf0 url("../assets/mq-logo.png") center / contain no-repeat;
      border: 1px solid rgba(200, 164, 77, .42);
      box-shadow: 0 8px 18px rgba(9, 9, 9, .08);
      flex: 0 0 auto;
    }

    .mobile-bar .brand-logo {
      width: 52px;
      height: 44px;
    }

    .mobile-bar .attendance-title {
      font-size: 18px;
    }

    .mobile-bar {
      display: none;
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(248, 246, 239, .94);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--line);
      padding: 10px 12px;
    }

    .mobile-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
    }

    .mobile-tabs {
      display: flex;
      gap: 8px;
      margin-top: 10px;
      overflow-x: auto;
      padding-bottom: 2px;
    }

    .mobile-tabs button {
      white-space: nowrap;
      min-height: 36px;
      padding: 8px 11px;
      border-radius: 8px;
      background: var(--white);
      border: 1px solid var(--line);
      font-weight: 800;
    }

    .mobile-tabs button.active {
      background: var(--black);
      color: var(--gold);
      border-color: var(--black);
    }

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

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

    .panel {
      background: rgba(255, 255, 255, .92);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: 0 10px 28px rgba(9, 9, 9, .07);
      padding: 16px;
      min-width: 0;
    }

    .panel-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .panel-title h3 {
      margin: 0;
      font-size: 17px;
    }

    .panel-title small {
      color: var(--muted);
      font-weight: 700;
    }

    .metric {
      display: grid;
      gap: 8px;
      min-height: 112px;
      place-items: center;
      align-content: center;
      text-align: center;
    }

    .metric span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 750;
    }

    .metric strong {
      font-size: 30px;
      line-height: 1;
    }

    .metric em {
      font-style: normal;
      color: var(--gold-dark);
      font-weight: 800;
      font-size: 13px;
    }

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

    .status-chip, .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 30px;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 850;
      border: 1px solid transparent;
      white-space: nowrap;
    }

    .ok { color: var(--success); background: #eaf8f1; border-color: #bde8d1; }
    .warn { color: var(--warning); background: #fff4df; border-color: #f3d39a; }
    .bad { color: var(--danger); background: #fff0ee; border-color: #ffc9c2; }
    .neutral { color: #333; background: #f0f0ee; border-color: #d9d6cd; }
    .gold { color: #111; background: var(--gold-soft); border-color: #ead17f; }

    .attendance-box {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 14px;
      align-items: stretch;
    }

    .clock {
      display: grid;
      gap: 8px;
      align-content: center;
      min-height: 220px;
      background: #0c0c0c;
      color: var(--white);
      border-radius: 8px;
      padding: 18px;
      border: 1px solid rgba(200, 164, 77, .58);
    }

    .clock .time {
      font-size: clamp(38px, 11vw, 62px);
      line-height: 1;
      font-weight: 900;
      color: var(--gold);
      letter-spacing: 0;
    }

    .clock .date {
      color: #e6ddbd;
      font-weight: 750;
    }

    .check-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
    }

    .verify-list {
      display: grid;
      gap: 10px;
    }

    .verify-list label {
      display: flex;
      grid-template-columns: none;
      align-items: center;
      gap: 10px;
      min-height: 42px;
      padding: 10px 12px;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      font-weight: 800;
    }

    .verify-list input[type="checkbox"] {
      width: 18px;
      min-height: 18px;
      accent-color: var(--gold);
    }

    .verify-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      padding: 12px;
      text-align: center;
    }

    .verify-item strong {
      display: block;
      margin-bottom: 3px;
    }

    .verify-item small {
      color: var(--muted);
      display: block;
    }

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

    .full { grid-column: 1 / -1; }

    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    th, td {
      padding: 11px 12px;
      text-align: left;
      border-bottom: 1px solid #eee8d8;
      vertical-align: top;
      font-size: 14px;
    }

    th {
      background: #101010;
      color: var(--gold);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    tr:last-child td { border-bottom: 0; }

    .calendar-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .schedule-register-panel {
      margin-bottom: 14px;
    }

    .week-schedule-form {
      display: grid;
      grid-template-columns: repeat(7, minmax(130px, 1fr));
      gap: 10px;
      align-items: end;
    }

    .schedule-week-picker {
      max-width: 280px;
      margin: 12px 0;
    }

    .schedule-auto-hint {
      margin: 10px 0 12px;
      padding: 10px 12px;
      border: 1px solid rgba(200, 164, 77, .5);
      border-radius: 8px;
      background: #fff8df;
      color: #3a2b07;
      font-size: 13px;
      font-weight: 850;
    }

    .schedule-day {
      display: grid;
      gap: 7px;
      color: var(--ink);
      font-weight: 900;
      justify-items: center;
      text-align: center;
    }

    .schedule-day > span {
      display: inline-flex;
      width: fit-content;
      border-radius: 999px;
      padding: 5px 9px;
      background: #101010;
      color: var(--gold);
      font-size: 12px;
      font-weight: 950;
      line-height: 1;
    }

    .schedule-day select {
      min-height: 44px;
      font-weight: 800;
      text-align: center;
      text-align-last: center;
    }

    .schedule-note {
      grid-column: 1 / span 5;
      display: grid;
      gap: 7px;
      font-weight: 900;
    }

    .schedule-note textarea {
      min-height: 76px;
    }

    .schedule-submit {
      grid-column: span 2;
      min-height: 76px;
    }

    .schedule-summary {
      margin-top: 12px;
      border: 1px dashed var(--line);
      border-radius: 8px;
      padding: 12px;
      background: rgba(255, 255, 255, .66);
      color: var(--muted);
      font-weight: 800;
      line-height: 1.55;
    }

    .schedule-summary strong {
      color: var(--ink);
      margin-right: 6px;
    }

    .schedule-approval-list {
      display: grid;
      gap: 10px;
    }

    .schedule-approval-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px;
      background: var(--white);
      text-align: center;
    }

    .schedule-approval-item small {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-weight: 800;
    }

    .schedule-approval-item p {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin: 10px 0 0;
    }

    .schedule-approval-item p span {
      border-radius: 999px;
      padding: 6px 9px;
      background: #f6f0df;
      color: var(--gold-dark);
      font-size: 12px;
      font-weight: 900;
    }

    .schedule-approval-item p span.shift-off {
      background: #fff0ee;
      color: var(--danger);
      border: 1px solid #ffc9c2;
    }

    .approval-actions {
      min-width: 220px;
      display: grid;
      gap: 8px;
      align-content: center;
      justify-items: stretch;
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 6px;
    }

    .dow, .day {
      min-height: 76px;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: var(--white);
      padding: 8px;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 6px;
      text-align: center;
    }

    .dow {
      min-height: auto;
      place-items: center;
      background: #101010;
      color: var(--gold);
      font-size: 12px;
      font-weight: 900;
    }

    .day.muted {
      opacity: .36;
    }

    .day strong {
      font-size: 13px;
    }

    .mini {
      font-size: 11px;
      line-height: 1.25;
      color: var(--muted);
      overflow-wrap: anywhere;
      text-align: center;
    }

    .progress {
      height: 10px;
      border-radius: 999px;
      background: #eee8d8;
      overflow: hidden;
    }

    .progress span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--gold), #111);
      border-radius: inherit;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 18px;
      transform: translateX(-50%);
      z-index: 50;
      min-width: min(440px, calc(100vw - 26px));
      background: #101010;
      color: var(--white);
      border: 1px solid var(--gold);
      border-radius: 8px;
      padding: 12px 14px;
      box-shadow: var(--shadow);
      display: none;
      font-weight: 750;
    }

    .toast.show {
      display: block;
      animation: rise .25s ease;
    }

    @keyframes rise {
      from { opacity: 0; transform: translate(-50%, 10px); }
      to { opacity: 1; transform: translate(-50%, 0); }
    }

    .hidden { display: none !important; }

    .login-hint {
      margin-top: 14px;
      padding: 12px;
      border-radius: 8px;
      background: #101010;
      color: #f8f6ef;
      font-size: 13px;
      line-height: 1.45;
    }

    .login-hint b { color: var(--gold); }

    .empty {
      padding: 20px;
      text-align: center;
      color: var(--muted);
      border: 1px dashed var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,.7);
    }

    .mobile-nav-spacer { display: none; }

    .app-home {
      display: grid;
      gap: 14px;
    }

    .hero-card {
      position: relative;
      overflow: hidden;
      color: var(--white);
      background:
        linear-gradient(145deg, rgba(255,255,255,.08), transparent 28%),
        linear-gradient(135deg, #090909 0%, #191511 62%, #7e641f 100%);
      border: 1px solid rgba(200, 164, 77, .5);
      border-radius: 8px;
      box-shadow: 0 16px 42px rgba(9, 9, 9, .18);
      padding: 18px;
    }

    .hero-card::after {
      content: "";
      position: absolute;
      right: -70px;
      top: -90px;
      width: 190px;
      height: 190px;
      border: 1px solid rgba(200, 164, 77, .36);
      border-radius: 50%;
    }

    .hero-top, .hero-bottom {
      position: relative;
      z-index: 1;
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .hero-card h3 {
      margin: 8px 0 4px;
      font-size: clamp(26px, 8vw, 42px);
      line-height: 1;
      letter-spacing: 0;
    }

    .hero-card p {
      margin: 0;
      color: #e8ddbc;
      font-weight: 700;
    }

    .hero-address {
      margin-top: 4px !important;
      color: #d8cda9 !important;
      font-size: 13px;
    }

    .hero-verification {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .shift-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 10px;
      color: #141414;
      background: var(--gold);
      border-radius: 999px;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .hero-bottom {
      align-items: center;
      margin-top: 22px;
    }

    .punch-button {
      width: 118px;
      height: 118px;
      display: grid;
      place-items: center;
      text-align: center;
      color: #101010;
      background: radial-gradient(circle at 32% 22%, #fff5c8, #d9b84c 58%, #a98428);
      border: 8px solid rgba(255, 255, 255, .1);
      border-radius: 50%;
      box-shadow: 0 16px 34px rgba(0, 0, 0, .32);
      font-weight: 950;
      line-height: 1.12;
    }

    .punch-button:disabled {
      opacity: .55;
      cursor: not-allowed;
    }

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

    .check-strip .verify-item {
      align-items: flex-start;
      min-height: 92px;
    }

    .compact-metrics {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .report-stats {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-month-picker {
      min-width: 220px;
      max-width: 240px;
    }

    .report-reminder {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      border: 1px solid rgba(200, 164, 77, .55);
      border-radius: 8px;
      background: #fff7dd;
      color: #2b2109;
      box-shadow: 0 10px 24px rgba(9, 9, 9, .06);
    }

    .report-reminder strong {
      font-size: 15px;
    }

    .report-reminder span {
      color: var(--muted);
      font-weight: 800;
      text-align: right;
    }

    .report-reminder.report-done {
      border-color: #bde8d1;
      background: #eaf8f1;
      color: #093b28;
    }

    .report-reminder.report-done span {
      color: var(--success);
    }

    .report-calendar {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 6px;
    }

    .report-dow, .report-day {
      min-height: 58px;
      border-radius: 8px;
      border: 1px solid var(--line);
      padding: 8px;
      display: grid;
      place-items: center;
      align-content: center;
      gap: 4px;
      text-align: center;
    }

    .report-dow {
      min-height: auto;
      place-items: center;
      background: #101010;
      color: var(--gold);
      font-size: 12px;
      font-weight: 900;
    }

    .report-day strong {
      font-size: 13px;
    }

    .report-day span {
      font-size: 11px;
      font-weight: 850;
    }

    .report-day.missing {
      border-color: #ffc9c2;
      background: #fff0ee;
      color: var(--danger);
    }

    .report-day.reported {
      border-color: #bde8d1;
      background: #eaf8f1;
      color: var(--success);
    }

    .report-day.muted {
      opacity: .46;
      background: #f4f2eb;
      color: var(--muted);
    }

    .quick-date {
      margin-bottom: 12px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 850;
      text-align: right;
    }

    .quick-report-done {
      display: grid;
      gap: 8px;
      place-items: center;
      text-align: center;
      padding: 10px;
      border: 1px solid #bde8d1;
      border-radius: 8px;
      background: #eaf8f1;
      color: var(--success);
    }

    .quick-report-done strong {
      font-size: 17px;
    }

    .quick-report-done span,
    .quick-report-done small {
      color: #205c42;
      font-weight: 800;
    }

    .dashboard-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-checkin-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: end;
      margin-top: 12px;
    }

    .attendance-tools {
      display: grid;
      gap: 14px;
    }

    .attendance-tools .compact-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-tools .mini-stat {
      min-height: 74px;
    }

    .attendance-tools .mini-stat strong {
      font-size: 18px;
      line-height: 1.15;
    }

    .quick-note {
      display: grid;
      gap: 8px;
      font-weight: 850;
    }

    .quick-note textarea {
      min-height: 88px;
    }

    .quick-report-form {
      display: grid;
      gap: 12px;
      margin-top: 12px;
    }

    .quick-platforms {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .quick-platforms label {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 42px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fffdfa;
      font-weight: 850;
      text-align: center;
    }

    .quick-platforms input {
      width: 18px;
      min-height: 18px;
      accent-color: var(--gold);
    }

    .demo-settings {
      border: 1px dashed var(--line);
      border-radius: 8px;
      padding: 12px;
      background: rgba(255, 255, 255, .58);
    }

    .demo-settings summary {
      cursor: pointer;
      color: var(--gold-dark);
      font-weight: 950;
    }

    .demo-settings .form-grid {
      margin-top: 12px;
    }

    .today-record-panel {
      margin-top: 14px;
    }

    .today-record-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 14px;
      background: var(--white);
      text-align: center;
    }

    .today-record-card small {
      display: block;
      margin-top: 5px;
      color: var(--muted);
      font-weight: 800;
    }

    .mini-stat {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px;
      min-height: 86px;
      display: grid;
      gap: 5px;
      place-items: center;
      align-content: center;
      text-align: center;
      box-shadow: 0 8px 22px rgba(9, 9, 9, .05);
    }

    .mini-stat span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .mini-stat strong {
      font-size: 23px;
      line-height: 1;
      overflow-wrap: anywhere;
    }

    .activity-list {
      display: grid;
      gap: 10px;
    }

    .activity-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      background: #fffdfa;
      border: 1px solid var(--line);
      border-radius: 8px;
      text-align: center;
    }

    .activity-item strong {
      display: block;
      margin-bottom: 3px;
    }

    .activity-item small {
      color: var(--muted);
      font-weight: 700;
    }

    .punch-layout {
      display: grid;
      grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
      gap: 14px;
      align-items: start;
    }

    .punch-focus {
      background: #0b0b0b;
      color: var(--white);
      border-radius: 8px;
      padding: 18px;
      border: 1px solid rgba(200, 164, 77, .55);
      display: grid;
      gap: 16px;
      justify-items: center;
      text-align: center;
      min-height: 420px;
      align-content: center;
    }

    .punch-focus .time {
      font-size: clamp(42px, 12vw, 70px);
      line-height: 1;
      color: var(--gold);
      font-weight: 950;
    }

    .punch-focus p {
      margin: 0;
      color: #e8ddbc;
      font-weight: 750;
    }

    .mode-segment {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      width: 100%;
    }

    .mode-segment button {
      border-radius: 8px;
      padding: 11px;
      background: rgba(255,255,255,.08);
      color: #f8f6ef;
      border: 1px solid rgba(255,255,255,.16);
      font-weight: 900;
    }

    .bottom-nav {
      display: none;
    }

    @media (max-width: 1100px) {
      .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .attendance-box { grid-template-columns: 1fr; }
      .punch-layout { grid-template-columns: 1fr; }
      .compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .week-schedule-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .schedule-note, .schedule-submit { grid-column: 1 / -1; }
      .schedule-approval-item { display: grid; }
      .approval-actions { min-width: 0; }
    }

    @media (max-width: 860px) {
      .app { display: block; }
      .sidebar { display: none; }
      .mobile-bar { display: block; }
      .main { padding: 14px; }
      .topbar { align-items: flex-start; }
      .user-pill { display: none; }
      .cols-2, .cols-3, .cols-4, .form-grid, .status-row {
        grid-template-columns: 1fr;
      }
      .check-actions, .quick-actions, .project-checkin-form { grid-template-columns: 1fr; }
      .quick-platforms { grid-template-columns: 1fr; }
      .calendar-grid { gap: 4px; }
      .dow, .day { border-radius: 6px; padding: 6px; }
      .day { min-height: 64px; }
      .mini { font-size: 10px; }
      .topbar { display: none; }
      .main {
        padding: 14px 14px 86px;
      }
      .mobile-bar {
        border-bottom: 0;
        box-shadow: 0 10px 28px rgba(9,9,9,.08);
      }
      .mobile-tabs {
        display: none;
      }
      .bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 7px;
        background: rgba(9, 9, 9, .94);
        border: 1px solid rgba(200, 164, 77, .48);
        border-radius: 8px;
        box-shadow: 0 16px 40px rgba(9,9,9,.28);
        backdrop-filter: blur(14px);
      }
      .bottom-nav button {
        display: grid;
        place-items: center;
        gap: 3px;
        min-height: 48px;
        padding: 5px 2px;
        border-radius: 8px;
        background: transparent;
        color: #f8f6ef;
        font-size: 10px;
        font-weight: 850;
      }
      .bottom-nav button b {
        font-size: 18px;
        line-height: 1;
      }
      .bottom-nav button.active {
        background: var(--gold);
        color: #101010;
      }
      .mobile-nav-spacer { display: block; height: 68px; }
      .hero-card {
        margin-top: 10px;
        padding: 16px;
      }
      .hero-bottom {
        align-items: end;
      }
      .punch-button {
        width: 104px;
        height: 104px;
        border-width: 7px;
      }
      .check-strip, .compact-metrics, .report-stats {
        grid-template-columns: 1fr;
      }
      .report-month-picker {
        min-width: 0;
        max-width: none;
        width: 100%;
      }
      .panel {
        padding: 14px;
      }
      .activity-item {
        align-items: center;
      }
      .punch-focus {
        min-height: 360px;
      }
    }
