:root {
  color-scheme: light;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #51474a;
  background: #fcf8f5;
  line-height: 1.55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
main { max-width: 62rem; padding: 2rem clamp(1rem, 5vw, 2.5rem); margin: auto; }
header { margin-bottom: 1.7rem; }
h1, h2 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h1 span { display: inline-block; font-size: .52em; color: #7f495b; margin-left: .45rem; }
h2 { font-size: 1.2rem; }
p { margin: .55rem 0 1rem; }
label { display: block; margin: .65rem 0 .3rem; font-weight: 600; }
.card { background: #fffdfc; border: 1px solid #ebd8df; border-radius: 1.1rem; padding: 1.25rem; margin-bottom: 1rem; min-width: 0; }
#login { max-width: 28rem; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; border-radius: .6rem; border: 1px solid #aa929a; padding: .55rem .75rem; background: white; }
textarea { resize: vertical; }
button { padding: .55rem .9rem; border: 1px solid transparent; border-radius: .6rem; background: #825266; color: white; font-weight: 600; cursor: pointer; }
button[disabled] { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #633347; outline-offset: 3px; }
#login button { margin-top: .9rem; }
.secondary { background: #dce6d7; color: #344b32; }
.actions, .session { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .7rem; }
.session { justify-content: space-between; margin-bottom: .9rem; }
.session p { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
#remote-note, #status { overflow-wrap: anywhere; }
#status { min-height: 1.55rem; color: #754758; }
#photo { display: block; width: min(100%, 480px); height: auto; border-radius: .65rem; margin-bottom: .7rem; }
.map { position: relative; height: clamp(12rem, 48vw, 25rem); overflow: hidden; border-radius: .7rem; background: #e7eef0; touch-action: pan-y; }
.map canvas { display: block; width: 100%; height: 100%; }
.marker { position: absolute; transform: translate(-50%, -50%); font-size: .95rem; padding: .26rem .48rem; }
.credit { color: #655b5d; font-size: .84rem; margin-bottom: 0; }
@media (max-width: 650px) { .grid { grid-template-columns: 1fr; gap: 0; } }
