:root{--ink: #1b2430;--muted: #5c6b78;--line: #e6dfd4;--paper: #fffdf8;--bg: #f3efe6;--brand: #0e6b62;--brand-deep: #0a4f49;--inpatient: #9a3412;--danger: #b42318;--warn: #b54708;--ok: #067647;--blue: #1456c8;--blue-soft: #e8f1ff;--admin-bg: #f4f6f9;--space: 16px;--page: 24px;--shadow: 0 12px 32px rgba(70, 48, 24, .08);font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:var(--ink);line-height:1.5}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%}body{background:#e7e0d4}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}img{max-width:100%;display:block}a{color:inherit}.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px 16px;background:radial-gradient(circle at 20% 10%,rgba(14,107,98,.16),transparent 32%),linear-gradient(180deg,#f7f3ea,#e7e0d4)}.login-card{width:min(420px,100%);background:var(--paper);border-radius:24px;padding:28px 22px 22px;box-shadow:var(--shadow)}.seal{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:var(--brand);color:#f4efe4;font-size:30px;font-weight:700;letter-spacing:0}.login-card h1{margin:16px 0 4px;font-size:28px}.sub{color:var(--muted);margin:0 0 20px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:var(--space)}.field span,.label-row{font-size:14px;color:var(--muted)}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;min-height:48px;font-size:16px}.field textarea{min-height:88px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.btn{border:0;border-radius:12px;min-height:48px;padding:0 16px;background:var(--brand);color:#fff;font-weight:650}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.secondary{background:#efeae2;color:var(--ink)}.btn.ghost{background:transparent;color:var(--brand-deep);border:1px solid var(--line)}.btn.warn{background:var(--inpatient)}.btn.full{width:100%}.btn-row{display:flex;gap:var(--space)}.btn-row .btn{flex:1}.btn-row.form-actions .btn{flex:0 0 auto}.banner{background:#fff4f2;color:var(--danger);border-radius:12px;padding:12px 16px;margin:0 0 var(--space)}.banner.ok{background:#ecfdf3;color:var(--ok)}.banner.warn{background:#fff7ed;color:var(--warn)}.phone-app{width:min(520px,100%);min-height:100dvh;margin:0 auto;background:var(--bg);position:relative}.phone-main{padding:16px 16px calc(28px + env(safe-area-inset-bottom))}.photo-add{display:grid;place-items:center;min-height:160px;margin:8px 0 12px}.plus{width:96px;height:96px;border-radius:24px;border:2px dashed var(--brand);background:var(--paper);color:var(--brand);font-size:48px;line-height:1}.trace-link{display:block;text-align:center;margin:18px 0 8px;color:var(--brand-deep);font-weight:700}.field input[readonly]{background:#f6f3ec}.tabbar{position:fixed;left:50%;transform:translate(-50%);width:min(520px,100%);bottom:0;display:grid;grid-template-columns:repeat(3,1fr);background:#fffdf8f0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:5}.tabbar a{text-decoration:none;text-align:center;padding:10px 0 12px;color:var(--muted);font-size:13px;min-height:56px}.tabbar a.active{color:var(--brand);font-weight:700}.tabbar small{display:block;font-size:18px;line-height:1.1}.hello{margin:4px 0;font-size:26px}.campus-line{color:var(--muted);margin-bottom:16px}.type-grid{display:grid;gap:12px}.type-card{display:block;text-decoration:none;background:var(--paper);border-radius:18px;padding:18px;box-shadow:var(--shadow);border-left:6px solid var(--brand)}.type-card.inpatient{border-left-color:var(--inpatient)}.type-card strong{display:block;font-size:20px}.type-card span{color:var(--muted)}.section-title{margin:22px 0 10px;font-size:16px}.record-list{display:grid;gap:10px}.record{display:block;text-decoration:none;background:var(--paper);border-radius:16px;padding:14px}.record-top,.split{display:flex;justify-content:space-between;gap:8px;align-items:center}.muted{color:var(--muted)}.small{font-size:13px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;font-size:12px;background:#efeae2;white-space:nowrap}.pill.saved{background:#eef2ff;color:#3538cd}.pill.pushed{background:#ecfdf3;color:var(--ok)}.pill.push_failed,.pill.failed{background:#fff4f2;color:var(--danger)}.pill.outpatient{background:#e7f5f3;color:var(--brand-deep)}.pill.inpatient{background:#ffefe6;color:var(--inpatient)}.pill.skipped{background:#f2f4f7;color:#475467}.pill.sent,.pill.success,.pill.active{background:#ecfdf3;color:var(--ok)}.pill.disabled{background:#f2f4f7;color:#667085}.segment{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 16px}.segment button{min-height:48px;border-radius:14px;border:1px solid var(--line);background:#fff}.segment button.on.out{background:var(--brand);color:#fff;border-color:var(--brand)}.segment button.on.in{background:var(--inpatient);color:#fff;border-color:var(--inpatient)}.preview{margin-top:12px;background:var(--paper);border-radius:16px;overflow:hidden}.preview img{width:100%;max-height:360px;object-fit:contain;background:#1b2430}.hint{color:var(--muted);font-size:14px;margin:8px 0}.wait-mask{margin-top:16px;background:var(--paper);border-radius:16px;padding:22px 16px;text-align:center}.filters{display:flex;gap:8px;margin-bottom:12px}.filters button{flex:1}.review-photo{border-radius:16px;overflow:hidden;background:#1b2430;margin-bottom:12px}.review-photo img{width:100%;max-height:280px;object-fit:contain;cursor:zoom-in}.paper-card{background:var(--paper);border-radius:16px;padding:12px;margin-bottom:12px}.notice-entry{display:flex;justify-content:space-between;align-items:center;width:100%;margin:4px 0 14px;padding:14px 16px;border:0;border-radius:16px;background:#b42318;color:#fff;text-align:left}.notice-entry strong{font-size:18px}.notice-entry span{font-size:14px;opacity:.92}.notice-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;background:#101216b8;display:grid;place-items:end center;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.notice-dialog{width:min(520px,100%);max-height:min(88dvh,760px);display:flex;flex-direction:column;background:var(--paper);border-radius:20px;padding:18px 16px 16px}.notice-dialog h2{margin:0 0 8px;font-size:22px;color:#b42318}.notice-scroll{overflow:auto;flex:1;margin-bottom:12px}.notice-box{background:#f6f3ec;border-radius:16px;padding:14px 14px 16px;margin:12px 0 16px;max-height:360px;overflow:auto}.notice-text{margin:0;white-space:pre-wrap;word-break:break-word;font:inherit;line-height:1.75;font-size:15px}.field textarea.notice-editor{width:100%;min-height:640px;resize:vertical;font:inherit;line-height:1.75;white-space:pre-wrap}.notice-split{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:var(--space);align-items:start}.notice-split>.card{margin-bottom:0}.phone-preview h2{margin:0 0 12px;font-size:16px}.phone-frame{width:100%;max-width:390px;height:760px;margin:0 auto;padding:12px;border-radius:36px;background:#1b2430;box-shadow:0 12px 32px #1018282e}.phone-screen{position:relative;height:100%;overflow:hidden;border-radius:26px;background:#f3efe6}.phone-title{padding:22px 16px 8px;font-size:22px;font-weight:720}.phone-shade{position:absolute;top:0;right:0;bottom:0;left:0;background:#101216b8;display:flex;align-items:flex-end;padding:12px}.phone-sheet{width:100%;height:86%;display:flex;flex-direction:column;background:#fffdf8;border-radius:20px;padding:16px 14px 14px}.phone-sheet h3{margin:0 0 8px;font-size:20px;color:#b42318}.phone-sheet-body{overflow:auto;flex:1;margin-bottom:12px}.phone-empty{margin:24px 16px;color:var(--muted)}@media(max-width:1100px){.notice-split{grid-template-columns:1fr}.notice-editor{min-height:360px}.phone-frame{height:680px}}.label-row{display:flex;justify-content:space-between}.tag-ok{color:var(--brand)}.tag-miss{color:var(--warn)}.review-bar{position:fixed;left:50%;transform:translate(-50%);width:min(520px,100%);bottom:calc(62px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1.3fr;gap:8px;padding:10px 12px;background:#fffdf8f5;border-top:1px solid var(--line);z-index:6}.phone-main.with-bar{padding-bottom:calc(160px + env(safe-area-inset-bottom))}.lightbox{position:fixed;top:0;right:0;bottom:0;left:0;background:#101216e0;display:grid;place-items:center;z-index:20;padding:16px}.lightbox img{max-height:90dvh;object-fit:contain}.detail-grid{display:grid;gap:8px}.detail-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.detail-row b{font-weight:600;text-align:right}.admin{min-height:100dvh;display:grid;grid-template-columns:220px 1fr;background:var(--admin-bg)}.sidebar{background:#fff;border-right:1px solid #e6eaf0;padding:18px 12px;position:sticky;top:0;height:100dvh}.brand{display:flex;gap:10px;align-items:center;padding:0 8px 16px}.brand .seal{width:40px;height:40px;border-radius:12px;font-size:20px}.brand strong{display:block}.brand span{color:var(--muted);font-size:12px}.sidebar a{display:flex;gap:8px;align-items:center;text-decoration:none;padding:10px 12px;border-radius:10px;color:#344054;margin-bottom:4px;min-height:44px}.sidebar a.active{background:var(--blue-soft);color:var(--blue);font-weight:650}.admin-main{padding:var(--page);min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:var(--space);margin-bottom:var(--page)}.topbar h1{margin:0;font-size:22px}.cluster{display:flex;gap:8px;align-items:center}.menu-btn{display:none}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--space);margin-bottom:var(--space)}.stat{background:#fff;border-radius:12px;padding:var(--page);box-shadow:0 1px 2px #1018280a}.stat .num{font-size:32px;font-weight:720;margin:4px 0}.card{background:#fff;border-radius:12px;padding:var(--page);margin-bottom:var(--space)}.card h2{margin:0 0 var(--space);font-size:16px}.card>.muted{display:block;margin:0 0 var(--space)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:12px 16px;border-bottom:1px solid #eef1f5;white-space:nowrap}th:first-child,td:first-child{padding-left:0}th:last-child,td:last-child{padding-right:0}th{color:var(--muted);font-weight:600}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f8fafc}.toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:var(--space)}.toolbar input,.toolbar select{min-height:40px;border:1px solid #e4e7ec;border-radius:10px;padding:0 10px;background:#fff;font-size:16px}.panel{border:1px solid #e6eaf0;border-radius:12px;padding:var(--space);margin-bottom:var(--space);background:#fbfcfe}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:var(--space);align-items:stretch;margin-bottom:var(--space)}.form-columns .panel{margin:0;padding:var(--page);height:100%}.form-columns .check{margin-bottom:var(--space)}.panel>.field:last-child,.form-columns .check:last-child{margin-bottom:0}.check{display:flex;align-items:center;gap:8px;min-height:44px}.pager{display:flex;gap:8px;align-items:center;margin-top:var(--space)}.backdrop{display:none}@media(max-width:959px){.admin{grid-template-columns:1fr}.sidebar{position:fixed;z-index:30;transform:translate(-105%);transition:transform .2s ease;width:min(280px,86vw)}.sidebar.open{transform:none}.menu-btn{display:inline-flex}.backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#10182859;z-index:20}.stat-grid,.form-columns{grid-template-columns:1fr}.admin-main{padding:var(--space)}}@media(min-width:800px){.review-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:12px;align-items:start}}
