:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #18202b;
  --muted: #788391;
  --line: #e6e9ee;
  --navy: #17213a;
  --violet: #7257ea;
  --violet-soft: #eeeaff;
  --blue: #3c88ee;
  --green: #27a878;
  --orange: #e89b42;
  --shadow: 0 8px 28px rgba(25, 34, 54, .045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 244px;
  padding: 25px 18px 18px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
}
.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 26px;
  height: 27px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 7px;
}
.brand-mark i { width: 3px; border-radius: 2px; background: #fff; transform: rotate(30deg); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 10px; }
.nav-label {
  margin: 13px 12px 9px;
  color: #75809a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}
.nav-label-spaced { margin-top: 24px; }
.nav-item {
  min-height: 44px;
  margin-bottom: 3px;
  padding: 0 12px;
  border-radius: 8px;
  color: #aeb6c9;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: .2s ease;
}
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-item.active { box-shadow: inset 3px 0 #8069ee; }
.nav-icon { width: 20px; color: #8995ac; text-align: center; font-size: 18px; }
.nav-item.active .nav-icon { color: #a997ff; }
.nav-count { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 12px; background: #2d3956; font-size: 10px; text-align: center; }
.sidebar-foot { margin-top: auto; }
.support-card {
  margin: 0 4px 14px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: #1c2946;
  display: flex;
  align-items: center;
  gap: 10px;
}
.support-icon { width: 28px; height: 28px; border-radius: 8px; background: #745ee2; display: grid; place-items: center; font-weight: 700; }
.support-card strong, .support-card small, .user-card strong, .user-card small { display: block; }
.support-card strong { font-size: 11px; }
.support-card small { margin-top: 2px; color: #8c97ad; font-size: 9px; }
.user-card { width: 100%; padding: 10px 6px; border: 0; border-top: 1px solid rgba(255,255,255,.08); background: transparent; color: #fff; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.avatar { width: 33px; height: 33px; border-radius: 50%; background: #d8c6af; color: #4d4034; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.user-card strong { font-size: 11px; }
.user-card small { margin-top: 2px; color: #818ba0; font-size: 9px; }
.dots { margin-left: auto; color: #8790a5; }

.main-content { min-height: 100vh; margin-left: 244px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  padding: 0 31px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb { display: flex; gap: 10px; color: #a0a7b1; font-size: 12px; }
.breadcrumb b { color: #d0d4da; font-weight: 400; }
.breadcrumb strong { color: #4d5662; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search { width: 214px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #f9fafb; color: #9099a6; display: flex; align-items: center; gap: 7px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search kbd { padding: 2px 5px; border: 1px solid #d8dde4; border-radius: 4px; background: #fff; color: #8d96a1; font-family: inherit; font-size: 8px; white-space: nowrap; }
.icon-button, .menu-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.icon-button i { position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #ed6b62; }
.primary-button { height: 36px; padding: 0 15px; border: 0; border-radius: 7px; background: var(--violet); color: #fff; box-shadow: 0 5px 14px rgba(114,87,234,.22); font-size: 11px; font-weight: 600; cursor: pointer; }
.primary-button span { margin-right: 4px; font-size: 15px; }
.menu-button { display: none; }

.dashboard { max-width: 1510px; margin: 0 auto; padding: 30px 32px 24px; }
.welcome { margin-bottom: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { margin: 0 0 8px !important; color: #9ca4ae !important; font-size: 9px !important; font-weight: 700; letter-spacing: .14em; }
.welcome h1 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.025em; }
.welcome p { margin: 0; color: var(--muted); font-size: 11px; }
.period-control { height: 34px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; }
.period-control button { height: 26px; border: 0; background: transparent; color: #89929d; font-size: 10px; cursor: pointer; }
.period { padding: 0 12px; border-radius: 5px !important; }
.period.active { background: #f0edff; color: #6350d3; font-weight: 700; }
.date-button { margin-left: 3px; padding: 0 10px 0 13px; border-left: 1px solid var(--line) !important; color: #4d5661 !important; }
.date-button span { margin-left: 13px; color: #9ca4ae; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.kpi-card, .panel { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.kpi-card { position: relative; min-height: 139px; padding: 16px 17px; overflow: hidden; }
.kpi-head { display: flex; align-items: center; justify-content: space-between; color: #737d8a; font-size: 10px; font-weight: 600; }
.kpi-icon { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; }
.kpi-icon.violet { background: #f0ecff; color: var(--violet); }
.kpi-icon.blue { background: #e9f3ff; color: var(--blue); }
.kpi-icon.green { background: #e7f7f1; color: var(--green); }
.kpi-icon.orange { background: #fff2df; color: var(--orange); }
.kpi-value { margin-top: 5px; display: flex; align-items: center; gap: 9px; }
.kpi-value strong { font-size: 23px; letter-spacing: -.04em; }
.trend { padding: 3px 6px; border-radius: 10px; font-size: 8px; font-weight: 700; }
.trend.up { background: #eaf8f2; color: #258e68; }
.trend.down { background: #fff0ef; color: #d66760; }
.kpi-card p { margin: 2px 0 0; color: #9aa2ac; font-size: 9px; }
.sparkline { position: absolute; right: 16px; bottom: 14px; left: 17px; height: 32px; display: flex; align-items: flex-end; gap: 7px; opacity: .9; }
.sparkline i { flex: 1; max-width: 13px; border-radius: 3px 3px 1px 1px; background: #c7bdfb; }
.sparkline.purple i:nth-last-child(-n+3) { background: #8069e9; }
.sparkline.blue-bars i { background: #bfdbfa; }
.sparkline.blue-bars i:nth-last-child(-n+3) { background: #5294e6; }
.progress { height: 5px; margin-top: 16px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.kpi-card > small { float: right; margin-top: 6px; color: #7b8490; font-size: 8px; }
.score-row { margin-top: 18px; display: flex; gap: 4px; }
.score-row i { flex: 1; height: 5px; border-radius: 4px; background: var(--orange); }
.score-row i.muted { background: #f2dfc7; }

.content-grid { margin-top: 14px; display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,.75fr); gap: 14px; }
.panel { padding: 18px 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head h2 { margin: 0 0 3px; font-size: 13px; }
.panel-head p { margin: 0; color: #98a0aa; font-size: 9px; }
.legend { display: flex; align-items: center; gap: 15px; color: #838d98; font-size: 8px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 2px; background: var(--violet); }
.legend .target { height: 0; border-top: 2px dashed #b8bdc5; background: transparent; }
.legend button { border: 0; background: transparent; color: #9199a4; cursor: pointer; }
.chart { height: 243px; padding-top: 22px; display: flex; }
.y-axis { width: 33px; height: 190px; display: flex; flex-direction: column; justify-content: space-between; color: #a3aab3; font-size: 8px; }
.plot { position: relative; flex: 1; height: 190px; }
.grid-line { position: absolute; right: 0; left: 0; height: 1px; background: #edf0f3; }
.line-1{top:0}.line-2{top:25%}.line-3{top:50%}.line-4{top:75%}.line-5{top:100%}
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.area { fill: url("#none"); fill: rgba(114,87,234,.08); }
.actual-line { fill: none; stroke: var(--violet); stroke-width: 3; vector-effect: non-scaling-stroke; }
.target-line { fill: none; stroke: #b8bec7; stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.points circle { fill: #fff; stroke: var(--violet); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-tooltip { position: absolute; top: 31px; right: 13%; width: 80px; padding: 8px 10px; border: 1px solid #e2e4e9; border-radius: 7px; background: #fff; box-shadow: 0 7px 20px rgba(27,37,55,.11); }
.chart-tooltip::after { content:""; position:absolute; left:50%; bottom:-5px; width:8px; height:8px; border-right:1px solid #e2e4e9; border-bottom:1px solid #e2e4e9; background:#fff; transform:rotate(45deg); }
.chart-tooltip small, .chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip small { color: #9aa2ab; font-size: 7px; }
.chart-tooltip strong { margin: 2px 0; font-size: 12px; }
.chart-tooltip span { color: var(--green); font-size: 7px; }
.x-axis { position: absolute; right: 0; bottom: -22px; left: 0; display: flex; justify-content: space-between; color: #a1a8b1; font-size: 8px; }
.text-button { border: 0; background: transparent; color: #6955d6; font-size: 9px; font-weight: 600; cursor: pointer; }
.health-panel { min-width: 0; }
.health-score { margin: 19px 0 18px; display: flex; align-items: center; gap: 20px; }
.score-ring { position: relative; width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--violet) 0 87%, #eceaf7 87%); display: grid; place-items: center; }
.score-ring::before { content:""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.score-ring span { position: relative; text-align: center; }
.score-ring strong { display: block; font-size: 23px; line-height: 1; }
.score-ring small { color: #969ea8; font-size: 8px; }
.status-pill { display: inline-block; padding: 4px 9px; border-radius: 12px; background: #e9f8f2; color: #238d66; font-size: 8px; font-weight: 700; }
.health-score p { margin: 8px 0 0; color: #9199a2; font-size: 8px; }
.health-score b { color: #2ca77d; }
.health-list { border-top: 1px solid #edf0f2; padding-top: 13px; }
.health-list > div { margin: 10px 0; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 9px; font-size: 8px; }
.health-list > div > div { height: 4px; border-radius: 4px; background: #eceef2; overflow: hidden; }
.health-list i { display: block; height: 100%; border-radius: 4px; background: var(--violet); }
.health-list b { font-size: 8px; text-align: right; }

.bottom-grid { margin-top: 14px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.meeting-list, .project-list { margin-top: 12px; }
.meeting-item { width: 100%; min-height: 56px; padding: 9px 3px; border: 0; border-top: 1px solid #edf0f2; background: transparent; display: grid; grid-template-columns: 40px 1fr auto 18px; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.meeting-item:hover { background: #fafafe; }
.meeting-date { width: 36px; height: 38px; border: 1px solid #e1e4e9; border-radius: 6px; display: grid; place-content: center; text-align: center; }
.meeting-date b { font-size: 13px; line-height: 1; }
.meeting-date small { margin-top: 3px; color: #a1a8b1; font-size: 6px; }
.meeting-main strong, .meeting-main small { display: block; }
.meeting-main strong { font-size: 10px; }
.meeting-main small { margin-top: 4px; color: #939ba5; font-size: 7px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.red { background: #ef746b; }.violet-dot{background:var(--violet)}.blue-dot{background:var(--blue)}
.meeting-tag { padding: 4px 8px; border-radius: 11px; font-size: 7px; font-weight: 700; }
.decision { background: #fff1ee; color: #d9685f; }
.action { background: #f0ecff; color: #7059de; }
.shared { background: #eaf7f2; color: #2a926d; }
.arrow { color: #a5acb5; font-size: 11px; }
.project-item { padding: 12px 0 9px; border-top: 1px solid #edf0f2; }
.project-item.clickable { margin: 0 -8px; padding: 12px 8px 9px; border-radius: 7px; cursor: pointer; transition: background .2s ease; }
.project-item.clickable:hover, .project-item.clickable:focus-visible { background: #fafafe; outline: none; }
.project-top { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; }
.project-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }
.project-icon.violet { background: var(--violet); }
.project-icon.blue { background: var(--blue); }
.project-icon.green { background: var(--green); }
.project-top strong, .project-top small { display: block; }
.project-top strong { font-size: 9px; }
.project-top small { margin-top: 2px; color: #9ba3ad; font-size: 7px; }
.project-top > b { font-size: 9px; }
.project-progress { height: 4px; margin: 9px 0 6px 41px; border-radius: 4px; background: #eeedf5; overflow: hidden; }
.project-progress i { display: block; height: 100%; background: var(--violet); border-radius: inherit; }
.blue-progress i { background: var(--blue); }.green-progress i { background: var(--green); }
.project-meta { margin-left: 41px; display: flex; align-items: center; justify-content: space-between; color: #969ea8; font-size: 7px; }
.project-meta > span:first-child { color: #d18855; }
.avatars { display: flex; }
.avatars i { width: 19px; height: 19px; margin-left: -4px; border: 2px solid #fff; border-radius: 50%; background: #e8edf3; color: #68717d; display: grid; place-items: center; font-style: normal; font-size: 5px; font-weight: 700; }
.dashboard-footer { padding: 21px 2px 0; color: #9aa2ad; display: flex; justify-content: space-between; font-size: 8px; }
.sidebar-overlay { display: none; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 11px 16px; border-radius: 8px; background: #1c263b; color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 24px;
  background: rgba(14, 21, 38, .56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.demo-modal {
  width: min(650px, 100%);
  max-height: calc(100vh - 48px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(14,21,38,.3);
  overflow: auto;
  transform: translateY(12px) scale(.985);
  transition: transform .22s ease;
}
.modal-backdrop.open .demo-modal { transform: translateY(0) scale(1); }
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 24px 26px 19px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.modal-kicker { color: var(--violet); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.modal-header h2 { margin: 6px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.modal-header p { margin: 0; color: var(--muted); font-size: 10px; }
.modal-close { width: 33px; height: 33px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #f8f9fb; color: #747d88; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-body { padding: 23px 26px 27px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field > span { color: #4f5864; font-size: 10px; font-weight: 600; }
.form-field > span em { margin-left: 4px; color: #e16b64; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  outline: none;
  background: #fbfcfd;
  color: var(--ink);
  font: 500 11px/1.5 "DM Sans", "Noto Sans JP", sans-serif;
  transition: border .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-field input, .form-field select { height: 42px; padding: 0 12px; }
.form-field textarea { min-height: 108px; padding: 11px 12px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #8b79e9; background: #fff; box-shadow: 0 0 0 3px rgba(114,87,234,.1); }
.choice-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span {
  min-height: 66px;
  padding: 11px;
  border: 1px solid #e1e4e9;
  border-radius: 9px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  color: #5f6874;
  cursor: pointer;
}
.choice-card b { color: var(--ink); font-size: 10px; }
.choice-card small { font-size: 8px; }
.choice-card input:checked + span { border-color: #8a76eb; background: #f2efff; color: #6c59d3; box-shadow: 0 0 0 2px rgba(114,87,234,.08); }
.editor-toolbar { height: 34px; padding: 0 8px; border: 1px solid #dfe3e9; border-bottom: 0; border-radius: 8px 8px 0 0; background: #f6f7f9; display: flex; align-items: center; gap: 3px; }
.editor-toolbar button { width: 27px; height: 25px; border: 0; border-radius: 5px; background: transparent; color: #65707c; font-size: 10px; cursor: pointer; }
.editor-toolbar button:hover { background: #e9ebef; }
.editor-toolbar + textarea { border-radius: 0 0 8px 8px; }
.form-note { padding: 11px 13px; border-left: 3px solid var(--violet); border-radius: 4px 8px 8px 4px; background: #f6f4ff; color: #70668e; font-size: 9px; line-height: 1.7; }
.management-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-bottom: 19px; }
.summary-box { padding: 14px; border: 1px solid #e4e7ec; border-radius: 9px; background: #fafbfc; }
.summary-box span, .summary-box strong, .summary-box small { display: block; }
.summary-box span { color: #87919d; font-size: 8px; }
.summary-box strong { margin: 5px 0 2px; font-size: 18px; letter-spacing: -.03em; }
.summary-box small { color: #8c96a2; font-size: 7px; }
.view-toolbar { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.view-toolbar strong { font-size: 10px; }
.view-toolbar label { width: 190px; height: 33px; padding: 0 10px; border: 1px solid #e0e4e9; border-radius: 7px; background: #fafbfc; display: flex; align-items: center; gap: 6px; color: #8a939e; }
.view-toolbar input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 9px; }
.record-table { border: 1px solid #e4e7ec; border-radius: 9px; overflow: hidden; }
.record-row { width: 100%; min-height: 54px; padding: 10px 13px; border: 0; border-top: 1px solid #edf0f3; background: #fff; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(85px,.7fr) minmax(75px,.55fr) 17px; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.record-row:first-child { border-top: 0; }
.record-row:hover { background: #fafafe; }
.record-row strong, .record-row small { display: block; }
.record-row strong { font-size: 9px; }
.record-row small { margin-top: 3px; color: #939ca7; font-size: 7px; }
.record-row > span { color: #697480; font-size: 8px; }
.record-row > b { color: #8c95a0; font-size: 11px; text-align: right; }
.record-status { justify-self: start; padding: 4px 8px; border-radius: 11px; background: #eaf7f2; color: #2a926d !important; font-weight: 700; }
.record-status.review { background: #fff1e4; color: #c98139 !important; }
.record-status.draft { background: #f0edff; color: #6c58d6 !important; }
.management-note { margin-top: 13px; color: #8e97a2; font-size: 8px; line-height: 1.7; }
.metric-board { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.metric-board article { padding: 15px; border: 1px solid #e4e7ec; border-radius: 9px; }
.metric-board span, .metric-board strong, .metric-board small { display: block; }
.metric-board span { color: #87919d; font-size: 8px; }
.metric-board strong { margin: 5px 0 3px; font-size: 17px; }
.metric-board small { color: #2a956e; font-size: 8px; }
.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 67px;
  padding: 13px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-footer > span { color: #979fa9; font-size: 8px; }
.modal-footer > span i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #e7a655; }
.modal-footer > div { display: flex; gap: 8px; }
.secondary-button, .save-button { height: 36px; padding: 0 15px; border-radius: 7px; font-size: 10px; font-weight: 600; cursor: pointer; }
.secondary-button { border: 1px solid #dfe3e8; background: #fff; color: #606a76; }
.save-button { border: 0; background: var(--violet); color: #fff; box-shadow: 0 5px 14px rgba(114,87,234,.2); }

@media (max-width: 1100px) {
  .sidebar { width: 210px; }
  .main-content { margin-left: 210px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .health-score { justify-content: center; }
}
@media (max-width: 820px) {
  .sidebar { width: 244px; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-button { display: inline-grid; place-items: center; }
  .breadcrumb { display: none; }
  .topbar { padding: 0 18px; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(13,20,36,.48); }
  .sidebar-overlay.show { display: block; }
  .bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .dashboard { padding: 22px 15px; }
  .topbar-actions .search { display: none; }
  .welcome { align-items: flex-start; flex-direction: column; }
  .period-control { align-self: stretch; }
  .date-button { margin-left: auto; }
  .kpi-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .chart { height: 220px; }
  .meeting-item { grid-template-columns: 40px 1fr 18px; }
  .meeting-tag { display: none; }
  .dashboard-footer { flex-direction: column; gap: 5px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .demo-modal { width: 100%; max-height: 94vh; border-radius: 17px 17px 0 0; }
  .modal-header, .modal-body { padding-right: 18px; padding-left: 18px; }
  .modal-footer { padding: 12px 18px; align-items: flex-start; flex-direction: column; }
  .modal-footer > div { width: 100%; }
  .secondary-button, .save-button { flex: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .choice-row { grid-template-columns: 1fr; }
  .management-summary { grid-template-columns: 1fr; }
  .view-toolbar { align-items: flex-start; flex-direction: column; }
  .view-toolbar label { width: 100%; }
  .record-row { grid-template-columns: 1fr auto; }
  .record-row > span:not(.record-status) { display: none; }
  .record-status { justify-self: end; }
  .record-row > b { display: none; }
}
