@import url("/static/fonts.css");
:root {
  --ink: #183d3a;
  --muted: #61746f;
  --bg: #f5f6f1;
  --line: #dfe5dc;
  --green: #205d4b;
  --accent: #def0b1;
  --red: #a33835;
  --amber: #94642a;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 16px;
  background: white;
  color: var(--ink);
  font-weight: 600;
}
button:hover {
  background: #edf2e7;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.danger {
  color: var(--red);
}
button.small {
  padding: 7px 10px;
  font-size: 13px;
}
button.icon {
  padding: 8px 12px;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid #ca8c2e;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -500px;
}
.skip:focus {
  left: 20px;
  top: 10px;
  background: white;
  z-index: 99;
  padding: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #123c38;
  color: #ebf3e8;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand {
  font-size: 26px;
  font-weight: 750;
  padding: 0 12px;
  letter-spacing: -1px;
}
.brand small {
  font-size: 10px;
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 5px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  color: #c6d8ce;
  text-align: left;
  font-weight: 500;
}
.sidebar nav button.active {
  background: #2a5248;
  color: #ebf7cb;
}
.nav-symbol {
  display: inline-block;
  width: 30px;
  font-size: 20px;
}
.sidebar .bottom {
  margin-top: auto;
  font-size: 12px;
  color: #b6cbc3;
  padding: 12px;
  line-height: 1.6;
}
.workspace {
  min-width: 0;
}
.topbar {
  padding: 20px 36px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.connection {
  font-size: 12px;
  color: var(--muted);
}
.connection.offline {
  color: var(--red);
}
main {
  padding: 32px 36px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
}
h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin: 0 0 9px;
}
.sub {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 10px 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat b {
  display: block;
  font-size: 32px;
  margin: 10px 0 6px;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.mission {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 17px;
  margin: 12px 0;
  position: relative;
}
.mission:hover {
  border-color: #b4c7b4;
}
.mission .time {
  font-size: 13px;
  color: var(--green);
  font-weight: 650;
}
.mission .client {
  font-size: 17px;
  font-weight: 650;
  margin: 9px 0 4px;
}
.mission p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  line-height: 1.5;
}
.mission .actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: #edf3e7;
  padding: 5px 9px;
  border-radius: 6px;
  color: #3d654e;
}
.badge.amber {
  background: #fbefd8;
  color: var(--amber);
}
.badge.red {
  background: #fce9e4;
  color: var(--red);
}
.badge.blue {
  background: #e7eef7;
  color: #446383;
}
.empty {
  text-align: center;
  padding: 35px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.segmented {
  display: flex;
  gap: 3px;
  background: #e8ede3;
  padding: 4px;
  border-radius: 10px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 13px;
  font-size: 13px;
}
.segmented button.selected {
  background: white;
  box-shadow: 0 1px 4px #0001;
}
.planning {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.planning table {
  border-collapse: collapse;
  min-width: 100%;
  table-layout: fixed;
}
.planning th {
  background: #f0f4ed;
  text-align: left;
  font-size: 13px;
  padding: 15px;
  min-width: 190px;
  vertical-align: top;
}
.planning th:first-child {
  min-width: 110px;
  width: 110px;
}
.planning td {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
  min-height: 120px;
}
.planning td:first-child {
  font-size: 12px;
  color: var(--muted);
  padding: 15px;
}
.planning .mission {
  margin: 0 0 8px;
  background: #f4f8ee;
  padding: 12px;
}
.planning .mission .client {
  font-size: 14px;
}
.planning .mission .time {
  font-size: 11px;
}
.drop-zone.over {
  background: #def0b1;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.field label,
.field legend {
  font-size: 13px;
  font-weight: 650;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced8cb;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.field textarea {
  min-height: 85px;
  resize: vertical;
}
.field small {
  color: var(--muted);
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  margin: 14px 0;
}
.check input {
  width: 18px;
  height: 18px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 15px;
  margin: 12px 0;
}
legend {
  font-size: 13px;
  font-weight: 650;
}
.notice {
  background: #f0f5e5;
  padding: 15px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.notice.warn {
  background: #fff0d6;
}
.notice.error {
  background: #fbe7e3;
  color: var(--red);
}
.list-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  align-items: center;
}
.list-row:last-child {
  border: 0;
}
.list-row p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0;
}
.login {
  max-width: 430px;
  margin: 8vh auto;
  padding: 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.login h1 {
  font-size: 28px;
}
.login .brand {
  padding: 0;
  margin-bottom: 24px;
  color: var(--green);
}
dialog {
  border: 0;
  border-radius: 17px;
  padding: 26px;
  width: min(780px, 94vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 90px #0004;
  color: var(--ink);
}
dialog::backdrop {
  background: #0e2d2b80;
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
dialog header h2 {
  margin: 0;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  background: #183d3a;
  color: white;
  padding: 15px 22px;
  border-radius: 12px;
  max-width: min(540px, 90vw);
  box-shadow: 0 8px 20px #0003;
  z-index: 100;
  display: none;
}
.assistant-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.voice-transcript {
  min-height: 150px;
  background: #f5f7f1;
  padding: 16px;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  border-radius: 9px;
}
.voice-input {
  width: 100%;
  min-height: 90px;
}
.queue-item {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.map-frame {
  background: #e5ede0;
  border-radius: 10px;
  width: 100%;
  min-height: 300px;
}
.map-frame svg {
  width: 100%;
  height: 350px;
}
.footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.loading {
  padding: 35px;
  color: var(--muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #77a370;
  display: inline-block;
  margin-right: 6px;
}
.mobile-controls {
  display: none;
}
body[data-role="technician"] .stats {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 24px 12px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 18px 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .assistant-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 15px 16px;
    gap: 15px;
  }
  .brand {
    font-size: 23px;
  }
  .brand small {
    font-size: 8px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 12px;
  }
  .nav-symbol {
    width: 22px;
    font-size: 16px;
  }
  .sidebar .bottom {
    display: none;
  }
  .topbar {
    padding: 13px 18px;
    font-size: 12px;
  }
  main {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .page-head button {
    font-size: 12px;
    padding: 11px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 27px;
  }
  .stat span {
    font-size: 11px;
  }
  .card {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .mission .actions button {
    flex-grow: 1;
    min-height: 46px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input {
    max-width: 145px;
  }
  .login {
    margin: 30px 16px;
  }
  .mobile-controls {
    display: block;
  }
  dialog {
    padding: 20px;
  }
  .row {
    gap: 8px;
  }
}
.private-photo {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
}
figure {
  margin: 12px 0;
}
figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.geo-map{height:400px;border-radius:12px;margin-bottom:20px;z-index:0}.editor-row .field{flex:1;min-width:150px}
