/* V73.8.55 visual identity transplant: shell/layout only; business logic remains in the two-book edition. */
:root{
  --green:#157142;--green-dark:#0f5f36;--bg:#f4f7f5;--card:#ffffff;--line:#dce5de;--text:#0c1f18;--muted:#65746d;--soft:#eef5f0;--warning:#b7791f;--planned:#f5a623;--danger:#c23b32;--trend:#7b8794;--radius:10px;--shadow:0 1px 2px rgba(0,0,0,.04);--top:56px;--bottom:58px;
}
html,body{font-size:13px;line-height:1.35;background:var(--bg)}
body{min-width:0}
.topbar{
  height:56px;display:flex;gap:10px;align-items:center;padding:7px 16px;border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:var(--text);
  position:sticky;top:0;z-index:50;box-shadow:none
}
.brand{display:flex;align-items:center;gap:9px;min-width:330px;flex:0 1 auto;cursor:pointer}
.logo{width:42px;height:36px;border:1px solid var(--line);border-radius:8px;object-fit:contain;background:#fff;padding:2px;box-shadow:none;flex:0 0 42px}
.brand-title{font-weight:800;font-size:15px;color:var(--text);line-height:1.2}
.brand-sub{font-size:11px;color:var(--muted);opacity:1;min-height:14px}
.top-search{flex:1;max-width:560px;position:relative;margin-left:auto}
.top-search input{width:100%;height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);padding:0 48px 0 12px;outline:none}
.top-search input::placeholder{color:#7c8b84}.top-search input:focus{background:#fff;color:var(--text);border-color:#b7c9bd;box-shadow:0 0 0 2px rgba(21,113,66,.07)}
.top-search .search-kbd{color:var(--muted);border-color:var(--line);background:#f8fbf9;top:10px}
.top-actions{margin-left:auto;display:flex;gap:6px;align-items:center}
.topbar .icon-btn{background:#fff;border:1px solid var(--line);color:var(--text);min-height:38px;border-radius:8px;box-shadow:none}
.topbar .icon-btn:hover{border-color:#b7c9bd;background:#f9fbfa;color:var(--text)}
.topbar .account-btn{min-width:40px;font-weight:800;color:var(--green)}
.shell{min-height:calc(100vh - 56px);padding-bottom:68px}.page{padding:14px 16px;max-width:none;margin:0}
.page-head{margin-bottom:12px}.page-head h1{font-size:18px;margin:0 0 3px}.page-head p{font-size:11px}
.card{border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);background:#fff}
.card-pad{padding:12px}.section-title{font-size:11px;letter-spacing:.03em}
.btn,.icon-btn{min-height:38px;border-radius:8px;padding:0 10px;box-shadow:none}.btn.sm{min-height:28px;padding:0 8px;font-size:12px;border-radius:7px}
.btn.primary{background:var(--green);border-color:var(--green)}.btn.primary:hover{background:var(--green-dark)}
.book-grid{gap:12px}.book-card{padding:14px;border-radius:10px}.book-card:before{width:3px}.book-card h2{font-size:15px}.book-stats strong{font-size:21px}
.kpi-grid{gap:8px;margin-bottom:10px}.kpi{padding:10px 11px;min-height:72px}.kpi .value{font-size:19px}.kpi .label{font-size:10px}.kpi .sub{font-size:9px}
.filters-grid{grid-template-columns:minmax(150px,.85fr) minmax(185px,1.1fr) minmax(205px,1.25fr) minmax(165px,.95fr) minmax(210px,1.25fr);gap:8px;margin-bottom:10px}
.field label{font-size:9px}.field input,.field select,.field textarea{border-radius:8px}
.curve-toolbar{grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-bottom:9px}.curve-toolbar>.btn{width:100%;height:38px;min-height:38px;justify-content:center;font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.curve-wrap{padding:9px 10px 5px;border:1px solid #e4ebe7;border-radius:10px;background:#fff}.curve-svg{min-width:900px}
.curve-history{border:1px solid #e4ebe7;border-radius:10px;box-shadow:none}
.table-wrap{border-radius:9px;box-shadow:none}th{background:#f8fbf9;color:#566860}
.bottom-nav{
  position:fixed;left:0;right:0;bottom:0;transform:none;height:58px;background:rgba(255,255,255,.96);border:0;border-top:1px solid var(--line);
  border-radius:0;box-shadow:none;display:flex;justify-content:center;gap:4px;z-index:60;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:6px 8px
}
.nav-item{border:0;background:transparent;min-width:92px;height:44px;border-radius:10px;display:flex;flex-direction:column;gap:2px;justify-content:center;color:#526058;font-size:10px;padding:0 8px}
.nav-item .ico{font-size:16px;line-height:1}.nav-item.active{background:var(--soft);color:var(--green);font-weight:700}
.mode-banner{padding:5px 10px;background:#fff8eb;color:#865800;border-bottom:1px solid #efd9a9;font-size:10px;text-align:center}
.notice{border-radius:8px;background:#f7fbf8;border-color:#d8e7dd;color:#315343}
.audit-item{box-shadow:none}.drawer{border-left:1px solid var(--line);box-shadow:-18px 0 60px rgba(12,31,24,.08)}
.login-wrap{background:var(--bg)}.login-card{border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 55px rgba(12,31,24,.11)}.login-brand .logo{background:#fff;color:var(--green)}
@media(max-width:1360px){.filters-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.curve-toolbar{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.brand{min-width:270px}}
@media(max-width:980px){.topbar{padding:7px 10px}.brand{min-width:230px}.brand-sub{display:none}.top-actions .label-hide{display:none}.nav-item{min-width:76px}}
@media(max-width:820px){:root{--top:54px;--bottom:64px}.topbar{height:auto;min-height:54px;flex-wrap:wrap;gap:7px}.brand{min-width:0;flex:1}.top-search{order:3;flex:1 0 100%;max-width:none}.top-actions .secondary{display:none}.filters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.curve-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{height:64px;justify-content:space-around;padding-bottom:max(6px,env(safe-area-inset-bottom))}.nav-item{min-width:0;flex:1;padding:0 3px}.page{padding:10px 8px 76px}.book-card{grid-template-columns:1fr}.book-stats{text-align:left}}
@media(max-width:520px){.filters-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.curve-svg{min-width:760px}.topbar .logo{width:38px;height:34px;flex-basis:38px}.brand-title{font-size:13px}.nav-item{font-size:9px}.page{padding-left:7px;padding-right:7px}}
