  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  :root {
    --bg: #f4f6fa; --card: #ffffff; --ink: #1b2430; --muted: #7b8794;
    --line: #e6ebf2; --navy: #1e3a5f; --navy2: #2c5282; --soft: #f6f8fb;
    --green: #2f7d5b; --green2: #3c9a71; --red: #b94a48; --red2: #d05f5c; --amber: #9a6b2f;
    --shadow: 0 1px 2px rgba(20,35,60,.04), 0 10px 30px rgba(20,35,60,.07);
    --muted2: #4a5872; --tint: #eef3fa; --tintg: #e7f5ec; --tintr: #fbeeee; --tinta: #fdf3d8; --tintb: #e3eefb;
    --bg2: #e9eef6; color-scheme: light;
  }
  html[data-theme="dark"] {
    --bg: #0f1722; --bg2: #121c2b; --card: #17212f; --ink: #e8eef7; --muted: #93a1b5; --muted2: #aab6c8;
    --line: #263447; --navy: #cfe0f7; --navy2: #8fb4e6; --soft: #1a2535; --tint: #1f2c40; --tintg: #17332a; --tintr: #3a2124; --tinta: #3a3018; --tintb: #1d3350;
    --green: #35a46f; --green2: #43b883; --red: #e06b69; --red2: #e47e7c; --amber: #e0a24d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark;
  }
  body {
    margin: 0; font-family: -apple-system, system-ui, "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(180deg, var(--bg2) 0, var(--bg) 340px);
    color: var(--ink); font-size: 16px; -webkit-font-smoothing: antialiased;
    margin: 0; padding: 0; height: 100%; overflow: hidden;
  }
  html { height: 100%; overflow: hidden; background: var(--bg); }
  #sc { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  #scin { max-width: 560px; margin: 0 auto; padding: 0 18px calc(env(safe-area-inset-bottom) + 120px); min-width: 0; width: 100%; overflow-x: clip; }
  #scin .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  header { text-align: center; padding: 8px 0 4px; position: relative; }
  .brand { display: flex; justify-content: center; margin: 0 auto 10px; }
  .brand svg { width: 44px; height: 44px; display: block; filter: drop-shadow(0 8px 14px rgba(30,58,95,.28)); }
  h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .3px; color: var(--navy); }
  h1::after {
    content: ""; display: block; width: 36px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, var(--navy2), var(--green2)); margin: 10px auto 0;
  }
  #today { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

  .corner { position: absolute; top: 16px; z-index: 5; }
  .corner.end { inset-inline-end: 0; display: flex; gap: 6px; align-items: center; }
  .corner.end .lang-wrap { position: relative; }
  .corner.start { inset-inline-start: 0; }
  .pill {
    font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
    border: 1px solid var(--line); background: var(--card); color: var(--navy); font-family: inherit;
  }
  .lang-menu {
    position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 150px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    padding: 6px; display: flex; flex-direction: column;
  }
  .lang-menu button {
    background: none; border: none; text-align: start; padding: 10px 12px; border-radius: 9px;
    font-size: 14px; color: var(--ink); font-family: inherit;
  }
  .lang-menu button:hover { background: var(--tint); }
  .lang-menu button.on { background: var(--tint); color: var(--navy); font-weight: 700; }

  .card {
    background: var(--card); border-radius: 22px; padding: 18px 20px 20px;
    box-shadow: var(--shadow); border: 1px solid rgba(30,58,95,.05); text-align: center;
    margin-top: 12px;
  }
  .status {
    display: inline-block; font-size: 13px; font-weight: 500; color: var(--navy2);
    background: var(--tint); padding: 5px 14px; border-radius: 999px; min-height: 26px;
  }
  .clock {
    font-size: 40px; font-weight: 300; letter-spacing: 1.5px; direction: ltr;
    font-variant-numeric: tabular-nums; margin: 8px 0 2px; color: var(--navy);
  }
  .today { font-size: 13px; color: var(--muted); }
  .breakClock { font-size: 20px; font-weight: 500; color: var(--amber); direction: ltr; font-variant-numeric: tabular-nums; margin: -6px 0 6px; }
  .today b {
    font-weight: 700; color: var(--ink); direction: ltr; display: inline-block; margin-inline-start: 6px;
    font-variant-numeric: tabular-nums;
  }
  .place {
    width: 100%; margin-top: 18px; font-size: 16px; font-weight: 600; padding: 12px 14px; text-align: center;
    border: 1.5px solid #9fb3c8; border-radius: 12px; font-family: inherit;
    background: var(--card); color: var(--navy2); transition: border-color .15s, box-shadow .15s;
  }
  .place::placeholder { color: #4a5870; font-weight: 500; opacity: 1; }
  .menu {
    position: absolute; top: 52px; inset-inline-start: 0; z-index: 30; min-width: 230px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
  }
  #app.portal > :not(#mgr):not(#wk):not(#cal):not(#me):not(#req) { display: none !important; }
  .cal-nav { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; font-size: 16px; color: var(--navy); }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cal-grid .wd { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .cal-day { aspect-ratio: 1 / 1.05; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 2px; font: inherit; font-size: 13px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
  .cal-day small { font-size: 9.5px; direction: ltr; color: var(--muted); }
  .cal-day.off { visibility: hidden; }
  .cal-day.work { background: var(--tintg); border-color: #b7e0c6; }
  .cal-day.leave { background: var(--tintb); border-color: #bcd3f0; }
  .cal-day.sick { background: var(--tinta); border-color: #ecd9a0; }
  .cal-day.absent { background: var(--tintr); border-color: #efc3c3; }
  .cal-day.hol { box-shadow: inset 0 -3px 0 #8e5bd0; }
  .cal-day.hol b { color: #6b3fb0; }
  .cal-day.today { outline: 2px solid var(--navy2); }
  .cal-day.sel { outline: 2px solid var(--green2); }
  .cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; font-size: 11px; color: var(--muted); }
  .cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: middle; border: 1px solid rgba(0,0,0,.1); }
  .cal-detail { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; min-height: 20px; }
  .hol-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
  .hol-row small { color: var(--muted); }
  .hol-row button { border: 0; background: transparent; color: var(--red); font-size: 16px; }
  .menu[hidden], .menu button[hidden] { display: none !important; }
  .menu button {
    display: block; width: 100%; text-align: start; background: transparent; border: 0; border-radius: 10px;
    padding: 11px 12px; font: inherit; font-size: 15px; color: var(--ink);
  }
  .menu button:hover { background: var(--tint); }
  .menu button.danger { color: var(--red); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
  .menu button { padding: 13px 14px !important; }
  .menu .mprof { padding: 10px 14px 8px; border-bottom: 1px solid var(--line); text-align: start; }
  .menu .mprof b { display: block; font-size: 15px; color: var(--ink); }
  .menu .mprof span { font-size: 12.5px; color: var(--muted); direction: ltr; unicode-bidi: plaintext; overflow-wrap: anywhere; }
  .pwwrap { position: relative; }
  .pwwrap input { padding-inline-end: 44px !important; }
  .pwwrap .eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; font-size: 19px; padding: 8px; line-height: 1; cursor: pointer; }
  html, body { overscroll-behavior: none; }
  .mgr.lite #mgrReqBox, .mgr.lite #mgrSetBox, .mgr.lite #mgrCoBox, .mgr.lite .mgr-bar { display: none !important; }
  .lchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); font-size: 11.5px; white-space: nowrap; color: var(--muted2); font-weight: 700; }
  .lchip b { color: var(--ink); font-size: 13px; }
  #tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); will-change: transform; display: flex; justify-content: center; padding: 0 10px calc(env(safe-area-inset-bottom) + 8px); pointer-events: none; }
  #tabbar[hidden] { display: none !important; }
  #tabbar .tb { pointer-events: auto; display: flex; gap: 2px; width: 100%; max-width: 540px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 28px rgba(20,33,58,.18); padding: 6px; }
  #tabbar button { position: relative; flex: 1; min-width: 0; border: 0; background: transparent; border-radius: 16px; padding: 7px 2px 6px; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted2); display: flex; flex-direction: column; align-items: center; gap: 2px; }
  #tabbar button i { font-style: normal; font-size: 21px; line-height: 1.1; }
  #tabbar button.on { background: var(--tintg); color: #1f6b47; }
  #tabbar .tbadge { position: absolute; top: 2px; inset-inline-end: 22%; min-width: 17px; height: 17px; border-radius: 9px; background: #d64545; color: #fff; font-size: 11px; line-height: 17px; padding: 0 4px; }
  body { padding-bottom: calc(env(safe-area-inset-bottom) + 96px) !important; }
  .pill#refreshBtn { font-size: 21px; padding: 5px 13px; line-height: 1; }
  .pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 4px; font-size: 13px; }
  .pager button:disabled { opacity: .35; }
  .wrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: start; font: inherit; color: var(--ink); }
  .wrow:hover { background: var(--soft); }
  .wrow b { font-size: 15px; }
  .wrow .chev { color: var(--muted); font-size: 18px; }
  .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b8c2cf; margin-inline-end: 6px; vertical-align: middle; }
  .dot.on { background: var(--green2); box-shadow: 0 0 0 3px rgba(60,154,113,.18); animation: blinkOn 1.4s ease-in-out infinite; }
  @keyframes blinkOn { 0%,100% { opacity: 1; box-shadow: 0 0 0 3px rgba(60,154,113,.25); } 50% { opacity: .35; box-shadow: 0 0 0 6px rgba(60,154,113,0); } }
  @media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } }
  .dot.pause { background: #d9a441; box-shadow: 0 0 0 3px rgba(217,164,65,.2); }
  .wk-name { width: 100%; font: inherit; font-size: 20px; font-weight: 700; color: var(--navy); border: 0; border-bottom: 1px dashed var(--line); padding: 4px 0; background: transparent; text-align: start; }
  .wk-live { font-size: 14px; font-weight: 600; margin: 8px 0 4px; text-align: start; }
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
  .tile { background: var(--soft); border-radius: 12px; padding: 10px 6px; text-align: center; }
  .tile b { display: block; font-size: 18px; color: var(--navy); direction: ltr; }
  .tile span { font-size: 11px; color: var(--muted); }
  .wk-rate { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 6px 0 12px; font-size: 14px; }
  .wk-danger { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); text-align: start; }
  .wk-danger button { font: inherit; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px; }
  .wk-danger .del { background: var(--tintr); color: #991b1b; border: 1px solid #efc3c3; }
  .wk-danger .sure { background: #b94a48; color: #fff; border: 0; }
  .wk-danger p { font-size: 13px; color: var(--red); margin: 0 0 10px; }
  .field select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit;
    font-size: 16px; background: var(--card); color: var(--ink); margin-bottom: 6px;
  }
  .mgr { padding: 16px; margin-bottom: 14px; }
  .mgr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .mgr-head h2 { margin: 0; font-size: 18px; color: var(--navy); }
  .mgr-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
  .mgr-bar input[type="month"] { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
  .mgr h3 { font-size: 15px; color: var(--navy); margin: 16px 0 8px; }
  .mgr-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 0; border-bottom: 1px solid var(--line);
  }
  .mgr-row .muted, .mgr .muted { font-size: 13px; color: var(--muted); }
  .mgr-acts { display: flex; gap: 6px; }
  .mgr-acts button { font: inherit; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
  .mgr-acts .ok { background: var(--tintg); color: #166534; border: 1px solid #b7e0c6; }
  .mgr-acts .no { background: var(--tintr); color: #991b1b; border: 1px solid #efc3c3; }
  .mgr-edit { display: grid; gap: 8px; padding: 10px 0; text-align: start; }
  .mgr-edit label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
  .mgr-edit input, .mgr-edit select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); }
  .mgr-edit [hidden] { display: none !important; }
  .mgr-acts .ed { background: var(--tint); color: var(--navy); border: 1px solid var(--line); }
  .edited { font-size: 12px; color: var(--amber); font-weight: 700; margin-top: 2px; }
  .live { font-size: 13px; color: var(--navy2); font-weight: 600; margin-top: 2px; }
  .mgr-detail { background: var(--soft); border-radius: 12px; padding: 2px 10px; margin: 2px 0 8px; }
  .rate { width: 96px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; text-align: center; }
  .sugg { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .sugg[hidden] { display: none !important; }
  .sugg-item {
    width: 100%; text-align: start; background: var(--card); border: 1px solid #cfd9e6; border-radius: 10px;
    padding: 10px 12px; color: var(--navy2); font: inherit; font-size: 15px; font-weight: 600;
  }
  .place:focus, .field input:focus {
    outline: none; border-color: var(--navy2); box-shadow: 0 0 0 4px rgba(44,82,130,.12); background: var(--card);
  }
  .btns { display: flex; gap: 10px; margin-top: 14px; }
  button { font-family: inherit; cursor: pointer; transition: transform .08s, opacity .15s, box-shadow .15s; }
  button:active { transform: scale(.985); }
  button:disabled { opacity: .35; cursor: default; transform: none; }
  button:focus-visible { outline: 3px solid rgba(44,82,130,.35); outline-offset: 2px; }
  .main {
    flex: 1.2; border: none; border-radius: 14px; padding: 15px;
    font-size: 17px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green2));
    box-shadow: 0 8px 18px rgba(47,125,91,.25);
  }
  .main.stop {
    background: linear-gradient(135deg, var(--red), var(--red2));
    box-shadow: 0 8px 18px rgba(185,74,72,.25);
  }
  .side {
    flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 15px;
    font-size: 16px; font-weight: 600; color: var(--amber); background: var(--card);
  }

  .head { display: flex; justify-content: space-between; align-items: center; margin: 32px 4px 12px; }
  .head h2 {
    font-size: 15px; font-weight: 700; margin: 0; color: var(--navy);
    display: flex; align-items: center; gap: 8px;
  }
  .head h2::before {
    content: ""; width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, var(--navy2), var(--green2));
  }
  .head select {
    font-family: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line);
    border-radius: 10px; background: var(--card); color: var(--ink); max-width: 60%; cursor: pointer;
  }
  .table-card {
    background: var(--card); border-radius: 22px; padding: 4px 12px 8px;
    box-shadow: var(--shadow); border: 1px solid rgba(30,58,95,.05); overflow: hidden;
  }
  table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
  thead th {
    font-weight: 800; color: var(--navy); font-size: 13.5px; padding: 15px 2px 12px;
    border-bottom: 2px solid var(--green); text-align: center; letter-spacing: 0; background: var(--card);
  }
  td {
    padding: 15px 2px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15.5px; font-weight: 650;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
  }
  td:nth-child(2) { font-size: 13.5px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; text-align: center; }
  td:nth-child(3), td:nth-child(4), td:nth-child(5) { font-size: 15px; font-variant-numeric: tabular-nums; }
  @media (max-width: 400px) { td, thead th { padding-left: 0; padding-right: 0; } td { font-size: 14.5px; } td:nth-child(2) { font-size: 12.5px; } td:nth-child(3), td:nth-child(4), td:nth-child(5) { font-size: 13.5px; letter-spacing: -.3px; } thead th { font-size: 11.5px; } }
  tbody tr { transition: background .15s; }
  tbody tr:hover { background: var(--soft); }
  tr:last-child td { border-bottom: none; }
  #tbody tr:last-child td { border-bottom: none; }
  td.ltr { direction: ltr; font-variant-numeric: tabular-nums; }
  td.total { font-weight: 800; color: var(--navy); }
  #tfoot { display: none; }
  tfoot td {
    font-weight: 800; color: #14532d; background: #e8f5ee; padding: 15px 2px; font-size: 16px;
    border-top: 2px solid #b9dcc9; border-bottom: none; font-variant-numeric: tabular-nums;
  }
  .acts { display: flex; justify-content: center; align-items: center; gap: 2px; }
  .acts button {
    background: none; border: none; font-size: 15px; padding: 3px 5px; line-height: 1; border-radius: 6px;
  }
  .acts .edit { color: var(--navy2); font-size: 15px !important; font-weight: 700; border: 0; padding: 4px 8px !important; border-radius: 8px !important; background: transparent !important; }
  .acts .edit:hover { background: #eaf1f9; }
  .acts .more { font-size: 22px !important; line-height: 1; padding: 2px 6px !important; letter-spacing: 1px; }
  .acts .more.on { background: var(--tint) !important; }
  .acts { flex-direction: column; gap: 4px; }
  .mini { display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .mini[hidden] { display: none; }
  .mb { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; font-weight: 800; line-height: 1; color: var(--navy2); display: grid; place-items: center; }
  .mb-del { color: var(--red); font-size: 20px; }
  .mb-del.armed { background: var(--red); border-color: var(--red); color: #fff; }
  .acts .okb { color: #166534; }
  .acts .nob { color: #991b1b; }
  .wk-rate { margin-top: 0; }
  #wk { padding: 14px 10px; }
  #wk .table-card { margin-inline: 0; }
  #wk .acts { flex-wrap: nowrap; gap: 0; }
  #wk .acts button { padding: 4px 5px !important; }
  #wk td, #wk th { padding-inline: 1px; font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: clip; }
  #wk td:nth-child(2) { white-space: normal; overflow-wrap: break-word; line-height: 1.25; font-size: 12px; font-weight: 600; }
  #wk td { vertical-align: middle; padding-block: 13px; }
  #wk th { font-size: 12px; font-weight: 800; padding-inline: 1px; }
  #wk tfoot { display: none; }
  #wk td:nth-child(3), #wk td:nth-child(4), #wk td:nth-child(5) { font-size: 12.5px; letter-spacing: -.3px; }
  #wk { padding: 14px 6px; }
  #wk .notice:empty { display: none; }
  #wk .acts .edit { font-size: 13px !important; }
  .acts .del { color: #c3cad3; font-size: 17px; }
  .acts .del:hover { color: var(--red); background: var(--tintr); }
  .acts .del.armed { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 7px; }
  .empty { text-align: center; color: var(--muted); padding: 26px 0; }
  .notice { color: var(--red); font-size: 13px; text-align: center; margin: 12px 4px 0; min-height: 18px; }

  .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 0 4px; }
  .link {
    background: none; border: none; color: var(--navy2); font-size: 14px; font-weight: 600;
    padding: 8px 4px; border-radius: 8px;
  }
  .link:hover { background: rgba(44,82,130,.07); }

  .manual {
    display: none; margin-top: 16px; background: var(--card); border-radius: 22px; padding: 20px;
    box-shadow: var(--shadow); border: 1px solid rgba(30,58,95,.05);
  }
  .manual.open { display: block; }
  .form-title { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
  .field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin: 14px 0 6px; text-align: start; }
  .field input {
    width: 100%; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line);
    border-radius: 11px; font-family: inherit; background: var(--soft); color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
  }
  .field input[type=date], .field input[type=time], .field input[type=number], .field input[type=email] { direction: ltr; }
  .primary {
    width: 100%; margin-top: 18px; border: none; border-radius: 12px; padding: 14px;
    background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff;
    font-size: 16px; font-weight: 700; box-shadow: 0 8px 18px rgba(30,58,95,.22);
  }
  .secondary {
    width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    background: var(--card); color: var(--muted); font-size: 15px; font-weight: 600;
  }
  .auth-card { margin-top: 36px; text-align: start; }
  .auth-card h2 { font-size: 18px; color: var(--navy); margin: 0 0 4px; text-align: center; }
  .auth-card .sub { color: var(--muted); font-size: 13px; text-align: center; margin: 0 0 6px; }
  .legal { text-align: center; margin: 14px 0 0; }
  .legal a { color: var(--muted); font-size: 13px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
  .stat {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 6px;
    text-align: center; box-shadow: var(--shadow);
  }
  .stat b { display: block; font-size: 19px; color: var(--navy); font-variant-numeric: tabular-nums; direction: ltr; }
  .stat span { font-size: 12px; color: var(--muted); }
  .tools { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
  .tools button {
    background: var(--card); border: 1px solid var(--line); color: var(--navy2); font-size: 14px; font-weight: 600;
    padding: 9px 14px; border-radius: 12px;
  }
  .printMonth { display: none; text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 12px; }

  @media print {
    body { background: var(--card); padding: 0; max-width: none; }
    .corner, .brand, .card, .head, .foot, .tools, .manual, .notice, .breakClock, #auth, #today, h1::after { display: none !important; }
    .printMonth { display: block; }
    .stats { display: grid !important; }
    .stat { box-shadow: none; }
    .table-card { box-shadow: none; border: 1px solid #ccd5e0; }
    th:last-child, td:last-child { display: none; }
    h1 { font-size: 18px; }
  }
  .shstrip-wrap { margin: 4px 0 14px; text-align: start; }
  .shstrip-title { font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 4px 8px; }
  .shstrip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .shchip { position: relative; flex: 0 0 auto; min-width: 104px; max-width: 160px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 10px; text-align: center; box-shadow: 0 1px 4px rgba(20,33,58,.08); color: var(--ink); }
  .shchip .wd { font-size: 15px; font-weight: 800; }
  .shchip .dt { font-size: 13px; font-weight: 700; color: var(--muted2); margin-top: 1px; }
  .shchip .tm { font-size: 16px; font-weight: 800; margin-top: 8px; direction: ltr; unicode-bidi: isolate; }
  .shchip .pl { font-size: 13px; font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; }
  .shchip .pz { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
  .shchip.istoday { background: var(--green, #1f8a5b); border-color: transparent; color: #fff; }
  .shchip.istoday .dt, .shchip.istoday .pz { color: rgba(255,255,255,.85); }
  .shchip .x { position: absolute; top: 2px; inset-inline-end: 4px; border: 0; background: transparent; color: var(--red, #c0392b); font-size: 17px; padding: 0 4px; line-height: 1; }
  .shchip.istoday .x { color: #fff; }
  .shchip .use { margin-top: 8px; border: 0; background: rgba(255,255,255,.28); color: inherit; border-radius: 12px; font-size: 14px; font-weight: 700; padding: 9px 12px; min-height: 40px; touch-action: manipulation; }
  tr.rejrow td { color: #8a93a3 !important; }
  td.total { overflow: visible !important; text-overflow: clip !important; white-space: nowrap; }
  .rejtag { display: block; text-decoration: none; font-size: 10.5px; font-weight: 700; color: var(--red); }
  .earn { margin: 12px 0; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, var(--card), var(--tintg)); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: start; }
  .earn span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .earn b { display: block; font-size: 22px; color: var(--ink); margin-top: 2px; }
  .earn .g b { color: var(--green); }
  .earn .brk { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
  .earn p { grid-column: 1 / -1; margin: 0; font-size: 11.5px; color: var(--muted); }
  .corner.start { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); inset-inline-start: max(16px, env(safe-area-inset-left, 0px)); z-index: 40; }
  .badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d64545; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; pointer-events: none; }
  .menu .minfo { padding: 10px 14px 8px; font-size: 13px; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); white-space: pre-line; text-align: start; }
  .menu #menuInbox { font-weight: 800; color: #b3261e; }
  .toast { position: fixed; inset-inline: 16px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 16px; font-weight: 700; box-shadow: 0 8px 30px rgba(20,33,58,.35); text-align: start; }
  .mgr-box { margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; background: var(--card); text-align: start; }
  .mgr-box > summary { cursor: pointer; font-weight: 800; padding: 10px 0; color: var(--ink); }
  .rq { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
  .rq:last-child { border-bottom: 0; }
  .rq .l { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
  .rq .a { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--line); color: var(--muted2); }
  .chip.ok { background: #e1f3ea; color: #1f6b47; } .chip.no { background: var(--tintr); color: #a13a38; } .chip.wait { background: var(--tinta); color: #8a5f12; }
  #req .field input, #req .field select, #req .field textarea { width: 100%; }
  #req h3 { margin: 18px 0 8px; font-size: 15px; }
  .sbtn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; text-align: start; }

  /* ===== v45: الرئيسية بتصميم جديد ===== */
  .card:has(#clock) { padding-top: 22px; }
  .status { display: inline-block; font-weight: 500; background: var(--tint); color: var(--navy2); padding: 5px 14px; }
  .clock { font-size: 54px; font-weight: 300; letter-spacing: 1px; margin: 14px 0 6px; line-height: 1.1; }
  .btns { flex-direction: column; gap: 12px; margin-top: 16px; }
  .main { flex: none; width: 100%; padding: 19px; font-size: 20px; border-radius: 18px; }
  .side { flex: none; width: 100%; padding: 15px; font-size: 17px; font-weight: 700; border-radius: 16px; border: 1.5px solid #e6c48f; background: var(--tinta); color: var(--amber); }
  .side:disabled { opacity: .45; }
  .stats { gap: 12px; }
  .stat { padding: 16px 6px 14px; border-radius: 20px; }
  .stat::before { content: "⏱"; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; font-size: 22px; background: #ece8fb; }
  .stat:nth-child(1)::before { content: "📅"; background: #dfeafb; }
  .stat:nth-child(3)::before { content: "☕"; background: #fdf0d6; }
  html[data-theme="dark"] .stat::before { background: #2a2a4a; }
  html[data-theme="dark"] .stat:nth-child(1)::before { background: #1f3350; }
  html[data-theme="dark"] .stat:nth-child(3)::before { background: #3a3018; }
  .stat b { font-size: 22px; font-weight: 800; }
  .stat span { font-size: 12.5px; font-weight: 600; }
  .head h2 { font-size: 17px; font-weight: 800; }
  .stats { gap: 0; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); border: 1px solid rgba(30,58,95,.05); padding: 18px 0 16px; }
  .stat { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 0 6px; border-inline-start: 1px solid var(--line); }
  .stat:first-child { border-inline-start: 0; }
  .stat::before { width: 40px; height: 40px; font-size: 19px; margin-bottom: 6px; }

  .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 12px; }
  .kpis.three { margin: 8px 0 0; }
  .kpi { background: var(--soft); border-radius: 16px; padding: 12px 4px; text-align: center; }
  .kpi i { font-style: normal; display: block; font-size: 20px; margin-bottom: 2px; }
  .kpi b { display: block; font-size: 19px; font-weight: 800; color: var(--navy); direction: ltr; }
  .kpi.g b { color: var(--green); font-size: 16px; }
  .kpi span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
  .rcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; margin: 0 0 12px; }
  .rcard h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 800; color: var(--navy); }
  .delta { margin: 8px 0 0; font-weight: 800; font-size: 14px; text-align: center; direction: ltr; }
  .delta.up { color: var(--green); } .delta.down { color: var(--red); }
  .tline { display: flex; align-items: center; justify-content: space-around; text-align: center; }
  .tline b { display: block; font-size: 26px; font-weight: 800; color: var(--navy); direction: ltr; }
  .tline span { font-size: 12px; color: var(--muted); font-weight: 600; }
  .tline em { font-style: normal; font-size: 22px; color: var(--muted); }
  .prow { display: grid; grid-template-columns: 30% 1fr auto; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; }
  .prow .pn { font-weight: 700; overflow-wrap: anywhere; }
  .pbar { height: 9px; border-radius: 9px; background: var(--tint); overflow: hidden; }
  .pbar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--green), var(--green2)); }
  .about-hero { text-align: center; padding: 10px 0 8px; }
  .about-hero h2 { margin: 8px 0 2px; font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: 1px; }
  .about-hero p { margin: 0; font-weight: 700; color: var(--green); }
  .about-hero small { color: var(--muted); }
  .about-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .about-row span { color: var(--muted); font-weight: 600; } .about-row b { color: var(--ink); text-align: end; }

  .about-hero { padding: 14px 0 6px; } .about-hero h2 { font-size: 26px; letter-spacing: 3px; } .about-hero p { font-size: 11.5px; letter-spacing: 3px; color: var(--muted); }
  .about-lead { margin: 14px 2px 6px; font-size: 14.5px; line-height: 1.7; color: var(--ink); text-align: start; }
  .about-sec { margin: 16px 2px 0; text-align: start; }
  .about-sec h4 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .about-sec ul { margin: 0; padding: 0; list-style: none; }
  .about-sec li { position: relative; padding: 6px 0; padding-inline-start: 16px; font-size: 14px; line-height: 1.55; }
  .about-sec li::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
  .about-list { margin-top: 18px; border-top: 1px solid var(--line); }
  .about-dev { font-weight: 800 !important; color: var(--ink) !important; letter-spacing: .3px; }
  .about-mail { color: var(--navy2); font-weight: 700; text-decoration: none; }
  .about-priv { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: underline; }
  .about-foot { text-align: center; margin: 18px 0 4px; font-size: 13px; color: var(--muted); letter-spacing: .3px; }

  .mgrp { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
  .menu button.mgh { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--navy); }
  .menu button.mgh i { font-style: normal; transition: transform .2s; color: var(--muted); }
  .mgrp.open .mgh i { transform: rotate(180deg); }
  .mgb { padding-inline-start: 10px; border-inline-start: 2px solid var(--line); margin: 2px 10px 6px; }
  .mgb button { font-size: 14.5px !important; padding: 11px 12px !important; }

  /* ===== v77: لا تكبير بالضغط المزدوج + واجهة رئيسية مضغوطة ===== */
  html, body, button, input, select, textarea, a, label, summary { touch-action: manipulation; }
  @supports (-webkit-touch-callout: none) { input, select, textarea { font-size: 16px; } }
  .card:has(#clock) { padding: 10px 16px 14px; margin-top: 8px; }
  .card:has(#clock) .status { padding: 3px 12px; font-size: 12px; min-height: 0; }
  .card:has(#clock) .clock { font-size: 38px; margin: 4px 0 0; }
  .card:has(#clock) .place { margin-top: 8px; padding: 9px 12px; font-size: 15px; border-radius: 11px; }
  .card:has(#clock) #scanBtn { margin-top: 6px; padding: 5px 12px; font-size: 13px; }
  .card:has(#clock) .btns { flex-direction: row; gap: 8px; margin-top: 10px; }
  .card:has(#clock) .main { flex: 1.5; width: auto; padding: 13px 8px; font-size: 18px; border-radius: 14px; }
  .card:has(#clock) .side { flex: 1; width: auto; padding: 13px 8px; font-size: 15px; border-radius: 14px; }
  .shstrip-wrap { margin: 2px 0 8px; }
  .shstrip-title { font-size: 13px; margin: 0 4px 4px; }
  .shstrip { gap: 8px; padding: 2px 2px 6px; }
  .shchip { min-width: 88px; padding: 7px 10px; border-radius: 13px; }
  .shchip .wd { font-size: 13px; } .shchip .dt { font-size: 12px; }
  .shchip .tm { font-size: 14px; margin-top: 3px; } .shchip .pl { font-size: 12px; margin-top: 1px; } .shchip .pz { font-size: 11px; }
  .shchip .use { margin-top: 5px; font-size: 12px; padding: 5px 8px; min-height: 32px; }
  .stats { margin: 0 0 10px; }
  .stat { padding: 10px 6px 9px; }
  .stat::before { width: 34px; height: 34px; font-size: 17px; margin-bottom: 4px; }
  /* v85: نموذج اليوم القديم + ألوان السجل */
  .field label { font-weight: 700; font-size: 14px; }
  .field input, .field select { font-weight: 600; font-size: 16px; min-height: 48px; box-sizing: border-box; }
  .field input[type=date], .field input[type=time] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; text-align: center; }
  .trow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .trow > div { min-width: 0; }
  .pin { position: relative; }
  .pin span { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); font-size: 17px; pointer-events: none; }
  .pin input { padding-inline-start: 42px; }
  :root { --kw: #DBEAFE; --kl: #DDF5E5; --ka: #FEE2E2; --ks: #F3E8FF; --ko: #E5E7EB; }
  html[data-theme="dark"] { --kw: #1d3350; --kl: #17332a; --ka: #3a2124; --ks: #2e2144; --ko: #2a3342; }
  #tbody tr.k-leave, #tbody tr.k-leave:nth-child(even) { background: var(--kl); }
  .cal-day.other { background: var(--tint); border-color: var(--line); }
  .shstrip-wrap { margin: 4px 0 2px; }
  .shstrip { padding-bottom: 2px; }
  .shstrip-wrap + .head { margin-top: 8px; }
  #spBtn { touch-action: none; -webkit-user-select: none; user-select: none; }
  /* v87: قائمة ✎ × عائمة، جدول أعرض، إحصاءات أصغر */
  .acts { position: relative; }
  td:last-child { overflow: visible; }
  .acts .mini { position: absolute; top: 50%; inset-inline-end: calc(100% - 4px); transform: translateY(-50%); flex-direction: row; gap: 6px; padding: 5px 7px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 18px rgba(20,35,60,.18); z-index: 6; }
  .acts .mini[hidden] { display: none; }
  .acts .mb { width: 28px; height: 28px; font-size: 14px; }
  .acts .mb-del { font-size: 17px; }
  .table-card { margin-inline: 0; width: 100%; box-sizing: border-box; padding: 4px 2px 8px; }
  #wk .table-card { margin-inline: 0; }
  .stats { padding: 9px 0 8px; }
  .stat::before { width: 30px; height: 30px; font-size: 15px; margin-bottom: 3px; }
  .stat b { font-size: 18px; }
  .stat span { font-size: 11px; }
#spBtn{position:fixed;inset-inline-end:14px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:45;width:50px;height:50px;border-radius:50%;border:0;background:var(--navy);color:#fff;font-size:22px;line-height:1;box-shadow:var(--shadow);cursor:pointer;display:flex;align-items:center;justify-content:center}
html[data-theme="dark"] #spBtn{background:var(--navy2);color:#0f1722}

#spPanel .sp-m{position:relative}
#spPanel .sp-del{border:0;background:transparent;font-size:13px;opacity:.55;padding:0 0 0 8px;cursor:pointer;vertical-align:middle;color:inherit}
#spPanel .sp-del2{border:1px solid var(--line);background:var(--card);border-radius:12px;padding:0 12px;cursor:pointer;font-size:15px}
#spPanel .sp-tools{display:flex;gap:8px;justify-content:space-between;margin-bottom:8px}
#spPanel .sp-tools .sp-mail{border:0;font:inherit;cursor:pointer;margin:0}
#spBtn .sp-badge{position:absolute;top:-4px;inset-inline-end:-4px;min-width:20px;height:20px;border-radius:10px;background:#d33;color:#fff;font:700 12px/20px system-ui,sans-serif;text-align:center;padding:0 5px;box-sizing:border-box}
#spBtn .sp-badge[hidden]{display:none}
#spPanel .sp-tbadge{display:inline-block;margin-inline-start:6px;min-width:18px;height:18px;border-radius:9px;background:#d33;color:#fff;font:700 11px/18px system-ui,sans-serif;text-align:center;padding:0 4px;box-sizing:border-box}
#spPanel .sp-tbadge[hidden]{display:none}

#spPanel .sp-att{border:1px solid var(--line);background:var(--card);border-radius:12px;padding:0 12px;min-height:40px;font-size:18px;cursor:pointer}
#spPanel .sp-lk{border:0;background:transparent;color:#7fb2ff;font:inherit;font-size:13px;font-weight:800;text-decoration:underline;padding:4px 0 0;cursor:pointer}
#spPanel .sp-bot .sp-lk{color:#1a5fd0}
#spBtn[hidden]{display:none!important}
#spPanel{position:fixed;inset:0;z-index:99998;background:var(--bg);display:flex;flex-direction:column;padding-top:env(safe-area-inset-top,0px);color:var(--ink)}
#spPanel .sp-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--card)}
#spPanel .sp-x{border:0;border-radius:999px;width:38px;height:38px;font-size:18px;background:var(--soft);color:inherit;cursor:pointer;flex:none}
#spPanel .sp-t{font-weight:800;font-size:16px;flex:1;min-width:0}
#spPanel .sp-t small{display:block;font-weight:500;font-size:12px;color:var(--muted)}
#spPanel .sp-log{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px;display:flex;flex-direction:column;gap:10px;min-height:0}
#spPanel .sp-m{max-width:86%;padding:10px 13px;border-radius:16px;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
#spPanel .sp-bot{align-self:flex-start;background:var(--card);border:1px solid var(--line)}
#spPanel .sp-me{align-self:flex-end;background:var(--navy);color:#fff}
html[data-theme="dark"] #spPanel .sp-me{background:var(--navy2);color:#0f1722}
#spPanel .sp-tabs{display:flex;gap:6px;padding:8px 14px 0;background:var(--card)}
#spPanel .sp-tab{flex:1;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);font:inherit;font-weight:700;font-size:14px;padding:10px 4px;cursor:pointer}
#spPanel .sp-tab.on{color:var(--ink);border-bottom-color:var(--green)}
#spPanel .sp-faq{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 14px;display:flex;flex-direction:column;gap:8px;min-height:0}
#spPanel .sp-faq[hidden],#spPanel .sp-log[hidden],#spPanel .sp-form[hidden]{display:none!important}
#spPanel .sp-s{border:1px solid var(--line);border-radius:14px;padding:11px 12px;font:inherit;font-size:16px;background:var(--card);color:var(--ink);width:100%;box-sizing:border-box;flex:none}
#spPanel .sp-qi{border:1px solid var(--line);border-radius:14px;background:var(--card);overflow:hidden;flex:none}
#spPanel .sp-qq{display:flex;gap:10px;align-items:center;width:100%;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:700;font-size:15px;text-align:start;padding:12px;cursor:pointer}
#spPanel .sp-qq b{flex:none;color:var(--muted);font-weight:700;font-size:12px;min-width:20px}
#spPanel .sp-qq span{flex:1;min-width:0}
#spPanel .sp-qq i{flex:none;font-style:normal;color:var(--muted);transition:transform .15s}
#spPanel .sp-qi.open .sp-qq i{transform:rotate(180deg)}
#spPanel .sp-aa{padding:0 12px 12px;font-size:15px;line-height:1.6;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}
#spPanel .sp-aa .sp-mail{margin-top:10px;border:0;font:inherit;font-weight:700;cursor:pointer}
#spPanel .sp-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 10px}
#spPanel .sp-chip{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:999px;padding:8px 12px;font:inherit;font-size:13.5px;cursor:pointer}
#spPanel .sp-form{display:flex;gap:8px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--card)}
#spPanel .sp-in{flex:1;min-width:0;border:1px solid var(--line);border-radius:14px;padding:11px 12px;font:inherit;font-size:16px;background:var(--bg);color:var(--ink)}
#spPanel .sp-go{border:0;border-radius:14px;padding:0 16px;background:var(--navy);color:#fff;font:inherit;font-weight:700;cursor:pointer}
html[data-theme="dark"] #spPanel .sp-go{background:var(--navy2);color:#0f1722}
#spPanel .sp-mail{align-self:flex-start;display:inline-block;margin-top:2px;padding:9px 14px;border-radius:12px;background:var(--tintg);color:var(--green);font-weight:700;text-decoration:none;font-size:14px}

/* v92: شريط سفلي زجاجي شفاف (مثل واتساب) */
#tabbar { -webkit-transform: none !important; transform: none !important; will-change: auto !important; }
#tabbar .tb { background: rgba(255,255,255,.28) !important; -webkit-backdrop-filter: blur(18px) saturate(190%) brightness(1.04); backdrop-filter: blur(18px) saturate(190%) brightness(1.04); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 10px 32px rgba(20,33,58,.20), inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.35); }
html[data-theme="dark"] #tabbar .tb { background: rgba(30,40,56,.30) !important; border-color: rgba(255,255,255,.16); box-shadow: 0 10px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14); }
#tabbar button.on { background: rgba(63,143,95,.20); }
html[data-theme="dark"] #tabbar button.on { background: rgba(110,200,150,.22); color: #8fe0b0; }
#tabbar button { font-size: 10.5px; text-shadow: 0 0 8px rgba(255,255,255,.7); }
html[data-theme="dark"] #tabbar button { text-shadow: none; }

/* مؤقت الموظف في لوائح المدير: مستطيل أخضر فاتح ينبض أثناء العمل، وأصفر هادئ في الاستراحة */
.lvbox{background:#e4f4ec;color:#14532d;border:1px solid #9fd8b8;border-radius:10px;padding:3px 9px;display:inline-block;animation:runpulse 2s ease-in-out infinite}
.lvbox.lvp{background:#fff4dc;border-color:#f0cd86;color:#7a4a05;animation:none}
@keyframes runpulse{0%,100%{box-shadow:0 0 0 0 rgba(47,138,99,.35)}50%{box-shadow:0 0 0 7px rgba(47,138,99,0)}}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .lvbox{background:#15352a;color:#bdf0d6;border-color:#2f6b50}:root:not([data-theme="light"]) .lvbox.lvp{background:#3a2f12;color:#f3d38c;border-color:#7a6128}}
:root[data-theme="dark"] .lvbox{background:#15352a;color:#bdf0d6;border-color:#2f6b50}
:root[data-theme="dark"] .lvbox.lvp{background:#3a2f12;color:#f3d38c;border-color:#7a6128}
@media (prefers-reduced-motion: reduce){.lvbox{animation:none}}
.lvrow{border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:10px;background:var(--card)}
.lvrow .top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.lvrow .sub{margin-top:6px;font-size:13px}
.mgr-btn{display:block;width:100%;text-align:start;font:inherit;font-weight:700;color:var(--ink);cursor:pointer}
