    :root { --bg:#f7f8fc; --surface:#fff; --border:#e6e9f0; --text:#0f172a; --muted:#64748b; --accent:#f59e0b; }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
    .layout { min-height: 100vh; display:grid; grid-template-columns:260px 1fr; transition:grid-template-columns .2s ease; }
    .layout.collapsed { grid-template-columns:72px 1fr; }
    .sidebar { background:var(--surface); border-right:1px solid var(--border); padding:12px 10px; overflow:hidden; }
    .brand { display:flex; align-items:center; justify-content:space-between; margin:0 4px 12px; }
    .brand-text { font-size:13px; font-weight:700; letter-spacing:.8px; color:#0b1324; }
    .toggle { border:1px solid #cbd5e1; background:#fff; border-radius:8px; width:30px; height:30px; cursor:pointer; }
    .section-title { margin:10px 6px 6px; font-size:11px; color:#6b7280; text-transform:uppercase; letter-spacing:.8px; }
    .menu-item { display:flex; align-items:center; gap:8px; text-decoration:none; color:#1f2937; padding:8px; border-radius:10px; border:1px solid transparent; font-size:13px; white-space:nowrap; }
    .menu-item:hover { background:#f8fafc; border-color:#dbe2ea; }
    .menu-item.active { background:#ecfdf5; border-color:#a7f3d0; color:#065f46; font-weight:600; }
    .icon { width:16px; height:16px; flex:0 0 16px; }
    .icon svg { width:100%; height:100%; stroke:currentColor; fill:none; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
    .layout.collapsed .brand-text, .layout.collapsed .section-title, .layout.collapsed .label { display:none; }
    .content { padding:12px; }
    .panel { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px; height:calc(100vh - 24px); display:flex; flex-direction:column; }
    .topbar { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; margin-bottom:10px; flex-wrap:wrap; }
    h1 { margin:0; font-size:22px; }
    .sub { margin:4px 0 0; color:var(--muted); font-size:13px; }
    .hint { margin:6px 0 0; color:var(--muted); font-size:12px; max-width:520px; line-height:1.4; }
    .hint a { color:#0369a1; }
    .actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
    .auto-sync { display:flex; align-items:center; gap:6px; font-size:13px; color:#334155; user-select:none; padding:6px 8px; border:1px solid var(--border); border-radius:8px; background:#fff; }
    .auto-sync input { margin:0; }
    .btn { border:1px solid #cbd5e1; background:#fff; border-radius:8px; padding:7px 10px; font-size:13px; cursor:pointer; }
    .btn.primary { background:var(--accent); border-color:#d97706; color:#fff; }
    .btn.danger { background:#ef4444; border-color:#dc2626; color:#fff; }
    .btn:disabled { opacity:.45; cursor:not-allowed; }
    .btn .btn-spinner {
      display:none; width:14px; height:14px; border:2px solid rgba(255,255,255,.35);
      border-top-color:#fff; border-radius:50%; margin-right:6px; vertical-align:-2px;
      animation: spin .7s linear infinite;
    }
    .btn.busy .btn-spinner { display:inline-block; }
    .btn.busy .btn-label-idle { display:none; }
    .btn .btn-label-busy { display:none; }
    .btn.busy .btn-label-busy { display:inline; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .form-group { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
    .form-group label { font-size:12px; font-weight:600; color:#334155; }
    .form-group input { border:1px solid #cbd5e1; border-radius:7px; padding:6px 8px; font-size:13px; color:var(--text); background:#fff; width:100%; }
    .table-wrap { flex:1; min-height:0; overflow:auto; border:1px solid var(--border); border-radius:10px; background:#fff; }
    table { width:100%; border-collapse:collapse; }
    th, td { border-bottom:1px solid var(--border); text-align:left; padding:8px 7px; font-size:13px; }
    th { color:#334155; background:#f8fafc; font-weight:600; }
    tr.selected td { background:#ecfdf5; }
    tr[data-id]:hover td { background:#f8fafc; cursor:pointer; }
    .overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:100; align-items:center; justify-content:center; }
    .overlay.open { display:flex; }
    .modal { background:var(--surface); border:1px solid var(--border); border-radius:14px; width:560px; max-width:96vw; max-height:90vh; display:flex; flex-direction:column; }
    .modal.wide { width:640px; }
    .modal-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--border); }
    .modal-head h2 { margin:0; font-size:16px; }
    .modal-close { background:none; border:none; font-size:20px; cursor:pointer; color:var(--muted); line-height:1; }
    .modal-body { padding:16px; overflow-y:auto; flex:1; }
    .modal-foot { padding:12px 16px; border-top:1px solid var(--border); display:flex; gap:8px; justify-content:flex-end; align-items:center; }
    .review-block { border:1px solid var(--border); border-radius:10px; padding:12px; margin-bottom:12px; background:#f8fafc; }
    .review-block h3 { margin:0 0 8px; font-size:14px; }
    .addr-option { display:flex; gap:8px; align-items:flex-start; padding:6px 0; font-size:13px; }
    .addr-option input { margin-top:3px; }
    .addr-label { line-height:1.35; }
    .addr-meta { color:var(--muted); font-size:12px; }
    .warn-box { background:#fff7ed; border:1px solid #fdba74; border-radius:10px; padding:12px; margin:0 0 12px; font-size:14px; line-height:1.45; color:#9a3412; }
    .modal-error { display:none; margin:0 0 10px; padding:8px 10px; border-radius:8px; background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; font-size:13px; }
    .modal-error.show { display:block; }
    .id-toggle {
      border:1px solid #cbd5e1; background:#fff; border-radius:6px; width:28px; height:26px;
      cursor:pointer; font-size:12px; line-height:1; color:#334155; padding:0;
    }
    .id-toggle:hover { background:#f8fafc; }
    .col-toggle { width:40px; text-align:center; }
    table.ids-collapsed .col-id { display:none; }
    .menu-sep { height:1px; background:#e5e7eb; margin:5px 8px; }
    @media (max-width:920px){ .layout,.layout.collapsed{grid-template-columns:1fr;} .sidebar{border-right:0;border-bottom:1px solid var(--border);} .panel{height:auto;} .layout.collapsed .brand-text,.layout.collapsed .section-title,.layout.collapsed .label{display:initial;} }
  
