:root {
  color-scheme: dark;
  --ink: #f6f4ef;
  --muted: #c6cbd0;
  --surface: #272e33;
  --line: #5d686d;
  --amber: #ffad64;
  --radius: 24px;
  font: 100%/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(ellipse at 6% 12%, #303d41, transparent 49%),
              radial-gradient(ellipse at 94% 90%, #49372d, transparent 42%), #151b20;
}
header, main { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
header { display: flex; align-items: center; gap: 16px; padding: 23px 0; border-bottom: 1px solid #586066; }
header img { width: 64px; height: 56px; object-fit: contain; }
header button { margin-left: auto; }
header p { margin: 0; font-size: .875rem; color: var(--muted); }
h1,h2,h3 { line-height: 1.16; text-wrap: balance; }
h1 { margin: 0 0 3px; font-size: 1.5rem; letter-spacing: -.035em; }
h2 { margin: 0 0 24px; font-size: clamp(2rem,4vw,3rem); letter-spacing: -.047em; }
h3 { margin: 0 0 18px; font-size: 1.35rem; letter-spacing: -.025em; }
p { color: var(--muted); }
main { padding: clamp(24px,5vw,64px) 0 64px; }
section {
  min-width: 0; margin-bottom: 20px; padding: clamp(20px,3vw,36px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 1px 0 #ffffff24, 0 14px 38px #0002;
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  section { background: linear-gradient(140deg,#e6f6ff14,#252b31d9 65%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
#session { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; padding: 0; max-width: 960px; margin: clamp(12px,5vh,60px) auto; }
.login-panel { align-self: center; padding: clamp(24px,5vw,64px); }
.login-panel button { width: 100%; margin-top: 10px; }
.glass-art { isolation: isolate; position: relative; overflow: hidden; min-height: 450px; background: radial-gradient(at 75% 85%,#e0a667,transparent 50%),linear-gradient(145deg,#293738,#54483d 53%,#b67239); }
.glass-art i { position: absolute; height: 155%; width: 59%; bottom: -44%; left: -26%; transform: rotate(-31deg); border: 1px solid #ffe4baaa; border-radius: 44% 36% 12% 18%; background: linear-gradient(85deg,#19282dc9,#e8b57d96 46%,#ffdfadc2 48%,#79573b77 66%,#f8bd7f90); box-shadow: inset 12px 0 28px #ffffff2a, 14px 15px 32px #211a1c66; }
.glass-art i:nth-child(2) { left: 12%; bottom: -31%; }
.glass-art i:nth-child(3) { left: 55%; bottom: -18%; }
#worker { max-width: 680px; margin-inline: auto; }
#open:not(:empty), #msg:not(:empty) { padding: 12px 16px; border-left: 3px solid var(--amber); background: #20292e; color: var(--ink); }
#msg:empty { display: none; }
#admin > .grid { align-items: start; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.grid > section { margin: 0; }
label { display: block; min-width: 0; margin-bottom: 14px; color: #e5e8e8; font-weight: 550; }
input,select,button { font: inherit; border-radius: 12px; }
input,select { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 5px; padding: 10px 12px; color: var(--ink); background: #1b2328; border: 1px solid #78858a; }
button,summary { min-height: 46px; touch-action: manipulation; cursor: pointer; }
button { padding: 9px 20px; color: #26190f; font-weight: 700; border: 1px solid #ffce99; background: linear-gradient(#ffc48c,var(--amber)); }
button:hover:not(:disabled) { background: #ffd0a1; }
button:disabled { background: #3d484d; border-color: #546067; color: #bdc4c7; cursor: default; }
#logout,#loadDaily { background: #303a40; color: var(--ink); border-color: #758289; }
#logout:hover,#loadDaily:hover { background: #414d54; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions button { min-height: 58px; }
a { color: #ffbf87; }
:focus-visible { outline: 3px solid #ffcf92; outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -100px; padding: 10px; background: #182028; z-index: 2; }
.skip:focus { top: 12px; }
summary { padding: 12px 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th,td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #20282e; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  header,main { width: calc(100% - 32px); }
  header { gap: 10px; padding: 15px 0; flex-wrap: wrap; }
  header img { width: 46px; height: 42px; }
  #logout { padding-inline: 12px; }
  .grid,#session { grid-template-columns: 1fr; }
  #session { margin: 0 auto; max-width: 480px; }
  .glass-art { min-height: 116px; }
  .login-panel { padding: 26px 22px; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  section { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.admin-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.admin-nav { display: grid; gap: 5px; padding: 4px 0; }
.admin-nav h3 { margin: 24px 12px 7px; font-size: .79rem; letter-spacing: .07em; color: var(--muted); text-transform: uppercase; }
.admin-nav h3:first-child { margin-top: 0; }
.admin-nav a { display: flex; align-items: center; min-height: 45px; padding: 8px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.admin-nav a:hover { background: #354048; }
.admin-nav a[aria-current] { background: #47392e; color: #ffd4a7; box-shadow: inset 3px 0 var(--amber); font-weight: 700; }
.admin-content { min-width: 0; }
.admin-pane { margin: 0; }
.admin-pane h3 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 24px; }
.admin-pane form { max-width: 680px; }
.admin-pane label { margin-bottom: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.form-actions a { padding: 10px 4px; }
.mobile-menu { display: none; }
@media (max-width: 700px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .admin-nav { display: none; }
  .mobile-menu { display: block; margin: 0; }
}.mark-map {margin:16px 0}.mark-map canvas {display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--line)}.mark-map figcaption {padding:8px 0;color:var(--muted)}
#language {width:auto;margin:0 0 0 auto} header #logout {margin-left:0}.delete-record {margin-top:30px;border-top:1px solid var(--line);padding-top:10px}.delete-record button {background:#582d32;color:#fff;border-color:#996067}
