:root {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #242d29;
  background: #f5f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #242d29;
  --muted: #87918c;
  --line: #e9ede9;
  --green: #245c49;
  --green-dark: #194b3a;
  --surface: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7f4; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }

.sidebar {
  width: 250px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 27px 16px 15px;
  background: #fff;
  border-right: 1px solid #edf0ed;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #397c60; }
.brand-mark svg { width: 25px; height: 25px; }
.brand strong { display: block; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.5px; }
.brand small { display: block; margin-top: 1px; color: #84908a; font-size: 10px; letter-spacing: .1px; }
.workspace-label, .nav-group-label { color: #9aa39e; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.workspace-label { margin: 37px 9px 10px; }
.unit-select { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 8px; border: 1px solid #e8ede8; border-radius: 9px; color: var(--ink); background: white; text-align: left; }
.unit-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: #387259; background: #e9f3ed; font-size: 12px; font-weight: 700; }
.unit-copy { min-width: 0; flex: 1; }
.unit-copy strong, .unit-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-copy strong { font-size: 10.5px; font-weight: 600; }
.unit-copy small { margin-top: 3px; color: #939c97; font-size: 9px; }
.chevron { width: 13px; fill: none; stroke: #8c9890; stroke-width: 1.5; }
.main-nav { min-height: 0; overflow-y: auto; margin-top: 32px; }
.nav-group-label { padding: 0 10px; margin-bottom: 9px; }
.nav-group-spaced { margin-top: 29px; }
.nav-link { position: relative; width: 100%; min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 11px; margin: 3px 0; border: 0; border-radius: 7px; color: #6f7a74; background: transparent; text-align: left; font-size: 12px; transition: background .15s, color .15s; }
.nav-link:hover { color: var(--green); background: #f5f8f5; }
.nav-link.active { color: #285d49; background: #edf5ef; font-weight: 600; }
.nav-icon { width: 15px; font-size: 16px; text-align: center; }
.nav-count { min-width: 19px; margin-left: auto; padding: 2px 6px; border-radius: 10px; color: #587d69; background: #e4efe7; text-align: center; font-size: 9px; }
.nav-count.warn { color: #a77a31; background: #faf1df; }
.sidebar-bottom { margin-top: auto; }
.help-card { padding: 15px 13px 12px; border-radius: 9px; background: #f4f7f4; }
.help-icon { width: 22px; height: 22px; display: grid; place-items: center; margin-bottom: 9px; border: 1px solid #dfe8df; border-radius: 50%; color: #4a795e; font-size: 12px; font-weight: 700; }
.help-card strong { display: block; font-size: 11px; }
.help-card p { margin: 5px 0 8px; color: #86918a; font-size: 10px; line-height: 1.5; }
.help-link { padding: 0; border: 0; color: #39775b; background: transparent; font-size: 10px; font-weight: 600; }
.help-link span { margin-left: 4px; }
.profile-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 14px 4px 2px; margin-top: 12px; border: 0; border-top: 1px solid #edf0ed; color: var(--ink); background: transparent; text-align: left; }
.profile-avatar, .avatar-small { width: 31px; height: 31px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #5f6650; background: #ecebdc; font-size: 10px; font-weight: 700; }
.profile-info { flex: 1; }
.profile-info strong, .profile-info small { display: block; }
.profile-info strong { font-size: 10px; }
.profile-info small { margin-top: 3px; color: #929a95; font-size: 9px; }
.profile-menu { color: #929a95; letter-spacing: 2px; }

.main-area { min-height: 100vh; margin-left: 250px; }
.topbar { height: 67px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5%; border-bottom: 1px solid #e9ede9; background: rgba(255,255,255,.82); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #909a94; font-size: 11px; }
.breadcrumbs strong { color: #34413a; font-weight: 600; }
.crumb-slash { color: #c3cbc5; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.today-label { color: #87928b; font-size: 10px; }
.icon-button { position: relative; width: 30px; height: 30px; border: 0; color: #66736b; background: transparent; font-size: 20px; }
.notification-button i { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border: 1px solid #fff; border-radius: 50%; background: #d8875f; }
.avatar-small { width: 29px; height: 29px; font-size: 9px; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 19px; }
.content { max-width: 1450px; padding: 38px 4.5% 30px; margin: 0 auto; }
.view { display: none; animation: appear .2s ease-out; }
.view.active { display: block; }
@keyframes appear { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.welcome-row, .page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #74857a; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #62a27c; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Manrope, sans-serif; font-size: clamp(24px, 2.45vw, 32px); line-height: 1.2; letter-spacing: -1.2px; font-weight: 700; }
.wave { display: inline-block; margin-left: 3px; color: #c7944b; font-size: 21px; transform: rotate(20deg); }
.page-subtitle { margin-bottom: 0; color: #87918c; font-size: 12px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; font-weight: 600; transition: background .15s, border .15s; }
.button-primary { color: #fff; background: #286047; }
.button-primary:hover { background: #1c503b; }
.button-outline { border-color: #dfe6e0; color: #52635a; background: #fff; }
.button-outline:hover { border-color: #9bb9a5; background: #f8faf8; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 25px; }
.package-card { display: flex; gap: 13px; padding: 19px; border: 1px solid #e1e9e2; border-radius: 10px; background: #fff; }
.package-card h2 { margin: 4px 0 7px; color: #33493e; font-size: 16px; }
.package-card p { color: #748078; font-size: 10px; line-height: 1.55; }
.package-card ul { padding-left: 17px; margin: 12px 0; color: #526158; font-size: 9px; line-height: 1.75; }
.package-icon { width: 35px; height: 35px; display: grid; flex: 0 0 35px; place-items: center; border-radius: 9px; font-size: 16px; }
.package-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.policy-intro { padding: 10px; border: 1px solid #d5efeb; border-radius: 6px; color: #476b67; background: #eef9f7; font-size: 9px; line-height: 1.5; }
.plus { font-size: 17px; line-height: 1; font-weight: 400; }
.privacy-note { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-top: 26px; border: 1px solid #eee8d7; border-radius: 7px; color: #7e7865; background: #fbf8ee; font-size: 10px; }
.privacy-note strong { color: #6e684f; }
.privacy-icon, .form-privacy span { width: 16px; height: 16px; display: inline-grid; flex: 0 0 16px; place-items: center; border-radius: 50%; color: #9b8751; background: #f0e9ce; font-size: 10px; font-weight: 700; }
.privacy-note button { margin-left: auto; border: 0; color: #99917b; background: transparent; font-size: 18px; }
.section-heading, .panel-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.section-heading { margin: 28px 0 15px; }
.section-heading h2, .panel-header h2 { margin: 0 0 4px; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.3px; }
.section-heading p, .panel-header p { margin: 0; color: #939c96; font-size: 10px; }
.period-select { display: flex; align-items: center; gap: 16px; padding: 8px 10px; border: 1px solid #e5eae5; border-radius: 5px; color: #657269; background: white; font-size: 9px; }
.period-select span { color: #9ca69f; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.stat-card { min-height: 138px; padding: 14px 15px 12px; border: 1px solid #e9ede9; border-radius: 8px; background: #fff; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon, .quick-icon { display: grid; place-items: center; border-radius: 7px; }
.stat-icon { width: 27px; height: 27px; font-size: 14px; }
.mint { color: #4d8767; background: #eaf4ed; }
.peach { color: #c78360; background: #fbefea; }
.lilac { color: #8272ad; background: #f0edf8; }
.yellow { color: #af8c41; background: #f8f2e3; }
.stat-trend { padding: 4px 6px; border-radius: 10px; font-size: 8px; }
.positive { color: #4f8966; background: #edf6ef; }
.neutral { color: #859087; background: #f2f4f2; }
.caution { color: #a6813c; background: #faf4e5; }
.stat-value { margin-top: 12px; font-family: Manrope, sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -.8px; }
.stat-label { margin-top: 2px; color: #66736b; font-size: 10px; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 11px; color: #9aa39d; font-size: 8px; }
.tiny-bar { width: 5px; height: 5px; border-radius: 50%; }
.mint-bar { background: #67a87d; }.peach-bar { background: #df9b79; }.lilac-bar { background: #9584c0; }.yellow-bar { background: #d4ae5e; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(285px, .9fr); gap: 15px; margin-top: 18px; }
.panel { border: 1px solid #e9ede9; border-radius: 8px; background: #fff; }
.activity-panel, .deadlines-panel { padding: 17px 18px 0; }
.panel-header { margin-bottom: 12px; }
.panel-header h2 { font-size: 13px; }
.panel-header p { font-size: 9px; }
.text-button { padding: 4px 0; border: 0; color: #3e7658; background: transparent; font-size: 9px; font-weight: 600; white-space: nowrap; }
.text-button span, .full-width-link span { margin-left: 5px; }
.activity-item { display: flex; align-items: center; gap: 10px; min-height: 55px; border-top: 1px solid #f0f2f0; }
.activity-icon { width: 27px; height: 27px; display: grid; flex: 0 0 27px; place-items: center; border-radius: 7px; font-size: 13px; }
.act-round { color: #4b8866; background: #eaf4ed; }.act-risk { color: #c68865; background: #fbefea; }.act-action { color: #9c884d; background: #f7f2e3; }.act-deviation { color: #7f74a9; background: #f0edf7; }
.activity-content { min-width: 0; flex: 1; }
.activity-content strong, .activity-content p { display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-content strong { font-size: 10px; font-weight: 600; }
.activity-content p { margin-top: 4px; color: #939c96; font-size: 8px; }
.activity-content p span { padding: 0 3px; }
.activity-time { color: #9aa39d; font-size: 8px; white-space: nowrap; }
.calendar-button { width: 26px; height: 26px; border: 1px solid #e9ede9; border-radius: 5px; color: #79867d; background: white; }
.deadline-list { margin-top: 7px; }
.deadline-item { display: flex; align-items: center; gap: 10px; min-height: 53px; border-top: 1px solid #f0f2f0; }
.deadline-date { width: 29px; height: 33px; display: flex; flex: 0 0 29px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ecefeb; border-radius: 5px; color: #55645b; }
.deadline-date strong { font-family: Manrope, sans-serif; font-size: 12px; line-height: 1.1; }
.deadline-date small { margin-top: 2px; color: #919b94; font-size: 7px; }
.deadline-date.urgent { border-color: #f1e4dd; color: #b76b4e; background: #fdf7f3; }
.deadline-copy { min-width: 0; flex: 1; }
.deadline-copy strong, .deadline-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-copy strong { font-size: 9px; font-weight: 600; }
.deadline-copy small { margin-top: 4px; color: #929d95; font-size: 8px; }
.deadline-dot { width: 6px; height: 6px; border-radius: 50%; background: #a3c7ac; }
.deadline-dot.urgent-dot { background: #d89070; }
.full-width-link { width: 100%; padding: 12px 0; margin-top: 2px; border: 0; border-top: 1px solid #f0f2f0; color: #477b5c; background: transparent; text-align: left; font-size: 9px; font-weight: 600; }
.quick-panel { padding: 17px 18px 14px; margin-top: 15px; }
.readiness-panel { padding: 17px 18px 15px; margin-top: 15px; }
.readiness-progress { width: 100%; height: 7px; display: block; margin-top: 15px; border: 0; border-radius: 6px; background: #edf1ed; appearance: none; }
.readiness-progress::-webkit-progress-bar { border-radius: 6px; background: #edf1ed; }
.readiness-progress::-webkit-progress-value { border-radius: 6px; background: #57946b; transition: width .2s ease; }
.readiness-progress::-moz-progress-bar { border-radius: 6px; background: #57946b; }
.readiness-caption { margin: 8px 0 0; color: #8d9990; font-size: 9px; }
.quick-panel .panel-header { margin-bottom: 12px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 10px; border: 1px solid #edf0ed; border-radius: 6px; color: var(--ink); background: #fff; text-align: left; }
.quick-action:hover { border-color: #c5d8ca; background: #fbfdfb; }
.quick-icon { width: 28px; height: 28px; flex: 0 0 28px; font-size: 13px; }
.quick-action > span:nth-child(2) { min-width: 0; flex: 1; }
.quick-action strong, .quick-action small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-action strong { font-size: 9px; font-weight: 600; }
.quick-action small { margin-top: 4px; color: #939c96; font-size: 8px; }
.quick-action b { color: #98a39a; font-size: 13px; font-weight: 400; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; padding: 19px 2px 0; color: #a0a9a2; font-size: 8px; }
.app-footer span span { padding: 0 3px; }

.page-heading-row { align-items: center; margin-bottom: 25px; }
.page-heading-row .eyebrow { margin-bottom: 8px; }
.page-heading-row h1 { margin-bottom: 7px; }
.summary-strip { display: flex; gap: 0; padding: 15px 20px; border: 1px solid #e9ede9; border-radius: 8px; background: #fff; }
.summary-strip > div { min-width: 130px; display: flex; align-items: baseline; gap: 9px; padding: 0 25px; border-right: 1px solid #edf0ed; }
.summary-strip > div:first-child { padding-left: 0; }
.summary-strip > div:last-child { border: 0; }
.summary-strip strong { font-family: Manrope, sans-serif; font-size: 20px; }
.summary-strip span { color: #87918c; font-size: 10px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.search-wrap { width: min(320px, 100%); height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e6ebe6; border-radius: 5px; color: #96a098; background: #fff; }
.search-wrap > span { font-size: 18px; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: #445148; background: transparent; font-size: 10px; }
.search-wrap input::placeholder { color: #a2aaa4; }
.list-toolbar select, .period-select select { height: 35px; padding: 0 11px; border: 1px solid #e6ebe6; border-radius: 5px; color: #758078; background: #fff; font-size: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid #e9ede9; border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 11px 14px; border-bottom: 1px solid #e9ede9; color: #9ba49e; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
td { padding: 13px 14px; border-bottom: 1px solid #f0f2f0; color: #6d7871; font-size: 10px; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: #354139; font-size: 10px; font-weight: 600; }
td small { margin-top: 4px; color: #9aa39d; font-size: 9px; }
.status-pill { display: inline-block; padding: 4px 7px; border-radius: 10px; font-size: 8px; font-weight: 600; }
.status-done { color: #4b805e; background: #eaf4ed; }.status-planned { color: #8c7741; background: #f8f2e2; }.status-review { color: #8a6eaa; background: #f1edf7; }.status-new { color: #b16f50; background: #fbefea; }
.row-more { width: 26px; height: 24px; border: 0; border-radius: 4px; color: #89958d; background: transparent; font-size: 18px; line-height: 12px; }
.row-more:hover { background: #f1f5f1; }
.empty-filter { padding: 18px; border: 1px solid #e9ede9; border-top: 0; border-radius: 0 0 8px 8px; color: #87918c; background: #fff; font-size: 11px; }
.hidden { display: none !important; }
.risk-banner, .deviation-callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #e4ece4; border-radius: 7px; background: #f0f6f0; }
.risk-banner-icon { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border-radius: 7px; color: #4c8560; background: #e0eee2; }
.risk-banner strong { display: block; margin-top: 1px; color: #48604e; font-size: 10px; }
.risk-banner p { margin: 5px 0 0; color: #75877a; font-size: 9px; }
.compact-heading { margin-top: 25px; }
.risk-list { display: grid; gap: 10px; }
.risk-card { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid #e9ede9; border-radius: 8px; background: #fff; }
.risk-level { min-width: 45px; padding: 5px 7px; border-radius: 12px; text-align: center; font-size: 8px; font-weight: 600; }
.risk-level.high { color: #ad6456; background: #faeeeb; }.risk-level.medium { color: #a27c37; background: #faf4e5; }.risk-level.low { color: #548367; background: #edf5ef; }
.risk-main { min-width: 0; flex: 1; }
.risk-main h3 { margin: 0; color: #39453d; font-size: 11px; font-weight: 600; }
.risk-main p { margin: 5px 0 8px; color: #929c95; font-size: 9px; }
.risk-main p span { padding: 0 3px; }
.risk-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #79867e; font-size: 8px; }
.button.small { min-height: 31px; padding: 0 10px; font-size: 9px; }
.deviation-callout { border-color: #f0e8d8; background: #fbf8ef; }
.deviation-callout > span { width: 17px; height: 17px; display: grid; flex: 0 0 17px; place-items: center; border-radius: 50%; color: #9d8750; background: #f0e9d4; font-size: 10px; font-weight: 700; }
.deviation-callout p { margin: 0; color: #817a66; font-size: 9px; line-height: 1.55; }
.deviation-callout strong { color: #6e674f; }
.task-list { display: grid; gap: 9px; }
.task-card { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border: 1px solid #e9ede9; border-radius: 7px; background: #fff; }
.task-check { width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid #cbd6cc; border-radius: 5px; background: #fff; }
.task-check:hover { border-color: #54906a; }
.task-copy { min-width: 0; flex: 1; }
.task-copy strong { display: block; color: #37433b; font-size: 10px; }
.task-copy p { margin: 5px 0 0; color: #919b94; font-size: 8px; }
.task-copy p span { padding: 0 3px; }
.task-owner { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #657953; background: #edf0e3; font-size: 8px; font-weight: 700; }
.task-owner.owner-blue { color: #5e7691; background: #eaf0f6; }.task-owner.owner-pink { color: #936e83; background: #f5edf1; }
.task-due { min-width: 48px; color: #78847b; font-size: 9px; text-align: right; }
.task-due.overdue { color: #b46c51; }
.task-due small { display: block; margin-top: 3px; font-size: 7px; }
.task-complete .task-check { border-color: #397b55; background: #397b55; }
.task-complete .task-check::after { content: "✓"; display: block; color: white; font-size: 11px; line-height: 15px; }
.task-complete .task-copy strong { color: #929c95; text-decoration: line-through; }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.document-card { display: flex; gap: 13px; padding: 18px; border: 1px solid #e9ede9; border-radius: 8px; background: white; }
.document-icon { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border-radius: 8px; font-size: 16px; }
.document-type { color: #9aa49c; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.document-card h3 { margin: 6px 0; font-family: Manrope, sans-serif; font-size: 12px; }
.document-card p { min-height: 30px; margin: 0; color: #87918b; font-size: 9px; line-height: 1.6; }
.document-link { margin-top: 8px; }
.info-panel { padding: 16px 18px; margin-top: 16px; border: 1px solid #e9ede9; border-radius: 8px; background: #f9fbf9; }
.info-panel strong { color: #52645a; font-size: 10px; }
.info-panel p { margin: 6px 0 0; color: #849088; font-size: 9px; line-height: 1.6; }
.management-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.management-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 16px; border: 1px solid #e8ede8; border-radius: 8px; color: var(--ink); background: white; text-align: left; }
.management-card:hover { border-color: #b7cfbd; background: #fbfdfb; }
.management-card .quick-icon { width: 30px; height: 30px; margin-bottom: 12px; }
.management-card strong { font-family: Manrope, sans-serif; font-size: 11px; }
.management-card small { min-height: 34px; margin-top: 6px; color: #87918b; font-size: 9px; line-height: 1.55; }
.management-card b { margin-top: 12px; color: #4a7959; font-size: 9px; font-weight: 600; }
.quality-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px; margin-top: 16px; }
.quality-list-panel { min-width: 0; padding: 16px; }
.quality-list-panel .panel-header { margin-bottom: 10px; }
.quality-list { display: grid; gap: 9px; }
.quality-card { display: flex; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid #edf0ed; border-radius: 7px; background: white; }
.quality-card-main { min-width: 0; flex: 1; }
.quality-card h3, .inspection-card h3 { margin: 0; color: #38453d; font-size: 10px; font-weight: 600; line-height: 1.5; }
.quality-description { margin: 5px 0 0; color: #78857c; font-size: 9px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.quality-meta { margin: 6px 0 0; color: #9aa39d; font-size: 8px; }
.quality-card-side { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 8px; }
.quality-details { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 5px 9px; padding-top: 9px; margin: 9px 0 0; border-top: 1px solid #f0f2f0; }
.quality-details dt { color: #8c978f; font-size: 8px; font-weight: 600; }
.quality-details dd { margin: 0; color: #68756c; font-size: 8px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.inspection-list { display: grid; gap: 9px; margin-top: 14px; }
.inspection-card { display: flex; padding: 14px; border: 1px solid #e8ede8; border-radius: 8px; background: #fff; }
.inspection-card-main { width: 100%; }
.inspection-card .quality-description { margin-bottom: 11px; }
.inspection-fields { display: grid; grid-template-columns: 140px minmax(100px, .7fr) 145px minmax(180px, 1.3fr) auto; align-items: start; gap: 7px; }
.inspection-fields select, .inspection-fields input, .inspection-fields textarea { width: 100%; min-width: 0; min-height: 32px; padding: 7px 8px; border: 1px solid #e2e8e2; border-radius: 5px; color: #5b695f; background: #fff; font-size: 8px; }
.inspection-fields textarea { resize: vertical; }
.inspection-fields :disabled { opacity: .8; background: #f7f9f7; }
.inspection-fields .button { min-height: 32px; padding: 0 10px; font-size: 8px; }
.info-panel a { color: #39775b; text-decoration: underline; text-underline-offset: 2px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(28, 41, 33, .38); }
.modal { width: min(100%, 680px); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px; border-radius: 11px; background: #fff; box-shadow: 0 18px 60px rgba(27, 44, 34, .18); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.modal-kicker { color: #77907d; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.modal-header h2 { margin: 5px 0 0; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.5px; }
.modal-close { width: 29px; height: 29px; border: 0; border-radius: 50%; color: #7d8981; background: #f3f6f3; font-size: 20px; }
.modal form > label { display: block; margin: 13px 0 6px; color: #526158; font-size: 10px; font-weight: 600; }
.modal input, .modal select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #e0e7e1; border-radius: 5px; outline: 0; color: #445148; background: white; font-size: 10px; }
.modal input:focus, .modal select:focus { border-color: #75a486; box-shadow: 0 0 0 3px #edf5ef; }
.form-privacy { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; color: #8b8269; font-size: 9px; }
.form-privacy span { width: 15px; height: 15px; flex-basis: 15px; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 20px; margin-top: 17px; border-top: 1px solid #edf0ed; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: calc(100vw - 40px); padding: 12px 16px; border-radius: 7px; color: white; background: #285d46; box-shadow: 0 6px 20px rgba(25, 55, 39, .2); font-size: 11px; }
.auth-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 18px; }
.auth-card { width: min(100%, 410px); padding: 29px; border: 1px solid #e8ede8; border-radius: 11px; background: #fff; box-shadow: 0 12px 40px rgba(37, 61, 43, .06); }
.auth-brand { padding: 0; margin-bottom: 30px; }
.auth-heading { margin-bottom: 20px; }
.auth-heading .eyebrow { margin-bottom: 8px; }
.auth-heading h1 { margin-bottom: 7px; font-size: 26px; }
.auth-heading p { margin: 0; color: #87918c; font-size: 11px; line-height: 1.6; }
.auth-card form label { display: block; margin: 14px 0 6px; color: #526158; font-size: 10px; font-weight: 600; }
.auth-card form input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid #e0e7e1; border-radius: 5px; outline: 0; color: #445148; background: white; font-size: 11px; }
.auth-card form input:focus { border-color: #75a486; box-shadow: 0 0 0 3px #edf5ef; }
.auth-submit { width: 100%; margin-top: 20px; }
.auth-footnote, .auth-privacy { color: #909a93; font-size: 9px; line-height: 1.6; text-align: center; }
.auth-footnote { margin: 14px 0 0; }
.auth-privacy { max-width: 410px; margin: 14px 0 0; }
.auth-error { padding: 9px 10px; margin: 12px 0 0; border-radius: 5px; color: #a64e43; background: #fbefec; font-size: 10px; line-height: 1.5; }
.modal textarea { width: 100%; min-height: 72px; padding: 9px 10px; border: 1px solid #e0e7e1; border-radius: 5px; outline: 0; color: #445148; background: white; resize: vertical; font-size: 10px; }
.modal textarea:focus { border-color: #75a486; box-shadow: 0 0 0 3px #edf5ef; }
.round-checklist { min-width: 0; padding: 11px; margin: 15px 0 0; border: 1px solid #e8ede8; border-radius: 6px; }
.round-checklist legend { padding: 0 5px; color: #526158; font-size: 10px; font-weight: 600; }
.round-checklist > p { margin: 0 0 8px; color: #8d9890; font-size: 8px; line-height: 1.5; }
.round-ai-notice { padding: 11px 13px; margin: 12px 0; border: 1px solid #d5efeb; border-radius: 8px; color: #476b67; background: #eef9f7; font-size: 10px; line-height: 1.6; }
.round-ai-notice a { color: #286d60; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.round-planning-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #f0f2f0; }
.round-planning-row label { color: #526158; font-size: 10px; line-height: 1.45; }
.round-planning-row select { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #e0e7e1; border-radius: 6px; color: #526158; background: white; font-size: 9px; }
.checklist-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 5px 8px; align-items: center; padding: 8px 0; border-top: 1px solid #f0f2f0; }
.checklist-row > label { color: #526158; font-size: 9px; font-weight: 500; }
.checklist-row select { width: 100%; height: 31px; padding: 0 7px; border: 1px solid #e0e7e1; border-radius: 5px; color: #526158; background: white; font-size: 8px; }
.round-check-guidance { grid-column: 1 / -1; color: #839087; font-size: 9px; line-height: 1.5; }
.round-legal-reference { grid-column: 1 / -1; color: #286d60; font-size: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.round-action-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 9px; border-radius: 6px; background: #fff7ed; }
.round-action-fields label { display: grid; gap: 4px; color: #795b36; font-size: 8px; font-weight: 600; }
.round-action-fields input { min-width: 0; height: 31px; padding: 0 7px; border: 1px solid #efd8b9; border-radius: 5px; background: #fff; color: #526158; font-size: 8px; }
.round-ai-advice { grid-column: 1 / -1; margin: 0; color: #476b67; font-size: 9px; line-height: 1.5; }
.round-ai-summary { margin-top: 16px; padding: 14px; border: 1px solid #d5efeb; border-radius: 8px; background: #eef9f7; }
.round-ai-summary h3 { margin: 0 0 7px; color: #315d55; font-size: 12px; }
.round-ai-summary p { margin: 5px 0 0; color: #476b67; font-size: 9px; line-height: 1.5; }
.document-downloads { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.ai-chat-notice { padding: 13px 15px; margin: 18px 0 14px; border: 1px solid #eee8d7; border-radius: 8px; color: #716950; background: #fbf8ee; font-size: 10px; line-height: 1.6; }
.ai-chat-panel { max-width: 860px; overflow: hidden; border: 1px solid #e1e9e2; border-radius: 10px; background: #fff; }
.ai-chat-messages { display: grid; gap: 11px; max-height: 480px; min-height: 250px; overflow-y: auto; padding: 18px; background: #f8faf8; }
.ai-message { max-width: 82%; padding: 11px 13px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(30, 50, 37, .06); }
.ai-message.user { justify-self: end; color: #fff; background: #286047; }
.ai-message strong { display: block; margin-bottom: 4px; font-size: 9px; }
.ai-message p { margin: 0; font-size: 10px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-chat-form { padding: 15px; border-top: 1px solid #e9ede9; }
.ai-chat-form label { display: block; margin-bottom: 6px; color: #526158; font-size: 10px; font-weight: 600; }
.ai-chat-form textarea { width: 100%; min-height: 75px; padding: 9px 10px; border: 1px solid #e0e7e1; border-radius: 6px; resize: vertical; font: inherit; font-size: 10px; }
.ai-chat-form > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.ai-chat-form small { color: #8b958e; font-size: 8px; }
.checklist-row input { grid-column: 1 / -1; height: 30px; font-size: 8px; }
.risk-impact-label { display: flex !important; align-items: flex-start; gap: 7px; padding: 8px 0; color: #647269 !important; line-height: 1.5; }
.risk-impact-label input { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; accent-color: #397b55; }
.optional { color: #98a29b; font-weight: 400; }
.empty-copy { padding: 11px 0; margin: 0; color: #929c95; font-size: 9px; line-height: 1.6; }
.invite-panel { padding: 18px; margin-top: 16px; }
.invite-user-form { display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px minmax(0, 1fr) 45px minmax(0, .8fr) auto; align-items: center; gap: 7px; }
.invite-user-form label { color: #617067; font-size: 9px; font-weight: 600; }
.invite-user-form input, .invite-user-form select { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid #e2e8e2; border-radius: 5px; color: #526158; background: white; font-size: 9px; }
.invite-user-form .button { min-height: 34px; padding: 0 9px; font-size: 9px; }
.invite-result { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px; margin: 13px 0 0; border-radius: 6px; color: #65756a; background: #f4f8f4; font-size: 9px; }
.invite-result strong { flex-basis: 100%; }
.invite-url { max-width: 100%; overflow-wrap: anywhere; color: #3b7653; }
.invite-result .small { min-height: 28px; font-size: 8px; }

@media (min-width: 1500px) {
  .content { padding-right: 5%; padding-left: 5%; }
}
@media (max-width: 1050px) {
  .sidebar { width: 220px; }
  .main-area { margin-left: 220px; }
  .content { padding-right: 3%; padding-left: 3%; }
  .stat-grid { gap: 9px; }
  .stat-card { padding-right: 11px; padding-left: 11px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .9fr); }
  .quick-actions { gap: 6px; }
  .quick-action { gap: 7px; padding: 9px 7px; }
  .management-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspection-fields { grid-template-columns: 130px 1fr 140px; }
  .inspection-fields textarea { grid-column: 1 / 3; }
  .inspection-fields .button { grid-column: 3; }
}
@media (max-width: 780px) {
  .sidebar { width: 250px; transform: translateX(-101%); transition: transform .2s ease; box-shadow: 8px 0 25px rgba(29, 48, 36, .07); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .topbar { height: 58px; padding: 0 20px; }
  .mobile-menu { display: block; }
  .breadcrumbs { flex: 1; margin-left: 12px; }
  .today-label { display: none; }
  .topbar-actions { gap: 9px; }
  .content { padding: 28px 20px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .deadlines-panel { padding-bottom: 0; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-action { padding: 10px; }
  .quick-action strong { font-size: 10px; }
  .quick-action small { font-size: 9px; }
  .invite-user-form { grid-template-columns: 1fr 1fr; }
  .invite-user-form label { margin-top: 4px; }
  .invite-user-form .button { grid-column: 1 / -1; }
  .page-heading-row { align-items: flex-start; }
  .page-heading-row > .button { flex: 0 0 auto; margin-top: 22px; }
  .quality-columns { grid-template-columns: 1fr; }
  .inspection-fields { grid-template-columns: 1fr 1fr; }
  .inspection-fields textarea { grid-column: 1 / -1; }
  .inspection-fields .button { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .content { padding: 23px 15px; }
  .topbar { padding: 0 14px; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .welcome-row > .button { width: 100%; }
  .privacy-note { align-items: flex-start; line-height: 1.5; }
  .stat-card { min-height: 130px; }
  .stat-label { min-height: 24px; line-height: 1.35; }
  .section-heading { align-items: flex-start; }
  .period-select { gap: 7px; padding: 7px; font-size: 8px; }
  .activity-panel, .deadlines-panel, .quick-panel { padding-right: 13px; padding-left: 13px; }
  .activity-item { gap: 7px; }
  .activity-time { font-size: 7px; }
  .app-footer { flex-direction: column; }
  .page-heading-row { flex-direction: column; align-items: stretch; }
  .page-heading-row > .button { margin-top: 2px; }
  .summary-strip { justify-content: space-between; padding: 13px 10px; }
  .summary-strip > div { min-width: 0; flex-direction: column; gap: 2px; padding: 0 10px; }
  .summary-strip strong { font-size: 18px; }
  .summary-strip span { font-size: 8px; }
  .risk-card { align-items: flex-start; gap: 9px; flex-wrap: wrap; }
  .risk-main { flex: 1 1 calc(100% - 60px); }
  .risk-card > .button { margin-left: 55px; }
  .risk-meta { gap: 6px 10px; }
  .list-toolbar { align-items: stretch; flex-direction: column; }
  .search-wrap { width: 100%; }
  .list-toolbar select { align-self: flex-end; }
  .task-card { gap: 8px; padding: 11px 9px; }
  .task-owner { display: none; }
  .task-due { min-width: 42px; }
  .document-grid { grid-template-columns: 1fr; }
  .document-card p { min-height: 0; }
  .modal { padding: 18px; }
  .checklist-row { grid-template-columns: 1fr; }
  .checklist-row select, .checklist-row input { grid-column: auto; }
  .round-action-fields { grid-template-columns: 1fr; }
  .round-planning-row { grid-template-columns: 1fr; }
  .round-planning-row select { max-width: 180px; }
  .auth-card { padding: 23px 20px; }
  .invite-user-form { grid-template-columns: 1fr; }
  .invite-user-form .button { grid-column: auto; }
  .management-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { padding: 15px; }
  .management-card small { min-height: 0; }
  .quality-card { flex-direction: column; }
  .quality-card-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .quality-details { grid-template-columns: 1fr; gap: 3px; }
  .quality-details dd { margin-bottom: 5px; }
  .inspection-fields { grid-template-columns: 1fr; }
  .inspection-fields textarea, .inspection-fields .button { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  body { min-width: 0; background: #fff; }
  .sidebar, .topbar, .button, .text-button, .report-actions, .quick-panel, .privacy-note, #dismiss-privacy { display: none !important; }
  .main-area { margin: 0; }
  .content { max-width: none; padding: 0; }
  .view { display: none !important; }
  .view.active { display: block !important; }
  .panel, .quality-card, .inspection-card { break-inside: avoid; border-color: #cbd4cb; }
}