/* Baoha Oi — Warranty Vault design system
   Visual direction: trusted warranty archive, warm paper, deep evergreen, restrained amber alerts. */
:root{
  --green:#2d6b53;
  --green-dark:#1d4939;
  --mint:#e8f0e9;
  --ink:#202d27;
  --muted:#748078;
  --line:#e4e8e1;
  --bg:#f4f5ef;
  --white:#fffefa;
  --orange:#bd8637;
  --red:#b9574f;
  --blue:#587d8d;
  --shadow:0 14px 38px rgba(31,57,44,.075);
}

*{scrollbar-color:#c8d4ca transparent}
html{background:var(--bg)}
body{
  background:
    radial-gradient(ellipse at 90% 0%,rgba(225,235,224,.58),transparent 34rem),
    var(--bg);
  color:var(--ink);
  letter-spacing:-.12px;
}
button,input,select,textarea{font-family:'Be Vietnam Pro',system-ui,sans-serif}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(77,133,103,.28);outline-offset:2px}

/* Permanent side rail: a digital document archive */
.sidebar{
  width:258px;
  padding:27px 17px 20px;
  background:#193b30;
  border-right:1px solid rgba(255,255,255,.07);
  box-shadow:8px 0 30px rgba(25,52,41,.055);
}
.brand{color:#fff;padding:0 8px 34px;gap:12px}
.brand-mark{
  width:43px;height:43px;border-radius:13px;
  background:#e8efe5;color:#24533f;
  font-size:23px;font-weight:800;box-shadow:0 5px 15px rgba(0,0,0,.12)
}
.brand strong{font-size:16px;color:#fff;letter-spacing:-.55px}
.brand small{color:#b9c9be;font-size:10px}
.side-label{color:#8fa99a;font-size:9px;letter-spacing:1.35px}
.nav-item{color:#c3d0c7;border-radius:10px;padding:12px 13px;font-size:12px;transition:background .16s,color .16s}
.nav-item:hover{background:rgba(255,255,255,.075);color:#fff}
.nav-item.active{background:#e7eee5;color:#214d3b;box-shadow:inset 3px 0 #c2944f}
.nav-icon{font-size:17px}
.nav-count{background:#f0e2c8;color:#865f29;font-weight:800}
.privacy-card{background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.105);border-radius:12px;padding:14px}
.privacy-card strong{color:#fff}
.privacy-card p{color:#b8c8bd}
.privacy-icon{filter:grayscale(.3)}
.sidebar-bottom .nav-item{color:#c2d0c6}
.sidebar-bottom .nav-item:hover{color:#fff}
.donate-link{color:#e7d2a8;border-color:rgba(255,255,255,.12)}
.donate-link:hover{color:#fff}

/* Header / content canvas */
.main-area{margin-left:258px}
.topbar{
  height:68px;padding:0 36px;
  background:rgba(255,254,250,.91);
  border-bottom:1px solid #e5e8e0;
  box-shadow:0 3px 15px rgba(34,55,43,.025);
}
.breadcrumb{color:#89938b}
.breadcrumb b{color:#c5ccc4}
.breadcrumb strong{color:#35473c}
.sync-indicator{color:#7e8981}
.sync-indicator i{background:#c2944f}
.sync-indicator.online i{background:#4c9870}
.avatar{background:#e8f0e9;color:#2d6b53}
.mobile-menu{background:#e7eee5;color:#285b43}
.page-wrap{max-width:1400px;padding:32px 36px 27px}

/* Login: reassuring, paper-like product identity */
.auth-layout{gap:5.5vw;grid-template-columns:1fr minmax(365px,455px)}
.auth-story{padding-left:2.5vw;max-width:660px}
.eyebrow{color:#77867b;letter-spacing:1.25px;font-size:9px}
.eyebrow-dot{background:#b98d4d}
.auth-story h1,.page-heading-row h1{color:#1e352a}
.auth-story h1 em,.page-heading-row h1 em{color:#2d6b53}
.story-copy{color:#6f7d73;line-height:1.9}
.story-points{gap:17px;margin:27px 0}
.point-icon{width:41px;height:41px;border-radius:12px;background:#e7eee5;color:#2d6b53}
.story-points strong{color:#2a3b30}
.story-points small{color:#859087}
.auth-note{color:#879187}
.auth-card{border:1px solid #e5e8e0;border-radius:19px;box-shadow:0 20px 55px rgba(35,56,43,.095);padding:34px 34px 28px;background:#fffefa}
.auth-logo{font-size:24px;color:#244f3c;letter-spacing:-1.1px}
.auth-logo span{color:#b38b4c}
.auth-heading h2{color:#26372d}
.auth-heading p{color:#7c887e}
.auth-tabs{background:#f0f2ec;border-radius:10px}
.auth-tab{color:#7d887f}
.auth-tab.selected{color:#275b43;box-shadow:0 2px 8px rgba(28,61,43,.09)}
label{color:#405347}
input,select,textarea{border-color:#dfe5dc;background:#fffefa;color:#27362d;border-radius:9px}
input:focus,select:focus,textarea:focus{border-color:#79a78a;box-shadow:0 0 0 3px rgba(83,139,102,.13)}
input::placeholder,textarea::placeholder{color:#a5afa7}
.text-button{color:#2d6b53}
.button.primary{background:#2d6b53;color:#fff;box-shadow:0 6px 15px rgba(39,99,72,.17)}
.button.primary:hover{background:#20563f}
.button.secondary{border-color:#dfe5dc;color:#506257;background:#fffefa}
.button.secondary:hover{border-color:#a9c0ad;background:#f6f8f3}
.auth-feedback,.form-feedback{color:#b9574f}
.auth-legal{color:#909a91}
.auth-foot{color:#859086}
.setup-warning h2{color:#293a30}
.setup-warning p{color:#738076}

/* Dashboard hero: calm warranty-booklet panel, not a generic gradient banner */
.dashboard{padding-top:29px}
.welcome-row{
  position:relative;isolation:isolate;overflow:hidden;
  padding:25px 28px;margin-bottom:22px;border-radius:16px;
  background:#e7eee5;
  border:1px solid #dce6dc;
  box-shadow:0 8px 22px rgba(34,65,46,.045);
  align-items:center;
}
.welcome-row:after{
  content:"✓";position:absolute;z-index:-1;right:5.5%;top:50%;transform:translateY(-53%);
  width:152px;height:152px;border-radius:50%;display:grid;place-items:center;
  border:1px solid rgba(45,107,83,.16);color:rgba(45,107,83,.12);
  font-size:92px;font-weight:600;box-shadow:0 0 0 17px rgba(45,107,83,.035),0 0 0 36px rgba(45,107,83,.025)
}
.welcome-row .eyebrow{color:#60776a}
.welcome-row .eyebrow-dot{background:#b98d4d}
.welcome-row h1{color:#20382b;margin:11px 0 7px;font-size:30px}
.welcome-row h1 em{color:#2d6b53}
.welcome-row p{color:#66786c}
.welcome-row .button.primary{background:#285f46;color:#fff;box-shadow:0 6px 14px rgba(35,86,61,.16)}
.welcome-row .button.primary:hover{background:#1c4d38}
.demo-notice{background:#f7f0df;border:1px solid #eaddbd;color:#765e32;border-radius:11px;padding:12px 15px}
.demo-notice strong{color:#6d5225}

/* Status summaries */
.stats-grid{gap:12px}
.stat-card{
  min-height:122px;padding:17px 18px;border:1px solid #e5e8e1;border-radius:13px;
  box-shadow:0 4px 15px rgba(31,55,40,.027);transition:transform .18s,box-shadow .18s;background:#fffefa
}
.stat-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(31,55,40,.065)}
.stat-top{color:#758278}
.stat-icon{width:32px;height:32px;border-radius:10px}
.stat-icon.green{color:#2d6b53;background:#e7efe5}
.stat-icon.blue{color:#587d8d;background:#e9eff0}
.stat-icon.orange{color:#a9772e;background:#f6efdf}
.stat-icon.red{color:#b9574f;background:#f8e9e6}
.stat-value{font-size:30px;color:#25372b}
.stat-foot{color:#8d988e}
.section-heading{margin:27px 0 13px}
.section-heading h2{font-size:16px;color:#2b3c30}
.section-heading p{color:#849087}
.text-button{font-size:11px}

/* Reminders and product warranty cards */
.attention-grid{gap:11px}
.attention-card{border:1px solid #e6e8df;border-radius:12px;padding:14px;box-shadow:0 3px 12px rgba(31,55,40,.025);background:#fffefa}
.attention-badge{background:#f5edda;color:#a5762e;border-radius:10px}
.attention-card strong{color:#2d3e32}
.attention-card small{color:#859087}
.attention-empty{border-color:#d9e4d9;background:#fbfcf8;color:#879288}
.toolbar{gap:9px}
.search-wrap{border-color:#e2e7df;border-radius:10px;box-shadow:0 2px 8px rgba(31,55,40,.02);background:#fffefa}
.search-wrap input{background:transparent}
.toolbar select{border-radius:10px;background:#fffefa}
.item-card{border:1px solid #e3e7df;border-radius:13px;box-shadow:0 4px 14px rgba(31,55,40,.028);background:#fffefa}
.item-card:hover{box-shadow:0 12px 24px rgba(31,55,40,.075)}
.item-visual{background:linear-gradient(135deg,#edf2e9,#e4ede5)}
.item-visual:has(.item-emoji){background:linear-gradient(135deg,#eef2e9,#e5ece2)}
.item-emoji{color:#557565}
.status-pill{box-shadow:0 2px 8px rgba(25,42,31,.09);color:#2d6b53;background:#fffefa}
.status-pill.soon{color:#8e6425;background:#f7efd9}
.status-pill.expired{color:#a64e47;background:#f8e8e5}
.item-content{padding:15px}
.item-category{color:#89938a}
.item-content h3{color:#29392e}
.item-brand{color:#829087}
.item-dates{border-color:#edf0e9}
.date-row span{color:#89938a}
.date-row strong{color:#46574a}
.date-row strong.soon-text{color:#a9772e}
.date-row strong.expired-text{color:#b9574f}
.mini-button{border-color:#e1e7df;color:#647368;border-radius:8px}
.mini-button:hover{background:#edf3eb;color:#285f46;border-color:#cbd9ca}
.empty-state{border-color:#d8e2d7;background:#fffefa;border-radius:14px}
.empty-state p{color:#89948b}

/* Reminder list and settings */
.reminder-intro{background:#f5efdf;border-color:#eadfbe;border-radius:13px}
.reminder-intro p{color:#83714d}
.reminder-row{border-color:#e5e8e1;border-radius:12px;box-shadow:0 2px 9px rgba(31,55,40,.02);background:#fffefa}
.reminder-row .r-icon{background:#f5efdf}
.reminder-row strong{color:#2d3e32}
.reminder-row p{color:#849087}
.reminder-date{color:#a7772e}
.settings-card{border-color:#e3e7df;border-radius:13px;box-shadow:0 3px 12px rgba(31,55,40,.025);background:#fffefa}
.settings-icon{color:#2d6b53}
.settings-card h3{color:#2e4033}
.settings-card p{color:#7e8b81}
.secure-pill{color:#2d6b53;background:#e8f0e7}
.donate-button{background:#f5efdf;border-color:#eaddbd;color:#805e29}
.site-footer{color:#89958b}
.site-footer a{color:#2d6b53}

/* Dialogs and forms */
.modal-backdrop{background:rgba(20,39,29,.60);backdrop-filter:blur(5px)}
.modal-card{border:1px solid #e3e8df;border-radius:17px;box-shadow:0 25px 75px rgba(15,33,23,.25);background:#fffefa}
.modal-header h2{color:#293b2f}
.modal-header p{color:#849087}
.icon-button{background:#eef2eb;color:#5c6e60}
.file-field{border-color:#d8e3d8;background:#f8faf5}
.file-field small{color:#879289}
.file-current{color:#2d6b53}
.toast{background:#1d4939;border-radius:10px;box-shadow:0 12px 30px rgba(22,52,36,.2)}

/* Mobile */
@media(max-width:1100px){
  .sidebar{width:232px}.main-area{margin-left:232px}
  .topbar{padding:0 24px}.page-wrap{padding-left:24px;padding-right:24px}
  .auth-story{padding-left:1vw}
}
@media(max-width:800px){
  .sidebar{width:275px;box-shadow:18px 0 50px rgba(9,24,18,.23)}
  .main-area{margin-left:0}.topbar{padding:0 16px}
  .page-wrap{padding:21px 16px 22px}
  .welcome-row{padding:20px 19px;border-radius:14px;align-items:flex-start}
  .welcome-row h1{font-size:26px;letter-spacing:-1px}
  .welcome-row:after{right:-28px;width:125px;height:125px;font-size:75px}
  .welcome-row .button{white-space:nowrap}
  .auth-layout{gap:20px}.auth-story h1{font-size:35px}
}
@media(max-width:520px){
  .welcome-row{flex-direction:column;gap:16px}
  .welcome-row .button{width:100%}
  .topbar{height:60px}.breadcrumb span,.breadcrumb b{display:none}
  .topbar-right{gap:8px}.sync-indicator{font-size:9px}
  .auth-layout{grid-template-columns:1fr;min-height:auto;padding:25px 0 27px}
  .auth-story{padding:11px 4px 0}.auth-story h1{font-size:33px}
  .story-points{gap:13px;margin:21px 0}.auth-card-wrap{padding:0}
  .auth-card{padding:26px 21px 22px}
  .auth-foot{margin-bottom:8px}
  .stats-grid{gap:9px}.stat-card{border-radius:12px}
  .section-heading{gap:12px}.section-heading h2{font-size:15px}
  .item-card{border-radius:13px}
  .settings-actions{flex-wrap:wrap}
}
