:root {
  color-scheme:light;
  --paper:#f4f2eb;
  --surface:#fbfaf6;
  --ink:#243e37;
  --muted:#718078;
  --rule:#dedfd5;
  --green:#375b47;
  --sea:#cfdee0;
  --ochre:#cdb780;
  --danger:#9b4c39;
  --shadow:0 12px 36px #23392b16;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink)
}
button,input,select {
  font:inherit
}
button,a,input {
  touch-action:manipulation
}
button {
  color:inherit;
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.5
}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,canvas:focus-visible {
  outline:3px solid #7d9a68;
  outline-offset:3px
}
a {
  color:inherit;
  text-decoration:none
}
button {
  border:1px solid var(--rule);
  background:var(--surface);
  border-radius:6px
}
button:hover:not(:disabled) {
  background:#e9eddf
}
svg {
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round
}
button svg {
  width:19px;
  height:19px;
  flex:none
}
[hidden] {
  display:none!important
}
.sr-only,.skip-link:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.skip-link:focus {
  position:absolute;
  z-index:20;
  top:7px;
  left:7px;
  padding:10px 16px;
  background:var(--surface)
}
.studio-header {
  height:72px;
  display:flex;
  align-items:center;
  gap:25px;
  padding:0 28px;
  border-bottom:1px solid var(--rule);
  background:var(--surface);
  position:relative;
  z-index:4
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  flex:none
}
.brand svg {
  width:28px;
  height:28px;
  stroke-width:1.5
}
.brand span {
  font-size:11px;
  font-weight:750;
  letter-spacing:2px
}
.project-identity {
  display:flex;
  align-items:center;
  gap:13px;
  border-left:1px solid var(--rule);
  padding-left:25px;
  font-size:17px;
  font-family:Georgia,"Times New Roman",serif
}
.local-badge {
  font-family:Inter,ui-sans-serif,system-ui,sans-serif;
  font-size:10px;
  color:#6e7b6b;
  border:1px solid #d9ded0;
  border-radius:20px;
  padding:4px 9px;
  white-space:nowrap
}
.header-actions {
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  font-size:12px
}
.saved-world-link {
  padding:10px 11px;
  color:#647567
}
.saved-world-link:hover {
  color:var(--green)
}
.quiet-button {
  border-color:transparent;
  background:transparent;
  padding:10px 12px
}
.export-button {
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--green);
  border-color:var(--green);
  color:#fffef6;
  padding:10px 15px
}
.export-button:hover:not(:disabled) {
  background:#284b37
}
.studio-layout {
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  min-height:calc(100dvh - 72px);
  position:relative
}
.brief-panel {
  padding:30px 25px 22px;
  border-right:1px solid var(--rule);
  display:flex;
  flex-direction:column;
  gap:27px;
  background:var(--paper)
}
.eyebrow {
  display:block;
  font-size:9px;
  font-weight:750;
  letter-spacing:2px;
  color:#798372
}
.brief-heading h1 {
  font:400 35px/1.07 Georgia,"Times New Roman",serif;
  letter-spacing:-1px;
  margin:13px 0 14px
}
.brief-heading p {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:0
}
h2 {
  font-size:10px;
  letter-spacing:1.15px;
  font-weight:700;
  margin:0 0 12px
}
.fixed-brief h2,.draft-facts h2 {
  text-transform:uppercase;
  color:#77806f
}
.anchor-row {
  display:flex;
  align-items:center;
  gap:11px;
  width:100%;
  padding:11px 0;
  border:0;
  border-radius:0;
  background:transparent;
  text-align:left
}
.anchor-row:hover:not(:disabled) {
  background:transparent
}
.anchor-row:hover strong {
  color:#638149
}
.anchor-row>span:nth-child(2) {
  min-width:0
}
.anchor-row strong {
  display:block;
  font-size:12px;
  font-weight:600
}
.anchor-row small {
  display:block;
  font-size:10px;
  line-height:1.5;
  color:var(--muted);
  margin-top:3px
}
.anchor-symbol {
  width:14px;
  height:14px;
  flex:none;
  display:inline-block
}
.port-symbol {
  background:#a46850;
  border:3px solid #e7dfcb;
  border-radius:50%;
  width:13px;
  height:13px
}
.island-symbol {
  font-size:24px;
  line-height:10px;
  color:#8e987c;
  transform:rotate(28deg)
}
.reserved-symbol {
  border:1px solid #90a18d;
  background:repeating-linear-gradient(-45deg,#bdc8b7 50%,#d7decf 50%,#d7decf 65%,#bdc8b7 65%);
  background-size:5px 5px;
  border-radius:2px
}
.row-arrow {
  margin-left:auto;
  font-size:11px;
  color:#a0aa98;
  opacity:0
}
.anchor-row:hover .row-arrow {
  opacity:1
}
.generation-actions {
  border-top:1px solid var(--rule);
  padding-top:22px
}
.primary-button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:43px;
  width:100%;
  padding:10px 12px;
  border-color:var(--green);
  background:var(--green);
  color:#fffdf0;
  font-size:12px;
  font-weight:600
}
.primary-button:hover:not(:disabled) {
  background:#284b37
}
.text-button {
  border:0;
  background:none;
  padding:7px 0;
  font-size:11px;
  color:#667a5d
}
.text-button:hover:not(:disabled) {
  background:none;
  color:#2b503c;
  text-decoration:underline
}
.generation-actions>.text-button {
  display:block;
  width:100%;
  margin-top:9px;
  text-align:center
}
.seed-options {
  margin-top:15px;
  color:var(--muted);
  font-size:10px
}
.seed-options summary {
  cursor:pointer;
  padding:3px 0
}
.seed-options label {
  display:block;
  font-size:10px;
  color:var(--ink);
  margin:12px 0 5px
}
.seed-row {
  display:flex;
  gap:6px
}
.seed-row input {
  min-width:0;
  width:100%;
  border:1px solid #cfd4c6;
  border-radius:4px;
  background:var(--surface);
  padding:8px;
  color:var(--ink);
  font-size:11px
}
.seed-row button {
  padding:7px;
  font-size:10px
}
.seed-options p {
  font-size:10px;
  line-height:1.6;
  margin-bottom:0
}
.draft-facts {
  padding-top:2px
}
.fact {
  padding:10px 0 13px;
  border-bottom:1px solid var(--rule)
}
.fact>span {
  display:block;
  font-size:10px;
  color:var(--muted)
}
.fact strong {
  font:400 24px/1.4 Georgia,"Times New Roman",serif;
  display:block;
  margin:2px 0
}
.fact small {
  display:block;
  font-size:10px;
  color:#7b8473;
  line-height:1.5
}
.coastal-fact {
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding-top:14px
}
.small-wave {
  font:400 27px/20px Georgia,serif;
  color:#83998b
}
.coastal-fact p {
  font-size:10px;
  color:#657966;
  line-height:1.6;
  margin:0
}
.metric-note {
  font-size:9px;
  line-height:1.6;
  color:#92988a;
  margin:11px 0 0
}
.sidebar-bottom {
  margin-top:auto;
  padding-top:12px
}
.source-button {
  border:0;
  background:transparent;
  display:flex;
  align-items:center;
  gap:8px;
  padding:5px 0;
  font-size:11px
}
.source-button svg {
  width:16px;
  height:16px;
  color:#819075
}
.source-button:hover:not(:disabled) {
  background:none;
  text-decoration:underline
}
.saved-summary {
  font-size:9px;
  color:#8b9486;
  line-height:1.6;
  margin:15px 0 6px
}
.draft-note {
  font-size:9px;
  line-height:1.6;
  color:#8b9486;
  margin:0
}
.map-panel {
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:660px;
  background:#e7eeea
}
.map-toolbar {
  height:55px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:0 24px;
  background:#f4f5ed;
  border-bottom:1px solid #d4ddd3;
  flex:none
}
.draft-name {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:#67796a
}
.status-dot {
  width:5px;
  height:5px;
  border-radius:50%;
  background:#869b70
}
.view-switch {
  display:flex;
  gap:2px;
  padding:3px;
  background:#e8ecdf;
  border-radius:6px
}
.view-switch button {
  border:0;
  background:transparent;
  font-size:10px;
  min-width:61px;
  padding:7px 10px;
  color:#7e8876
}
.view-switch button[aria-pressed=true] {
  background:#fffef7;
  color:#37583d;
  box-shadow:0 1px 4px #21392114
}
.map-stage {
  position:relative;
  flex:1;
  min-height:480px;
  overflow:hidden;
  background:var(--sea)
}
#mapCanvas {
  display:block;
  width:100%;
  height:100%;
  position:absolute;
  inset:0;
  touch-action:none;
  cursor:grab
}
#mapCanvas.is-dragging {
  cursor:grabbing
}
.north-indicator {
  position:absolute;
  right:27px;
  top:24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  pointer-events:none;
  color:#5b7a78
}
.north-indicator>span {
  font-size:9px;
  letter-spacing:1px
}
.north-indicator svg {
  width:18px;
  height:28px;
  stroke-width:1
}
.map-zoom {
  position:absolute;
  right:20px;
  bottom:23px;
  display:flex;
  flex-direction:column;
  border:1px solid #b7cbc4;
  border-radius:5px;
  overflow:hidden;
  box-shadow:0 2px 6px #294c3d0b
}
.map-zoom button {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:#f5f7eeed;
  border:0;
  border-radius:0;
  font-size:20px;
  color:#547164
}
.map-zoom button+button {
  border-top:1px solid #d0dbcf
}
.map-zoom button svg {
  width:15px;
  height:15px
}
.map-scale {
  position:absolute;
  left:24px;
  bottom:25px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
  pointer-events:none;
  color:#5f7970;
  font-size:9px
}
.scale-line {
  display:block;
  width:90px;
  height:5px;
  border:1px solid currentColor;
  border-top:0
}
.map-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:#f4f5ed;
  border-top:1px solid #d4ddd3;
  padding:10px 23px;
  font-size:9px;
  color:#7b8979;
  flex:none
}
.storm-note {
  display:flex;
  align-items:center;
  gap:7px
}
.storm-note>span {
  font-size:16px;
  color:#9b927e
}
.map-hint {
  margin-left:auto;
  color:#94a08e
}
.map-bottom .text-button {
  font-size:9px;
  padding:0;
  white-space:nowrap
}
.map-bottom .text-button[aria-pressed=false] {
  color:#99a592;
  text-decoration:line-through
}
.map-loading,.map-failure {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:#d8e5e4ee;
  padding:35px;
  text-align:center;
  z-index:2
}
.map-loading strong {
  font:400 21px Georgia,serif;
  margin:16px 0 9px
}
.map-loading>span:last-child {
  font-size:11px;
  color:#788b7e
}
.loading-spinner {
  width:24px;
  height:24px;
  border:1px solid #a7b9ac;
  border-top-color:#3f6b51;
  border-radius:50%;
  animation:spin 1.2s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
.map-failure h2 {
  font:400 24px Georgia,serif;
  letter-spacing:0;
  max-width:400px;
  line-height:1.4
}
.map-failure p {
  max-width:480px;
  font-size:12px;
  line-height:1.7
}
.map-failure button {
  margin-top:8px;
  padding:10px 17px
}
.plate-legend {
  position:absolute;
  left:22px;
  bottom:76px;
  max-width:330px;
  background:#fafbf3eb;
  border:1px solid #cbd7c8;
  border-radius:6px;
  padding:12px 14px;
  box-shadow:var(--shadow);
  font-size:9px;
  color:#72816f;
  pointer-events:none
}
.plate-legend strong {
  display:block;
  font-size:10px;
  color:#526d52;
  margin-bottom:9px
}
.plate-legend>div {
  display:flex;
  align-items:center;
  gap:5px
}
.boundary-key {
  display:inline-block;
  width:13px;
  height:2px;
  margin-left:7px
}
.boundary-key:first-child {
  margin-left:0
}
.convergent {
  background:#b16446
}
.divergent {
  background:#398c9c
}
.transform {
  background:#8e71a3
}
.plate-legend p {
  font-size:9px;
  line-height:1.6;
  margin:9px 0 0
}
.status-message {
  padding:11px 24px;
  background:#edf0e2;
  font-size:11px;
  line-height:1.6;
  color:#526a4e;
  border-top:1px solid #d4ddd3
}
.status-message[data-error=true] {
  background:#f3e5d8;
  color:#8d4a36;
  border-color:#dec6b8
}
.model-warnings {
  background:#f4f5ed;
  border-top:1px solid #d4ddd3;
  font-size:10px;
  padding:11px 24px;
  color:#7b7663
}
.model-warnings summary {
  cursor:pointer
}
.model-warnings ul {
  margin:10px 0 0;
  padding-left:16px;
  line-height:1.7
}
.model-warnings li+li {
  margin-top:5px
}
.alternatives-panel {
  position:absolute;
  z-index:5;
  left:18px;
  right:18px;
  bottom:52px;
  padding:17px 20px;
  background:#fcfbf5f7;
  border:1px solid #d5dccf;
  border-radius:9px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px)
}
.drawer-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.drawer-heading h2 {
  font:400 20px Georgia,serif;
  letter-spacing:0;
  color:var(--ink);
  margin:0
}
.drawer-heading .eyebrow {
  margin-bottom:8px
}
.icon-button {
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  flex:none;
  background:transparent;
  border:0;
  font-size:21px;
  color:#8a9582
}
.alternative-list {
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:13px 1px 2px
}
.alternative-card {
  flex:1;
  min-width:150px;
  max-width:260px;
  overflow:hidden;
  text-align:left;
  padding:0;
  border:1px solid #d4dcca;
  background:#f4f5eb;
  border-radius:5px
}
.alternative-card[aria-pressed=true] {
  border-color:#668356;
  box-shadow:0 0 0 1px #668356
}
.alternative-card canvas {
  display:block;
  width:100%;
  aspect-ratio:1.5;
  height:auto;
  pointer-events:none;
  background:var(--sea)
}
.alternative-card>span {
  display:block;
  font-size:10px;
  padding:9px 10px;
  color:#65755e
}
.alternatives-panel>p {
  font-size:9px;
  color:#8d9585;
  line-height:1.5;
  margin:10px 0 0
}
.source-panel {
  position:absolute;
  z-index:6;
  right:18px;
  top:18px;
  bottom:18px;
  width:min(480px,calc(100% - 36px));
  display:flex;
  flex-direction:column;
  background:#fcfbf6;
  border:1px solid #d7dccf;
  border-radius:10px;
  padding:24px;
  box-shadow:0 20px 55px #1a392f29;
  overflow:auto
}
.source-intro {
  font-size:11px;
  color:#7b8673;
  line-height:1.7;
  margin:16px 0
}
.source-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:6px
}
.source-tabs button {
  font-size:10px;
  padding:8px 9px;
  background:#f0f2e8;
  border:1px solid #dfe3d6
}
.source-tabs button[aria-pressed=true] {
  background:#dfe7d3;
  border-color:#a8bc98;
  color:#49613c
}
.source-image-wrap {
  margin:17px 0 0;
  min-height:180px;
  background:#e6ece5;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  overflow:hidden
}
.source-image-wrap img {
  max-width:100%;
  height:auto;
  display:block;
  object-fit:contain
}
.source-image-wrap p {
  font-size:11px;
  line-height:1.6;
  color:#7a8877;
  padding:20px;
  text-align:center
}
.source-caption {
  font-size:10px;
  line-height:1.7;
  color:#85917c;
  margin:14px 0 4px
}
.source-panel #sourceDownload {
  align-self:flex-start;
  margin-top:auto;
  padding-top:18px
}
.studio-layout:has(.source-panel:not([hidden])) .map-stage {
  filter:saturate(.9)
}
@media(min-height:1100px) and (min-width:850px) {
  .brief-panel {
    padding-top:37px;
    gap:33px
  }
  .brief-heading h1 {
    font-size:38px
  }
  .fact {
    padding-top:12px;
    padding-bottom:16px
  }
}
@media(max-width:1100px) {
  .studio-header {
    padding:0 20px;
    gap:18px
  }
  .project-identity {
    padding-left:18px
  }
  .saved-world-link {
    display:none
  }
  .studio-layout {
    grid-template-columns:235px minmax(0,1fr)
  }
  .brief-panel {
    padding:27px 20px 21px;
    gap:25px
  }
  .brief-heading h1 {
    font-size:32px
  }
  .map-toolbar {
    padding:0 18px
  }
  .map-hint {
    display:none
  }
}
@media(max-width:780px) {
  .studio-header {
    height:60px;
    padding:0 15px;
    gap:13px
  }
  .brand span {
    display:none
  }
  .brand svg {
    width:25px;
    height:25px
  }
  .project-identity {
    border:0;
    padding:0;
    gap:9px;
    font-size:18px
  }
  .local-badge {
    display:none
  }
  .header-actions {
    gap:4px;
    font-size:10px
  }
  .quiet-button {
    padding:9px 7px
  }
  .export-button {
    padding:8px 11px;
    gap:6px
  }
  .export-button svg {
    width:16px;
    height:16px
  }
  .studio-layout {
    grid-template-columns:1fr;
    min-height:calc(100dvh - 60px)
  }
  .brief-panel {
    display:grid;
    grid-template-columns:1fr auto;
    gap:14px 25px;
    padding:19px 18px;
    border-right:0;
    border-bottom:1px solid var(--rule)
  }
  .brief-heading .eyebrow {
    font-size:8px
  }
  .brief-heading h1 {
    font-size:27px;
    margin:6px 0 0;
    line-height:1.1;
    letter-spacing:-.6px
  }
  .brief-heading h1 br {
    display:none
  }
  .brief-heading p {
    display:none
  }
  .fixed-brief {
    display:none
  }
  .generation-actions {
    border:0;
    padding:0;
    align-self:center;
    grid-row:1;
    grid-column:2;
    min-width:165px
  }
  .primary-button {
    min-height:38px;
    font-size:11px
  }
  .primary-button svg {
    width:16px;
    height:16px
  }
  .seed-options {
    display:none
  }
  .generation-actions>.text-button {
    font-size:9px;
    margin:4px 0 0;
    padding:3px
  }
  .draft-facts {
    grid-row:2;
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    padding:0
  }
  .draft-facts h2,.coastal-fact,.metric-note {
    display:none
  }
  .fact {
    border:0;
    padding:0
  }
  .fact>span {
    font-size:9px
  }
  .fact strong {
    font-size:22px;
    line-height:1.2;
    margin:4px 0
  }
  .fact small {
    font-size:9px
  }
  .sidebar-bottom {
    display:none
  }
  .map-panel {
    min-height:550px;
    height:calc(100dvh - 250px)
  }
  .map-toolbar {
    height:47px;
    padding:0 15px
  }
  .draft-name {
    font-size:10px;
    gap:6px
  }
  .view-switch button {
    min-width:48px;
    font-size:9px;
    padding:6px 8px
  }
  .map-stage {
    min-height:420px
  }
  .north-indicator {
    top:17px;
    right:18px
  }
  .map-bottom {
    padding:9px 15px;
    gap:8px
  }
  .storm-note {
    font-size:8px;
    gap:5px
  }
  .storm-note>span {
    font-size:13px
  }
  .map-bottom .text-button {
    font-size:8px
  }
  .map-scale {
    left:17px;
    bottom:21px
  }
  .map-zoom {
    right:15px;
    bottom:18px
  }
  .plate-legend {
    left:15px;
    bottom:65px;
    max-width:260px;
    padding:10px 12px
  }
  .plate-legend>div {
    gap:3px;
    font-size:8px
  }
  .plate-legend p {
    font-size:8px
  }
  .boundary-key {
    width:10px;
    margin-left:5px
  }
  .source-panel {
    position:fixed;
    top:72px;
    bottom:12px;
    right:12px;
    width:calc(100% - 24px);
    padding:20px
  }
  .alternatives-panel {
    left:10px;
    right:10px;
    bottom:45px;
    padding:14px
  }
  .alternative-card {
    min-width:125px
  }
  .drawer-heading h2 {
    font-size:18px
  }
  .status-message,.model-warnings {
    padding:10px 15px;
    font-size:10px
  }
}
@media(prefers-reduced-motion:reduce) {
  .loading-spinner {
    animation:none
  }
  * {
    scroll-behavior:auto!important
  }
}
/* Keep the map at viewport height;
the short brief may scroll on low screens. */
.studio-layout {
  height:calc(100dvh - 72px);
  min-height:640px
}
.brief-panel {
  min-height:0;
  overflow-y:auto;
  gap:22px;
  padding-top:26px
}
.anchor-row {
  padding-top:8px;
  padding-bottom:8px
}
.anchor-row small {
  font-size:9px;
  line-height:1.4
}
.fact {
  padding-top:7px;
  padding-bottom:10px
}
.coastal-fact {
  padding-top:11px
}
.mobile-sources {
  display:none
}
@media(max-width:780px) {
  .studio-layout {
    height:auto;
    min-height:calc(100dvh - 60px)
  }
  .brief-panel {
    overflow:visible;
    gap:14px 20px;
    padding-top:18px
  }
  .fact {
    padding:0
  }
  .mobile-sources {
    display:inline-flex;
    align-items:center;
    border:0;
    background:transparent;
    padding:5px 0;
    margin-left:auto;
    font-size:9px;
    color:#6b7d64
  }
  .map-toolbar {
    gap:10px
  }
}
/* Saving is explicit;
export remains available for every local proposal. */
.export-button {
  background:transparent;
  border-color:#cfd8c9;
  color:var(--green)
}
.export-button:hover:not(:disabled) {
  background:#e9eddf;
  color:var(--green)
}
.save-button {
  background:var(--green);
  border-color:var(--green);
  color:#fffdf1;
  padding:11px 15px;
  min-width:142px;
  font-size:12px;
  line-height:1.2
}
.save-button:hover:not(:disabled) {
  background:#284b37
}
.save-button:disabled {
  cursor:default
}
.save-issue {
  padding:12px 24px;
  background:#f4e8d9;
  border-top:1px solid #dfccb5;
  color:#82583d;
  font-size:11px;
  line-height:1.6
}
.save-issue p {
  margin:0 0 8px
}
.save-issue>div {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.save-issue button {
  padding:7px 10px;
  font-size:10px;
  background:#fff9ed;
  border-color:#d6c4ad
}
@media(max-width:1100px) {
  .project-identity .local-badge {
    display:none
  }
}
@media(max-width:780px) {
  .export-button>span {
    display:none
  }
  .export-button {
    padding:8px
  }
  .save-button {
    min-width:0;
    max-width:112px;
    padding:9px 10px;
    font-size:10px
  }
  .save-issue {
    padding:11px 15px;
    font-size:10px
  }
  .save-issue button {
    font-size:9px
  }
}

/* The displayed map keeps its explicit state at every viewport width. */
.draft-name {
  min-width:0;
  flex-wrap:wrap
}
.status-dot,.view-switch {
  flex-shrink:0
}
.map-toolbar .local-badge {
  display:inline-flex;
  flex-shrink:0;
  font-size:10px;
  color:#52684f
}
.mobile-world-link {
  display:none
}
@media(max-width:1100px) {
  .mobile-world-link {
    display:inline-flex;
    gap:4px;
    font-size:11px;
    color:#506a56;
    white-space:nowrap
  }
  .map-bottom {
    flex-wrap:wrap
  }
}
@media(max-width:780px) {
  .map-toolbar {
    height:auto;
    min-height:78px;
    flex-wrap:wrap;
    padding:10px 15px;
    gap:8px 10px
  }
  .draft-name {
    flex:1 1 100%;
    gap:6px 8px
  }
  .mobile-sources {
    margin-left:0;
    font-size:11px
  }
  .view-switch {
    margin-left:auto
  }
  .map-bottom {
    align-items:center
  }
  .storm-note {
    flex:1 1 100%
  }
  .map-bottom .text-button {
    margin-left:auto;
    font-size:10px
  }
}
@media(max-width:380px) {
  .studio-header {
    height:auto;
    min-height:60px;
    flex-wrap:wrap;
    gap:8px 12px;
    padding:10px 14px
  }
  .header-actions {
    flex:1 1 100%;
    justify-content:flex-end
  }
  .studio-layout {
    min-height:calc(100dvh - 100px)
  }
  .source-panel {
    top:110px
  }
}
