:root{--navy:#092d43;--navy2:#124962;--blue:#136d9e;--light:#eff6fa;--ink:#203a4a;--muted:#697e89;--border:#d9e5ec;--green:#19845e;--red:#bd4848;--shadow:0 8px 30px rgba(15,51,70,.09)}*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:#edf3f7;color:var(--ink)}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.46;cursor:not-allowed}a{color:#0d6793}.app-shell{max-width:820px;min-height:100vh;margin:auto;background:#f8fbfd;box-shadow:0 2px 35px rgba(21,52,67,.08)}.topbar{background:var(--navy);color:white;display:flex;align-items:center;justify-content:space-between;padding:16px 19px;gap:12px}.brand{display:flex;align-items:center;gap:11px}.brand img{border-radius:13px}.brand strong{display:block;letter-spacing:.4px;font-size:16px}.brand small{display:block;color:#bcd2df;font-size:11px;margin-top:2px}.icon-btn{background:rgba(255,255,255,.11);color:inherit;border:0;border-radius:12px;padding:9px 12px;font-size:19px}.meta{display:flex;justify-content:space-between;align-items:center;background:#e5f0f5;padding:9px 19px;gap:7px;flex-wrap:wrap}.pill{background:#d9e9e6;border-radius:99px;color:#246958;padding:4px 10px;font-size:10px;font-weight:800;letter-spacing:1px;display:inline-flex;align-items:center;gap:6px}.pill i{height:7px;width:7px;border-radius:50%;background:#2d956f}.connection{font-size:11px;color:var(--muted)}.connection.online{color:var(--green);font-weight:700}main{padding:17px 18px 38px}.notice{display:flex;align-items:center;justify-content:space-between;gap:14px}.notice p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.notice b{font-size:14px}.panel{background:white;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:18px;padding:18px;margin-bottom:16px}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0 21px}.tab{border:0;border-radius:13px;background:#e7eff4;color:#355a70;font-weight:800;padding:13px 6px;font-size:13px}.tab.active{background:var(--blue);color:white;box-shadow:0 4px 12px #136d9e33}.section-heading h1{font-size:24px;letter-spacing:-.7px;margin:0 0 7px;color:var(--navy)}.section-heading p{color:var(--muted);font-size:13px;line-height:1.55;margin:0 0 18px}.btn{border-radius:12px;min-height:43px;border:1px solid transparent;padding:10px 14px;font-weight:750;font-size:13px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:7px}.btn.primary{color:white;background:var(--blue)}.btn.primary:hover{background:#0b5d8b}.btn.secondary{color:#275871;background:#eef5f9;border-color:#dfedf2}.btn.danger{background:#fff1f1;color:#a92b37;border-color:#f1c8ce}.btn.wide{width:100%;min-height:49px}.btn.mini{min-height:33px;font-size:11px;padding:6px 10px}.small{font-size:12px;line-height:1.4}.muted{color:var(--muted)}.top-space{margin-top:10px}.field-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:9px;margin:16px 0}.field-grid label,.field-title{display:block;font-size:12px;font-weight:750;color:#36566a}.field-grid input,.field-grid select,.field-title input{margin-top:7px;width:100%;border:1px solid #cbdce6;padding:10px 11px;border-radius:11px;min-height:44px;background:white;color:var(--ink)}.field-title{margin-bottom:11px}.confirm{display:flex;gap:10px;align-items:flex-start;line-height:1.4;font-size:12px;margin:13px 0;color:#344f5d}.confirm input{width:17px;height:17px;flex-shrink:0;accent-color:var(--blue)}.chosen-grid{display:flex;flex-direction:column;gap:11px;margin-top:13px}.chosen-item{display:grid;grid-template-columns:74px minmax(0,1fr) 33px;gap:10px;border:1px solid var(--border);border-radius:12px;padding:8px;background:#fbfdfe}.chosen-item img{width:74px;height:79px;border-radius:8px;object-fit:cover;background:#e2ecf0}.chosen-text{min-width:0}.chosen-text strong{font-size:12px;overflow-wrap:anywhere;display:block}.chosen-text small{font-size:11px;color:var(--muted);display:block}.chosen-text input{font-size:12px;padding:7px 8px;border-radius:8px;border:1px solid #cbdce6;width:100%;margin-top:5px;background:white}.chosen-text .warning{color:#b2741a}.remove-chosen{height:32px;width:32px;border-radius:8px;border:0;background:#fff0f0;color:var(--red);font-size:21px}.progress-row{display:flex;align-items:center;gap:8px;margin-top:12px}.progress-row progress{width:100%;height:12px;accent-color:var(--blue)}.progress-row span{font-size:11px;color:var(--muted);white-space:nowrap}.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-card{background:white;border:1px solid var(--border);border-radius:15px;overflow:hidden;box-shadow:0 3px 12px #12333f0d}.photo-card .photo-tile{height:160px;width:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(130deg,#dbeaf2,#f5f9fb);color:#7592a1;border:0;position:relative}.photo-card .photo-tile img{height:100%;width:100%;object-fit:cover;position:absolute;inset:0}.photo-card .photo-tile .load-label{font-size:12px}.photo-body{padding:11px}.photo-body strong{font-size:12px;overflow-wrap:anywhere;display:block;min-height:28px}.photo-meta{font-size:10px;color:var(--muted);margin:5px 0 10px}.photo-body .date-row{display:grid;grid-template-columns:1fr auto;gap:6px}.photo-body input{min-width:0;border:1px solid #d0e0e8;border-radius:8px;padding:7px;font-size:12px}.photo-body .action-row{display:flex;gap:6px;margin-top:8px}.photo-body .btn{font-size:10px;min-height:34px;padding:7px;flex:1}.pages{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:12px}.pages span{font-size:11px;color:var(--muted)}.status{min-height:0;font-size:12px;padding:0 4px;line-height:1.5}.status.visible{margin-top:12px;padding:11px;border-radius:9px;background:#e9f3f9;color:#18587e;white-space:pre-line}.status.err{background:#fff2f0;color:#a23c34}footer{text-align:center;color:#94a9b5;padding:15px 19px 31px;font-size:10px}.dialog{border:0;border-radius:18px;max-width:min(94vw,490px);padding:20px;box-shadow:0 20px 70px #122e46aa}.dialog::backdrop{background:#0b253b99}.dialog h2{margin-top:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}.photo-dialog{max-width:min(96vw,730px);width:96vw;max-height:88vh}.photo-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.photo-dialog-head strong{font-size:13px;word-break:break-word}.photo-dialog-head .icon-btn{color:#28516a;background:#edf4f8}.photo-dialog img{width:100%;max-height:65vh;object-fit:contain;background:#edf3f7;margin:12px 0;border-radius:10px}.photo-dialog .btn{width:100%;margin-top:9px}.install-tip{position:fixed;bottom:10px;left:50%;transform:translateX(-50%);max-width:610px;width:calc(100% - 20px);box-shadow:0 7px 30px #112d4799;border-radius:14px;background:var(--navy);color:white;padding:11px;display:flex;gap:10px;align-items:center;z-index:4}.install-tip[hidden]{display:none}.install-tip span{font-size:12px;flex:1}.dismiss{color:white;background:transparent;border:0;font-size:21px}@media(min-width:700px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.chosen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.notice p{max-width:410px}}@media(max-width:470px){main{padding:13px}.topbar{padding:14px}.brand strong{font-size:14px}.brand small{font-size:10px}.notice{display:block}.notice .btn{margin-top:10px;width:100%}.panel{padding:14px}.field-grid{grid-template-columns:1fr 1fr}.field-grid label:first-child{grid-column:1/-1}.section-heading h1{font-size:22px}.photo-card .photo-tile{height:145px}.photo-body .action-row{flex-direction:column}.photo-body .action-row .btn{width:100%}}

[hidden]{display:none!important}
