:root{--navy: #1d3557;--navy-deep: #0f1b2d;--teal: #2a9d8f;--amber: #f4a261;--red: #e76f51;--red-deep: #b00020;--bg: #f4f6f9;--card: #ffffff;--ink: #1b1f27;--muted: #5e6672;--line: #e1e5ea;--radius: 14px;--tap: 52px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px)}@media(prefers-color-scheme:dark){:root{--bg: #0f1b2d;--card: #182740;--ink: #eef2f7;--muted: #a3adbb;--line: #253a5a}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Arial,sans-serif;font-size:17px;line-height:1.4;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;overscroll-behavior:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}a{color:var(--teal)}.app{min-height:100%;display:flex;flex-direction:column}.topbar{background:var(--navy);color:#fff;padding:calc(var(--safe-top) + 10px) 16px 12px;display:flex;align-items:center;gap:12px;position:sticky;top:0;z-index:10}.topbar h1{font-size:18px;margin:0;font-weight:700;flex:1;letter-spacing:.2px}.topbar h1 .co{margin-left:10px;font-size:11px;font-weight:800;letter-spacing:1.5px;padding:3px 8px;border-radius:6px;background:var(--amber);color:var(--navy-deep);vertical-align:middle}.topbar h1 .co-logo{display:inline-flex;align-items:center;margin-left:10px;background:#fff;border-radius:6px;padding:3px 7px;vertical-align:middle}.topbar h1 .co-logo img{height:14px;display:block}.auth .brand-logo{display:block;width:180px;margin:0 auto 18px}.co-line{font-size:12px;letter-spacing:2px;font-weight:800;color:var(--amber);text-transform:uppercase}.topbar .back{background:#ffffff1f;border:0;color:#fff;font-size:22px;line-height:1;padding:6px 12px 6px 8px;border-radius:10px;display:inline-flex;align-items:center;gap:4px;min-height:40px}.topbar .back .back-label{font-size:15px;font-weight:700}.topbar .org{display:inline-block;margin-left:10px;padding:2px 8px;border-radius:6px;background:var(--amber);color:#1d3557;font-size:12px;font-weight:800;letter-spacing:.8px;vertical-align:middle}.org-line{color:var(--amber);font-weight:800;letter-spacing:1.5px;font-size:13px;text-align:center;margin:0 0 2px}.status-dot{width:10px;height:10px;border-radius:50%;background:var(--teal)}.status-dot.off{background:var(--amber)}.pill{font-size:12px;padding:3px 9px;border-radius:999px;background:#ffffff26}.content{padding:16px;padding-bottom:calc(var(--safe-bottom) + 96px);flex:1;max-width:680px;width:100%;margin:0 auto}.card{background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:0 1px 2px #0000000f;margin-bottom:14px}.card h2{margin:0 0 10px;font-size:16px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.6px}.muted{color:var(--muted)}.small{font-size:14px}.row{display:flex;align-items:center;gap:12px}.grow{flex:1}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap);padding:0 20px;border-radius:12px;border:0;font-weight:700;font-size:17px;background:var(--navy);color:#fff;width:100%}.btn.secondary{background:transparent;color:var(--navy);border:2px solid var(--line)}@media(prefers-color-scheme:dark){.btn.secondary{color:#fff}}.btn.teal{background:var(--teal)}.btn.red{background:var(--red-deep)}.btn:disabled{opacity:.45}.btn.sm{min-height:40px;font-size:15px;padding:0 14px;width:auto}.field{margin-bottom:18px}.field label.q{display:block;font-weight:600;margin-bottom:8px}.field .req{color:var(--red);margin-left:4px}.input{width:100%;min-height:var(--tap);padding:12px 14px;border-radius:12px;border:2px solid var(--line);background:var(--card);outline:none}.input:focus{border-color:var(--teal)}textarea.input{min-height:96px;resize:vertical}.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.seg button{min-height:var(--tap);border-radius:12px;border:2px solid var(--line);background:var(--card);font-weight:700}.seg button.on{border-color:var(--navy);background:var(--navy);color:#fff}.seg button.on.yes{border-color:var(--teal);background:var(--teal)}.seg button.on.no{border-color:var(--red-deep);background:var(--red-deep)}.chips{display:flex;flex-wrap:wrap;gap:8px}.chips button{min-height:44px;padding:0 14px;border-radius:999px;border:2px solid var(--line);background:var(--card);font-weight:600;font-size:15px}.chips button.on{border-color:var(--navy);background:var(--navy);color:#fff}.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}.photos .thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:var(--line)}.photos .thumb img{width:100%;height:100%;object-fit:cover}.photos .thumb .x{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:#000000a6;color:#fff;font-weight:700}.photos .add{aspect-ratio:1;border-radius:10px;border:2px dashed var(--line);background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:13px;color:var(--muted)}.photos .add span{font-size:28px;line-height:1}.matrix{display:grid;grid-template-columns:auto repeat(5,1fr);gap:4px;font-size:11px}.matrix .hd{text-align:center;color:var(--muted);padding:2px;align-self:end}.matrix .rl{color:var(--muted);padding-right:6px;align-self:center;text-align:right}.matrix button{aspect-ratio:1;border-radius:6px;border:2px solid transparent;font-weight:700;color:#fff;font-size:12px}.matrix button.on{border-color:var(--ink);transform:scale(1.08)}.section-title{font-size:14px;font-weight:700;color:var(--teal);text-transform:uppercase;letter-spacing:.8px;margin:22px 0 10px}.flagbox{background:#fdecec;border-left:4px solid var(--red-deep);padding:10px 12px;border-radius:8px;margin-top:10px;color:#4a0e14}@media(prefers-color-scheme:dark){.flagbox{background:#3a1a1f;color:#ffd9dc}}.header-card{background:var(--navy);color:#fff}.header-card .kv{display:grid;grid-template-columns:110px 1fr;gap:6px 10px;font-size:15px}.header-card .kv .k{opacity:.7}.header-card .kv .v{font-weight:600}.header-card select{background:#ffffff1f;border:2px solid rgba(255,255,255,.25);color:#fff}.header-card option{color:#000}.ring-wrap{display:flex;align-items:center;gap:18px}.ring{width:110px;height:110px;flex:none}.ring .bg{stroke:var(--line)}.ring .fg{transition:stroke-dashoffset .6s ease}.ring text{fill:var(--ink);font-weight:800}.big{font-size:34px;font-weight:800;line-height:1}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tile{border:0;border-radius:var(--radius);padding:18px 14px;min-height:112px;color:#fff;text-align:left;display:flex;flex-direction:column;justify-content:space-between;font-weight:700;font-size:17px;box-shadow:0 2px 6px #0000001f}.tile .ic{font-size:28px}.list .item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.list .item:last-child{border-bottom:0}.badge{font-size:12px;font-weight:700;padding:3px 8px;border-radius:6px;color:#fff}.badge.sent{background:var(--teal)}.badge.submitted{background:var(--amber)}.badge.send_failed{background:var(--red-deep)}.badge.draft{background:var(--muted)}.badge.queued{background:var(--navy)}.footer{position:fixed;left:0;right:0;bottom:0;padding:12px 16px calc(var(--safe-bottom) + 12px);background:var(--card);border-top:1px solid var(--line);z-index:10}.footer .inner{max-width:680px;margin:0 auto;display:flex;gap:10px}.toast{position:fixed;left:16px;right:16px;bottom:calc(var(--safe-bottom) + 90px);z-index:20;background:var(--ink);color:var(--bg);padding:12px 16px;border-radius:12px;font-weight:600;text-align:center}.center{text-align:center}.success{padding:48px 20px;text-align:center}.success .tick{width:96px;height:96px;border-radius:50%;background:var(--teal);color:#fff;font-size:56px;display:flex;align-items:center;justify-content:center;margin:0 auto 20px}.err{color:var(--red-deep);font-weight:600}.auth{max-width:420px;margin:10vh auto}.logo{width:72px;height:72px;margin:0 auto 12px;display:block}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.stat{background:#ffffff1a;border-radius:10px;padding:10px 6px;text-align:center}.stat .n{font-size:26px;font-weight:800;line-height:1;color:#fff}.stat .l{font-size:11px;opacity:.8;margin-top:4px;text-transform:uppercase;letter-spacing:.5px}.bar{height:8px;border-radius:999px;background:var(--line);overflow:hidden;margin-top:6px}.bar>div{height:100%;border-radius:999px;transition:width .4s}.strip{display:flex;gap:3px}.strip span{width:14px;height:14px;border-radius:3px;display:inline-block}.tdot{width:12px;height:12px;border-radius:50%;flex:none}.badge.prio-critical{background:var(--red-deep)}.badge.prio-high{background:var(--red)}.badge.prio-medium{background:var(--amber);color:var(--navy-deep)}.badge.prio-low{background:var(--muted)}.tabs{display:flex;gap:6px;margin-bottom:12px}.tabs button{flex:1;min-height:44px;border-radius:10px;border:2px solid var(--line);background:var(--card);font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.tabs button.on{border-color:var(--navy);color:var(--navy)}@media(prefers-color-scheme:dark){.tabs button.on{color:#fff;border-color:#fff}}.tabs .count{color:#fff;font-size:11px;min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:4px}.quick button{min-height:52px;border-radius:12px;border:2px solid var(--line);background:var(--card);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;gap:8px}.quick button .n{background:var(--red-deep);color:#fff;font-size:12px;min-width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
