

    :root{
      --bg:#0b1220;
      --card:#0f1b32;
      --card2:#0d172b;
      --text:#e7eefc;
      --muted:#9fb1d6;
      --line:rgba(255,255,255,.10);
      --accent:#6aa6ff;
      --good:#3ddc97;
      --warn:#ffcc66;
      --bad:#ff6b6b;
    }
    :root[data-theme="light"]{
      --bg:#f5f7fb;
      --card:#ffffff;
      --card2:#ffffff;
      --text:#0b1220;
      --muted:#22324f;
      --line:rgba(11,18,32,.12);
      --accent:#1f6fff;
      --good:#0f9d58;
      --warn:#b26a00;
      --bad:#d93025;
    }
    :root[data-theme="light"] body{
      background:linear-gradient(180deg,#ffffff 0%, #f5f7fb 100%);
    }

    :root[data-theme="light"] .card{
      background:linear-gradient(180deg,rgba(11,18,32,.03),rgba(11,18,32,.01));
    }
    :root[data-theme="light"] select,
    :root[data-theme="light"] input[type="text"],
    :root[data-theme="light"] input[type="number"]{
      background:rgba(255,255,255,.9);
      color:var(--text);
    }
    :root[data-theme="light"] .chk{
      background:rgba(255,255,255,.8);
    }
    :root[data-theme="light"] .hint{color:#24324d}
    :root[data-theme="light"] .sub{color:#24324d}
    :root[data-theme="light"] label{color:#24324d}
    :root[data-theme="light"] .tag{color:#24324d}
    :root[data-theme="light"] .muted{color:#24324d}
    :root[data-theme="light"] .kbox{
      background:rgba(255,255,255,.85);
    }

    *{box-sizing:border-box}
    body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg,#070c17 0%, #0b1220 100%);color:var(--text)}
    a{color:var(--accent)}
    .wrap{max-width:1200px;margin:0 auto;padding:20px}
    .top{display:flex;gap:14px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
    .title{font-size:22px;font-weight:800;letter-spacing:.2px}
    .sub{color:var(--muted);font-size:13px;margin-top:4px}
    .pillbar{display:flex;gap:8px;flex-wrap:wrap}
    .pill{
      border:1px solid var(--line);
      background:rgba(255,255,255,.04);
      padding:8px 10px;border-radius:999px;
      display:flex;gap:8px;align-items:center;
      user-select:none
    }
    .pill input{accent-color:var(--accent)}
    .grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-top:16px}
    @media (max-width: 980px){.grid{grid-template-columns:1fr}}
    .card{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid var(--line);border-radius:16px;padding:14px}
    .card h3{margin:0 0 10px 0;font-size:14px;letter-spacing:.2px;color:#dbe6ff}
    .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
    @media (max-width: 680px){.row{grid-template-columns:1fr}}
    label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
    select,input[type="text"],input[type="number"]{
      width:100%;
      padding:10px 10px;
      border-radius:12px;
      border:1px solid var(--line);
      background:rgba(0,0,0,.18);
      color:var(--text);
      outline:none;
    }
    input[type="number"]{appearance:textfield}
    input[type="number"]::-webkit-outer-spin-button,input[type="number"]::-webkit-inner-spin-button{appearance:none;margin:0}
    .checks{display:flex;gap:10px;flex-wrap:wrap}
    .chk{display:flex;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(0,0,0,.12)}
    .chk input{accent-color:var(--accent)}
    .hint{font-size:12px;color:var(--muted);line-height:1.35}
    .kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px}
    .kbox{padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.12)}
    .kbox .t{font-size:12px;color:var(--muted)}
    .kbox .v{font-size:24px;font-weight:900;margin-top:4px}
    .kbox .s{font-size:12px;color:var(--muted);margin-top:6px}
    .list{display:flex;flex-direction:column;gap:8px}
    details{border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.10);padding:10px}
    summary{cursor:pointer;color:#dbe6ff;font-weight:700;font-size:13px}
    .tag{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.03);font-size:12px;color:var(--muted)}
    .sep{height:1px;background:var(--line);margin:10px 0}
    .btn{
      border:1px solid var(--line);
      background:rgba(255,255,255,.04);
      color:var(--text);
      padding:10px 12px;border-radius:12px;
      cursor:pointer;
    }
    .btn:hover{background:rgba(255,255,255,.07)}
    .btnsmall{padding:8px 10px;border-radius:10px;font-size:12px}
    .inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
    .warn{color:var(--warn)}
    .ok{color:var(--good)}
    .bad{color:var(--bad)}
    .muted{color:var(--muted)}
    .table{width:100%;border-collapse:collapse;font-size:12px}
    .table th,.table td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:left;vertical-align:top}
    .table th{color:#dbe6ff;font-weight:800}
    .right{text-align:right}
  
    @media print{
      body{background:#fff !important;color:#000 !important}
      .pillbar, .btn, button{display:none !important}
      .wrap{max-width:none;padding:0}
      .grid{grid-template-columns:1fr !important}
      .card{break-inside:avoid;page-break-inside:avoid}
      details{border:1px solid #ddd}
      .hint{color:#444}
    }

  

    :root,
    :root[data-theme="light"] {
      --bg: #141312 !important;
      --card: #1d1b19 !important;
      --card2: #161514 !important;
      --text: #f2eee7 !important;
      --muted: rgba(242, 238, 231, .68) !important;
      --line: rgba(242, 238, 231, .18) !important;
      --accent: #d69237 !important;
      --good: #75d39b !important;
      --warn: #e7bf79 !important;
      --bad: #f08b82 !important;
    }

    html,
    body {
      background: #141312 !important;
      color: #f2eee7 !important;
      font-family: Inter, Arial, sans-serif !important;
    }

    body.bg-gray-100,
    body.bg-slate-50,
    body.bg-white,
    #root {
      background: #141312 !important;
      color: #f2eee7 !important;
    }

    h1, h2, h3, h4,
    .title,
    summary,
    label,
    strong,
    .font-bold,
    .font-extrabold,
    .font-semibold,
    .text-slate-900,
    .text-gray-900,
    .text-black {
      color: #f2eee7 !important;
    }

    p,
    li,
    .sub,
    .hint,
    .muted,
    .tag,
    .text-slate-500,
    .text-slate-600,
    .text-slate-700,
    .text-gray-500,
    .text-gray-600,
    .text-gray-700 {
      color: rgba(242, 238, 231, .68) !important;
    }

    .card,
    .kbox,
    details,
    .pill,
    .chk,
    .bg-white,
    .bg-gray-50,
    .bg-gray-100,
    .bg-slate-50,
    .bg-slate-100,
    .bg-blue-50,
    .bg-indigo-50,
    .bg-emerald-50,
    .rounded-xl,
    .rounded-2xl,
    .shadow,
    .shadow-lg,
    .print-flat {
      background: linear-gradient(145deg, rgba(31, 30, 28, .96), rgba(18, 17, 16, .98)) !important;
      border-color: rgba(242, 238, 231, .18) !important;
      color: #f2eee7 !important;
      box-shadow: none !important;
      border-radius: 8px !important;
    }

    input,
    select,
    textarea {
      background: rgba(242, 238, 231, .07) !important;
      border-color: rgba(242, 238, 231, .22) !important;
      color: #f2eee7 !important;
      border-radius: 8px !important;
      outline: none !important;
    }

    option {
      background: #141312 !important;
      color: #f2eee7 !important;
    }

    input[type="checkbox"],
    input[type="radio"] {
      accent-color: #d69237 !important;
    }

    button,
    .btn,
    .btnsmall,
    .bg-blue-600,
    .bg-indigo-600,
    .bg-slate-900 {
      background: #d69237 !important;
      border: 1px solid rgba(214, 146, 55, .72) !important;
      color: #141312 !important;
      border-radius: 999px !important;
      box-shadow: none !important;
    }

    button:hover,
    .btn:hover {
      filter: brightness(1.06) !important;
    }

    .text-blue-600,
    .text-indigo-600,
    .text-cyan-600,
    .text-emerald-600,
    a {
      color: #e7bf79 !important;
    }

    .border,
    .border-gray-200,
    .border-slate-200,
    .border-blue-100,
    .divide-y > * + * {
      border-color: rgba(242, 238, 231, .18) !important;
    }

    .top,
    .wrap {
      color: #f2eee7 !important;
    }

    .pillbar .pill:has(#themeToggle),
    .pillbar .pill:has(#btnPrint),
    #themeToggle,
    label[for="themeToggle"],
    #btnPrint,
    #managerCard,
    #managerBreakdown,
    [data-manager-only="true"] {
      display: none !important;
    }

    @media (max-width: 760px) {
      body { padding: 10px !important; }
      .wrap { padding: 10px !important; }
      .title { font-size: 20px !important; }
    }
  

    body,
    #root,
    .wrap,
    .top {
      background: #07090d !important;
      color: #f7f1e7 !important;
    }

    .bg-white,
    .bg-gray-50,
    .bg-gray-100,
    .bg-slate-50,
    .bg-blue-50,
    .bg-amber-50,
    .bg-emerald-50,
    .card,
    .panel,
    .rounded,
    .rounded-xl,
    .rounded-2xl,
    .rounded-3xl {
      background-color: rgba(18, 23, 31, 0.96) !important;
      color: #f7f1e7 !important;
      border-color: rgba(215, 197, 160, 0.24) !important;
    }

    .text-gray-400,
    .text-gray-500,
    .text-gray-600,
    .text-gray-700,
    .text-gray-800,
    .text-slate-400,
    .text-slate-500,
    .text-slate-600,
    .text-slate-700,
    .text-blue-600,
    .text-blue-700,
    .text-amber-700,
    .text-amber-800,
    .text-amber-900 {
      color: rgba(247, 241, 231, 0.76) !important;
    }

    label,
    small,
    .hint,
    .muted,
    .note {
      color: rgba(247, 241, 231, 0.72) !important;
    }

    input,
    select,
    textarea {
      background: #0b1118 !important;
      color: #f7f1e7 !important;
      border-color: rgba(215, 197, 160, 0.3) !important;
    }

    input::placeholder,
    textarea::placeholder {
      color: rgba(247, 241, 231, 0.45) !important;
    }

    option {
      background: #ffffff;
      color: #111111;
    }

    input[name="uiMode"],
    label[for="modeClient"],
    label[for="modeManager"],
    #modeClient,
    #modeManager,
    #managerCard,
    #managerBreakdown,
    [data-manager-only="true"] {
      display: none !important;
    }
  
#root .grid > *, #root .flex > * { min-width: 0; }
#root select, #root input { max-width: 100%; }
#root h1, #root h2 { overflow-wrap: anywhere; }
