:root {
  color-scheme: light;
  --ink: #1f4032;
  --deep: #194b38;
  --accent: #b84821;
  --orange: #df6238;
  --soft: #666f61;
  --line: #d2d6c9;
  --bg: #f7f7ef;
  --white: #fffef7;
  --mono: "IBM Plex Mono","Cascadia Mono",Consolas,monospace;
  font-family: "DM Sans","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

button,input,textarea {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 3px solid #976017;
  outline-offset: 4px;
}

button:disabled {
  opacity: .62;
  cursor: wait;
}

[hidden] {
  display: none!important;
}

button {
  border: none;
  background: none;
}

i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-style: normal;
}

i svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

a {
  color: var(--deep);
  text-underline-offset: 3px;
}

.mast {
  border-bottom: 1px solid var(--line);
}

.mast-inner,.wrap,.footer {
  width: min(1080px,calc(100% - 88px));
  margin-inline: auto;
}

.mast-inner {
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand,nav,.nav-item,.circle-button {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 4px 0;
}

.brand img {
  width: 39px;
  height: 39px;
}

.brand span {
  font-size: 1.43rem;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand small {
  margin-left: 3px;
  border-left: 1px solid #c4cabc;
  padding-left: 12px;
  font: 600 .74rem/1.1 var(--mono);
  letter-spacing: .115em;
  color: #687263;
}

nav {
  gap: 7px;
}

.nav-item {
  gap: 7px;
  border-radius: 30px;
  padding: 9px 17px;
  font-weight: 650;
  font-size: .92rem;
}

.nav-item.current {
  background: #e3e9da;
  color: #2a4b39;
}

.circle-button {
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  margin-left: 9px;
  border: 1px solid var(--line);
  font-size: 1.14rem;
}

.wrap {
  flex: 1;
}

.intro {
  padding: 43px 0 27px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 .74rem/1.4 var(--mono);
  letter-spacing: .18em;
  color: #637262;
}

.mini-rule {
  width: 26px;
  height: 2px;
  background: var(--orange);
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem,4.1vw,3.65rem);
  line-height: 1.22;
  letter-spacing: -.085em;
  margin: 9px 0 10px;
  font-weight: 840;
}

h1 em {
  font-style: normal;
  color: var(--deep);
}

.intro p {
  color: #60695d;
  font-size: 1rem;
  line-height: 1.7;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0,1.32fr) minmax(335px,1fr);
  gap: 20px;
}

.map-panel,.controls {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.map-panel {
  isolation: isolate;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9e5cb;
  border-color: #aaba9d;
}

.map-panel>canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.plate-top,.plate-foot {
  position: absolute;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.plate-top {
  top: 19px;
}

.plate-foot {
  bottom: 17px;
  color: #435e45;
  font-size: .82rem;
}

.plate-foot>span:first-child,.plate-name,.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.plate-name {
  font-size: .85rem;
  font-weight: 710;
  letter-spacing: .04em;
}

.plate-name i {
  font-size: 1.12rem;
}

.status {
  background: #f6fae6d9;
  border: 1px solid #aebda1;
  border-radius: 24px;
  padding: 4px 10px;
  font-size: .76rem;
  line-height: 1.3;
}

.status b {
  width: 6px;
  height: 6px;
  background: #687e58;
  border-radius: 50%;
}

.status.live b {
  background: #ba551e;
}

.scale {
  width: 42px;
  height: 6px;
  border: 1px solid #687e5d;
  border-top: none;
  position: relative;
}

.scale:after {
  content: "";
  position: absolute;
  top: 2px;
  height: 3px;
  left: 50%;
  border-left: 1px solid #687e5d;
}

.dial-wrap {
  width: clamp(240px,25vw,334px);
  aspect-ratio: 1;
}

.dial-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  padding: 24px 26px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title h2,.controls h2 {
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: -.045em;
}

.section-title span,.unit-label {
  font: 600 .72rem var(--mono);
  letter-spacing: .15em;
  color: #78816f;
}

.distances {
  display: grid;
  gap: 8px;
}

.choice {
  width: 100%;
  border: 1px solid #d5d9cd;
  border-radius: 10px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  padding: 10px 13px;
  background: #fafbf3;
  min-height: 53px;
}

.choice.selected {
  border-color: #607b55;
  background: #eaf0de;
  box-shadow: inset 0 0 0 .4px #607b55;
}

.choice .land {
  font-size: 1.55rem;
  color: #607957;
}

.choice .choice-name {
  font-size: .97rem;
  font-weight: 700;
}

.choice .amount {
  margin-left: auto;
  color: #535e4e;
  font: .88rem var(--mono);
}

.dot {
  width: 15px;
  height: 15px;
  border: 1.5px solid #a3aa9a;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.selected .dot {
  border-color: var(--deep);
}

.selected .dot:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--deep);
}

.primary,.secondary,.text-btn,.photo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  font-size: .96rem;
}

.primary {
  width: 100%;
  margin-top: 17px;
  padding: 12px 15px;
  background: var(--deep);
  border: 1px solid var(--deep);
  color: #fffdf0;
  border-radius: 10px;
}

.primary:hover {
  background: #113d2c;
}

.primary i {
  color: #f7b483;
}

.secondary,.photo-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 15px;
  background: var(--white);
}

.text-btn {
  color: #52624d;
  font-weight: 550;
  margin: 2px auto -8px;
  padding-inline: 14px;
}

.text-btn:hover,.footer button:hover {
  text-decoration: underline;
}

.consent,.hint,.msg {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--soft);
}

.consent {
  margin-top: 9px;
  font-size: .79rem;
}

.error-msg {
  margin-top: 12px;
  color: #974422;
}

.journal-strip {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 19px;
  border: 1px solid var(--line);
  background: #f1f3e8;
  border-radius: 13px;
  min-height: 76px;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.ticket-icon {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  margin: 0 16px 0 19px;
  border-radius: 10px;
  background: #e3e8d8;
  font-size: 1.22rem;
}

.ticket-copy {
  display: grid;
  gap: 3px;
}

.ticket-copy strong {
  font-size: 1rem;
}

.ticket-copy small {
  font-size: .83rem;
  color: #67715e;
}

.ticket-end {
  margin-left: auto;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px dashed #bdc6b2;
  width: 59px;
}

.footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6d7868;
  font-size: .82rem;
}

.footer span {
  display: flex;
  align-items: center;
  gap: 8px;
  font: .73rem var(--mono);
  letter-spacing: .055em;
}

.footer b {
  color: #aeb5a3;
}

.footer button {
  padding: 5px;
  color: inherit;
}

.reading {
  font: 600 clamp(2.6rem,6vw,4.6rem)/1.2 var(--mono);
  letter-spacing: -.08em;
  margin: 16px 0 10px;
}

.reading small {
  font-size: 1.12rem;
  letter-spacing: 0;
  margin-left: 8px;
}

.guide-info {
  margin: 12px 0 0;
  padding: 12px 0;
  border-block: 1px dashed var(--line);
  line-height: 1.65;
  font-size: .93rem;
}

.arrive-icon,.journal-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.controls .place-name {
  font-size: 1.9rem;
  margin: 10px 0;
}

.field {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  font-weight: 600;
  font-size: .9rem;
}

.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fbfcf5;
  resize: vertical;
  font-weight: 400;
  min-height: 72px;
}

.photo-btn {
  cursor: pointer;
  margin-top: 8px;
  font-size: .85rem;
}

.thumb {
  display: block;
  max-height: 150px;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 9px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,290px),1fr));
  gap: 16px;
}

.entry,.empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 21px;
}

.entry h2 {
  margin: 10px 0;
  font-size: 1.27rem;
}

.entry p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.entry img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #edf1e3;
  margin-top: 12px;
  border-radius: 8px;
}

.entry small {
  color: var(--soft);
}

.empty {
  text-align: center;
  padding: 38px 20px;
}

.empty p {
  margin: 9px 0 15px;
  color: var(--soft);
}

.empty button {
  margin: auto;
  width: auto;
}

.minor {
  font-size: .85rem;
  text-decoration: underline;
  color: #64705d;
  margin-top: 12px;
  padding: 6px 0;
}

.row-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.row-actions>* {
  flex: 1;
  margin: 0;
}

dialog {
  width: min(420px,calc(100% - 34px));
  max-height: 85svh;
  border-radius: 16px;
  border: 1px solid #bcc5b1;
  padding: 24px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 70px #20312132;
}

dialog::backdrop {
  background: #10271965;
}

dialog h2 {
  font-size: 1.43rem;
  margin: 0 0 12px;
}

dialog p,dialog ol {
  color: #53604e;
  line-height: 1.75;
  font-size: .96rem;
}

dialog p+p {
  margin-top: 8px;
}

dialog ol {
  padding-left: 1.35rem;
}

dialog li {
  margin-bottom: 8px;
}

@media(max-width:780px) {
  .mast-inner,.wrap,.footer {
    width: calc(100% - 40px);
  }
  .dashboard {
    grid-template-columns: minmax(0,1fr) minmax(280px,.9fr);
    gap: 12px;
  }
  .controls {
    padding: 20px 15px;
  }
  .dial-wrap {
    width: min(94%,260px);
  }
  .plate-top,.plate-foot {
    left: 13px;
    right: 13px;
  }
}

@media(max-width:640px) {
  .mast-inner,.wrap,.footer {
    width: calc(100% - 32px);
  }
  .mast-inner {
    height: 61px;
  }
  .brand {
    gap: 7px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand span {
    font-size: 1.17rem;
  }
  .brand small {
    display: none;
  }
  .nav-item {
    padding: 8px 11px;
    font-size: .86rem;
    gap: 4px;
  }
  nav {
    gap: 2px;
  }
  .circle-button {
    width: 32px;
    height: 32px;
    margin-left: 4px;
  }
  .intro {
    padding: 24px 0 16px;
  }
  .intro p {
    font-size: .91rem;
  }
  .eyebrow {
    font-size: .68rem;
  }
  .dashboard {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .map-panel {
    min-height: 0;
    height: clamp(212px,30svh,275px);
  }
  .dial-wrap {
    width: auto;
    height: 95%;
    aspect-ratio: 1;
  }
  .plate-top {
    top: 12px;
  }
  .plate-foot {
    bottom: 11px;
    font-size: .72rem;
  }
  .plate-name {
    font-size: .78rem;
  }
  .status {
    font-size: .7rem;
  }
  .controls {
    padding: 16px;
  }
  .section-title {
    margin-bottom: 10px;
  }
  .section-title h2 {
    font-size: 1.14rem;
  }
  .distances {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
  }
  .choice {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: start;
    padding: 8px 9px;
    min-height: 71px;
  }
  .choice .land {
    font-size: 1.2rem;
  }
  .choice .choice-name {
    font-size: .85rem;
  }
  .choice .amount {
    margin: 0;
    font-size: .76rem;
  }
  .dot {
    position: absolute;
    right: 9px;
    top: 9px;
    width: 11px;
    height: 11px;
  }
  .selected .dot:before {
    width: 5px;
    height: 5px;
  }
  .primary {
    margin-top: 13px;
  }
  .text-btn {
    font-size: .9rem;
    min-height: 38px;
  }
  .journal-strip {
    margin-top: 12px;
    min-height: 67px;
  }
  .ticket-icon {
    margin-inline: 13px;
  }
  .footer {
    margin-top: 23px;
  }
  .reading {
    margin: 9px 0;
  }
  .row-actions>.primary {
    margin: 0;
  }
}

@media(max-width:350px) {
  .mast-inner,.wrap,.footer {
    width: calc(100% - 22px);
  }
  .nav-item {
    padding: 7px;
  }
  .map-panel {
    height: 190px;
  }
  .plate-name i {
    display: none;
  }
  .choice {
    padding-inline: 6px;
  }
}

