:root {
      --bg-primary: #f0eee8;
      --bg-secondary: #faf9f5;
      --bg-tertiary: #e9e6df;
      --bg-hover: #e9e6df;
      --text-primary: #2d2a26;
      --text-secondary: #6d6760;
      --text-tertiary: #a29c95;
      --border-color: #e3e1db;
      --border-primary: #d5d2cb;
      --border-hover: #cecac4;
      --primary-color: #8b8680;
      --primary-hover: #7f7a74;
      --success-color: #10b981;
      --warning-color: #d97706;
      --error-color: #c65746;
      --success-bg: #d1fae5;
      --warning-bg: #fef3c7;
      --error-bg: #fbe4df;
      --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
      --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
      --radius: 10px;
    }
    [data-theme="dark"] {
      --bg-primary: #20211f;
      --bg-secondary: #292a27;
      --bg-tertiary: #343530;
      --bg-hover: #3b3c37;
      --text-primary: #eeece6;
      --text-secondary: #c2beb5;
      --text-tertiary: #918d84;
      --border-color: #41423c;
      --border-primary: #50514a;
      --border-hover: #65665d;
      --primary-color: #aaa59b;
      --primary-hover: #c1bcb2;
      --success-color: #34d399;
      --warning-color: #f2b84b;
      --error-color: #ed8d7e;
      --success-bg: #123c31;
      --warning-bg: #4a3517;
      --error-bg: #482522;
      --shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
      --shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.45);
    }
    * { box-sizing: border-box; }
    html, body { min-height: 100%; }
    body {
      margin: 0;
      color: var(--text-primary);
      background-color: var(--bg-primary);
      background-image: linear-gradient(to bottom, rgba(240, 238, 232, 0.82), rgba(240, 238, 232, 0.90)), url('/assets/anime-bg.webp');
      background-size: cover;
      background-position: center top;
      background-attachment: fixed;
      background-repeat: no-repeat;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      letter-spacing: 0;
      position: relative;
    }
    [data-theme="dark"] body {
      background-image: linear-gradient(to bottom, rgba(32, 33, 31, 0.82), rgba(32, 33, 31, 0.92)), url('/assets/anime-bg.webp');
    }
    button, a { font: inherit; }
    button { cursor: pointer; }
    a { color: inherit; }
    .app-shell { min-height: 100vh; position: relative; z-index: 1; }

    /* Star dust canvas overlay */
    #starCanvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .sidebar {
      position: fixed;
      z-index: 10;
      inset: 0 auto 0 0;
      width: 248px;
      padding: 22px 14px;
      background: rgba(250, 249, 245, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-right: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
    }
    [data-theme="dark"] .sidebar {
      background: rgba(41, 42, 39, 0.85);
    }
    .sidebar-brand {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 4px 10px 25px;
      border-bottom: 1px solid var(--border-color);
    }
    .brand-logo {
      width: 36px;
      height: 36px;
      display: block;
      flex: 0 0 auto;
      border-radius: 8px;
      transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .sidebar-brand:hover .brand-logo {
      transform: rotate(8deg) scale(1.08);
    }
    .brand-title { font-size: 14px; font-weight: 750; }
    .brand-subtitle { margin-top: 3px; color: var(--text-tertiary); font-size: 11px; }
    .nav-label {
      padding: 22px 11px 8px;
      color: var(--text-tertiary);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .nav-list { display: grid; gap: 3px; }
    .nav-item {
      display: flex;
      align-items: center;
      gap: 11px;
      padding: 10px 11px;
      color: var(--text-secondary);
      border: 1px solid transparent;
      border-radius: 7px;
      font-size: 13px;
      text-decoration: none;
      transition: all .18s ease;
    }
    .nav-item:hover { color: var(--text-primary); background: var(--bg-tertiary); transform: translateX(3px); }
    .nav-item.active { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--border-color); font-weight: 700; }
    .nav-icon { width: 18px; color: var(--text-tertiary); text-align: center; font-size: 14px; transition: transform .2s ease; }
    .nav-item:hover .nav-icon { transform: scale(1.15); color: var(--primary-color); }
    .nav-svg { display: inline-grid; place-items: center; height: 18px; }
    .nav-svg svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
    .nav-item.active .nav-icon { color: var(--primary-color); }

    /* Profile in Sidebar */
    .sidebar-footer {
      margin-top: auto;
      padding: 14px 0 0;
      border-top: 1px solid var(--border-color);
      background: transparent;
    }
    .sidebar-profile {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border-radius: 8px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      cursor: pointer;
      user-select: none;
      transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .sidebar-profile:hover { background: var(--bg-hover); border-color: var(--border-hover); transform: translateY(-2px); }
    .sidebar-profile:active { transform: scale(0.97); }
    .profile-avatar-wrap { position: relative; width: 32px; height: 32px; flex: 0 0 auto; }
    .profile-avatar { width: 100%; height: 100%; border-radius: 7px; background: var(--text-primary); color: var(--bg-primary); display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
    .profile-status-dot { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--success-color); border: 2px solid var(--bg-secondary); }
    .profile-info { min-width: 0; flex: 1 1 auto; }
    .profile-name-row { display: flex; align-items: center; gap: 5px; }
    .profile-name { font-size: 12px; font-weight: 750; color: var(--text-primary); }
    .profile-badge { font-size: 9px; padding: 1px 4px; border-radius: 4px; background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-tertiary); font-weight: 700; }
    .profile-role { font-size: 10px; color: var(--text-tertiary); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .profile-arrow { font-size: 11px; color: var(--text-tertiary); flex: 0 0 auto; transition: transform .2s ease; }
    .sidebar-profile:hover .profile-arrow { transform: translate(2px, -2px); color: var(--text-primary); }
    .profile-socials { display: flex; gap: 6px; margin-top: 8px; justify-content: space-between; }
    .social-btn { flex: 1; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-secondary); text-decoration: none; transition: all .2s ease; }
    .social-btn:hover { color: var(--text-primary); background: var(--bg-hover); border-color: var(--border-hover); transform: translateY(-2px); }
    .social-btn svg { width: 14px; height: 14px; fill: currentColor; }
    .social-btn svg.stroke-icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

    /* Mobile bottom profile (hidden on desktop) */
    .mobile-profile-footer {
      display: none;
    }

    .main { min-height: 100vh; margin-left: 248px; }
    .main-header {
      min-height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 0 34px;
      background: rgba(240, 238, 232, 0.78);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 9;
    }
    [data-theme="dark"] .main-header {
      background: rgba(32, 33, 31, 0.78);
    }
    .breadcrumbs { color: var(--text-primary); font-size: 14px; font-weight: 750; letter-spacing: .02em; }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .header-status { display: inline-flex; align-items: center; gap: 7px; color: var(--success-color); font-size: 12px; }
    .status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
    .about-button {
      height: 34px;
      padding: 0 12px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--text-primary);
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 7px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .03em;
      line-height: 1;
      cursor: pointer;
      transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .about-button:hover { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--border-hover); transform: translateY(-1px) scale(1.02); }
    .refresh-button, .theme-button {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      color: var(--text-secondary);
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 7px;
      font-size: 15px;
      line-height: 1;
      cursor: pointer;
      user-select: none;
      transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .refresh-button { font-size: 17px; }
    .refresh-button:hover, .theme-button:hover { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--border-hover); transform: translateY(-1px) scale(1.06); }
    .refresh-button.spinning {
      animation: spin-once 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    @keyframes spin-once {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .content { width: min(1260px, calc(100% - 68px)); margin: 0 auto; padding: 24px 0 48px; }

    /* 3D Tilt Card Base */
    .tilt-card {
      position: relative;
      transform-style: preserve-3d;
      will-change: transform;
      transition: transform 0.15s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
    }
    .tilt-card::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 75%);
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 2;
    }
    [data-theme="dark"] .tilt-card::after {
      background: radial-gradient(circle 220px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(52, 211, 153, 0.12), transparent 75%);
    }
    .tilt-card:hover::after {
      opacity: 1;
    }

        /* ── 3D Mechanical Flip Clock ────────────────────────────────────────── */
    .clock-hero-card {
      position: relative;
      max-width: 620px;
      margin: 0 auto 28px;
      padding: 22px 26px 18px;
      background: rgba(250, 249, 245, 0.65);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      box-shadow: var(--shadow-lg), 0 0 28px rgba(16, 185, 129, 0.08);
      text-align: center;
      overflow: hidden;
    }
    [data-theme="dark"] .clock-hero-card {
      background: rgba(30, 31, 28, 0.68);
      box-shadow: var(--shadow-lg), 0 0 32px rgba(52, 211, 153, 0.12);
      border-color: rgba(72, 74, 68, 0.8);
    }
    .clock-hero-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 12%;
      right: 12%;
      height: 1.5px;
      background: linear-gradient(90deg, transparent, var(--success-color), #38bdf8, transparent);
      opacity: 0.85;
    }
    .clock-top-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin-bottom: 14px;
    }
    .clock-date-str {
      font-size: 13px;
      font-weight: 750;
      color: var(--text-secondary);
      letter-spacing: .06em;
      padding: 3px 14px;
      border-radius: 999px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* Flip Clock Main Row */
    .flip-clock-display {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin: 8px 0 16px;
      user-select: none;
    }
    .flip-pair {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* Single Flip Card with Frosted Glass Aesthetics */
    .flip-card {
      position: relative;
      width: 52px;
      height: 74px;
      perspective: 400px;
      font-family: 'Bebas Neue', 'Chakra Petch', 'Space Mono', sans-serif;
      font-size: 54px;
      font-weight: 400;
      line-height: 74px;
      border-radius: 8px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    [data-theme="dark"] .flip-card {
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    /* Top & Bottom Halves - Semi-transparent Glass */
    .flip-card-top, .flip-card-bottom, .flip-card-leaf-front, .flip-card-leaf-back {
      position: absolute;
      left: 0;
      right: 0;
      overflow: hidden;
      text-align: center;
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      color: var(--text-primary);
      box-sizing: border-box;
    }
    [data-theme="dark"] .flip-card-top,
    [data-theme="dark"] .flip-card-bottom,
    [data-theme="dark"] .flip-card-leaf-front,
    [data-theme="dark"] .flip-card-leaf-back {
      background: rgba(40, 42, 38, 0.78);
      color: #f5f5f0;
      text-shadow: 0 0 14px rgba(52, 211, 153, 0.25);
    }

    .flip-card-top, .flip-card-leaf-front {
      top: 0;
      height: 50%;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      border: 1px solid var(--border-color);
      border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
      background-image: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.02) 100%);
    }
    [data-theme="dark"] .flip-card-top,
    [data-theme="dark"] .flip-card-leaf-front {
      border-color: rgba(75, 77, 70, 0.75);
      border-bottom: 0.5px solid rgba(0, 0, 0, 0.5);
      background-image: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.15) 100%);
    }

    .flip-card-bottom, .flip-card-leaf-back {
      bottom: 0;
      height: 50%;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
      border: 1px solid var(--border-color);
      border-top: 0.5px solid rgba(255, 255, 255, 0.2);
      background-image: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(255,255,255,0.1) 100%);
    }
    [data-theme="dark"] .flip-card-bottom,
    [data-theme="dark"] .flip-card-leaf-back {
      border-color: rgba(75, 77, 70, 0.75);
      border-top: 0.5px solid rgba(255, 255, 255, 0.05);
      background-image: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(255,255,255,0.03) 100%);
    }

    /* Inner Number Typography Alignment */
    .flip-card-top span, .flip-card-leaf-front span {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 74px;
      line-height: 74px;
    }
    .flip-card-bottom span, .flip-card-leaf-back span {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 74px;
      line-height: 74px;
    }

    /* Center Middle Split Groove */
    .flip-card::after {
      content: '';
      position: absolute;
      top: calc(50% - 0.5px);
      left: 0;
      right: 0;
      height: 1px;
      background: rgba(0, 0, 0, 0.2);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
      z-index: 5;
      pointer-events: none;
    }
    [data-theme="dark"] .flip-card::after {
      background: rgba(15, 16, 14, 0.7);
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Left & Right Mechanical Axle Notches */
    .hinge {
      position: absolute;
      width: 4px;
      height: 6px;
      top: calc(50% - 3px);
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      z-index: 6;
      pointer-events: none;
    }
    .hinge-left {
      left: -1px;
      border-top-right-radius: 3px;
      border-bottom-right-radius: 3px;
      border-left: none;
    }
    .hinge-right {
      right: -1px;
      border-top-left-radius: 3px;
      border-bottom-left-radius: 3px;
      border-right: none;
    }

    /* 3D Rotating Leaf Animation */
    .flip-leaf {
      position: absolute;
      inset: 0;
      height: 50%;
      top: 0;
      transform-style: preserve-3d;
      transform-origin: bottom center;
      z-index: 3;
    }
    .flip-leaf.flipping {
      animation: flip-down 0.5s cubic-bezier(0.37, 0, 0.63, 1) forwards;
    }

    .flip-card-leaf-front {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      transform: rotateX(0deg);
    }
    .flip-card-leaf-back {
      position: absolute;
      inset: 0;
      height: 100%;
      top: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      transform: rotateX(180deg);
      border-top-left-radius: 0;
      border-top-right-radius: 0;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
    }

    @keyframes flip-down {
      0% {
        transform: rotateX(0deg);
      }
      100% {
        transform: rotateX(-180deg);
      }
    }

    /* Glowing LED Dividers */
    .flip-divider {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 12px;
      margin: 0 6px;
      align-self: center;
    }
    .divider-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--success-color);
      box-shadow: 0 0 8px var(--success-color);
      animation: dot-pulse 1s infinite ease-in-out;
    }
    @keyframes dot-pulse {
      0%, 100% { opacity: 0.95; transform: scale(1); }
      50% { opacity: 0.25; transform: scale(0.8); }
    }

    /* AMPM Tag */
    .flip-ampm-wrap {
      display: flex;
      align-items: flex-end;
      align-self: stretch;
      margin-left: 8px;
      padding-bottom: 6px;
    }
    .flip-ampm-pill {
      display: inline-block;
      padding: 3px 7px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      border-radius: 6px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-secondary);
      font-family: Inter, system-ui, sans-serif;
    }

    .clock-progress-wrap {
      margin-top: 6px;
      position: relative;
    }
    .clock-progress-bar {
      height: 4px;
      width: 100%;
      background: var(--bg-tertiary);
      border-radius: 999px;
      overflow: hidden;
      position: relative;
    }
    .clock-progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6);
      border-radius: inherit;
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
      transition: width 0.3s linear;
    }
    [data-theme="dark"] .clock-progress-fill {
      background: linear-gradient(90deg, #34d399, #38bdf8, #818cf8);
      box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
    }
    .clock-progress-labels {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 6px;
      font-size: 10px;
      color: var(--text-tertiary);
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
    .stat-card, .panel {
      background: rgba(250, 249, 245, 0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    [data-theme="dark"] .stat-card, [data-theme="dark"] .panel {
      background: rgba(41, 42, 39, 0.85);
    }
    .stat-card { min-height: 128px; padding: 19px 20px; }
    .stat-label { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
    .stat-value { margin: 14px 0 6px; font-size: 25px; font-weight: 760; letter-spacing: -.03em; }
    .stat-meta { color: var(--text-tertiary); font-size: 11px; }
    .stat-value.success { display: flex; align-items: center; gap: 9px; color: var(--success-color); font-size: 20px; }
    .stat-value.success .status-dot { width: 9px; height: 9px; }
    .stat-value.warn { color: var(--warning-color); }
    .stat-value.error { color: var(--error-color); }

    .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
    .section-heading h2 { margin: 0; font-size: 19px; font-weight: 700; }
    .section-heading span { color: var(--text-tertiary); font-size: 11px; }
    .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
    .service-card {
      min-width: 0;
      padding: 18px 19px;
      background: rgba(250, 249, 245, 0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
    }
    [data-theme="dark"] .service-card {
      background: rgba(41, 42, 39, 0.85);
    }
    .service-preview { width: calc(100% + 38px); height: 116px; display: block; margin: -18px -19px 18px; object-fit: cover; object-position: center 27%; border-bottom: 1px solid var(--border-color); }
    .service-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
    .service-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .service-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--text-secondary); background: var(--bg-tertiary); border-radius: 7px; font-size: 11px; font-weight: 800; }
    .service-card h3 { margin: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
    .service-card p { min-height: 36px; margin: 18px 0 17px; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
    .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #6ee7b7; border-radius: 999px; color: #065f46; background: var(--success-bg); font-size: 10px; font-weight: 700; white-space: nowrap; }
    .badge.warn { color: #92400e; background: var(--warning-bg); border-color: #f3c66d; }
    .badge.error { color: #8a3a30; background: var(--error-bg); border-color: #e4a197; }
    [data-theme="dark"] .badge { color: #9af0ca; border-color: #21634f; }
    [data-theme="dark"] .badge.warn { color: #ffd58b; border-color: #805a22; }
    [data-theme="dark"] .badge.error { color: #ffc0b6; border-color: #7b3e37; }
    .service-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid var(--border-color); color: var(--text-tertiary); font-size: 11px; }
    .service-bottom strong { color: var(--text-secondary); font-weight: 650; }
    .service-link { color: var(--text-secondary); font-size: 11px; text-decoration: none; }
    .service-link:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
    .host-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 13px; border-top: 1px solid var(--border-color); }
    .host-metric { min-width: 0; color: var(--text-tertiary); font-size: 10px; }
    .host-metric strong { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }

    .lower-grid { display: block; }
    .panel { padding: 20px; }
    .panel h2 { margin: 0 0 5px; font-size: 16px; font-weight: 700; }
    .panel-description { margin: 0 0 17px; color: var(--text-tertiary); font-size: 11px; }

    /* Expandable Event Rows (Clean Card, Dot & Status Badge Colored Only) */
    .event-row {
      display: grid;
      grid-template-columns: 10px 1fr auto 16px;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
      border-radius: 8px;
      margin-bottom: 6px;
      border: 1px solid var(--border-color);
      cursor: pointer;
      user-select: none;
      transition: all .2s ease;
      background: var(--bg-secondary);
    }
    .event-row:last-child { margin-bottom: 0; }
    .event-row:hover {
      transform: translateX(2px);
      box-shadow: var(--shadow);
    }
    .event-row.expanded {
      background: var(--bg-tertiary);
      border-bottom-color: transparent;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }

    .event-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--success-color);
      box-shadow: 0 0 6px var(--success-color);
    }
    .event-dot.warn {
      background: var(--warning-color);
      box-shadow: 0 0 8px var(--warning-color);
      animation: pulse-warn 1.5s infinite ease-in-out;
    }
    .event-dot.error, .event-dot.offline {
      background: var(--error-color);
      box-shadow: 0 0 10px var(--error-color);
      animation: pulse-error 1.5s infinite ease-in-out;
    }
    @keyframes pulse-warn {
      0%, 100% { transform: scale(1); opacity: 0.9; }
      50% { transform: scale(1.3); opacity: 0.5; }
    }
    @keyframes pulse-error {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.4); opacity: 0.4; }
    }

    .event-title {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .event-status-tag {
      font-size: 9px;
      padding: 1px 6px;
      border-radius: 4px;
      font-weight: 800;
      text-transform: uppercase;
      line-height: 1.3;
    }
    .event-status-tag.ok {
      background: var(--success-bg);
      color: var(--success-color);
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    .event-status-tag.warn {
      background: var(--warning-bg);
      color: var(--warning-color);
      border: 1px solid rgba(245, 158, 11, 0.4);
    }
    .event-status-tag.error {
      background: var(--error-bg);
      color: var(--error-color);
      border: 1px solid rgba(239, 68, 68, 0.4);
    }

    .event-meta, .event-time { color: var(--text-tertiary); font-size: 10px; }
    .event-time { text-align: right; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, monospace; }
    .event-chevron { font-size: 11px; color: var(--text-tertiary); transition: transform .2s ease; text-align: center; }
    .event-row.expanded .event-chevron { transform: rotate(90deg); color: var(--text-primary); }

    .event-detail-box {
      display: none;
      padding: 12px 14px 14px 34px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-top: 1px dashed var(--border-color);
      border-radius: 0 0 8px 8px;
      margin-top: -6px;
      margin-bottom: 6px;
      font-size: 11px;
    }
    .event-detail-box.open { display: block; animation: fadeIn .2s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
    .detail-grid-metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
      gap: 7px;
      margin-top: 8px;
    }
    .metric-chip {
      padding: 5px 7px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 6px;
    }
    .metric-chip span { display: block; color: var(--text-tertiary); font-size: 9px; text-transform: uppercase; margin-bottom: 2px; }
    .metric-chip strong { color: var(--text-primary); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

    /* Service Cards Status Borders */
    .service-card.status-error, .service-card.status-offline {
      border-color: rgba(239, 68, 68, 0.45);
      box-shadow: var(--shadow), 0 0 16px rgba(239, 68, 68, 0.12);
    }
    .service-card.status-warn {
      border-color: rgba(245, 158, 11, 0.45);
      box-shadow: var(--shadow), 0 0 14px rgba(245, 158, 11, 0.1);
    }

    /* Distinct Badges */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 750;
      white-space: nowrap;
      background: var(--success-bg);
      color: var(--success-color);
      border: 1px solid rgba(16, 185, 129, 0.35);
    }
    .badge.warn {
      color: var(--warning-color);
      background: var(--warning-bg);
      border-color: rgba(245, 158, 11, 0.45);
    }
    .badge.error, .badge.offline {
      color: var(--error-color);
      background: var(--error-bg);
      border-color: rgba(239, 68, 68, 0.45);
    }


    /* 3-Column Detail Grid: VPS + 7-Day Model Usage + Availability */
    .detail-grid { display: grid; grid-template-columns: 1.15fr 1.1fr 1fr; gap: 14px; margin-top: 14px; }
    .resource-list { display: grid; gap: 14px; }
    .resource-row { display: grid; grid-template-columns: 50px 1fr 44px; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 11px; }
    .resource-value { color: var(--text-primary); font-size: 11px; font-weight: 700; text-align: right; }
    .progress { height: 7px; overflow: hidden; background: var(--bg-tertiary); border-radius: 999px; }
    .progress span { display: block; width: 0; height: 100%; background: var(--success-color); border-radius: inherit; transition: width .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
    .progress span.warn { background: var(--warning-color); }
    .progress span.error { background: var(--error-color); }

    .panel-header-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }
    .panel-header-row .panel-description {
      margin-bottom: 0;
    }
    .keeper-screen-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 10px;
      border-radius: 6px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      font-size: 11px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .keeper-screen-link:hover {
      background: var(--bg-hover);
      border-color: var(--border-hover);
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    /* Syncthing Rich Stats Grid */
    .syncthing-stats-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 6px;
      margin: 12px 0 8px;
    }
    .syncthing-stat-chip {
      padding: 6px 8px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 11px;
    }
    .syncthing-stat-chip .chip-label {
      color: var(--text-tertiary);
      display: block;
      font-size: 10px;
      margin-bottom: 2px;
    }
    .syncthing-stat-chip .chip-val {
      color: var(--text-primary);
      font-weight: 700;
      font-size: 11px;
    }
    .syncthing-latest-file {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 5px 8px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      font-size: 10px;
      color: var(--text-secondary);
      margin-bottom: 12px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .syncthing-latest-file .file-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }

        /* Upper Dual Grid: Activity & Auth Files Side-by-Side */
    .activity-auth-grid {
      display: grid;
      grid-template-columns: 1fr 1.08fr;
      gap: 14px;
      margin-bottom: 20px;
    }
    @media (max-width: 960px) {
      .activity-auth-grid {
        grid-template-columns: 1fr;
      }
    }
    .auth-header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .quota-refresh-btn {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 4px 10px;
      border-radius: 6px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      color: var(--text-primary);
      font-size: 11px;
      font-weight: 650;
      cursor: pointer;
      line-height: 1;
      user-select: none;
      transition: all .2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .quota-refresh-btn:hover:not(:disabled) {
      background: var(--bg-hover);
      border-color: var(--primary-color);
      transform: translateY(-1px);
      box-shadow: var(--shadow);
    }
    .quota-refresh-btn:disabled {
      opacity: 0.75;
      cursor: not-allowed;
      transform: none;
    }
    .quota-refresh-btn.spinning .btn-icon {
      display: inline-block;
      animation: spin 0.8s infinite linear;
    }
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    /* Keeper Style Auth Files Widget */
    .auth-files-list {
      display: grid;
      gap: 12px;
    }
    .auth-file-card {
      padding: 12px 14px;
      background: var(--bg-tertiary);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      font-size: 11px;
    }
    .auth-card-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    .auth-card-user {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .auth-avatar-icon {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      font-size: 10px;
      font-weight: 800;
      background: var(--text-primary);
      color: var(--bg-primary);
    }
    .auth-avatar-icon.antigravity {
      background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
      color: #fff;
    }
    .auth-avatar-icon.codex {
      background: #10a37f;
      color: #fff;
    }
    .auth-avatar-icon.xai {
      background: #0f1419;
      color: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.16);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    .auth-avatar-icon.xai svg {
      display: block;
    }
    .auth-user-email {
      font-weight: 750;
      color: var(--text-primary);
      font-size: 12px;
    }
    .auth-plan-badge {
      font-size: 9px;
      padding: 1px 6px;
      border-radius: 999px;
      font-weight: 800;
      text-transform: uppercase;
    }
    .auth-plan-badge.pro {
      background: #0284c7;
      color: #fff;
    }
    .auth-plan-badge.plus {
      background: #2563eb;
      color: #fff;
    }
    .auth-plan-badge.supergrok {
      background: #18181b;
      color: #fafafa;
      border: 1px solid rgba(255, 255, 255, 0.22);
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
      letter-spacing: 0.3px;
    }

    /* Key metrics row */
    .auth-metrics-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      padding: 7px 8px;
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 6px;
      margin-bottom: 10px;
      text-align: center;
    }
    .auth-metric-item span {
      display: block;
      color: var(--text-tertiary);
      font-size: 9px;
      margin-bottom: 2px;
    }
    .auth-metric-item strong {
      color: var(--text-primary);
      font-size: 11px;
      font-weight: 750;
    }
    .auth-metric-item strong.highlight-green {
      color: var(--success-color);
    }

    /* Quota groups */
    .auth-quota-groups {
      display: grid;
      gap: 8px;
      border-top: 1px dashed var(--border-color);
      padding-top: 8px;
    }
    .quota-group-header {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-secondary);
      margin-bottom: 4px;
    }
    .quota-bars-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .quota-bar-unit {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      padding: 5px 7px;
      border-radius: 6px;
    }
    .quota-bar-head {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 9px;
      margin-bottom: 3px;
    }
    .quota-bar-head span {
      font-weight: 750;
      color: var(--text-secondary);
    }
    .quota-bar-head strong {
      font-weight: 800;
      color: var(--text-primary);
    }
    .quota-bar-head small {
      color: var(--text-tertiary);
      font-weight: 500;
      margin-left: 3px;
    }
    /* Model Usage Stats Widget (7 Days) */
    .model-usage-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 14px;
    }
    .model-usage-pill {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -.02em;
    }
    .model-usage-pill small {
      font-size: 10px;
      color: var(--text-tertiary);
      font-weight: 500;
      margin-left: 2px;
    }
    .model-stats-list {
      display: grid;
      gap: 12px;
    }
    .model-stat-row {
      display: grid;
      gap: 5px;
    }
    .model-stat-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 11px;
    }
    .model-name {
      font-weight: 650;
      color: var(--text-primary);
      font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 11px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 170px;
    }
    .model-count-pct {
      color: var(--text-secondary);
      font-weight: 700;
      font-size: 11px;
    }

    .availability-list { display: grid; gap: 0; }
    .availability-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 11px; }
    .availability-row:first-child { border-top: 0; }
    .availability-row strong { color: var(--text-primary); font-size: 12px; }
    .host-extra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-color); }
    .host-extra { min-width: 0; color: var(--text-tertiary); font-size: 10px; }
    .host-extra strong { display: block; overflow: hidden; margin-top: 4px; color: var(--text-secondary); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
    .port-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
    .port-chip { padding: 3px 6px; color: var(--text-secondary); background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 999px; font-size: 10px; }
    .port-chip.offline { color: var(--error-color); border-color: var(--error-color); }

    /* Sparkline Area Glow Enhancements */
    .sparkline-wrap { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-color); position: relative; }
    .sparkline-wrap svg { display: block; width: 100%; height: 32px; overflow: visible; }
    .sparkline-area { fill: rgba(16, 185, 129, 0.12); transition: fill .3s ease; }
    [data-theme="dark"] .sparkline-area { fill: rgba(52, 211, 153, 0.18); }
    .sparkline-area.warn { fill: rgba(217, 119, 6, 0.15); }
    .sparkline-area.error { fill: rgba(198, 87, 70, 0.18); }
    .sparkline-wrap polyline {
      fill: none;
      stroke: var(--success-color);
      stroke-width: 2;
      stroke-linejoin: round;
      stroke-linecap: round;
      filter: drop-shadow(0 0 3px var(--success-color));
      transition: stroke .3s ease;
    }
    .sparkline-wrap polyline.warn { stroke: var(--warning-color); filter: drop-shadow(0 0 3px var(--warning-color)); }
    .sparkline-wrap polyline.error { stroke: var(--error-color); filter: drop-shadow(0 0 3px var(--error-color)); }
    .sparkline-label { display: flex; justify-content: space-between; margin-top: 3px; font-size: 9px; color: var(--text-tertiary); }

    /* Sparkline Tooltip */
    .sparkline-tooltip {
      position: absolute;
      top: -24px;
      left: 50%;
      transform: translateX(-50%);
      padding: 2px 7px;
      border-radius: 4px;
      background: var(--bg-primary);
      border: 1px solid var(--border-color);
      font-size: 10px;
      font-weight: 700;
      color: var(--text-primary);
      pointer-events: none;
      opacity: 0;
      transition: opacity .15s ease;
      white-space: nowrap;
      box-shadow: var(--shadow);
      z-index: 5;
    }
    .sparkline-wrap:hover .sparkline-tooltip { opacity: 1; }

    /* About Modal */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .2s ease, visibility .2s ease;
    }
    .modal-backdrop.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .modal-card {
      width: min(520px, 100%);
      background: rgba(250, 249, 245, 0.94);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      box-shadow: var(--shadow-lg);
      padding: 26px 26px 22px;
      transform: translateY(12px) scale(0.98);
      transition: transform .2s ease;
      max-height: 90vh;
      overflow-y: auto;
    }
    [data-theme="dark"] .modal-card {
      background: rgba(41, 42, 39, 0.94);
    }
    .modal-backdrop.open .modal-card {
      transform: translateY(0) scale(1);
    }
    .modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
    .modal-profile-header { display: flex; align-items: center; gap: 14px; }
    .modal-avatar { width: 44px; height: 44px; border-radius: 9px; background: var(--text-primary); color: var(--bg-primary); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
    .modal-title { margin: 0; font-size: 17px; font-weight: 750; color: var(--text-primary); }
    .modal-subtitle { margin-top: 3px; font-size: 12px; color: var(--text-tertiary); }
    .modal-close-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--border-color); background: var(--bg-tertiary); color: var(--text-secondary); cursor: pointer; font-size: 15px; }
    .modal-close-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
    .modal-desc { margin: 0 0 18px; font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
    .modal-tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
    .modal-tech-item { padding: 10px 12px; border-radius: 7px; background: var(--bg-tertiary); border: 1px solid var(--border-color); font-size: 11px; }
    .modal-tech-item strong { display: block; font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
    .modal-tech-item span { color: var(--text-tertiary); line-height: 1.45; }
    .modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-color); font-size: 11px; color: var(--text-tertiary); }
    .modal-links { display: flex; gap: 8px; }
    .modal-link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; font-size: 11px; font-weight: 600; }
    .modal-link-btn:hover { background: var(--bg-tertiary); border-color: var(--border-hover); }

    .traffic-bar-wrap { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-color); }
    .traffic-bar-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 10px; color: var(--text-tertiary); }
    .traffic-bar-header strong { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
    .traffic-bar-expire { font-size: 10px; color: var(--text-tertiary); }
    .traffic-progress { height: 6px; overflow: hidden; background: var(--bg-tertiary); border-radius: 999px; }
    .traffic-progress span { display: block; width: 0; height: 100%; background: var(--primary-color); border-radius: inherit; transition: width .35s ease; }
    .traffic-progress span.warn { background: var(--warning-color); }
    .traffic-progress span.error { background: var(--error-color); }
    .traffic-bar-foot { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--text-tertiary); }
    .traffic-bar-expire.warn { color: var(--warning-color); }

    :focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }

    @media (max-width: 1080px) {
      .detail-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 720px) {
      .sidebar { position: static; width: 100%; padding: 13px 14px; }
      .sidebar-brand { padding: 3px 8px 13px; }
      .nav-label { display: none; }
      .nav-list { display: flex; gap: 4px; padding-top: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .nav-item { flex: 0 0 auto; padding: 8px 10px; font-size: 11px; }
      .sidebar .sidebar-footer { display: none; }
      .mobile-profile-footer {
        display: block;
        margin-top: 24px;
        padding-top: 14px;
        border-top: 1px solid var(--border-color);
      }
      .main { margin-left: 0; }
      .main-header { min-height: 58px; padding: 0 16px; }
      .content { width: min(100% - 32px, 640px); padding: 16px 0 36px; }
      .clock-hero-card { padding: 16px 14px 12px; margin-bottom: 18px; }
      .tick { font-size: 38px; }
      .tick-divider { margin: 0 5px; gap: 8px; }
      .tick-dot { width: 4px; height: 4px; }
      .clock-top-bar { margin-bottom: 10px; }
      .clock-date-str { font-size: 11px; }
      .tick-ampm-wrap { margin-left: 6px; padding-bottom: 3px; }
      .tick-ampm-pill { font-size: 9px; padding: 2px 5px; }
      .service-grid, .lower-grid, .detail-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 440px) {
      .stat-grid { grid-template-columns: 1fr; }
      .header-status { display: none; }
      .section-heading { align-items: start; flex-direction: column; gap: 5px; }
      .modal-tech-grid { grid-template-columns: 1fr; }
    }
