/* NICHU AUTO V7.11.2 — premium visual skin only. No business JS overrides. */
:root{
  --nichu-ink:#15171a;
  --nichu-ink-2:#202226;
  --nichu-wine:#4b171d;
  --nichu-wine-2:#751f29;
  --nichu-red:#b82834;
  --nichu-paper:#f5f4f2;
  --nichu-card:#fff;
  --nichu-line:#e7e4e1;
  --nichu-soft:#eeece9;
  --nichu-text:#202226;
  --nichu-muted:#77736f;
  --nichu-shadow:0 14px 35px rgba(24,20,18,.055);
}

/* Overall canvas */
body{background:linear-gradient(180deg,#f8f7f5 0,#f3f2ef 100%);color:var(--nichu-text);letter-spacing:.005em}
.content{padding:28px 30px 42px}
.page-head{margin-bottom:20px;align-items:center}
.page-head h1{font-size:27px;letter-spacing:-.025em;font-weight:800}
.page-head p{font-size:13px;color:#85807b}

/* Brand sidebar — deep charcoal to wine, intentionally restrained */
.sidebar{
  background:
    radial-gradient(circle at 15% 4%,rgba(151,38,50,.26),transparent 28%),
    linear-gradient(165deg,#18191c 0%,#171719 48%,#321116 100%);
  border-right:1px solid rgba(255,255,255,.055);
  box-shadow:16px 0 44px rgba(22,8,10,.08);
  padding:21px 14px;
}
.sidebar:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:180px;pointer-events:none;background:linear-gradient(0deg,rgba(103,25,34,.18),transparent)}
.sidebar .logo.brand-logo{position:relative;z-index:1;padding:2px 8px 20px;border-bottom:1px solid rgba(255,255,255,.075);margin-bottom:8px}
.sidebar .logo.brand-logo img{width:42px;height:42px;border-radius:11px;box-shadow:0 8px 22px rgba(0,0,0,.22)}
.sidebar .logo.brand-logo .brand-word{font-size:18px;letter-spacing:1.25px}
.nav-group{position:relative;z-index:1;color:#8e8989;font-size:10px;letter-spacing:.12em;padding:17px 12px 7px}
.nav-item{position:relative;z-index:1;color:#d7d3d2;padding:11px 11px;border-radius:9px;margin:2px 0;transition:background .16s ease,color .16s ease,transform .16s ease}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff;transform:translateX(1px)}
.nav-item.active{background:linear-gradient(90deg,rgba(145,43,54,.38),rgba(255,255,255,.075));color:#fff;border-left:0;box-shadow:inset 1px 0 0 rgba(255,255,255,.18)}
.nav-item.active:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;border-radius:2px;background:#c64a55}
.nav-item .ico{opacity:.82;color:#d9cecf;font-size:14px}

/* Header */
.topbar{height:66px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-color:#ebe8e5;padding:0 28px;box-shadow:0 1px 0 rgba(34,27,24,.025)}
.topbar h2{font-size:17px;font-weight:760;letter-spacing:-.01em}
.top-actions{gap:9px}
.role-pill{background:#f7f6f4;border-color:#e8e5e2;color:#5e5a57;font-size:13px;padding:7px 11px}
.avatar{width:34px;height:34px;background:linear-gradient(145deg,#6e2029,#a2323f);font-size:13px;box-shadow:0 7px 18px rgba(111,29,40,.16)}

/* Buttons: calm by default, brand emphasis only where needed */
.primary{background:linear-gradient(145deg,#25272b,#17191c);border:1px solid #17191c;border-radius:9px;padding:10px 15px;font-weight:760;box-shadow:none;transition:.16s ease}
.primary:hover{background:#0f1012;transform:translateY(-1px)}
.ghost{background:#fff;border-color:#dedbd7;border-radius:9px;color:#33302e;padding:9px 13px;transition:.16s ease}
.ghost:hover{border-color:#bbb4ae;background:#faf9f7}
.danger{background:#fff7f7!important;border-color:#ecc7ca!important;color:#a62b35!important}

/* Data hierarchy */
.stats{gap:13px}
.stat{position:relative;border-color:#e8e5e1;border-radius:13px;padding:16px 17px;background:linear-gradient(150deg,#fff,#fdfcfb);box-shadow:0 10px 26px rgba(26,22,19,.035);overflow:hidden}
.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:linear-gradient(#7d2932,#3a171b);opacity:.55}
.stat small{font-size:12px;color:#827d78}
.stat strong{font-size:27px;letter-spacing:-.04em;margin:6px 0 5px;font-weight:780}
.stat .trend{font-size:11px;color:#637169!important}

/* Panels */
.panel{border-color:#e7e3df;border-radius:14px;background:rgba(255,255,255,.94);box-shadow:var(--nichu-shadow);padding:17px}
.panel h3{font-size:16px;letter-spacing:-.01em}
.grid-2{gap:14px;margin-top:14px;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)}

/* Quick access: compact premium tiles, no loud color blocks */
.quick-panel-v7112{padding:16px!important}
.quick-panel-v7112 h3{margin-bottom:12px!important}
.quick-grid-v7112{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.quick-entry-v7112{position:relative;text-align:left!important;width:100%;min-height:68px;padding:11px 12px 11px 42px!important;margin:0!important;border:1px solid #e3dfda!important;background:linear-gradient(145deg,#fff,#fbfaf8)!important;border-radius:11px!important;color:#242220!important;box-shadow:none!important;overflow:hidden;cursor:pointer}
.quick-entry-v7112:hover{border-color:#cfc7c1!important;box-shadow:0 9px 22px rgba(33,26,23,.055)!important;transform:translateY(-1px)}
.quick-entry-v7112:before{content:"";position:absolute;left:14px;top:50%;width:15px;height:15px;border:1.5px solid #6b5558;border-radius:5px;transform:translateY(-50%);box-shadow:inset 0 0 0 4px #fff,0 0 0 1px rgba(123,44,53,.04)}
.quick-entry-v7112 b{display:block;font-size:13px;font-weight:760;margin-bottom:2px;color:#252220}
.quick-entry-v7112 small{display:block;font-size:10.5px;color:#8a847f;font-weight:500;line-height:1.35}
.quick-entry-v7112.is-primary:after{content:"";position:absolute;right:-20px;bottom:-22px;width:50px;height:50px;border:8px solid rgba(111,31,40,.08);border-radius:50%}

/* Filters and toolbars */
.toolbar{gap:8px}
.toolbar input,.toolbar select{border-color:#ddd9d5;border-radius:9px;background:#fff;padding:9px 11px;color:#373431}
.toolbar input:focus,.toolbar select:focus{outline:none;border-color:#a99c97;box-shadow:0 0 0 3px rgba(82,36,41,.055)}

/* Vehicle cards */
.car-grid{gap:15px}
.car-card{border-color:#e4e1dd;border-radius:13px;box-shadow:0 9px 24px rgba(31,25,22,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.car-card:hover{transform:translateY(-2px);box-shadow:0 15px 34px rgba(31,25,22,.08);border-color:#d7d0cb}
.cover{background:#e9e6e2}
.badge,.photo-count{backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);background:rgba(19,19,20,.74);border-color:rgba(255,255,255,.25);border-radius:7px}
.car-body{padding:14px}
.car-title{font-size:16px;font-weight:780;letter-spacing:-.015em}
.meta{font-size:12px;color:#7e7975}
.price{font-size:22px;color:#8f2832;font-weight:820;letter-spacing:-.025em}
.card-foot{font-size:11px;color:#89837f}
.status,.deposit-chip,.source-chip{border-radius:6px!important;padding:4px 7px!important;font-size:10.5px!important;box-shadow:none!important}
.source-chip.transfer{background:#f5f1f5;color:#725465;border-color:#e5dce3}
.status.在售{background:#eef5f0;color:#42634e}.status.商谈中{background:#f7f2e8;color:#735f3b}.status.待整备,.status.资料整理中,.status.待拍摄{background:#f0f1f1;color:#5f6569}.status.已售{background:#ededed;color:#585858}

/* Modal/form polish */
.modal-card{border-radius:16px!important;box-shadow:0 28px 80px rgba(21,18,17,.16)!important}
.field label{font-size:12px;color:#4e4a47;letter-spacing:.01em}
.field input,.field select,.field textarea{border-color:#dfdbd7;border-radius:10px;background:#fff;padding:11px 13px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#988b86;box-shadow:0 0 0 3px rgba(94,36,42,.06)}

/* R2 monitor */
.r2-monitor{background:linear-gradient(145deg,#fff,#faf9f7)}
.r2-meter{height:5px!important;background:#ebe8e4!important}
.r2-meter span{background:linear-gradient(90deg,#5b2027,#9e3b47)!important}

/* Desktop breathing room without becoming oversized */
@media(min-width:1180px){
  .content{max-width:1540px;margin:0 auto;padding-left:30px;padding-right:30px}
}

/* Mobile — app-like, compact and thumb friendly */
@media(max-width:760px){
  body{background:#f4f3f1}
  .content{padding:14px 12px 92px}
  .topbar{height:58px;padding:0 12px;background:rgba(255,255,255,.94)}
  .topbar h2{font-size:16px}
  .sidebar{background:linear-gradient(180deg,#18191b 0%,#251216 100%)!important}
  .page-head{align-items:flex-start;gap:10px;margin-bottom:15px}
  .page-head h1{font-size:22px}
  .page-head p{font-size:11.5px;line-height:1.45}
  .stats{grid-template-columns:1fr 1fr;gap:8px}
  .stat{border-radius:11px;padding:12px 13px;min-height:92px}
  .stat strong{font-size:24px}
  .grid-2{grid-template-columns:1fr;gap:10px;margin-top:10px}
  .panel{border-radius:12px;padding:13px;box-shadow:0 7px 20px rgba(25,21,19,.035)}
  .quick-grid-v7112{grid-template-columns:1fr 1fr;gap:8px}
  .quick-entry-v7112{min-height:64px;padding:10px 9px 10px 36px!important;border-radius:10px!important}
  .quick-entry-v7112:before{left:11px;width:13px;height:13px}
  .quick-entry-v7112 b{font-size:12px}
  .quick-entry-v7112 small{font-size:9.5px}
  .car-grid{gap:10px}
  .car-card{border-radius:12px}
  .car-body{padding:12px}
  .price{font-size:20px}
  .toolbar{gap:7px}
  .toolbar input,.toolbar select{min-height:42px;border-radius:9px}
  .primary,.ghost{min-height:42px;border-radius:9px}
  .mobile-bottom-nav{background:rgba(251,250,248,.96)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-top:1px solid #e3dfda!important;box-shadow:0 -8px 26px rgba(31,24,22,.05)!important}
  .mobile-bottom-nav button{color:#716b67!important}
  .mobile-bottom-nav button.active{color:#61202a!important;background:rgba(108,33,43,.055)!important}
}
