/* Sample B: notebook. A desk planner, not a dashboard:
   flat paper, no card boxes, rows divided by thin rules, square corners, ink type. */
@import "../fonts/bai-jamjuree/500.css";
@import "../fonts/bai-jamjuree/600.css";
@import "../fonts/anuphan/400.css";
@import "../fonts/anuphan/600.css";

:root {
  --body: "Anuphan", system-ui, sans-serif;
  --display: "Bai Jamjuree", "Anuphan", sans-serif;
  --bg: #f5f8ea;
  --panel: transparent;
  --rule: 1px solid #cfd8b0;
  --r-lg: 4px; --r-md: 4px; --r-sm: 4px;
}
body { font-size: 15.5px; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 32px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
h2 { font-size: 17px; }

/* sidebar: part of the page, separated by one rule */
.shell { grid-template-columns: 220px 1fr; }
.nav { background: transparent; color: var(--ink); margin: 0; border-radius: 0; border-right: var(--rule); top: 0; height: 100vh; padding: 28px 0 20px; }
.nav-head { padding: 0 22px; }
.brand-name span { color: var(--olive); }
.nav nav { gap: 0; }
.nav-item { color: var(--muted); border-radius: 0; padding: 10px 22px; border-left: 4px solid transparent; }
.nav-item:hover { background: #ecf1d8; color: var(--ink); }
.nav-item[aria-current="page"] { background: transparent; color: var(--ink); font-weight: 600; border-left-color: var(--lime-deep); }
.badge { background: transparent; color: var(--olive-dark); border: var(--rule); }
.nav-item[aria-current="page"] .badge { background: transparent; color: var(--olive-dark); }
.kc-line { color: var(--muted); margin: auto 22px 0; }

main { padding: 36px 48px 40px; }

/* buttons: rectangular, ink */
.btn { border-radius: 4px; }
.btn.ghost { border-color: var(--ink); }
.chip { border-radius: 4px; background: transparent; border-color: #cfd8b0; }
input[type="text"], input[type="url"], input[type="password"], .field-btn, .stepper { border-radius: 4px; border: 1px solid #b9c493; }
.pop { background: #fff; border-radius: 4px; border: 1px solid #b9c493; box-shadow: 0 12px 28px -16px rgb(27 33 8 / .35); }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover { background: var(--ink); border-color: var(--ink); }
.pill-input { border-radius: 4px; border: 1px solid #b9c493; padding: 4px 4px 4px 14px; }

/* hero: no box; date as a planner heading, turtle sits on the rule */
.hero { background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0 0 0; }
.date { font-family: var(--display); font-size: 15px; color: var(--olive); font-weight: 500; }
.bubble { border-bottom: 0; background: transparent; padding: 0; font-family: var(--display); font-size: 34px; font-weight: 600; border-radius: 0; }
.bubble::after { display: none; }
#mascot { margin-bottom: -2px; }

/* today's numbers: a ruled table row */
.tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0;border-bottom: var(--rule); margin-bottom: 24px; }
.tile { background: transparent; border: 0; border-right: var(--rule); border-radius: 0; padding: 18px 20px; }
.tile:last-child { border-right: 0; }
.tile .v { font-size: 26px; font-weight: 600; }
.tile-ic { background: transparent; border-radius: 0; width: auto; }
.ring .track { stroke: #dfe6c6; }
.ring .prog { stroke: var(--olive); }

/* lists: lined paper */
.panel { background: transparent; border: 0; border-top: var(--rule); border-bottom: var(--rule); border-radius: 0; padding: 16px 0; }
.list { gap: 0; border-top: var(--rule); }
.list li { background: transparent; border: 0; border-bottom: var(--rule); border-radius: 0; padding: 12px 4px; }
.list .when { background: transparent; color: var(--olive-dark); border: var(--rule); border-radius: 4px; }
.list .when.late { background: var(--err); border-color: var(--err); }
.list input[type="checkbox"] { border-radius: 3px; border: 1.5px solid var(--ink); width: 20px; height: 20px; }
.list input[type="checkbox"]:checked { background: var(--ink); border-color: var(--ink); }
.empty { border-style: none !important; }
.count { border-radius: 4px; border: 1px solid #b9c493; background: transparent; }
.step { border-radius: 3px; background: #e6edc8; }

/* focus */
.timer { background: transparent; border: 0; padding: 10px 0; }
.dial .track { stroke: #dfe6c6; }
.dial .prog { stroke: var(--ink); stroke-linecap: butt; }
.clock { font-weight: 600; font-size: 72px; }

/* chat: a transcript, not bubbles */
.ai-off { background: transparent; border: 0; border-left: 4px solid var(--lime-deep); border-radius: 0; padding: 4px 0 4px 16px; }
.chat { gap: 0; border-top: var(--rule); }
.chat li { max-width: none; border-radius: 0; border-bottom: var(--rule); padding: 12px 4px; background: transparent !important; color: var(--ink) !important; border-left: 0; border-right: 0; border-top: 0; align-self: stretch; }
.chat .user { font-weight: 600; }
.chat .user::before { content: "คุณ"; display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.chat .assistant::before { content: "เต่าเขียว"; display: block; font-size: 13px; color: var(--olive); }
.settings { border-bottom: 0; }
.toast { border-radius: 4px; background: var(--ink); }

@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; }
  .nav { height: auto; border-right: 0; border-bottom: var(--rule); padding: 14px 0; }
  .nav nav { flex-direction: row; }
  .nav-item { border-left: 0; border-bottom: 3px solid transparent; padding: 8px 12px; }
  .nav-item[aria-current="page"] { border-bottom-color: var(--lime-deep); }
  main { padding: 20px 16px; }
  .tile { border-right: 0; border-bottom: var(--rule); }
  .bubble { font-size: 26px; }
}

/* transcript rows override the bubble layout from app.css */
.chat .user, .chat .assistant { align-self: stretch; border: 0; border-bottom: var(--rule); border-radius: 0; }

/* planner: ruled paper, square corners, ink */
.seg { border-radius: 4px; border: 1px solid #b9c493; background: transparent; }
.seg button { border-radius: 3px; }
.tbl-wrap { background: transparent; border: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.pl-table th, .pl-table td { border-bottom: var(--rule); }
.cb { border-radius: 3px; border-color: var(--ink); }
.cb:checked { background: var(--ink); border-color: var(--ink); }
.col { background: transparent; border: var(--rule); border-radius: 4px; }
.col.over { background: #ecf1d8; }
.card { border-color: #cfd8b0; border-radius: 4px; }
.card:hover { border-color: var(--ink); }
.cal-grid { background: transparent; border-color: #cfd8b0; }
.cal-w, .cal-cell { border-color: #cfd8b0; }
.cal-cell.out { background: #eef2dc; }
.cal-chip { border-radius: 3px; }
.tag { border-radius: 3px; }
.cal-tray { border-radius: 4px; }
.tp { background: #fbfcf4; border-left: 1px solid #b9c493; box-shadow: -18px 0 40px -28px rgb(27 33 8 / .4); }
.tp-props { border-bottom: var(--rule); }
.tp-foot { border-top: var(--rule); }

/* planner extras */
.cmdk { background: #fbfcf4; border-color: #b9c493; border-radius: 4px; }
.cmdk-opt { border-radius: 3px; }
.cmdk-opt[aria-selected="true"] { background: #ecf1d8; }
kbd { border-radius: 3px; border-color: #cfd8b0; }
.toast-btn { border-radius: 3px; }
.trash-list li { border-bottom: var(--rule); }
.tp-sub { border-bottom: var(--rule); }
