/* KITCHEN CHAOS — PREMIUM CHAOS DESIGN SYSTEM v0.2
 * Presentation only. Change --accent for sister products. App data and logic unchanged.
 * Inspired by a calm interior-design aesthetic, not by any brand's proprietary design.
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;450;500;550;600;650;700&display=swap');
:root {
  color-scheme: light;
  --background:#FAF8F5;
  --paper:#FAF8F5;
  --card:#EFECE7;
  --ink:#1F1F1F;
  --ink-muted:#595C57;
  --accent:#6B7F6A;
  --accent-dark:#566956;
  --accent-soft:#F1F4EF;
  --outline:#DCD9D3;
  --shadow:0 2px 9px rgba(31,31,31,.035);
  --radius:17px;
  /* Compatibility aliases for the existing app */
  --cream:var(--background);
  --cream-dark:var(--card);
  --forest:var(--accent);
  --soft-green:var(--accent-soft);
}
*{box-sizing:border-box}
html{background:var(--background);-webkit-text-size-adjust:100%}
body{margin:0;background:var(--background);color:var(--ink);font-family:'Inter',ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.57;font-weight:450;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.app-shell{min-height:100dvh;max-width:620px;margin:0 auto;background:var(--background);padding-bottom:calc(86px + env(safe-area-inset-bottom));border-left:1px solid var(--outline);border-right:1px solid var(--outline)}
.topbar{padding:calc(17px + env(safe-area-inset-top)) 23px 17px;display:flex;align-items:center;gap:12px;background:rgba(250,248,245,.98);position:sticky;top:0;z-index:5;border-bottom:1px solid var(--outline);backdrop-filter:blur(12px)}
.brandname{display:flex;flex-direction:column;flex:1;min-width:0;gap:1px}
.brandname span{font-family:'Cormorant Garamond',Georgia,serif;font-size:29px;letter-spacing:-.035em;font-weight:600;white-space:nowrap;line-height:1.02;color:var(--ink)}
.brandname strong{color:inherit;font-weight:inherit}
.brandname small{color:var(--ink-muted);font-size:9px;letter-spacing:.14em;text-transform:uppercase;line-height:1.8;font-weight:500}
.circle{width:41px;height:41px;display:grid;place-items:center;border-radius:50%;font-size:19px}
.ghost{background:transparent;color:var(--ink);border:1px solid var(--outline)}
.topbar .ghost{background:none;border-color:transparent}
main{padding:31px 22px 34px}
.eyebrow{font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:650;color:var(--accent-dark)}
.h1,.h2,.section-title h2,.card h3,.cardhead h3{font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif;color:var(--ink)}
.h1{font-size:clamp(42px,11.3vw,55px);line-height:1.02;letter-spacing:-.04em;font-weight:500;margin:12px 0 16px}
.h2{font-size:36px;line-height:1.06;font-weight:500;margin:0 0 16px}
.intro{font-size:14px;color:var(--ink-muted);margin:0 0 23px;line-height:1.65}
.hero{border:1px solid var(--outline);border-radius:21px;padding:28px 23px 25px;background:var(--background);position:relative;overflow:hidden;box-shadow:var(--shadow)}
.hero:before{content:none!important;display:none!important}
.hero:after{content:'';position:absolute;top:29px;right:24px;width:34px;height:1px;background:var(--accent);opacity:.8}
.hero h1{max-width:400px;margin:15px 0 16px}
.hero p,.hero p[style]{font-size:14px;color:var(--ink-muted)!important;line-height:1.7;max-width:340px!important;margin:0 0 21px}
.pillrow{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0 0}
.pill{font-size:11px;letter-spacing:.01em;border-radius:99px;background:transparent;padding:7px 12px;border:1px solid var(--outline);color:var(--ink-muted)}
.card{background:var(--background);border:1px solid var(--outline);border-radius:var(--radius);box-shadow:var(--shadow);padding:21px;margin:15px 0}
.card.soft,.card.green{background:var(--card);border-color:var(--outline)}
.cardhead{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:11px}
.cardhead h3,.card h3{margin:0;font-size:27px;font-weight:600;line-height:1.05}
.card p{margin:9px 0;color:var(--ink-muted);line-height:1.65}
.card.green .btn.green{margin-top:7px}
.muted{color:var(--ink-muted)}.small{font-size:12px}.micro{font-size:11px}
.section-title{margin:28px 2px 11px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.section-title h2{margin:0;font-size:30px;font-weight:600;letter-spacing:-.025em;line-height:1.1}
.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:16px}
.action,.action.yellow,.action.orange,.action.green{border-radius:17px;border:1px solid var(--outline);background:var(--background);text-align:left;padding:18px 15px;min-height:125px;display:flex;flex-direction:column;gap:5px;justify-content:center;color:var(--ink);box-shadow:none}
.action strong{font-size:13px;font-weight:650}.action small{font-size:11px;color:var(--ink-muted);line-height:1.45}
.action .emoji{display:block;color:var(--accent);margin-bottom:5px}
.action:active{transform:scale(.992)}
.btn{border-radius:10px;padding:12px 16px;border:1px solid transparent;background:var(--ink);color:#fff;font-weight:600;font-size:12px;min-height:44px;letter-spacing:.01em;line-height:1.4;box-shadow:none}
.btn:disabled{opacity:.46;cursor:not-allowed}
.btn.green{background:var(--accent-dark);color:#fff}
.btn.secondary,.btn.outline{background:transparent;color:var(--ink);border-color:var(--outline)}
.btn.ghost{background:transparent;color:var(--ink);border-color:transparent}
.btn.full{width:100%}
.btn.small{padding:8px 11px;min-height:36px;font-size:11px}
.row{display:flex;align-items:center;gap:10px;justify-content:space-between}.row.wrap{flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:10px}
.buttons{display:flex;gap:8px;flex-wrap:wrap}.buttons .btn{flex:1}
.tag,.tag.good,.tag.warn,.tag.soft{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;background:transparent;color:var(--accent-dark);border:1px solid var(--outline);border-radius:99px;font-weight:600;font-size:10px;line-height:1.3}
.divider{border:0;border-top:1px solid var(--outline);margin:20px 0}
.form-group{margin:15px 0}.form-group label{display:block;font-size:11px;font-weight:650;color:var(--ink);margin-bottom:8px}
.field,select,textarea,input[type='text'],input[type='number'],input[type='date'],input[type='time'],input[type='file'],input:not([type]){width:100%;border:1px solid var(--outline);border-radius:9px;background:#fff;color:var(--ink);padding:11px 12px;min-height:44px}
textarea{min-height:100px;resize:vertical}
input[type=checkbox]{accent-color:var(--accent)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.list{display:flex;flex-direction:column;gap:9px}
.item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px;background:var(--background);border:1px solid var(--outline);border-radius:12px}
.item b{font-size:13px;font-weight:650}.item small{display:block;color:var(--ink-muted);margin-top:3px}
.item-actions{display:flex;gap:5px;flex-shrink:0}.item-actions .btn{font-size:11px}
.empty{background:var(--card);border:1px solid var(--outline);border-radius:17px;padding:22px;text-align:center}
.empty .emoji{display:block;color:var(--accent);margin-bottom:10px}
.goal-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.goal{padding:14px 12px;border-radius:13px;border:1px solid var(--outline);background:var(--background);display:flex;gap:9px;align-items:flex-start;font-size:12px;min-height:91px}
.goal input{margin:4px 0 0;accent-color:var(--accent)}
.goal.selected{background:var(--background);border:1.5px solid var(--accent)}
.goal .goal-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--accent);flex:0 0 20px;margin-top:0}
.goal span{display:flex;flex-direction:column;gap:4px}.goal small{color:var(--ink-muted);line-height:1.45}
.kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.kpi>div{padding:12px 6px;background:var(--card);border-radius:11px;text-align:center;border:1px solid var(--outline)}
.kpi b{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-size:24px;font-weight:600;line-height:1.18;overflow-wrap:anywhere}
.kpi small{display:block;color:var(--ink-muted);font-size:10px;line-height:1.4}
.message{margin:12px 0;padding:13px;border-radius:12px;max-width:93%;white-space:pre-wrap;border:1px solid var(--outline)}
.message.user{margin-left:auto;background:var(--card)}.message.bot{background:var(--background)}
.message small{display:block;font-size:10px;color:var(--ink-muted);margin-bottom:4px}
.bar{height:5px;border-radius:99px;background:var(--outline);overflow:hidden}.bar span{display:block;height:100%;background:var(--accent)}
.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(620px,100%);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(250,248,245,.98);border-top:1px solid var(--outline);padding:8px 6px calc(9px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}
.bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;color:#656862;background:transparent;border:0;padding:4px 2px 2px;font-size:10px;font-weight:550;border-radius:0;min-width:0}
.bottom-nav button.active{color:var(--accent-dark);background:transparent;font-weight:700}
.bottom-nav button.active:after{content:'';display:block;width:19px;height:2px;background:var(--accent);border-radius:99px;margin-top:1px}
.bottom-nav .nav-ic{display:grid;place-items:center;height:23px;line-height:1}
.nav-ic .line-icon{width:19px;height:19px;stroke-width:1.55}
.line-icon{display:inline-block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;flex-shrink:0}
.emoji .line-icon,.goal-icon .line-icon,.empty .emoji .line-icon{width:23px;height:23px}
.cardhead .line-icon,.card h3 .line-icon{width:20px;height:20px;vertical-align:-2px;stroke:var(--accent)}
.h1 .line-icon,.hero .line-icon{display:none}
.notice{background:var(--card);border:1px solid var(--outline);padding:13px;border-radius:11px;font-size:12px;color:var(--ink-muted)}
.subtle-note{border-left:2px solid var(--accent);padding:10px 13px;background:var(--card);color:var(--ink-muted);border-radius:0 7px 7px 0;font-size:12px;margin:12px 0}
.switch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border:1px solid var(--outline);border-radius:11px;background:var(--background);margin:8px 0}
.switch input{accent-color:var(--accent);width:19px;height:19px}
.receipt-line{display:grid;grid-template-columns:20px minmax(0,1fr) 75px;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--outline)}
.receipt-line input[type=number]{width:75px;padding:8px}
.chip-row{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}
.chip{padding:8px 11px;border:1px solid var(--outline);background:var(--background);border-radius:99px;color:var(--ink-muted);font-size:11px}
.chip.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-dark)}
#toast{position:fixed;left:50%;bottom:93px;transform:translate(-50%,20px);background:var(--ink);color:white;padding:11px 15px;border-radius:10px;z-index:30;opacity:0;transition:.15s;pointer-events:none;font-size:12px;max-width:88%;box-shadow:var(--shadow)}
#toast.show{opacity:1;transform:translate(-50%,0)}
.screen-reader{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:700px){main{padding:32px 30px 44px}.action-grid{grid-template-columns:repeat(4,1fr)}.goal-list{grid-template-columns:repeat(3,1fr)}}
@media(max-width:350px){.goal-list{grid-template-columns:1fr}.brandname span{font-size:26px}.card{padding:16px}.cardhead h3,.card h3{font-size:24px}.h1{font-size:42px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
