:root { --ink:#172033; --muted:#667085; --line:rgba(217,226,236,.92); --paper:#fff; --soft:#f6f8fb; --brand:#1d4ed8; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; font-family:"Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--soft); }
a { color:var(--brand); }
.app-shell { max-width:1100px; margin:0 auto; padding:24px; }
.app-topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.app-brand { display:flex; align-items:center; gap:12px; }
.app-brand img { width:52px; height:52px; border-radius:10px; object-fit:cover; }
.app-brand h1 { margin:0; font-size:26px; }
.eyebrow { margin:0; text-transform:uppercase; letter-spacing:.08em; font-size:12px; font-weight:800; color:var(--muted); }
.subtle { color:var(--muted); font-size:14px; }
.panel, .form-card { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:20px; margin-bottom:16px; box-shadow:0 8px 24px rgba(9,21,43,.06); }
.form-card { border-top:4px solid var(--brand); }
.field { margin-bottom:14px; }
.field label { display:block; font-weight:700; margin-bottom:6px; font-size:14px; }
input[type=text], input[type=password], input[type=date], select, textarea { width:100%; max-width:520px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.btn { display:inline-flex; align-items:center; min-height:40px; padding:9px 14px; border-radius:8px; border:1px solid var(--line); background:#fff; color:var(--ink); text-decoration:none; font-weight:700; cursor:pointer; font-size:14px; }
.btn.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
.btn.secondary { background:var(--soft); }
.btn.small { min-height:32px; padding:5px 10px; font-size:13px; }
.btnrow { display:flex; gap:10px; flex-wrap:wrap; }
.btnrow.tight { gap:6px; flex-wrap:wrap; }
.notice { border-radius:8px; padding:12px 14px; font-weight:600; }
.notice.success { background:#dcfae6; color:#067647; }
.notice.error { background:#fee4e2; color:#b42318; }
table.list { width:100%; border-collapse:collapse; }
table.list th, table.list td { border-bottom:1px solid var(--line); padding:9px 10px; text-align:left; font-size:14px; vertical-align:middle; }
table.list th { background:var(--soft); font-size:13px; }
td.empty { color:#b42318; text-align:center; }
td.filled { color:#067647; text-align:center; font-weight:800; }
.mono { font-family:ui-monospace,Consolas,monospace; font-size:12px; color:var(--muted); }
.pill { border-radius:999px; padding:4px 10px; font-size:12px; font-weight:900; }
.pill.open { background:#dcfae6; color:#067647; }
.pill.closed { background:#fee4e2; color:#b42318; }
.small-input { max-width:180px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.topic { white-space:pre-wrap; }
.footer { margin-top:22px; color:var(--muted); font-size:13px; }
h2 { margin:0 0 6px; font-size:19px; }

/* --- glossy confirm + success (v2) --- */
.success-hero { position:relative; overflow:hidden; border-radius:16px; padding:44px 28px 36px; text-align:center; color:#fff; background:linear-gradient(135deg,#0f766e 0%,#1d4ed8 55%,#7c3aed 100%); box-shadow:0 18px 44px rgba(29,78,216,.35); margin-bottom:16px; }
.success-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(600px 200px at 18% 0%, rgba(255,255,255,.28), transparent 60%), radial-gradient(520px 240px at 92% 100%, rgba(255,255,255,.18), transparent 60%); pointer-events:none; }
.success-hero .shimmer { position:absolute; top:0; bottom:0; width:55%; background:linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 100%); animation:shine 3s ease-in-out infinite; pointer-events:none; }
.success-check { width:76px; height:76px; margin:0 auto 14px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:42px; font-weight:900; background:rgba(255,255,255,.22); border:2px solid rgba(255,255,255,.55); box-shadow:0 0 0 8px rgba(255,255,255,.08), inset 0 2px 10px rgba(255,255,255,.35); animation:pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.success-title { margin:0; font-size:26px; font-weight:800; text-shadow:0 2px 8px rgba(0,0,0,.25); }
.success-title-ar { margin:8px 0 0; font-size:24px; font-weight:700; text-shadow:0 2px 8px rgba(0,0,0,.25); }
.success-sub { margin:12px auto 0; max-width:600px; font-size:14px; opacity:.94; }
.success-actions { margin-top:22px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; position:relative; }
.btn.glossy { background:rgba(255,255,255,.96); color:#0f2a43; border:none; border-radius:999px; padding:11px 24px; min-height:46px; box-shadow:0 8px 18px rgba(0,0,0,.22), inset 0 1px 0 #fff; transition:transform .15s ease, box-shadow .15s ease; }
.btn.glossy:hover { transform:translateY(-1px); box-shadow:0 12px 24px rgba(0,0,0,.28), inset 0 1px 0 #fff; }
.btn.glossy-outline { background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.65); border-radius:999px; padding:11px 20px; min-height:46px; backdrop-filter:blur(6px); }
.btn.glossy-outline:hover { background:rgba(255,255,255,.24); }
@keyframes pop { 0% { transform:scale(.4); opacity:0; } 100% { transform:scale(1); opacity:1; } }
@keyframes shine { 0% { left:-60%; } 60%,100% { left:120%; } }
.review-card { border:1px dashed var(--line); border-radius:12px; background:linear-gradient(180deg,#ffffff, #f7fbff); padding:16px 18px; }
.review-label { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:800; margin:12px 0 2px; }
.review-label:first-child { margin-top:0; }
.review-value { font-size:15px; font-weight:700; margin:0; }
.review-topic { white-space:pre-wrap; background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px; margin-top:6px; max-height:260px; overflow:auto; font-size:14px; }
.edit-banner { border-radius:10px; padding:10px 12px; background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; font-weight:600; margin-bottom:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
