:root {
  --ink: #17231f;
  --muted: #6f7d76;
  --line: #e4e9e6;
  --soft: #f4f7f5;
  --paper: #ffffff;
  --forest: #14261f;
  --forest-2: #1d352b;
  --accent: #c8f04a;
  --accent-dark: #91b918;
  --teal: #169b84;
  --blue: #4b72e6;
  --orange: #eb8b3c;
  --red: #df5a5a;
  --shadow: 0 18px 48px rgba(19, 40, 31, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #edf1ef;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 244px;
  display: flex;
  flex-direction: column;
  padding: 25px 18px 18px;
  color: #dce6e1;
  background:
    radial-gradient(circle at 15% 75%, rgba(200, 240, 74, .07), transparent 34%),
    var(--forest);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 29px; }
.brand strong { display: block; color: white; font-size: 18px; letter-spacing: -.35px; }
.brand small { display: block; margin-top: 1px; color: #82958c; font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: flex-end; gap: 3px; padding: 8px; border-radius: 10px; background: var(--accent); }
.brand-mark span { flex: 1; display: block; border-radius: 3px 3px 1px 1px; background: var(--forest); }
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 13px; }
.main-nav { display: grid; gap: 5px; }
.nav-item { width: 100%; height: 47px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 12px; color: #9caea6; background: transparent; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item svg { width: 19px; }
.nav-item span { flex: 1; font-size: 14px; font-weight: 600; }
.nav-item b { display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 5px; border-radius: 7px; color: #b8c7c0; background: #263d33; font-size: 11px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-item.active { color: var(--forest); background: var(--accent); }
.nav-item.active b { color: white; background: var(--forest); }
.sidebar-bottom { margin-top: auto; }
.plan-card { margin: 16px 3px; padding: 15px; border: 1px solid #30463d; border-radius: 15px; background: rgba(255,255,255,.035); }
.plan-icon { width: 33px; height: 33px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 10px; color: var(--accent); background: rgba(200,240,74,.1); }
.plan-icon svg { width: 18px; }
.plan-card strong { color: #f8fbf9; font-size: 13px; }
.plan-card p { margin: 6px 0 12px; color: #84988e; font-size: 11px; line-height: 1.45; }
.plan-card button { padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 14px 8px 2px; border-top: 1px solid #2c4138; }
.avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: #d3e6dc; font-size: 12px; font-weight: 800; }
.user-card div:nth-child(2) { min-width: 0; flex: 1; }
.user-card strong, .user-card small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card strong { color: white; font-size: 12px; }
.user-card small { margin-top: 3px; color: #7d9087; font-size: 10px; }
.user-card button { border: 0; color: #7f9289; background: none; cursor: pointer; }

.main-content { min-width: 0; grid-column: 2; }
.topbar { position: sticky; top: 0; z-index: 20; height: 75px; display: flex; align-items: center; gap: 18px; padding: 0 30px; border-bottom: 1px solid #e0e6e3; background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.search-box { position: relative; width: min(460px, 42vw); display: flex; align-items: center; }
.search-box > svg { position: absolute; left: 14px; width: 18px; color: #86938d; pointer-events: none; }
.search-box input { width: 100%; height: 42px; padding: 0 61px 0 42px; border: 1px solid #dfe6e2; border-radius: 12px; outline: none; color: var(--ink); background: #f7f9f8; font-size: 13px; transition: .2s ease; }
.search-box input:focus { border-color: #9fc534; box-shadow: 0 0 0 3px rgba(200,240,74,.18); background: white; }
.search-box kbd { position: absolute; right: 11px; padding: 3px 6px; border: 1px solid #dfe5e2; border-radius: 6px; color: #8b9791; background: white; font-family: inherit; font-size: 10px; }
.search-results { position: absolute; top: 49px; left: 0; right: 0; display: none; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.search-results.open { display: block; }
.search-result { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: var(--soft); }
.search-result .result-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #e9f6f2; }
.search-result .result-icon svg { width: 17px; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 12px; }
.search-result small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; align-items: center; gap: 2px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.language-switch button { height: 28px; min-width: 31px; padding: 0 6px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.language-switch button.active { color: var(--forest); background: var(--accent); }
.today-chip { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: #5e6d65; background: white; font-size: 12px; font-weight: 600; }
.today-chip svg { width: 16px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.notification-btn { position: relative; }
.notification-btn i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--red); }
.primary-btn { height: 41px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 0; border-radius: 11px; color: white; background: var(--forest); box-shadow: 0 7px 18px rgba(20,38,31,.16); font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.primary-btn:hover { transform: translateY(-1px); background: #21392f; }
.primary-btn svg { width: 16px; }
.primary-btn.accent { color: var(--forest); background: var(--accent); box-shadow: none; }
.mobile-menu { display: none; }

.view-root { padding: 29px 30px 45px; }
.view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.view-head h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; }
.view-head p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.head-actions { display: flex; align-items: center; gap: 9px; }
.secondary-btn { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: #425149; background: white; font-size: 12px; font-weight: 700; cursor: pointer; }
.secondary-btn:hover { border-color: #c9d4ce; background: #fafcfb; }
.secondary-btn svg { width: 16px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card { position: relative; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.metric-card.highlight { color: white; border-color: var(--forest); background: var(--forest); }
.metric-card.highlight::after { content: ""; position: absolute; width: 110px; height: 110px; right: -33px; bottom: -47px; border: 22px solid rgba(200,240,74,.11); border-radius: 50%; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 600; }
.highlight .metric-top { color: #9eb0a7; }
.metric-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #edf7f4; }
.metric-icon svg { width: 16px; }
.highlight .metric-icon { color: var(--accent); background: rgba(200,240,74,.1); }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin-top: 13px; }
.metric-value strong { font-size: 27px; line-height: 1; letter-spacing: -.8px; }
.metric-value small { color: var(--muted); font-size: 10px; }
.highlight .metric-value small { color: #82968c; }
.metric-trend { display: inline-flex; align-items: center; gap: 4px; margin-top: 11px; color: var(--teal); font-size: 10px; font-weight: 700; }
.metric-trend.neutral { color: var(--muted); }
.highlight .metric-trend { color: var(--accent); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 17px; }
.stack { display: grid; align-content: start; gap: 17px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 18px 13px; }
.panel-head h2 { margin: 0; font-size: 14px; letter-spacing: -.15px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.text-btn { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; color: var(--teal); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.text-btn svg { width: 13px; }
.schedule-list { padding: 0 10px 10px; }
.schedule-row { display: grid; grid-template-columns: 62px 4px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 8px; border-top: 1px solid #edf0ee; cursor: pointer; }
.schedule-row:hover { background: #fafcfb; }
.schedule-time strong, .schedule-time small { display: block; }
.schedule-time strong { font-size: 12px; }
.schedule-time small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.schedule-line { width: 4px; height: 38px; border-radius: 5px; background: var(--teal); }
.schedule-line.orange { background: var(--orange); }
.schedule-line.blue { background: var(--blue); }
.schedule-info { min-width: 0; }
.schedule-info strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-info span { display: flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.schedule-info svg { width: 11px; height: 11px; }
.team-pill { display: flex; align-items: center; gap: 7px; padding: 5px 8px 5px 5px; border-radius: 9px; background: var(--soft); font-size: 9px; font-weight: 700; }
.mini-avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: white; background: var(--teal); font-size: 8px; font-weight: 800; }
.mini-avatar.blue { background: var(--blue); }
.mini-avatar.orange { background: var(--orange); }
.team-loads { padding: 3px 18px 17px; }
.team-load-row { margin-top: 14px; }
.team-load-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font-size: 10px; }
.team-load-meta strong { font-size: 11px; }
.team-load-meta span { color: var(--muted); }
.progress { height: 6px; border-radius: 6px; background: #edf1ef; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.progress i.blue { background: var(--blue); }
.progress i.orange { background: var(--orange); }
.quick-card { position: relative; min-height: 155px; padding: 20px; border: 0; border-radius: var(--radius); color: white; background: linear-gradient(135deg, #246b5b, #173f35); overflow: hidden; }
.quick-card::before { content: ""; position: absolute; inset: -45px -25px auto auto; width: 145px; height: 145px; border: 28px solid rgba(255,255,255,.05); border-radius: 50%; }
.quick-card h2 { position: relative; margin: 0; font-size: 17px; }
.quick-card p { position: relative; max-width: 260px; margin: 8px 0 18px; color: #b9d1c8; font-size: 11px; line-height: 1.55; }
.quick-card button { position: relative; height: 36px; padding: 0 13px; border: 0; border-radius: 10px; color: var(--forest); background: var(--accent); font-size: 10px; font-weight: 800; cursor: pointer; }
.attention-list { padding: 0 10px 10px; }
.attention-item { display: flex; align-items: center; gap: 10px; padding: 11px 8px; border-top: 1px solid #edf0ee; cursor: pointer; }
.attention-item:hover { background: #fafcfb; }
.attention-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--orange); background: #fff3e9; }
.attention-icon.red { color: var(--red); background: #fdeeee; }
.attention-icon svg { width: 17px; }
.attention-item > div:nth-child(2) { min-width: 0; flex: 1; }
.attention-item strong, .attention-item small { display: block; }
.attention-item strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.attention-item > svg { width: 14px; color: #a1aca6; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.filter-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.filter-tab { height: 31px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.filter-tab.active { color: var(--ink); background: #edf2ef; }
.toolbar .compact-search { margin-left: auto; width: 220px; }
.compact-search { position: relative; }
.compact-search svg { position: absolute; top: 10px; left: 11px; width: 15px; color: #88968f; }
.compact-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: white; font-size: 11px; }
.data-panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.order-row { display: grid; grid-template-columns: 92px minmax(170px, 1.1fr) minmax(180px, 1.4fr) 115px 105px 32px; gap: 13px; align-items: center; padding: 15px 17px; border-top: 1px solid #edf0ee; cursor: pointer; }
.order-row:first-child { border-top: 0; }
.order-row:hover { background: #fafcfb; }
.order-code strong { display: block; font-size: 11px; }
.order-code small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.order-object strong, .order-object small, .order-task strong, .order-task small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-object strong, .order-task strong { font-size: 11px; }
.order-object small, .order-task small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 76px; height: 25px; padding: 0 9px; border-radius: 8px; color: #55625c; background: #edf1ef; font-size: 9px; font-weight: 800; }
.status.in-progress { color: #187361; background: #e5f5f0; }
.status.scheduled { color: #4c68bd; background: #edf0fb; }
.status.waiting { color: #b66e2d; background: #fff0e3; }
.status.done { color: #63706a; background: #eef1ef; }
.priority { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; }
.priority i { width: 7px; height: 7px; border-radius: 50%; background: #9da9a3; }
.priority.high i { background: var(--red); }
.priority.medium i { background: var(--orange); }
.priority.low i { background: var(--teal); }
.row-arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #89968f; background: white; }
.row-arrow svg { width: 13px; }
.empty-state { padding: 55px 20px; text-align: center; }
.empty-state svg { width: 36px; height: 36px; color: #a4b0aa; }
.empty-state h3 { margin: 12px 0 5px; font-size: 14px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }

.objects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.object-card { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: white; cursor: pointer; transition: .2s ease; }
.object-card:hover { transform: translateY(-2px); border-color: #c9d7d0; box-shadow: 0 12px 30px rgba(20,38,31,.07); }
.object-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.object-type { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: #e9f6f2; }
.object-type.commercial { color: var(--blue); background: #edf0fb; }
.object-type svg { width: 19px; }
.health { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 700; }
.health i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.health.attention i { background: var(--orange); }
.health.critical i { background: var(--red); }
.object-card h3 { margin: 14px 0 5px; font-size: 13px; }
.object-address { display: flex; gap: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.object-address svg { width: 12px; height: 12px; flex: 0 0 auto; margin-top: 1px; }
.equipment-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 14px 0; }
.equipment-tag { padding: 5px 7px; border-radius: 7px; color: #526159; background: var(--soft); font-size: 8px; font-weight: 700; }
.object-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #edf0ee; color: var(--muted); font-size: 9px; }
.object-card-foot strong { color: var(--ink); }

.teams-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.team-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.team-card-head { display: flex; align-items: center; gap: 11px; }
.team-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--teal); font-size: 12px; font-weight: 800; }
.team-avatar.blue { background: var(--blue); }
.team-avatar.orange { background: var(--orange); }
.team-card-head h3 { margin: 0; font-size: 13px; }
.team-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.team-status { margin-left: auto; width: 8px; height: 8px; border: 2px solid #d9eee8; border-radius: 50%; background: var(--teal); }
.team-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 17px 0; }
.team-stat { padding: 9px; border-radius: 10px; background: var(--soft); text-align: center; }
.team-stat strong, .team-stat small { display: block; }
.team-stat strong { font-size: 13px; }
.team-stat small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.next-job { padding-top: 14px; border-top: 1px solid var(--line); }
.next-job > small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .9px; }
.next-job div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.next-job strong { font-size: 10px; }
.next-job span { color: var(--teal); font-size: 9px; font-weight: 800; }

.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 17px; }
.doc-categories { align-self: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.doc-category { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; text-align: left; }
.doc-category span { flex: 1; }
.doc-category b { font-size: 9px; }
.doc-category svg { width: 16px; }
.doc-category.active { color: var(--ink); background: var(--soft); }
.docs-list { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.doc-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 100px 120px 32px; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid #edf0ee; }
.doc-row:first-child { border-top: 0; }
.pdf-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--red); background: #fdeeee; font-size: 8px; font-weight: 900; }
.doc-name strong, .doc-name small { display: block; }
.doc-name strong { font-size: 11px; }
.doc-name small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.doc-meta { color: var(--muted); font-size: 9px; }
.doc-open { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; cursor: pointer; }
.doc-open svg { width: 13px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 39; visibility: hidden; opacity: 0; background: rgba(10,24,18,.28); backdrop-filter: blur(2px); transition: .25s ease; }
.drawer-backdrop.open { visibility: visible; opacity: 1; }
.detail-drawer { position: fixed; top: 0; right: 0; z-index: 40; width: min(520px, 100%); height: 100vh; padding: 0; background: white; box-shadow: -22px 0 55px rgba(17,34,27,.16); transform: translateX(105%); transition: .3s ease; overflow-y: auto; }
.detail-drawer.open { transform: translateX(0); }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.drawer-head h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.drawer-head p { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.drawer-head p svg { width: 12px; }
.close-btn { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.close-btn svg { width: 16px; }
.drawer-body { padding: 20px 24px 35px; }
.drawer-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.drawer-action { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 9px; font-weight: 700; cursor: pointer; }
.drawer-action:hover { border-color: #bed0c7; background: var(--soft); }
.drawer-action svg { width: 17px; color: var(--teal); }
.section-block { margin-top: 21px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.section-title h3 { margin: 0; font-size: 12px; }
.section-title button { padding: 0; border: 0; color: var(--teal); background: none; font-size: 9px; font-weight: 800; cursor: pointer; }
.equipment-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 7px; }
.equipment-item-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--teal); background: #e9f6f2; }
.equipment-item-icon svg { width: 17px; }
.equipment-item > div:nth-child(2) { min-width: 0; flex: 1; }
.equipment-item strong, .equipment-item small { display: block; }
.equipment-item strong { font-size: 11px; }
.equipment-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.equipment-item .status { min-width: auto; }
.history-item { position: relative; display: grid; grid-template-columns: 55px 1fr; gap: 13px; padding: 0 0 17px; }
.history-item:not(:last-child)::before { content: ""; position: absolute; left: 49px; top: 13px; bottom: -2px; width: 1px; background: var(--line); }
.history-date { color: var(--muted); font-size: 8px; text-align: right; }
.history-content { position: relative; padding-left: 11px; }
.history-content::before { content: ""; position: absolute; left: -2px; top: 2px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.history-content strong { display: block; font-size: 10px; }
.history-content p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.history-content small { display: block; margin-top: 6px; color: #8a9891; font-size: 8px; }
.contact-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.contact-card > div:nth-child(2) { flex: 1; }
.contact-card strong, .contact-card small { display: block; }
.contact-card strong { font-size: 10px; }
.contact-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.contact-card a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--teal); }
.contact-card a svg { width: 14px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; visibility: hidden; display: grid; place-items: center; padding: 20px; opacity: 0; background: rgba(10,24,18,.45); backdrop-filter: blur(4px); transition: .22s ease; }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.modal { width: min(590px, 100%); max-height: calc(100vh - 40px); border-radius: 20px; background: white; box-shadow: 0 28px 90px rgba(10,24,18,.25); overflow-y: auto; transform: translateY(12px) scale(.98); transition: .22s ease; }
.modal-backdrop.open .modal { transform: none; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 21px 23px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.3px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 19px 23px 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #5d6b64; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .65px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #dce4e0; border-radius: 10px; outline: none; color: var(--ink); background: #fafcfb; font-size: 11px; }
.form-field input, .form-field select { height: 40px; padding: 0 11px; }
.form-field textarea { min-height: 84px; padding: 10px 11px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #9fc534; box-shadow: 0 0 0 3px rgba(200,240,74,.16); background: white; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.quote-banner { display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 13px; color: white; background: var(--forest); }
.quote-banner-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--forest); background: var(--accent); }
.quote-banner-icon svg { width: 19px; }
.quote-banner strong, .quote-banner small { display: block; }
.quote-banner strong { font-size: 12px; }
.quote-banner small { margin-top: 4px; color: #9eb0a7; font-size: 9px; }
.quote-table { margin-top: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.quote-row { display: grid; grid-template-columns: 1fr 55px 80px 85px; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 10px; }
.quote-row:first-child { border-top: 0; }
.quote-row.header { color: var(--muted); background: var(--soft); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.quote-row strong:last-child { text-align: right; }
.quote-total { display: flex; justify-content: flex-end; gap: 20px; padding: 14px 2px 2px; }
.quote-total span { color: var(--muted); font-size: 10px; }
.quote-total strong { font-size: 17px; }
.timer-box { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px; border-radius: 14px; color: white; background: var(--forest); }
.timer-box small, .timer-box strong { display: block; }
.timer-box small { color: #93a79d; font-size: 9px; }
.timer-box strong { margin-top: 5px; font-variant-numeric: tabular-nums; font-size: 25px; letter-spacing: .5px; }
.timer-button { width: 43px; height: 43px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--forest); background: var(--accent); cursor: pointer; }
.timer-button svg { width: 18px; }
.order-modal-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.meta-card { padding: 11px; border-radius: 10px; background: var(--soft); }
.meta-card small, .meta-card strong { display: block; }
.meta-card small { color: var(--muted); font-size: 8px; }
.meta-card strong { margin-top: 4px; font-size: 10px; }
.work-summary { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.work-summary h3 { margin: 0 0 7px; font-size: 10px; }
.work-summary p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.roadmap { display: grid; gap: 12px; }
.roadmap-step { display: grid; grid-template-columns: 34px 1fr; gap: 11px; }
.roadmap-num { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--forest); background: var(--accent); font-size: 10px; font-weight: 900; }
.roadmap-step h3 { margin: 1px 0 5px; font-size: 11px; }
.roadmap-step p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.diagnostic-intro { display: flex; gap: 12px; padding: 13px; border-radius: 12px; color: #33554a; background: #eaf6f2; }
.diagnostic-intro svg { width: 20px; flex: 0 0 auto; color: var(--teal); }
.diagnostic-intro strong, .diagnostic-intro small { display: block; }
.diagnostic-intro strong { font-size: 11px; }
.diagnostic-intro small { margin-top: 4px; font-size: 9px; line-height: 1.45; }
.safety-note { display: flex; gap: 9px; margin-top: 13px; padding: 11px; border: 1px solid #f2d1b5; border-radius: 11px; color: #895329; background: #fff5ec; font-size: 9px; line-height: 1.45; }
.safety-note strong { display: block; margin-bottom: 3px; }
.diagnostic-results { display: grid; gap: 13px; margin-top: 16px; }
.media-capture { margin-top: 13px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fafcfb; }
.media-capture-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.media-capture-head strong, .media-capture-head small { display: block; }
.media-capture-head strong { font-size: 10px; }
.media-capture-head small { max-width: 310px; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.record-button, .upload-button { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; padding: 0 11px; border: 1px solid #cfdad4; border-radius: 9px; color: #315348; background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.record-button svg, .upload-button svg { width: 14px; }
.record-button.recording { color: white; border-color: var(--red); background: var(--red); animation: recordPulse 1.3s infinite; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@keyframes recordPulse { 50% { box-shadow: 0 0 0 5px rgba(223,90,90,.12); } }
.audio-preview { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.audio-preview:empty { display: none; }
.audio-preview audio { width: min(100%, 330px); height: 34px; }
.audio-preview button { padding: 0; border: 0; color: var(--red); background: none; font-size: 8px; font-weight: 800; cursor: pointer; }
.photo-preview { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.photo-preview:empty { display: none; }
.photo-preview figure { position: relative; aspect-ratio: 1; margin: 0; border-radius: 8px; background: #e8eeeb; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview figcaption { position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; color: white; background: rgba(20,38,31,.8); font-size: 7px; font-weight: 800; }
.evidence-note { margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.diagnostic-loading { display: grid; justify-items: center; gap: 7px; margin-top: 16px; padding: 24px 15px; border-radius: 12px; background: var(--soft); text-align: center; }
.diagnostic-loading strong { font-size: 10px; }
.diagnostic-loading small { color: var(--muted); font-size: 8px; }
.spinner { width: 25px; height: 25px; border: 3px solid #dbe5e0; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.diagnostic-summary { padding: 14px; border-radius: 12px; color: white; background: var(--forest); }
.diagnostic-summary strong { font-size: 12px; }
.diagnostic-summary p { margin: 6px 0 0; color: #b8c9c1; font-size: 9px; line-height: 1.5; }
.source-list { display: grid; gap: 7px; }
.source-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; color: #4d5e56; background: var(--soft); font-size: 8px; }
.source-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.source-actions button { padding: 5px 7px; border: 0; border-radius: 6px; color: white; background: var(--forest); font-size: 7px; font-weight: 800; cursor: pointer; }
.diagnostic-section { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.diagnostic-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; font-size: 11px; }
.diagnostic-section h3 svg { width: 15px; color: var(--teal); }
.check-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 23px; color: #536159; font-size: 9px; line-height: 1.5; }
.check-list li::before { content: attr(data-step); position: absolute; left: 0; top: 0; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 5px; color: var(--forest); background: var(--accent); font-size: 7px; font-weight: 900; }
.cause-list { display: grid; gap: 7px; }
.cause-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; background: var(--soft); font-size: 9px; }
.cause-row b { color: var(--teal); font-size: 8px; }
.tech-assistant-card { position: relative; padding: 17px; border-radius: var(--radius); color: white; background: linear-gradient(135deg, #15382e, #1d5a49); overflow: hidden; }
.tech-assistant-card::after { content: ""; position: absolute; right: -35px; bottom: -50px; width: 125px; height: 125px; border: 24px solid rgba(200,240,74,.09); border-radius: 50%; }
.tech-assistant-card h3 { position: relative; margin: 0; font-size: 14px; }
.tech-assistant-card p { position: relative; margin: 7px 0 14px; color: #b8d0c6; font-size: 9px; line-height: 1.5; }
.tech-assistant-card button { position: relative; z-index: 1; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--forest); background: var(--accent); font-size: 9px; font-weight: 800; cursor: pointer; }
.toast-stack { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 260px; padding: 12px 14px; border-radius: 12px; color: white; background: var(--forest); box-shadow: var(--shadow); font-size: 10px; font-weight: 700; animation: toastIn .25s ease; }
.toast svg { width: 16px; color: var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .objects-grid, .teams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-row { grid-template-columns: 84px minmax(160px, 1fr) minmax(170px, 1fr) 95px 30px; }
  .order-row .priority { display: none; }
  .today-chip { display: none; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { width: min(280px, 84vw); transform: translateX(-105%); transition: .25s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-backdrop { position: fixed; inset: 0; z-index: 25; visibility: hidden; opacity: 0; background: rgba(10,24,18,.35); transition: .2s ease; }
  .mobile-backdrop.open { visibility: visible; opacity: 1; }
  .main-content { min-height: 100vh; }
  .topbar { height: 66px; padding: 0 15px; gap: 10px; }
  .mobile-menu { display: grid; flex: 0 0 auto; }
  .search-box { width: auto; flex: 1; }
  .search-box input { padding-right: 12px; }
  .search-box kbd, .notification-btn { display: none; }
  .language-switch { position: fixed; right: 15px; bottom: 15px; z-index: 24; box-shadow: var(--shadow); }
  .primary-btn span { display: none; }
  .primary-btn { width: 40px; padding: 0; }
  .view-root { padding: 22px 15px 35px; }
  .view-head { align-items: center; }
  .view-head h1 { font-size: 22px; }
  .view-head p:not(.eyebrow) { display: none; }
  .head-actions .secondary-btn span { display: none; }
  .metrics { gap: 9px; }
  .metric-card { padding: 14px; }
  .metric-value strong { font-size: 23px; }
  .metric-top > span { font-size: 10px; }
  .schedule-row { grid-template-columns: 52px 3px 1fr; gap: 9px; }
  .schedule-row .team-pill { display: none; }
  .objects-grid, .teams-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .filter-tabs { max-width: 100%; overflow-x: auto; }
  .toolbar .compact-search { width: 100%; margin-left: 0; }
  .order-row { grid-template-columns: 70px 1fr 30px; gap: 8px; padding: 13px; }
  .order-row .order-task, .order-row .status { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .doc-categories { display: flex; overflow-x: auto; }
  .doc-category { width: auto; white-space: nowrap; }
  .doc-row { grid-template-columns: 40px 1fr 30px; }
  .doc-row .doc-meta { display: none; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 130px; }
  .metric-icon { display: none; }
  .metric-value { margin-top: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .drawer-body { padding-inline: 17px; }
  .drawer-head { padding-inline: 17px; }
  .quote-row { grid-template-columns: 1fr 45px 66px; }
  .quote-row > :nth-child(3) { display: none; }
  .media-capture-head { align-items: flex-start; flex-direction: column; }
  .record-button, .upload-button { width: 100%; }
  .photo-preview { grid-template-columns: repeat(3, 1fr); }
}
