* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--office-canvas);
  color: var(--office-ink);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
}
#space-content { width: min(800px, calc(100% - 40px)); margin: clamp(20px, 4vw, 48px) auto; }
.tag, .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: #f0f5fa;
  color: var(--office-muted);
  font-size: 12px;
  font-weight: 650;
}
.office-bar .tag { margin-left: auto; border: 1px solid var(--office-line); }
h1, h2, h3, p { margin: 0 0 10px; }
h1 { font-size: 26px; letter-spacing: -.04em; }
h2 { margin-top: 24px; font-size: 19px; letter-spacing: -.03em; }
h3 { font-size: 16px; }
small, .sub { color: var(--office-muted); font-size: 13px; }
.eyebrow { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 750; letter-spacing: 2px; }
label { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 650; }
input, select, button {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--office-line);
  border-radius: 11px;
  color: inherit;
  font: inherit;
}
input, select { background: var(--office-field); font-size: 16px; }
input:not([type=checkbox]), select { width: 100%; }
input::placeholder { color: #5c7087; }
input[type=checkbox] { min-height: 0; width: 18px; height: 18px; vertical-align: middle; accent-color: var(--office-accent); }
input:disabled, select:disabled { color: var(--office-muted); background: #f0f5fa; }
button { background: white; font-weight: 650; cursor: pointer; }
button:hover:enabled { background: #f0f5fa; }
button:disabled { opacity: .5; cursor: default; }
button.primary { border-color: var(--office-accent); background: var(--office-accent); color: white; }
button.primary:hover:enabled { background: #104dbf; }
button.wide { width: 100%; margin-top: 12px; }
:focus-visible { outline: 3px solid #347ae8; outline-offset: 2px; }
.line, .split, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.split { justify-content: space-between; }
.actions { margin: 14px 0; }
.row { padding: 12px 0; border-bottom: 1px solid var(--office-line); }
#screen { overflow-wrap: anywhere; }
.input-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.panel-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--office-line); }
.panel-actions button.primary { flex: 1; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.note, details { padding: 12px; margin: 10px 0; border-radius: 11px; background: #f0f5fa; }
#error { padding: 12px; border-radius: 11px; background: #fff1f3; color: #942b44; }
.logo { width: 48px; height: 48px; vertical-align: middle; margin-right: 8px; object-fit: contain; }
canvas { display: block; width: 100%; height: clamp(285px, 52vh, 500px); margin-top: 12px; background: var(--office-canvas); border-radius: 12px; touch-action: none; }
dialog { width: min(390px, 95vw); padding: 20px; border: 1px solid var(--office-line); border-radius: 18px; color: inherit; background: white; }
dialog::backdrop { background: #17365c55; }
code { user-select: all; }
a { color: var(--office-accent); }
summary { cursor: pointer; }
@media (max-width: 700px) {
  #space-content { width: calc(100% - 32px); margin: 20px auto; }
  .settings-fields { grid-template-columns: 1fr; }
}

.office-figures, .account-profile {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 16px;
  border: 1px solid var(--office-line);
  border-radius: 12px;
  background: var(--office-field);
}
.office-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.account-profile { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.office-figures dt, .account-profile dt { color: var(--office-muted); font-size: 13px; }
.office-figures dd, .account-profile dd { margin: 3px 0 0; font-weight: 650; }
.office-figures dd { font-size: 22px; font-variant-numeric: tabular-nums; }
.office-figures dd small { margin-left: 3px; }
.account-profile dd { font-size: 17px; }
.office-section { margin: 20px 0; padding-top: 18px; border-top: 1px solid var(--office-line); }
.office-section h2 { margin: 0; }
.office-section .sub { margin: 8px 0 0; }
.office-section .actions { margin: 0; }
.office-section .row:last-child { border-bottom: 0; }
button.danger { color: #942b44; }
button.danger:hover:enabled { background: #fff1f3; }
@media (max-width: 560px) {
  .office-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.location-picker form,.location-picker .city-selection{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap}
.location-picker .city-selection[hidden]{display:none}
.location-picker label{display:grid;gap:.25rem;min-width:0;flex:1 1 13rem}
.location-picker input,.location-picker select{width:100%;max-width:100%;box-sizing:border-box}
.location-picker .city-selection{margin-top:.6rem}
.location-picker .city-feedback:empty{display:none}
