/* MSIS_FRONT_UI_ACCESS_CONTROL_V1_3_0 */
:root{--bg:#f6f7fb;--surface:#fff;--surface-2:#f8fafc;--text:#0f172a;--muted:#64748b;--line:#e5e7eb;--primary:#0B1F3A;--primary-2:#12345A;--success:#047857;--warning:#b45309;--danger:#b91c1c;--shadow:0 10px 30px rgba(11,31,58,.09);--radius:18px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}.splash{min-height:100vh;display:grid;place-content:center;gap:10px;text-align:center;padding:24px}.splash-logo{width:72px;height:72px;display:grid;place-items:center;margin:0 auto 8px;border-radius:22px;background:var(--primary);color:white;font-weight:900;letter-spacing:.08em}.splash-title{font-size:20px;font-weight:850}.splash-subtitle{color:var(--muted)}
.app-shell{max-width:720px;min-height:100vh;margin:0 auto;padding-bottom:82px;background:var(--bg)}.topbar{position:sticky;top:0;z-index:20;padding:14px 16px 12px;background:linear-gradient(180deg,#fff 0%,rgba(255,255,255,.94) 100%);border-bottom:1px solid rgba(229,231,235,.78);backdrop-filter:blur(12px)}.topbar-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-logo{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;border-radius:14px;background:var(--primary);color:#fff;font-size:13px;font-weight:900;letter-spacing:.08em}.brand-title{font-weight:850;font-size:16px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-subtitle{margin-top:3px;color:var(--muted);font-size:12px}.user-pill{flex:0 0 auto;text-align:right;padding:8px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:12px;line-height:1.15;max-width:142px}.user-pill b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-pill span{color:var(--muted)}
.main{padding:16px}.hero{padding:18px;border-radius:24px;background:linear-gradient(135deg,#0B1F3A 0%,#12345A 100%);color:#fff;box-shadow:var(--shadow)}.hero-kicker{opacity:.72;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.hero-title{margin-top:8px;font-size:24px;line-height:1.15;font-weight:900}.hero-subtitle{margin-top:8px;opacity:.82;font-size:13px;line-height:1.45}.alert{margin:12px 0;padding:12px 14px;border-radius:16px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;font-size:13px}.alert.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.alert.warning{background:#fffbeb;color:#92400e;border-color:#fde68a}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:20px 0 10px}.section-title{font-weight:850;font-size:16px}.section-note{font-size:12px;color:var(--muted)}.grid{display:grid;gap:12px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:15px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);border:1px solid rgba(229,231,235,.75)}.stat-value{font-size:24px;font-weight:900;letter-spacing:-.03em}.stat-label{margin-top:4px;color:var(--muted);font-size:12px}.card,.item{padding:16px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);border:1px solid rgba(229,231,235,.78)}.card+.card,.item+.item{margin-top:12px}.stack{display:grid;gap:10px}.row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.item-title{font-weight:800;line-height:1.25}.muted{color:var(--muted);font-size:13px;line-height:1.4}.kv{display:grid;grid-template-columns:94px 1fr;gap:6px 10px;font-size:13px}
.badge{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.badge.info{background:#eff6ff;color:#1d4ed8}.badge.success{background:#ecfdf5;color:#047857}.badge.warning{background:#fffbeb;color:#b45309}.badge.danger{background:#fef2f2;color:#b91c1c}label{font-size:12px;color:var(--muted);font-weight:700}input,select,textarea{width:100%;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:14px;padding:12px 13px;outline:none}textarea{min-height:82px;resize:vertical}.btn{border:0;border-radius:15px;padding:13px 14px;background:var(--primary);color:#fff;font-weight:850;cursor:pointer}.btn.secondary{background:#e5e7eb;color:#111827}.btn.success{background:var(--success)}.btn.full{width:100%}.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tabs{position:fixed;left:50%;bottom:0;z-index:30;transform:translateX(-50%);width:100%;max-width:720px;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(16px)}.tab{border:0;border-radius:14px;padding:9px 4px;background:transparent;color:var(--muted);font-size:12px;font-weight:750}.tab.active{background:var(--primary);color:#fff}.empty{padding:22px 16px;text-align:center;color:var(--muted);background:var(--surface);border-radius:var(--radius);border:1px dashed #cbd5e1}.dev-switch{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.access-denied{min-height:calc(100vh - 32px);display:grid;place-content:center;padding:20px}.access-card{padding:22px;border-radius:24px;background:#fff;box-shadow:var(--shadow);border:1px solid var(--line)}.codebox{margin-top:12px;padding:12px;border-radius:14px;background:#f8fafc;border:1px solid var(--line);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:13px;white-space:pre-wrap}.hidden{display:none!important}@media(max-width:380px){.main{padding:12px}.hero-title{font-size:21px}.stat{padding:13px}.stat-value{font-size:21px}.tab{font-size:11px}}
/* MSIS_FRONT_FULL_UI_STYLE_PATCH_V1_3_3 */
.form-label {
  display:block;
  margin:12px 0 6px;
  font-size:12px;
  font-weight:700;
  color:#334155;
}
.input, select.input, textarea.input {
  width:100%;
  box-sizing:border-box;
  border:1px solid #dbe3ef;
  border-radius:14px;
  padding:12px 12px;
  font-size:14px;
  background:#fff;
  color:#0f172a;
}
textarea.input { min-height:88px; resize:vertical; }
.btn.full { width:100%; }
.kv {
  display:grid;
  grid-template-columns:120px 1fr;
  gap:8px 12px;
  font-size:13px;
}
