*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f7fb;color:#172b3f}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{min-height:100vh}.topbar{height:72px;background:#173b63;color:#fff;display:flex;align-items:center;padding:0 28px;gap:16px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:11px;background:#fff;color:#173b63;font-weight:900;display:grid;place-items:center}.brand strong{display:block;font-size:18px}.brand small{opacity:.72}.network{margin-left:auto;display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.22);padding:7px 12px;border-radius:999px;font-size:14px}.network.offline{background:#ffffff14}.layout{display:flex;min-height:calc(100vh - 72px)}.sidebar{width:240px;background:#fff;border-right:1px solid #dce5ef;padding:22px 14px;display:flex;flex-direction:column}.sidebar nav{display:grid;gap:6px}.sidebar button{border:0;background:transparent;text-align:left;padding:12px 14px;border-radius:10px;color:#51667b;display:flex;align-items:center;gap:11px}.sidebar button:hover,.sidebar button.active{background:#eaf1f8;color:#173b63;font-weight:700}.sidebar-bottom{margin-top:auto;border-top:1px solid #e4eaf1;padding:18px 8px 0}.sync-mini{display:flex;gap:8px;align-items:center;font-size:13px;margin-bottom:10px;color:#61758a}.sync-btn{width:100%;justify-content:center!important;background:#173b63!important;color:#fff!important}.main{flex:1;padding:30px;max-width:1400px;margin:auto;width:100%}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.page-title h1{margin:0 0 5px;font-size:30px}.page-title p{margin:0;color:#708398}.primary,.secondary,.link-btn,.table-btn{border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;font-weight:700}.primary{background:#173b63;color:#fff}.secondary{background:#eaf0f6;color:#244563}.link-btn{background:transparent;color:#1b5b8f;padding:5px}.card{background:#fff;border:1px solid #dfe7ef;border-radius:14px;box-shadow:0 2px 8px #1f34490a}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat{padding:18px;display:flex;gap:14px;align-items:center}.stat-icon{width:42px;height:42px;border-radius:10px;background:#edf4fa;color:#1b5b8f;display:grid;place-items:center}.stat span{display:block;color:#74869a;font-size:13px}.stat strong{font-size:25px}.card-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #e6ebf0}.card-head h2,.form h2,.architecture h2{margin:0;font-size:18px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 20px;border-bottom:1px solid #edf1f5;font-size:14px;white-space:nowrap}th{font-size:12px;text-transform:uppercase;color:#7b8da0;background:#fafcfe}.table-btn{padding:7px;background:#eef3f7;margin-right:5px}.table-btn.danger{color:#b34242}.badge{font-size:12px;font-weight:700;border-radius:999px;padding:5px 9px}.badge.pending{background:#fff2d7;color:#956000}.badge.synced{background:#e4f5eb;color:#267149}.empty{text-align:center;padding:50px;color:#7b8da0}.empty h3{margin-bottom:4px;color:#344c63}.offline-banner{margin-top:18px;padding:16px 18px;background:#edf4fa;border:1px solid #d5e4f1;border-radius:12px;display:flex;gap:12px;align-items:flex-start;color:#244563}.offline-banner p{margin:4px 0 0;color:#657a8e}.toast{position:fixed;right:24px;top:88px;z-index:50;background:#173b63;color:#fff;border-radius:10px;padding:12px 14px;box-shadow:0 10px 30px #0000002e;display:flex;gap:15px;align-items:center}.toast button{border:0;background:transparent;color:#fff}.form{padding:22px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}label{display:grid;gap:7px;color:#4d6378;font-weight:700;font-size:14px;margin-bottom:18px}input,select,textarea{width:100%;border:1px solid #ced9e4;border-radius:9px;padding:11px 12px;background:#fff;color:#1d3348;outline:none}input:focus,select:focus,textarea:focus{border-color:#467ca9;box-shadow:0 0 0 3px #467ca91a}.inspection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0 24px}.inspection-item{border:1px solid #e0e7ee;border-radius:10px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.inspection-item span{font-weight:700;font-size:14px}.inspection-item select{width:130px;padding:8px}.photo-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.photo-head h2{margin-bottom:4px}.photo-head p{margin:0;color:#7b8da0;font-size:13px}.photos{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.photos img{width:130px;height:95px;object-fit:cover;border-radius:9px;border:1px solid #d8e1ea}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #e5ebf0;padding-top:18px;margin-top:10px}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.setting{padding:22px}.setting-icon{width:44px;height:44px;border-radius:11px;background:#edf4fa;display:grid;place-items:center;color:#1b5b8f;margin-bottom:12px}.setting h3{margin:0 0 5px}.setting strong{font-size:22px}.setting p{color:#6d8094;line-height:1.5;min-height:50px}.full{width:100%;margin-top:10px}.architecture{margin-top:18px;padding:22px}.flow{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:20px}.flow span{padding:12px 16px;border:1px solid #d5e1eb;border-radius:10px;background:#f8fafc;font-weight:700}.flow b{color:#7c90a4}.mobile-only{display:none;background:transparent;color:#fff;border:0}.icon-btn{padding:7px}.mobile-only svg{width:22px;height:22px}@media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}.inspection-grid,.settings-grid,.form-grid{grid-template-columns:1fr 1fr}.sidebar{position:fixed;left:-250px;top:72px;bottom:0;z-index:15;transition:left .2s}.sidebar.open{left:0}.mobile-only{display:block}.main{padding:20px}.topbar{padding:0 16px}}@media(max-width:600px){.stats,.inspection-grid,.settings-grid,.form-grid{grid-template-columns:1fr}.page-title{align-items:flex-start;flex-direction:column}.primary{width:100%}.network{font-size:12px}.brand small{display:none}.main,.form{padding:15px}.flow{justify-content:flex-start}.flow b{display:none}th,td{padding:12px}.toast{left:15px;right:15px;top:82px}.photo-head{align-items:flex-start;flex-direction:column}}
