:root {
  color-scheme: light;
  --ink: #173231;
  --ink-soft: #4a6260;
  --muted: #6b7e7c;
  --line: #dfe9e7;
  --line-dark: #c8d6d3;
  --canvas: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --teal: #087c72;
  --teal-dark: #075950;
  --teal-wash: #e4f4f0;
  --orange: #e17b45;
  --orange-wash: #fff0e5;
  --blue: #4678bc;
  --blue-wash: #eaf1fc;
  --amber: #ac752b;
  --amber-wash: #fbf2df;
  --green: #27865d;
  --green-wash: #e5f5ea;
  --danger: #b44747;
  --shadow: 0 16px 42px rgba(19, 49, 46, .12);
  font-family: "IBM Plex Sans Thai", "Plus Jakarta Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, label.import-label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label.import-label:focus-within { outline: 3px solid #4b9aef; outline-offset: 3px; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 248px; flex-direction: column; padding: 25px 18px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.brand { display: flex; gap: 11px; align-items: center; min-height: 48px; margin: 0 7px 40px; color: var(--teal); text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--teal); color: white; }
.brand-mark svg { width: 27px; height: 27px; stroke: none; }
.brand-name { display: flex; flex-direction: column; color: var(--ink); font: 800 17px/1.12 "Plus Jakarta Sans", sans-serif; letter-spacing: -.65px; }
.brand-name > span { display: inline; }
.brand-name span { color: var(--teal); }
.brand-name small { margin-top: 5px; color: var(--muted); font: 400 12px/1.3 "IBM Plex Sans Thai", sans-serif; letter-spacing: 0; }
.sidebar-label { margin: 0 10px 12px; color: #80918f; font: 700 10px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.primary-nav, .category-nav { display: grid; gap: 5px; }
.nav-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: var(--ink-soft); font-size: 14px; text-decoration: none; transition: background .18s, color .18s, border-color .18s; }
.nav-link svg { width: 18px; height: 18px; color: #728582; }
.nav-link:hover { background: var(--surface-soft); color: var(--teal-dark); }
.nav-link.active { border-color: #d4eae4; background: #eaf5f2; color: var(--teal-dark); font-weight: 600; }
.nav-link.active svg { color: var(--teal); }
.nav-count { display: grid; min-width: 25px; height: 24px; place-items: center; margin-left: auto; border-radius: 7px; background: white; color: var(--teal-dark); font: 700 11px "Plus Jakarta Sans", sans-serif; }
.category-label { margin-top: 34px; }
.category-nav { gap: 2px; overflow-y: auto; }
.category-link { display: flex; min-height: 40px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #526663; cursor: pointer; text-align: left; transition: background .16s, color .16s; }
.category-link:hover, .category-link.selected { background: var(--surface-soft); color: var(--teal-dark); }
.category-dot { width: 8px; height: 8px; flex: 0 0 auto; border: 2px solid var(--teal); border-radius: 50%; background: white; }
.category-link.selected .category-dot { background: var(--teal); }
.category-link span:last-child { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.category-link small { margin-left: auto; color: #849390; font: 500 11px "Plus Jakarta Sans", sans-serif; }
.sidebar-bottom { margin-top: auto; padding-top: 18px; }
.privacy-note { display: flex; gap: 9px; align-items: flex-start; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfc; }
.privacy-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: var(--teal-wash); color: var(--teal-dark); }
.privacy-icon svg { width: 15px; height: 15px; }
.privacy-note strong { display: block; font-size: 12px; font-weight: 600; }
.privacy-note p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sidebar-add { display: flex; width: 100%; min-height: 45px; align-items: center; gap: 9px; margin-top: 12px; padding: 0 10px; border: 1px dashed #a9c5bf; border-radius: 9px; background: white; color: var(--teal-dark); font-weight: 600; text-align: left; transition: background .18s, border-color .18s; }
.sidebar-add:hover { border-color: var(--teal); background: var(--teal-wash); }
.sidebar-add span { font: 400 20px/1 "Plus Jakarta Sans", sans-serif; }

.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid rgba(223, 233, 231, .9); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.topbar-left, .breadcrumbs, .topbar-actions { display: flex; align-items: center; }
.breadcrumbs { gap: 11px; color: #778986; font-size: 12px; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.crumb-separator { color: #b5c2bf; }
.topbar-actions { gap: 10px; }
.save-indicator { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; color: #617572; font-size: 12px; white-space: nowrap; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #48a27a; }
.save-indicator.saving .save-dot { background: #e7a347; }
.icon-button { display: inline-grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #647875; cursor: pointer; transition: background .17s, color .17s, border-color .17s; }
.icon-button:hover { border-color: var(--line); background: var(--surface-soft); color: var(--teal-dark); }
.icon-button svg { width: 18px; height: 18px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.button:active { filter: brightness(.96); }
.button-primary { background: var(--teal); color: white; }
.button-primary:hover { background: var(--teal-dark); box-shadow: 0 3px 10px rgba(8, 124, 114, .15); }
.button-primary > span { font: 400 19px/1 "Plus Jakarta Sans", sans-serif; }
.top-add { min-height: 39px; padding: 0 13px; }
.top-add > span { font-size: 18px; }
.button-light { border-color: rgba(255,255,255,.4); background: white; color: var(--teal-dark); }
.button-light:hover { background: #e8f5f1; }
.button-outline { border-color: var(--line-dark); background: white; color: var(--ink-soft); }
.button-outline:hover { border-color: #91b8ae; background: #f5faf8; color: var(--teal-dark); }
.mobile-menu { display: none; }

.content { width: min(100%, 1510px); margin: 0 auto; padding: 39px clamp(24px, 4vw, 58px) 20px; }
.welcome-row { display: flex; min-height: 126px; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--teal); font: 700 10px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: 1.25px; }
.eyebrow-line { width: 17px; height: 2px; border-radius: 2px; background: var(--orange); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 9px 0 5px; color: var(--ink); font-size: clamp(25px, 3.05vw, 34px); font-weight: 700; line-height: 1.34; letter-spacing: -.65px; }
.mobile-break { display: none; }
.welcome-copy { margin: 0; color: var(--muted); font-size: 14px; }
.today-card { display: flex; min-width: 191px; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.today-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: var(--orange-wash); color: #ba6438; }
.today-icon svg { width: 19px; height: 19px; }
.today-card small { display: block; color: var(--muted); font-size: 11px; }
.today-card strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }

.focus-panel { display: flex; min-height: 133px; align-items: center; gap: 18px; padding: 21px 24px; border: 1px solid #0d6c63; border-radius: 13px; background: var(--teal-dark); color: white; }
.focus-icon { display: grid; width: 50px; height: 50px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: rgba(255,255,255,.1); color: #daefe9; }
.focus-icon svg { width: 25px; height: 25px; }
.focus-copy { min-width: 0; flex: 1; }
.focus-kicker { display: flex; align-items: center; gap: 8px; color: #bce1d8; font-size: 11px; font-weight: 600; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: #f0bd68; }
.live-pulse.active { background: #66d19c; box-shadow: 0 0 0 4px rgba(102,209,156,.16); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(102,209,156,0); } }
.focus-copy h2 { margin: 5px 0 2px; color: white; font-size: 20px; font-weight: 600; line-height: 1.4; }
.focus-copy p { margin: 0; color: #c1d9d5; font-size: 12px; }
.focus-side { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; }
.focus-timer { color: #d1e9e5; font: 600 13px "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums; }
.focus-panel.running { background: #064a45; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 17px 0 42px; }
.stat-card { min-height: 123px; padding: 16px 17px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #687c79; font-size: 12px; }
.stat-icon { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; }
.stat-icon svg { width: 15px; height: 15px; }
.stat-icon-mint { background: var(--teal-wash); color: var(--teal); }
.stat-icon-blue { background: var(--blue-wash); color: var(--blue); }
.stat-icon-amber { background: var(--amber-wash); color: var(--amber); }
.stat-icon-green { background: var(--green-wash); color: var(--green); }
.stat-card > strong { display: block; margin-top: 4px; color: var(--ink); font: 700 25px/1.25 "Plus Jakarta Sans", "IBM Plex Sans Thai", sans-serif; letter-spacing: -.5px; }
.stat-card > small { display: block; margin-top: 2px; color: #869592; font-size: 11px; }

.projects-section { scroll-margin-top: 87px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-eyebrow { color: #768985; }
.section-heading h2 { margin: 3px 0 1px; font-size: 22px; font-weight: 700; letter-spacing: -.25px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.view-switch { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.view-button { display: inline-flex; min-width: 81px; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: #70817e; font-size: 12px; }
.view-button svg { width: 15px; height: 15px; }
.view-button:hover { background: var(--surface-soft); color: var(--ink); }
.view-button.selected { background: var(--teal-wash); color: var(--teal-dark); font-weight: 600; }
.toolbar { display: flex; min-height: 54px; align-items: center; gap: 10px; margin-bottom: 12px; }
.search-box { display: flex; width: min(330px, 40vw); min-height: 39px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #71837f; }
.search-box svg { width: 16px; height: 16px; flex: 0 0 auto; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #8d9b99; }
.search-box:focus-within { border-color: #66a59a; box-shadow: 0 0 0 3px rgba(8,124,114,.09); }
.filter-select { display: flex; min-height: 39px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: #80908d; font-size: 11px; }
.filter-select select { max-width: 170px; border: 0; outline: 0; background: transparent; color: var(--ink-soft); font-size: 12px; }
.clear-filter { min-height: 35px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--teal); font-size: 12px; }
.clear-filter:hover { background: var(--teal-wash); }
.result-count { margin-left: auto; color: #7d8e8b; font-size: 11px; white-space: nowrap; }

.board-view { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); align-items: start; gap: 13px; overflow-x: auto; padding: 0 0 12px; scrollbar-color: #bdceca transparent; scrollbar-width: thin; }
.board-column { min-height: 270px; padding: 12px 10px 10px; border: 1px solid #e2eae8; border-radius: 10px; background: #eff4f2; transition: border-color .18s, background .18s; }
.board-column.drag-over { border-color: var(--teal); background: #e5f3ef; }
.column-header { display: flex; align-items: center; gap: 8px; padding: 1px 3px; }
.column-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-todo { background: #82958f; }
.dot-doing { background: #367fc1; }
.dot-waiting { background: #d69a3c; }
.dot-done { background: #3d9a6a; }
.column-header h3 { margin: 0; font-size: 13px; font-weight: 600; }
.column-count { display: grid; min-width: 22px; height: 22px; place-items: center; margin-left: auto; border: 1px solid #dfe8e5; border-radius: 7px; background: white; color: #667976; font: 600 10px "Plus Jakarta Sans", sans-serif; }
.column-description { margin: 0 3px 10px; color: #83918e; font-size: 11px; }
.column-cards { display: grid; gap: 8px; min-height: 44px; }
.project-card { position: relative; padding: 11px 11px 9px; border: 1px solid #e0e8e6; border-radius: 8px; background: white; box-shadow: 0 1px 2px rgba(29,62,58,.03); cursor: grab; transition: border-color .18s, box-shadow .18s, transform .18s; }
.project-card:hover { border-color: #b4cec7; box-shadow: 0 5px 15px rgba(25,68,60,.07); }
.project-card:active { cursor: grabbing; }
.project-card.dragging { transform: rotate(1deg); opacity: .52; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.category-pill { overflow: hidden; max-width: calc(100% - 52px); padding: 3px 7px; border-radius: 5px; background: #eef5f3; color: #54736d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.priority-pill { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; color: #86918f; font-size: 10px; }
.priority-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.priority-high { color: #c36048; }
.priority-low { color: #758b83; }
.card-title-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: left; }
.card-title-button:hover { color: var(--teal); }
.card-description { display: -webkit-box; overflow: hidden; min-height: 35px; margin: 5px 0 9px; color: #758681; font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-progress { margin: 1px 0 9px; }
.card-progress-top { display: flex; justify-content: space-between; margin-bottom: 4px; color: #7c8c88; font-size: 10px; }
.progress-track { height: 4px; overflow: hidden; border-radius: 4px; background: #edf1ef; }
.progress-fill { height: 100%; border-radius: inherit; background: #36a07d; transition: width .22s ease; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 7px; border-top: 1px solid #edf1ef; }
.card-updated { overflow: hidden; color: #899693; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-open { min-height: 28px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; color: var(--teal); cursor: pointer; font-size: 10px; font-weight: 600; white-space: nowrap; }
.card-open:hover { background: var(--teal-wash); }
.card-focus-button { display: block; width: 100%; min-height: 33px; margin-top: 6px; padding: 0 8px; border: 1px solid #d7e7e2; border-radius: 6px; background: #f8fbfa; color: var(--teal-dark); cursor: pointer; font-size: 11px; font-weight: 600; transition: background .17s, border-color .17s; }
.card-focus-button:hover { border-color: #9ec5b9; background: var(--teal-wash); }
.card-focus-button:focus-visible { outline-offset: 2px; }
.column-empty { padding: 13px 5px 16px; color: #869491; font-size: 11px; text-align: center; }
.column-add { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 7px; margin-top: 7px; padding: 0 7px; border: 1px dashed transparent; border-radius: 7px; background: transparent; color: #748680; cursor: pointer; font-size: 11px; text-align: left; transition: background .18s, color .18s, border-color .18s; }
.column-add:hover { border-color: #c1d5cf; background: white; color: var(--teal-dark); }
.column-add span { font: 400 17px/1 "Plus Jakarta Sans", sans-serif; }

.list-view { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.list-head, .list-row { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(110px, 1.1fr) minmax(110px, .95fr) minmax(120px, 1fr) minmax(70px, .6fr); align-items: center; gap: 13px; padding: 12px 16px; }
.list-head { border-bottom: 1px solid var(--line); background: #f8fbfa; color: #73837f; font-size: 11px; font-weight: 600; }
.list-row { min-height: 63px; border-bottom: 1px solid #edf1ef; color: var(--ink-soft); font-size: 12px; }
.list-row:last-child { border-bottom: 0; }
.list-project-title { display: block; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 600; text-align: left; }
.list-project-title:hover { color: var(--teal); }
.list-project-description { overflow: hidden; margin-top: 2px; color: #84928f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.status-select { max-width: 100%; min-height: 31px; padding: 0 25px 0 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink-soft); font-size: 11px; }
.list-progress { display: flex; align-items: center; gap: 7px; }
.list-progress .progress-track { width: 64px; }
.empty-search { padding: 44px 20px; border: 1px dashed var(--line-dark); border-radius: 10px; background: white; text-align: center; }
.empty-search-mark { display: grid; width: 46px; height: 46px; place-items: center; margin: 0 auto 12px; border-radius: 14px; background: var(--teal-wash); color: var(--teal); }
.empty-search-mark svg { width: 21px; height: 21px; }
.empty-search strong { display: block; font-size: 14px; }
.empty-search p { margin: 4px 0 15px; color: var(--muted); font-size: 12px; }
.page-footer { display: flex; align-items: center; gap: 14px; margin-top: 27px; padding: 15px 0 8px; border-top: 1px solid var(--line); color: #8a9895; font-size: 10px; }
.page-footer > span:first-child { color: #5e7772; font: 700 9px "Plus Jakarta Sans", sans-serif; letter-spacing: 1px; }
.page-footer > button { margin-left: auto; padding: 7px 0 7px 8px; border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 11px; }
.page-footer > button:hover { text-decoration: underline; }

.project-dialog { width: min(900px, calc(100% - 28px)); max-width: 900px; max-height: min(90vh, 920px); padding: 0; border: 1px solid #d6e1de; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.project-dialog::backdrop { background: rgba(13, 37, 35, .54); backdrop-filter: blur(2px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px 15px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 3px 0 0; font-size: 19px; font-weight: 700; }
.dialog-close { border-color: var(--line); }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 25px; overflow-y: auto; max-height: calc(min(90vh, 920px) - 72px); padding: 20px 22px 23px; }
.detail-main { min-width: 0; }
.field-label { display: block; margin: 0 0 6px; color: #516662; font-size: 12px; font-weight: 600; }
.required-mark { color: var(--danger); }
.text-field { display: block; width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid #d7e1de; border-radius: 7px; background: white; color: var(--ink); font-size: 13px; transition: border-color .17s, box-shadow .17s; }
.text-field::placeholder { color: #9aa6a3; }
.text-field:focus { border-color: #65a69b; outline: 0; box-shadow: 0 0 0 3px rgba(8,124,114,.1); }
textarea.text-field { min-height: 78px; resize: vertical; }
.title-field { margin-bottom: 15px; font-size: 15px; font-weight: 600; }
.description-field { margin-bottom: 19px; }
.detail-section { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.detail-section-heading h3 { margin: 0; font-size: 14px; font-weight: 700; }
.detail-section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.task-completion { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; color: #5f7671; font: 600 10px "Plus Jakarta Sans", sans-serif; white-space: nowrap; }
.checklist { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.checklist-row { display: flex; min-height: 39px; align-items: center; gap: 9px; padding: 4px 7px; border-radius: 6px; }
.checklist-row:hover { background: #f6f9f8; }
.checklist-row input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--teal); cursor: pointer; }
.checklist-row span { min-width: 0; flex: 1; color: var(--ink-soft); font-size: 12px; }
.checklist-row.completed span { color: #8b9895; text-decoration: line-through; }
.task-delete { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #869591; cursor: pointer; }
.task-delete svg { width: 15px; height: 15px; }
.task-delete:hover { background: #fff0ee; color: var(--danger); }
.tasks-empty { padding: 11px 8px; color: #85938f; font-size: 11px; }
.add-task-form { display: flex; gap: 7px; margin-top: 9px; }
.add-task-form .text-field { min-width: 0; min-height: 38px; font-size: 12px; }
.add-task-form .button { min-height: 38px; flex: 0 0 auto; padding: 0 10px; font-size: 11px; }
.activity-section { margin-top: 22px; }
.note-form { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfa; }
.note-form textarea.text-field { min-height: 63px; border-color: #e1e9e7; background: white; font-size: 12px; }
.note-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; }
.note-actions span { color: #84918e; font-size: 10px; }
.note-actions .button { min-height: 35px; padding: 0 11px; font-size: 11px; }
.activity-list { display: grid; gap: 0; margin: 13px 0 0; padding: 0; list-style: none; }
.activity-item { position: relative; display: grid; grid-template-columns: 19px minmax(0,1fr); gap: 9px; padding: 0 0 15px; }
.activity-item:not(:last-child)::before { position: absolute; top: 16px; bottom: 0; left: 8px; width: 1px; background: var(--line); content: ""; }
.activity-mark { position: relative; z-index: 1; display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #c9ded8; border-radius: 50%; background: #eff8f5; color: var(--teal); font-size: 8px; }
.activity-body { min-width: 0; padding-top: 0; }
.activity-body p { margin: 0; color: #526863; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-body time { display: block; margin-top: 2px; color: #93a09d; font-size: 10px; }
.activity-empty { padding: 13px 2px; color: #85938f; font-size: 11px; }
.detail-side { align-self: start; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fbfa; }
.field-group { margin-bottom: 14px; }
.detail-side .text-field { min-height: 39px; background: white; font-size: 12px; }
.detail-side-tip { display: flex; align-items: flex-start; gap: 8px; margin: 5px 0 13px; padding: 10px 8px; border-radius: 7px; background: #edf5f2; }
.tip-mark { display: grid; width: 16px; height: 16px; flex: 0 0 auto; place-items: center; border: 1px solid #76a99c; border-radius: 50%; color: var(--teal-dark); font: 600 10px "Plus Jakarta Sans", sans-serif; }
.detail-side-tip p { margin: 0; color: #5f7872; font-size: 10px; line-height: 1.55; }
.save-project, .button-focus { width: 100%; min-height: 40px; }
.button-focus { margin-top: 7px; border: 1px solid #d1e6df; background: white; color: var(--teal-dark); }
.button-focus:hover { background: var(--teal-wash); }
.delete-project { display: block; margin: 12px auto 0; padding: 6px; border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 11px; }
.delete-project:hover { text-decoration: underline; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 220px; max-width: min(430px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid #c9dfd7; border-radius: 9px; background: white; box-shadow: 0 6px 22px rgba(27,65,58,.15); color: var(--ink); font-size: 12px; animation: toast-in .2s ease-out both; }
.toast-mark { display: grid; width: 20px; height: 20px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--green-wash); color: var(--green); font-size: 11px; font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1200px) {
  .sidebar { width: 220px; padding-right: 14px; padding-left: 14px; }
  .main-area { margin-left: 220px; }
  .board-view { grid-template-columns: repeat(4, minmax(216px, 1fr)); }
  .stats-grid { gap: 9px; }
  .stat-card { padding-right: 12px; padding-left: 12px; }
}
@media (max-width: 980px) {
  .sidebar { width: 205px; }
  .main-area { margin-left: 205px; }
  .content { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-card { min-height: 110px; }
  .focus-panel { flex-wrap: wrap; }
  .focus-side { margin-left: 68px; }
}
@media (max-width: 700px) {
  .sidebar { width: min(282px, calc(100vw - 55px)); transform: translateX(-103%); box-shadow: none; transition: transform .22s ease, box-shadow .22s ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 10px 0 35px rgba(18,54,49,.15); }
  .main-area { margin-left: 0; }
  .topbar { min-height: 60px; padding: 0 15px; }
  .topbar-left { gap: 8px; }
  .mobile-menu { display: inline-grid; width: 37px; height: 37px; border-color: var(--line); }
  .breadcrumbs { gap: 7px; font-size: 11px; }
  .save-indicator { margin-right: 0; font-size: 0; }
  .save-indicator .save-dot { width: 8px; height: 8px; }
  .topbar-actions { gap: 4px; }
  .backup-button { width: 34px; height: 36px; }
  .backup-button svg { width: 16px; height: 16px; }
  .top-add { min-height: 36px; padding: 0 9px; font-size: 11px; }
  .content { padding: 27px 16px 16px; }
  .welcome-row { min-height: 0; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
  .eyebrow { font-size: 9px; }
  h1 { margin-top: 8px; font-size: clamp(22px, 6vw, 29px); line-height: 1.37; }
  .mobile-break { display: initial; }
  .welcome-copy { max-width: 390px; font-size: 12px; }
  .today-card { min-width: 0; gap: 8px; padding: 9px; }
  .today-icon { width: 32px; height: 32px; }
  .today-card small { font-size: 10px; }
  .today-card strong { max-width: 115px; font-size: 10px; white-space: nowrap; }
  .focus-panel { gap: 12px; min-height: 0; padding: 16px; }
  .focus-icon { width: 39px; height: 39px; border-radius: 10px; }
  .focus-icon svg { width: 20px; height: 20px; }
  .focus-copy { flex-basis: calc(100% - 54px); }
  .focus-copy h2 { margin-top: 4px; font-size: 15px; }
  .focus-copy p { font-size: 11px; line-height: 1.55; }
  .focus-side { width: 100%; justify-content: flex-end; gap: 10px; margin-left: 51px; }
  .focus-side .button { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .stats-grid { gap: 8px; margin: 12px 0 30px; }
  .stat-card { min-height: 101px; padding: 11px; }
  .stat-top { font-size: 11px; }
  .stat-icon { width: 25px; height: 25px; }
  .stat-card > strong { font-size: 22px; }
  .stat-card > small { font-size: 10px; }
  .section-heading { align-items: center; gap: 10px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { max-width: 240px; font-size: 10px; }
  .view-switch { flex: 0 0 auto; }
  .view-button { min-width: 34px; min-height: 33px; gap: 0; padding: 0 8px; font-size: 0; }
  .view-button svg { width: 16px; height: 16px; }
  .toolbar { flex-wrap: wrap; gap: 7px; margin-top: 13px; }
  .search-box { width: 100%; min-height: 39px; }
  .filter-select { min-height: 36px; }
  .filter-select select { max-width: 155px; }
  .result-count { font-size: 10px; }
  .board-view { grid-template-columns: repeat(4, minmax(min(83vw, 320px), 1fr)); gap: 9px; margin-right: -16px; padding-right: 16px; }
  .board-column { padding: 10px 8px 8px; }
  .project-card { padding: 10px; }
  .list-view { overflow-x: auto; }
  .list-head, .list-row { min-width: 670px; }
  .page-footer { gap: 8px; font-size: 9px; }
  .page-footer > span:nth-child(2) { max-width: 125px; }
  .page-footer > button { font-size: 10px; }
  .dialog-header { padding: 15px 16px 12px; }
  .dialog-header h2 { font-size: 17px; }
  .dialog-body { grid-template-columns: 1fr; gap: 19px; padding: 16px; }
  .detail-side { order: -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 10px; padding: 12px; }
  .field-group { margin-bottom: 11px; }
  .detail-side-tip { grid-column: 1 / -1; margin-bottom: 10px; }
  .save-project, .button-focus, .delete-project { grid-column: 1 / -1; }
  .delete-project { margin-top: 6px; }
  .project-dialog { max-height: 94vh; }
  .dialog-body { max-height: calc(94vh - 66px); }
}
@media (max-width: 390px) {
  .content { padding-right: 13px; padding-left: 13px; }
  .topbar { padding-right: 11px; padding-left: 11px; }
  .today-card { display: none; }
  .top-add { padding: 0 7px; }
  .top-add > span { display: none; }
  .section-heading p { max-width: 185px; }
  .board-view { margin-right: -13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
