:root { --blue:#173cc8; --navy:#082c67; --green:#39ad42; --ink:#101828; --muted:#667085; --line:#e6ebf4; --panel:rgba(255,255,255,.92); }
* { box-sizing:border-box; }
html,body,#app { min-height:100%; }
body { margin:0; color:var(--ink); background:#f4f7fc center/cover fixed; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
button,a { -webkit-tap-highlight-color:transparent; } button { font:inherit; }
.splash { min-height:100dvh; display:grid; place-content:center; gap:32px; padding:32px; background:#fff; }
.splash img { width:min(78vw,460px); height:auto; }
.splash-line { height:4px; border-radius:999px; background:linear-gradient(90deg,var(--blue),#6b8cff); animation:load 1s ease both; transform-origin:left; }
@keyframes load { from { transform:scaleX(0); opacity:.3; } to { transform:scaleX(1); opacity:1; } }
.login-screen { min-height:100dvh; display:grid; place-items:center; padding:24px; background:rgba(244,247,252,.78); backdrop-filter:blur(10px); }
.login-panel { width:min(100%,420px); padding:28px 24px 24px; border:1px solid rgba(23,60,200,.1); border-radius:28px; background:rgba(255,255,255,.96); box-shadow:0 24px 70px rgba(10,45,100,.18); text-align:center; }
.login-logo { width:min(72%,260px); max-height:120px; object-fit:contain; }
.login-eyebrow { margin:16px 0 5px; color:var(--blue); font-size:11px; font-weight:800; letter-spacing:.18em; }
.login-panel h1 { margin:0; font-size:25px; letter-spacing:-.03em; }
.login-note { margin:10px auto 20px; color:var(--muted); font-size:14px; line-height:1.45; }
.login-form { display:grid; gap:10px; text-align:left; }
.password-input { width:100%; height:52px; padding:0 16px; border:1px solid #d7e0ee; border-radius:15px; outline:none; color:var(--ink); background:#fff; font:inherit; font-size:16px; }
.password-input:focus { border-color:var(--blue); box-shadow:0 0 0 4px rgba(23,60,200,.1); }
.login-error { min-height:18px; margin:0 3px; color:#c32929; font-size:13px; }
.login-button { height:52px; border:0; border-radius:15px; color:#fff; background:linear-gradient(135deg,var(--blue),#315ae4); font-weight:800; cursor:pointer; }
.login-button:disabled { opacity:.7; }
.app-shell { min-height:100dvh; padding-bottom:calc(28px + env(safe-area-inset-bottom)); }
.topbar { position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:14px; min-height:86px; padding:calc(12px + env(safe-area-inset-top)) 18px 12px; background:rgba(255,255,255,.88); backdrop-filter:blur(18px); border-bottom:1px solid rgba(13,56,128,.09); }
.brand-mark { color:var(--blue); font-size:38px; font-weight:800; line-height:1; letter-spacing:-5px; }
.brand-mark span { display:inline-grid; place-items:center; width:34px; height:34px; margin-left:6px; border-radius:50%; color:#fff; background:var(--blue); font-size:15px; letter-spacing:0; vertical-align:5px; }
.brand-logo { flex:0 0 auto; width:74px; height:48px; object-fit:contain; object-position:left center; }
.heading p { margin:0 0 2px; color:var(--blue); font-size:11px; font-weight:800; letter-spacing:.18em; }
.heading h1 { margin:0; font-size:24px; line-height:1.1; letter-spacing:-.03em; }
.content { width:min(100%,760px); margin:0 auto; padding:22px 16px; }
.section-note { margin:0 2px 16px; color:var(--muted); font-size:14px; }
.object-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.object-card { position:relative; min-height:214px; padding:0; overflow:hidden; border:0; border-radius:24px; background:#fff; box-shadow:0 10px 35px rgba(25,55,110,.13); cursor:pointer; text-align:left; transition:transform .16s ease,box-shadow .16s ease; }
.object-card:active,.report-card:active { transform:scale(.985); }
.object-card img { width:100%; height:100%; min-height:214px; object-fit:contain; padding:14px 14px 66px; background:#fff; }
.object-overlay { position:absolute; inset:auto 0 0; display:flex; flex-direction:column; gap:3px; padding:18px; color:#fff; background:linear-gradient(180deg,transparent,rgba(4,31,76,.96) 32%); }
.object-overlay strong { font-size:18px; } .object-overlay small { color:#dce7ff; }
.report-grid { display:grid; gap:14px; }
.report-card { display:grid; grid-template-columns:112px 1fr 20px; align-items:center; gap:14px; width:100%; min-height:126px; padding:10px 16px 10px 10px; border:1px solid rgba(21,58,160,.08); border-radius:22px; background:var(--panel); box-shadow:0 9px 28px rgba(25,55,110,.1); cursor:pointer; text-align:left; }
.report-image { position:relative; display:block; width:112px; height:106px; overflow:hidden; border-radius:16px; background:#fff; }
.report-image img { width:100%; height:100%; object-fit:cover; }
.report-card:has(.report-image img[src*="izhevsk-stand-icon.svg"]) .report-image img { object-fit:contain; object-position:center; padding:5px; }
.report-card:has(.report-image img[src*="nvl-stand.png"]) .report-image img { object-fit:contain; object-position:center; padding:4px; }
.type-badge { position:absolute; left:7px; bottom:7px; padding:4px 8px; border-radius:99px; color:#fff; background:var(--blue); box-shadow:0 3px 8px rgba(0,0,0,.15); font-size:10px; font-weight:800; }
.type-badge.sheet { background:#16813a; } .type-badge.map { background:#075db7; }
.report-card:has(.report-image img[src*="nvl-stand.png"]) .type-badge { font-size:0; }
.report-card:has(.report-image img[src*="nvl-stand.png"]) .type-badge::after { content:"Веб-отчёт"; font-size:10px; }
.card-copy { display:flex; min-width:0; flex-direction:column; gap:5px; } .card-copy strong { font-size:17px; line-height:1.2; } .card-copy small { color:var(--muted); font-size:13px; line-height:1.35; } .chevron { color:var(--blue); font-size:30px; font-weight:300; }
.icon-button,.external-button { display:grid; flex:0 0 auto; place-items:center; width:42px; height:42px; border:1px solid #dde5f3; border-radius:14px; color:var(--navy); background:#fff; font-size:22px; text-decoration:none; cursor:pointer; }
.viewer { height:100dvh; overflow:hidden; background:#eef3fb; }
.viewer-bar { display:grid; grid-template-columns:42px 1fr 42px; align-items:center; gap:12px; min-height:72px; padding:calc(10px + env(safe-area-inset-top)) 12px 10px; background:#fff; border-bottom:1px solid var(--line); }
.viewer-title { display:flex; min-width:0; flex-direction:column; gap:2px; } .viewer-bar strong { overflow:hidden; font-size:15px; text-overflow:ellipsis; white-space:nowrap; } .viewer-bar span { overflow:hidden; color:var(--muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.frame-scroll { width:100%; height:calc(100dvh - 72px - env(safe-area-inset-top)); overflow:auto; background:#fff; -webkit-overflow-scrolling:touch; }
.frame-canvas { width:100%; height:100%; min-width:100%; min-height:100%; transform-origin:top left; }
.report-frame { display:block; width:100%; height:100%; border:0; background:#fff; transform-origin:top left; }
.native-pdf { display:flex; height:calc(100dvh - 72px - env(safe-area-inset-top)); padding:34px 24px calc(34px + env(safe-area-inset-bottom)); flex-direction:column; align-items:center; justify-content:center; background:#fff; text-align:center; }
.native-pdf-icon { display:grid; width:58px; height:68px; place-items:center; border-radius:8px 8px 13px 8px; color:#fff; background:#c9cdd4; box-shadow:inset -9px 9px rgba(255,255,255,.22); font-size:16px; font-weight:900; }
.native-pdf strong { margin-top:18px; color:var(--ink); font-size:17px; }
.native-pdf p { max-width:330px; margin:9px 0 24px; color:var(--muted); font-size:13px; line-height:1.45; }
.native-pdf-button { display:inline-flex; width:min(100%,240px); min-height:54px; align-items:center; justify-content:center; border-radius:16px; color:#fff; background:#1877e8; box-shadow:0 10px 25px rgba(24,119,232,.24); font-size:17px; font-weight:700; text-decoration:none; }
.direct-report { display:flex; height:calc(100dvh - 72px - env(safe-area-inset-top)); padding:32px 24px calc(32px + env(safe-area-inset-bottom)); flex-direction:column; align-items:center; justify-content:center; text-align:center; background:#f4f7fc; }
.direct-report strong { max-width:420px; color:var(--navy); font-size:23px; line-height:1.2; }
.direct-report p { max-width:440px; margin:14px 0 24px; color:var(--muted); font-size:14px; line-height:1.5; }
.direct-report-button { display:inline-flex; min-height:50px; padding:0 24px; align-items:center; justify-content:center; border-radius:15px; color:#fff; background:var(--blue); box-shadow:0 10px 24px rgba(23,60,200,.25); font-weight:800; text-decoration:none; }
.zoom-controls { position:fixed; z-index:20; left:50%; bottom:calc(14px + env(safe-area-inset-bottom)); display:flex; align-items:center; gap:4px; padding:6px; border:1px solid rgba(23,60,200,.12); border-radius:17px; background:rgba(255,255,255,.95); box-shadow:0 10px 28px rgba(10,45,100,.2); transform:translateX(-50%); backdrop-filter:blur(12px); }
.zoom-button,.zoom-reset { height:38px; border:0; border-radius:11px; color:var(--navy); background:#edf2ff; font-weight:800; cursor:pointer; }
.zoom-button { width:42px; font-size:23px; }
.zoom-reset { padding:0 12px; font-size:12px; }
.zoom-value { min-width:54px; color:var(--ink); font-size:13px; font-weight:800; text-align:center; }
.status-card { padding:22px; border-radius:18px; color:var(--muted); background:rgba(255,255,255,.9); }
@media (max-width:540px) { .object-grid { grid-template-columns:1fr; } .object-card,.object-card img { min-height:190px; } }
@media (max-width:420px) {
  .report-card { grid-template-columns:96px minmax(0,1fr) 12px; gap:10px; min-height:112px; padding:8px 12px 8px 8px; }
  .report-image { width:96px; height:96px; }
  .type-badge { left:5px; bottom:5px; padding:3px 6px; font-size:9px; }
  .report-card:has(.report-image img[src*="nvl-stand.png"]) .type-badge::after { font-size:9px; }
  .card-copy strong { font-size:16px; }
  .chevron { font-size:24px; }
}
@media (min-width:700px) { .content { padding-top:30px; } .object-grid { gap:18px; } .report-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.account-actions { display:flex; align-items:center; gap:7px; margin-left:auto; }
.account-button { min-height:38px; padding:0 11px; border:1px solid #dde5f3; border-radius:12px; color:var(--navy); background:#fff; font-size:12px; font-weight:750; cursor:pointer; }
.notice-card { margin-bottom:14px; padding:13px 16px; border:1px solid #b9dbbf; border-radius:15px; color:#12652a; background:#eefaf0; font-size:14px; }
.admin-content { max-width:760px; }
.admin-add { width:100%; margin-bottom:16px; }
.admin-tools { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:10px; margin-bottom:14px; }
.admin-tools .admin-add,.admin-tools .admin-search { grid-column:1/-1; margin:0; }
.admin-tools select:last-child { grid-column:auto / span 1; }
.admin-table-scroll { overflow:auto; border:1px solid rgba(21,58,160,.1); border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 7px 24px rgba(25,55,110,.08); }
.admin-table { width:100%; min-width:1040px; border-collapse:collapse; font-size:13px; }
.admin-table th { position:sticky; top:0; padding:12px 13px; color:var(--navy); background:#f4f7fc; font-size:11px; text-align:left; white-space:nowrap; }
.admin-table td { padding:12px 13px; border-top:1px solid var(--line); color:#344054; white-space:nowrap; }
.admin-table tr:hover td { background:#f8faff; }
.user-link { padding:0; border:0; color:var(--blue); background:transparent; font-weight:800; cursor:pointer; text-align:left; }
.admin-login { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
.status-text { color:#17712e!important; font-weight:750; } .status-text.blocked { color:#a32525!important; }
.user-list { display:grid; gap:10px; }
.user-card { display:grid; grid-template-columns:1fr auto 18px; align-items:center; gap:12px; width:100%; padding:15px 16px; border:1px solid rgba(21,58,160,.1); border-radius:18px; background:rgba(255,255,255,.96); box-shadow:0 7px 24px rgba(25,55,110,.08); text-align:left; cursor:pointer; }
.status-badge { padding:5px 8px; border-radius:999px; color:#17712e; background:#e7f7eb; font-size:10px; font-weight:800; }
.status-badge.blocked { color:#a32525; background:#fdeaea; }
.admin-form { display:grid; gap:14px; padding:18px; border:1px solid rgba(21,58,160,.1); border-radius:22px; background:rgba(255,255,255,.96); box-shadow:0 10px 30px rgba(25,55,110,.09); }
.form-field { display:grid; gap:7px; color:var(--navy); font-size:12px; font-weight:750; }
.form-subtitle { margin:8px 0 -2px; font-size:16px; }
.access-groups { display:grid; gap:10px; }
.access-group { display:grid; gap:7px; margin:0; padding:12px; border:1px solid var(--line); border-radius:15px; }
.access-group legend { padding:0 6px; color:var(--navy); font-size:12px; font-weight:800; }
.access-option { display:flex; align-items:flex-start; gap:9px; padding:5px 2px; font-size:13px; line-height:1.3; }
.access-option input { width:18px; height:18px; margin:0; accent-color:var(--blue); }
.access-all { padding:11px 12px; border:1px solid #cbd8ff; border-radius:14px; color:var(--navy); background:#eef2ff; font-weight:800; }
.form-actions { display:grid; grid-template-columns:1fr 1.5fr; gap:10px; }
.secondary-button { min-height:46px; padding:0 13px; border:1px solid #d8e1f0; border-radius:14px; color:var(--navy); background:#fff; font-weight:750; cursor:pointer; }
.reset-password-box { display:grid; gap:9px; padding:13px; border-radius:15px; background:#f5f7fb; }
.reset-password-box strong { font-size:13px; }
@media (max-width:540px) { .heading h1 { font-size:21px; } .brand-logo { width:64px; height:42px; } .account-button { padding:0 9px; } .form-actions { grid-template-columns:1fr; } .user-card { grid-template-columns:1fr auto; } .user-card .chevron { display:none; } .admin-tools { grid-template-columns:1fr; } .admin-tools .admin-add,.admin-tools .admin-search,.admin-tools select:last-child { grid-column:1; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; transition-duration:.01ms!important; } }
