:root {
  --navy: #031c31;
  --blue: #00638c;
  --aqua: #22c6f3;
  --ink: #09273b;
  --muted: #526b78;
  --paper: #f0f7fb;
  --line: #cddfe9;
  --white: #fff;
  --danger: #9e302c;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}
button:hover,
.button:hover {
  background: var(--blue);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}
.secondary:hover {
  background: #e8f3f1;
}
.aqua {
  background: var(--aqua);
  color: var(--navy);
}
.text-button {
  background: none;
  color: var(--blue);
  padding: 8px 0;
  min-height: 44px;
}
.text-button:hover {
  background: none;
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #258cbd;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.07;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
}
h3 {
  font-size: 19px;
  line-height: 1.4;
}
p {
  line-height: 1.75;
}
.muted,
small {
  color: var(--muted);
}
small {
  line-height: 1.5;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 22px;
}
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 40px;
}
.public-header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  min-height: 100px;
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.13em;
  font-size: 23px;
  font-weight: 800;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0.3em;
  margin-top: 5px;
}
.public-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
}
.public-header nav a {
  text-decoration: none;
}
.hero {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 55px;
  padding-top: 84px;
  padding-bottom: 84px;
  min-height: 580px;
}
.hero .eyebrow {
  color: var(--aqua);
}
.hero p {
  color: #c4d6df;
  max-width: 460px;
  font-size: 17px;
}
.hero h1 em {
  font-style: normal;
  color: var(--aqua);
}
.hero .actions {
  margin-top: 30px;
}
.hero .secondary {
  background: transparent;
  color: white;
  border-color: #537587;
}
.strip {
  padding: 24px 0;
  background: #e8f2f0;
}
.strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 12px;
  font-weight: 600;
}
.section {
  padding: 80px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 27px;
  min-width: 0;
}
.card p:last-child {
  margin-bottom: 0;
}
.service-number {
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
  font-size: 36px;
  color: #6b919d;
  display: block;
  margin-bottom: 36px;
}
.dark-section {
  background: var(--navy);
  color: white;
}
.dark-section .eyebrow {
  color: var(--aqua);
}
.dark-section p {
  color: #c5d8df;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.step {
  border-top: 1px solid #517080;
  padding-top: 22px;
}
.step small {
  color: var(--aqua);
  display: block;
  margin-bottom: 18px;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.quote-panel {
  background: #e8f2f0;
  border-radius: 10px;
  padding: 40px;
}
.public-footer {
  padding: 40px 0;
  background: #e7edeb;
  font-size: 12px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.pill {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 30px;
  background: #e6f3ed;
  color: #235b49;
  display: inline-block;
  font-weight: 650;
}
.pill.pending {
  background: #fff0d6;
  color: #785211;
}
.pill.alert {
  background: #ffe5df;
  color: #893c29;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  background: white;
  border: 1px solid #b5c7cd;
  border-radius: 4px;
  color: var(--ink);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin: 16px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.wide {
  grid-column: 1/-1;
}
.error {
  color: var(--danger);
  background: #fff0eb;
  padding: 12px;
  border-radius: 4px;
}
.success {
  background: #e5f3ed;
  padding: 16px;
  border-radius: 5px;
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  border: 1px dashed #bbcccf;
  border-radius: 7px;
}
.auth {
  max-width: 480px;
  margin: 65px auto;
  padding: 32px;
}
.auth h1 {
  font-size: 38px;
}
.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: white;
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 20px;
}
.sidebar small {
  color: #acc9d2;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar nav button {
  justify-content: flex-start;
  background: transparent;
  color: #c9dae0;
  font-size: 13px;
  padding: 12px;
}
.sidebar nav button.active {
  background: #22465a;
  color: white;
}
.sidebar .bottom {
  margin-top: auto;
}
.workspace {
  min-width: 0;
}
.work-header {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 22px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.work-header p {
  margin: 0;
  font-size: 12px;
}
.work-main {
  max-width: 1500px;
  margin: auto;
  padding: 36px 38px;
}
.work-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.work-title h1 {
  font-size: 38px;
  margin-bottom: 8px;
}
.work-title p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stat {
  padding: 23px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.stat strong {
  font-size: 30px;
  font-weight: 500;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 19px 22px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
}
.row h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.row p {
  margin: 0;
  font-size: 12px;
}
.row .actions button {
  font-size: 12px;
}
.section-label {
  font-size: 17px;
  margin: 30px 0 18px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.day {
  background: #edf2f0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  min-height: 180px;
}
.day h3 {
  font-size: 12px;
  margin-bottom: 18px;
}
.job-small {
  display: block;
  width: 100%;
  padding: 12px 8px;
  text-align: left;
  font-size: 11px;
  margin-bottom: 8px;
  background: white;
  color: var(--navy);
  border: 1px solid var(--line);
}
.job-small:hover {
  background: #d9eeee;
}
.job-small strong {
  display: block;
  margin-bottom: 5px;
}
.notice-box {
  padding: 16px 20px;
  border: 1px solid #c7dcd8;
  border-radius: 6px;
  background: #eaf4f1;
  font-size: 13px;
  margin-bottom: 24px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-list dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-list dd {
  margin: 0;
  white-space: pre-wrap;
}
.report {
  max-width: 850px;
  margin: auto;
}
.report .card {
  margin-bottom: 20px;
}
.report h1 {
  font-size: 38px;
}
.report textarea {
  min-height: 100px;
}
.draft-note {
  font-size: 12px;
  color: #785211;
  margin: 0 0 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 500;
}
.line-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.line-item button {
  margin-bottom: 18px;
}
.line-item .field {
  font-size: 11px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  max-width: 780px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #06253799;
}
dialog h2 {
  font-size: 30px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.dialog-head button {
  height: 44px;
  min-width: 44px;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 430px;
  z-index: 100;
  background: var(--navy);
  color: white;
  border-radius: 7px;
  box-shadow: 0 5px 20px #0003;
}
#notice:not(:empty) {
  padding: 18px 24px;
}
.skip {
  position: absolute;
  top: -60px;
  left: 10px;
  z-index: 200;
}
.skip:focus {
  top: 10px;
  background: white;
  padding: 15px;
}
.hidden {
  display: none;
}
.private-page {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 24px;
}
.private-page h1 {
  font-size: 40px;
}
progress {
  width: 100%;
  height: 16px;
}
.link-output {
  word-break: break-all;
}
.top-space {
  margin-top: 22px;
}
@media (max-width: 1000px) {
  .public-header nav {
    gap: 16px;
  }
  .hero-grid {
    gap: 30px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 15px;
  }
  .work-main {
    padding: 26px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .line-item {
    grid-template-columns: 1fr 1fr;
  }
  .line-item .field:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .wrap {
    padding: 0 22px;
  }
  .header-inner {
    min-height: 86px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 15px;
    gap: 18px;
  }
  .public-header nav {
    width: 100%;
    justify-content: space-between;
    font-size: 11px;
    gap: 8px;
  }
  .public-header nav .button {
    padding: 9px;
    min-height: 40px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 42px;
    gap: 38px;
  }
  .hero h1 {
    font-size: 51px;
  }
  .strip .wrap {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 15px;
  }
  .section {
    padding: 52px 0;
  }
  .grid,
  .grid.two,
  .about-layout {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .about-layout {
    gap: 30px;
  }
  .quote-panel {
    padding: 25px;
  }
  .footer-inner {
    flex-direction: column;
  }
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 20px;
    gap: 18px;
  }
  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .sidebar nav button {
    white-space: nowrap;
  }
  .sidebar .bottom {
    display: none;
  }
  .work-header {
    padding: 17px 20px;
  }
  .work-main {
    padding: 24px 16px;
  }
  .work-title {
    align-items: flex-start;
  }
  .work-title h1 {
    font-size: 32px;
  }
  .work-title .button,
  .work-title button {
    padding: 11px;
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat strong {
    font-size: 26px;
  }
  .row {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }
  .row .actions {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-list {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 22px;
  }
  .auth {
    margin: 30px 16px;
  }
  .work-header .muted {
    display: none;
  }
  dialog {
    padding: 22px;
  }
  .line-item {
    border-bottom: 1px solid var(--line);
    margin-bottom: 20px;
  }
  .private-page {
    padding: 0 16px;
  }
  .report h1 {
    font-size: 32px;
  }
}
@media print {
  .sidebar,
  .public-header,
  button,
  .actions,
  #notice {
    display: none;
  }
  .shell {
    display: block;
  }
  .card {
    break-inside: avoid;
  }
  .workspace,
  .private-page {
    max-width: none;
  }
}
.dark-section .card {
  color: var(--ink);
}
.dark-section .card p {
  color: var(--muted);
}
