@import url('./tokens.css');
@import url('./foundation.css');
@import url('./components.css');
:root {
  --service-color:#7962d9;
  --portal-accent:var(--ds-color-primary);
  --portal-soft:light-dark(#efedff,#292441);
  --portal-bg:light-dark(#f8f9fc,#14151b);
  --portal-surface:light-dark(#fff,#1c1d25);
  --portal-line:light-dark(#e9eaf0,#30313c);
  --portal-text:light-dark(#282936,#eeeef6);
  --portal-muted:light-dark(#7c7d8b,#a0a1b4);
  --portal-hover:light-dark(#f2f2f7,#262733)
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  padding:0;
  font-family:var(--body-base-font-family);
  color:var(--portal-text);
  font-size:13px;
  background:var(--portal-bg)
}

button,input,select {
  font:inherit
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid var(--portal-accent);
  outline-offset:3px
}

button {
  color:inherit
}

button:disabled {
  opacity:.45;
  cursor:not-allowed
}

button,a {
  transition:background .15s,border-color .15s,box-shadow .15s
}

a {
  color:inherit;
  text-decoration:none
}

[hidden] {
  display:none!important
}

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

.icon {
  display:inline-block;
  flex:none;
  width:17px;
  height:17px;
  background:currentColor;
  mask:var(--portal-icon) center/contain no-repeat
}

.search {
  --portal-icon:url('../icons/Search.svg')
}

.plus {
  --portal-icon:url('../icons/Plus.svg')
}

.theme {
  --portal-icon:url('../icons/theme-toggle.svg')
}

.settings {
  --portal-icon:url('../icons/settings.svg')
}

.close {
  --portal-icon:url('../icons/Close.svg')
}

.sidebar-icon {
  --portal-icon:url('../icons/ViewLeft_line.svg')
}

.folder {
  --portal-icon:url('../icons/Folder.svg')
}

.icon-button {
  width:30px;
  height:30px;
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  color:var(--portal-muted);
  flex:none
}

.icon-button:hover {
  background:var(--portal-hover);
  color:var(--portal-text)
}

.portal {
  display:flex;
  min-height:100dvh
}

.sidebar {
  width:218px;
  background:var(--portal-surface);
  border-right:1px solid var(--portal-line);
  padding:23px 14px 14px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100dvh;
  flex:none
}

.brand {
  display:flex;
  gap:10px;
  align-items:center;
  margin:0 6px 30px
}

.brand-mark {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  background:var(--portal-accent);
  color:white;
  font-size:28px;
  border-radius:10px
}

.brand strong {
  display:block;
  font-size:17px;
  letter-spacing:2px
}

.brand small {
  font-size:8px;
  letter-spacing:1.3px;
  color:var(--portal-muted)
}

.brand .icon-button {
  margin-left:auto
}

.add-service {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--portal-line);
  background:var(--portal-surface);
  height:38px;
  border-radius:7px;
  margin-bottom:30px;
  box-shadow:0 2px 3px #00000003
}

.add-service:hover {
  border-color:var(--portal-accent)
}

.add-service>span {
  margin-left:auto;
  color:var(--portal-muted)
}

.add-service {
  padding:0 12px
}

.nav-label {
  font-size:10px;
  color:var(--portal-muted);
  padding:0 12px;
  margin-bottom:10px;
  letter-spacing:1px
}

.nav-item {
  width:100%;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  background:transparent;
  border-radius:6px;
  text-align:left;
  margin-bottom:5px;
  color:var(--portal-muted);
  font-size:12px
}

.nav-item>span:last-child {
  margin-left:auto;
  font-size:10px
}

.nav-item.active {
  color:var(--portal-accent);
  background:var(--portal-soft);
  font-weight:600
}

.nav-item:hover {
  background:var(--portal-hover)
}

.nav-section {
  margin:24px 12px 10px;
  font-size:10px;
  color:var(--portal-muted);
  letter-spacing:1px
}

.sidebar-bottom {
  margin-top:auto;
  padding-top:32px
}

.local-card {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid var(--portal-line);
  padding:12px 10px;
  border-radius:8px;
  font-size:11px;
  margin-bottom:14px
}

.local-dot {
  width:7px;
  height:7px;
  background:#8d86bc;
  border-radius:50%
}

.local-card small {
  display:block;
  font-size:10px;
  color:var(--portal-muted);
  margin-top:5px
}

.local-card>span:last-child {
  margin-left:auto;
  color:var(--portal-muted);
  font-size:18px
}

.sidebar-foot {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--portal-line);
  padding:14px 6px 0;
  color:var(--portal-muted);
  font-size:9px
}

.main-shell {
  flex:1;
  min-width:0
}

.topbar {
  height:59px;
  border-bottom:1px solid var(--portal-line);
  background:var(--portal-surface);
  display:flex;
  align-items:center;
  padding:0 26px;
  gap:14px
}

.breadcrumb {
  display:flex;
  gap:13px;
  font-size:11px;
  color:var(--portal-muted)
}

.breadcrumb strong {
  color:var(--portal-text);
  font-weight:500
}

.topbar-right {
  margin-left:auto;
  display:flex;
  gap:17px;
  align-items:center
}

.preview-label {
  font-size:10px;
  color:var(--portal-muted)
}

.avatar {
  display:grid;
  place-items:center;
  background:var(--portal-soft);
  color:var(--portal-accent);
  width:27px;
  height:27px;
  border:1px solid color-mix(in srgb,var(--portal-accent) 15%,transparent);
  border-radius:50%;
  font-size:10px
}

.work-area {
  display:flex;
  align-items:stretch
}

.main-content {
  padding:40px 40px 0;
  flex:1;
  min-width:0;
  max-width:1480px;
  margin:auto
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:25px
}

.eyebrow {
  font-size:9px;
  letter-spacing:1.7px;
  font-weight:600;
  color:var(--portal-muted)
}

h1 {
  font-size:28px;
  letter-spacing:-.8px;
  font-weight:600;
  margin:13px 0 10px
}

.lead {
  font-size:12px;
  color:var(--portal-muted);
  line-height:1.8
}

.home-illustration {
  width:108px;
  height:90px;
  margin-right:16px;
  display:block
}

.home-illustration svg {
  width:100%;
  height:100%;
  fill:var(--portal-soft);
  stroke:var(--portal-accent);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.6
}

.overview {
  display:flex;
  align-items:center;
  gap:25px;
  padding-bottom:27px;
  border-bottom:1px solid var(--portal-line);
  font-size:11px;
  color:var(--portal-muted)
}

.overview b {
  font-size:14px;
  font-weight:600;
  color:var(--portal-text);
  margin-right:3px
}

.overview-note {
  margin-left:auto;
  font-size:10px
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:28px 0 15px;
  gap:10px
}

h2 {
  font-size:14px;
  font-weight:600
}

.section-heading h2>span {
  font-size:9px;
  color:var(--portal-muted);
  letter-spacing:1px;
  margin-left:9px;
  font-weight:400
}

.text-button {
  background:none;
  border:0;
  padding:4px 0;
  color:var(--portal-muted);
  font-size:10px
}

.text-button:hover {
  color:var(--portal-accent)
}

.favorite-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px
}

.favorite-card {
  border:1px solid var(--portal-line);
  border-radius:10px;
  padding:19px;
  background:var(--portal-surface);
  position:relative;
  overflow:hidden
}

.favorite-card:before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:2px;
  background:var(--service-color);
  opacity:.6
}

.service-logo {
  width:39px;
  height:39px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:color-mix(in srgb,var(--service-color) 10%,var(--portal-surface));
  color:var(--service-color);
  flex:none
}

.service-logo svg {
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round
}

.favorite-card .service-logo {
  width:42px;
  height:42px
}

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

.mini-label {
  font-size:9px;
  border:1px solid var(--portal-line);
  padding:3px 6px;
  border-radius:4px;
  color:var(--portal-muted)
}

.favorite-card h3 {
  font-size:15px;
  font-weight:600;
  margin-bottom:7px
}

.favorite-card p {
  font-size:11px;
  color:var(--portal-muted);
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden
}

.favorite-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  font-size:10px;
  color:var(--portal-muted)
}

.favorite-bottom button,.favorite-bottom a {
  color:var(--portal-accent);
  font-size:11px;
  background:none;
  border:0;
  padding:0
}

.service-heading {
  margin-top:32px
}

.network-switch,.view-switch {
  display:inline-flex;
  gap:2px;
  padding:3px;
  background:var(--portal-hover);
  border:1px solid var(--portal-line);
  border-radius:6px
}

.network-switch button,.view-switch button {
  background:transparent;
  border:0;
  padding:4px 11px;
  border-radius:4px;
  font-size:10px;
  color:var(--portal-muted)
}

.network-switch button[aria-pressed=true],.view-switch button[aria-pressed=true] {
  background:var(--portal-surface);
  color:var(--portal-text);
  box-shadow:0 1px 3px #00000008
}

.toolbar {
  display:flex;
  gap:9px;
  align-items:center
}

.search-box {
  display:flex;
  align-items:center;
  border:1px solid var(--portal-line);
  border-radius:6px;
  background:var(--portal-surface);
  height:36px;
  padding:0 11px;
  gap:8px;
  flex:1;
  min-width:0;
  color:var(--portal-muted)
}

.search-box input {
  border:0;
  background:none;
  outline:none;
  min-width:0;
  width:100%;
  color:var(--portal-text);
  font-size:11px
}

.search-box:focus-within {
  border-color:var(--portal-accent)
}

kbd {
  font:10px system-ui;
  border:1px solid var(--portal-line);
  padding:1px 5px;
  border-radius:3px
}

.toolbar select {
  height:35px;
  max-width:120px;
  border:1px solid var(--portal-line);
  border-radius:6px;
  padding:0 8px;
  background:var(--portal-surface);
  color:var(--portal-muted);
  font-size:10px
}

.view-switch {
  background:var(--portal-surface)
}

.view-switch button {
  padding:3px 8px;
  font-size:17px;
  line-height:20px
}

.filter-chips {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:16px 0 19px
}

.filter-chips button {
  background:none;
  border:1px solid transparent;
  border-radius:5px;
  padding:5px 9px;
  color:var(--portal-muted);
  font-size:10px
}

.filter-chips button[aria-pressed=true] {
  background:var(--portal-soft);
  color:var(--portal-accent)
}

.service-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px
}

.service-card {
  position:relative;
  padding:17px;
  background:var(--portal-surface);
  border:1px solid var(--portal-line);
  border-radius:8px;
  min-width:0
}

.service-card:hover,.favorite-card:hover {
  border-color:color-mix(in srgb,var(--portal-accent) 35%,var(--portal-line));
  box-shadow:0 4px 16px #00000004
}

.card-head {
  display:flex;
  gap:11px;
  align-items:center;
  margin-bottom:14px
}

.card-title {
  min-width:0;
  flex:1
}

.card-title button {
  display:block;
  max-width:100%;
  background:none;
  border:0;
  padding:0;
  text-align:left;
  font-size:12px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.card-title small {
  display:block;
  font-size:9px;
  color:var(--portal-muted);
  margin-top:5px
}

.favorite-toggle {
  border:0;
  background:none;
  padding:0;
  color:var(--portal-muted);
  font-size:16px
}

.favorite-toggle[aria-pressed=true] {
  color:var(--portal-accent)
}

.card-description {
  color:var(--portal-muted);
  font-size:10px;
  line-height:1.7;
  height:34px;
  overflow:hidden
}

.card-address {
  display:flex;
  align-items:center;
  gap:7px;
  padding:11px 0 13px;
  border-bottom:1px solid var(--portal-line);
  font:9px ui-monospace,monospace;
  color:var(--portal-muted);
  min-width:0
}

.card-address span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.address-dot {
  width:5px;
  height:5px;
  background:var(--portal-muted);
  border-radius:50%;
  flex:none;
  opacity:.6
}

.card-bottom {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:11px;
  min-height:18px
}

.card-bottom .status {
  font-size:9px;
  color:var(--portal-muted);
  margin-right:auto
}

.card-bottom button,.card-bottom a {
  background:none;
  border:0;
  color:var(--portal-muted);
  padding:0;
  font-size:10px
}

.card-bottom .open-link {
  color:var(--portal-accent)
}

.service-grid.list {
  grid-template-columns:1fr
}

.list .service-card {
  display:grid;
  grid-template-columns:220px 1fr 180px;
  gap:15px;
  align-items:center
}

.list .card-head {
  margin:0
}

.list .card-description {
  height:auto
}

.list .card-address {
  border:0;
  padding:0
}

.list .card-bottom {
  grid-column:1/-1;
  margin:0;
  border-top:1px solid var(--portal-line);
  padding-top:9px
}

.content-footer {
  display:flex;
  gap:15px;
  justify-content:space-between;
  color:var(--portal-muted);
  font-size:9px;
  border-top:1px solid var(--portal-line);
  padding:20px 0;
  margin-top:34px;
  line-height:1.8
}

.empty {
  text-align:center;
  padding:45px 15px;
  color:var(--portal-muted);
  border:1px dashed var(--portal-line);
  border-radius:8px
}

.empty>span {
  font-size:35px
}

.empty h3 {
  margin:10px
}

.empty p {
  margin-bottom:18px;
  font-size:12px
}

.empty button {
  font-size:11px
}

.inspector {
  width:310px;
  flex:none;
  background:var(--portal-surface);
  border-left:1px solid var(--portal-line);
  display:flex;
  flex-direction:column;
  min-width:0
}

.panel-header {
  display:flex;
  padding:9px 12px;
  gap:4px;
  border-bottom:1px solid var(--portal-line);
  align-items:center
}

.panel-header [role=tablist] {
  display:flex;
  flex:1;
  gap:4px
}

.panel-header [role=tab] {
  background:none;
  border:0;
  color:var(--portal-muted);
  padding:7px 9px;
  font-size:11px;
  border-radius:5px
}

.panel-header [aria-selected=true] {
  background:var(--portal-soft);
  color:var(--portal-accent)
}

.panel-body {
  padding:24px 22px;
  flex:1
}

.panel-intro h2 {
  font-size:19px;
  margin:12px 0
}

.panel-intro p,.panel-section p,.notice p {
  font-size:11px;
  line-height:1.9;
  color:var(--portal-muted);
  margin:10px 0 18px
}

.panel-intro {
  margin-bottom:25px
}

.panel-section {
  margin-top:26px;
  padding-top:24px;
  border-top:1px solid var(--portal-line)
}

.panel-section h3 {
  font-size:12px
}

.notice {
  background:var(--portal-bg);
  border:1px solid var(--portal-line);
  padding:14px;
  border-radius:7px;
  margin-top:25px;
  font-size:11px
}

.notice p {
  margin:7px 0 0
}

.panel-footer {
  border-top:1px solid var(--portal-line);
  padding:14px 20px;
  color:var(--portal-muted);
  font-size:9px;
  line-height:1.7
}

.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:17px;
  font-size:11px;
  color:var(--portal-muted)
}

.field :is(input,select) {
  width:100%;
  height:36px;
  border:1px solid var(--portal-line);
  background:var(--portal-surface);
  color:var(--portal-text);
  border-radius:6px;
  padding:0 10px;
  font-size:12px;
  min-width:0
}

.button-row {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.ds-btn {
  font-size:11px;
  min-height:32px;
  height:auto;
  padding:7px 12px;
  border-radius:6px
}

.ds-btn--primary {
  background:var(--portal-accent);
  border-color:var(--portal-accent);
  color:white
}

.ds-btn--primary:hover {
  background:var(--ds-color-primary-hover);
  border-color:var(--ds-color-primary-hover)
}

.ds-btn--secondary {
  background:var(--portal-surface);
  border:1px solid var(--portal-line);
  color:var(--portal-text)
}

.detail-hero {
  padding-bottom:23px
}

.detail-hero .service-logo {
  width:56px;
  height:56px;
  margin-bottom:20px
}

.detail-hero h2 {
  font-size:23px;
  margin:10px 0
}

.detail-hero p {
  font-size:12px;
  color:var(--portal-muted);
  line-height:1.9
}

.detail-address {
  margin:0 0 15px;
  border:1px solid var(--portal-line);
  border-radius:6px;
  padding:12px
}

.detail-address small {
  display:block;
  color:var(--portal-muted);
  font-size:10px;
  margin-bottom:8px
}

.detail-address code {
  font-size:10px;
  overflow-wrap:anywhere;
  line-height:1.8
}

.detail-actions {
  display:flex;
  gap:8px;
  margin-top:22px
}

.danger {
  color:light-dark(#ba3c3c,#ff9393)!important
}

.detail-meta {
  font-size:10px;
  color:var(--portal-muted);
  line-height:2;
  margin-top:25px
}

.detail-meta strong {
  font-weight:500;
  color:var(--portal-text)
}

dialog {
  padding:0;
  border:1px solid var(--portal-line);
  background:var(--portal-surface);
  color:var(--portal-text);
  border-radius:12px;
  max-width:520px;
  width:calc(100% - 32px);
  max-height:90dvh;
  box-shadow:0 24px 80px #0003
}

dialog::backdrop {
  background:#10102560;
  backdrop-filter:blur(3px)
}

.dialog-header,.dialog-footer {
  padding:20px 25px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center
}

.dialog-header {
  border-bottom:1px solid var(--portal-line)
}

.dialog-header h2 {
  font-size:20px;
  margin-top:8px
}

.dialog-body {
  padding:22px 25px
}

.dialog-footer {
  justify-content:flex-end;
  border-top:1px solid var(--portal-line)
}

.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}

.form-hint {
  font-size:11px;
  color:var(--portal-muted);
  line-height:1.9;
  margin-bottom:18px
}

.checkbox-field {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px
}

.checkbox-field input {
  accent-color:var(--portal-accent)
}

.form-error {
  color:light-dark(#ba3c3c,#ff9393);
  font-size:11px;
  margin-top:12px;
  line-height:1.8
}

.form-error:empty {
  display:none
}

.nav-collapsed .sidebar {
  display:none
}

.portal[data-dock=bottom] .work-area {
  flex-direction:column
}

.portal[data-dock=bottom] .inspector {
  width:auto;
  border-left:0;
  border-top:1px solid var(--portal-line)
}

.portal[data-dock=bottom] .panel-body {
  max-height:380px;
  overflow:auto
}

.portal[data-dock=float] .inspector {
  position:fixed;
  right:24px;
  top:85px;
  width:340px;
  max-height:calc(100dvh - 110px);
  overflow:auto;
  z-index:10;
  border:1px solid var(--portal-line);
  border-radius:10px;
  box-shadow:0 16px 60px #0002
}

.portal:has(.inspector:not([hidden])) .service-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))
}

.portal:has(.inspector:not([hidden])) .service-grid.list {
  grid-template-columns:1fr
}

@media(min-width:1600px) {
  .main-content {
    padding:50px 60px 0
  }
}

@media(max-width:1200px) {
  .main-content {
    padding:30px 25px 0
  }
  .portal[data-dock=right] .inspector {
    position:fixed;
    right:0;
    top:59px;
    bottom:0;
    overflow:auto;
    z-index:10;
    box-shadow:-10px 0 40px #0001
  }
  .portal:has(.inspector:not([hidden])) .service-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .favorite-card {
    padding:16px
  }
  .service-card {
    padding:14px
  }
  .sidebar {
    width:200px
  }
  .list .service-card {
    grid-template-columns:180px 1fr
  }
  .list .card-address {
    grid-column:1/-1
  }
}

@media(max-width:980px) {
  .service-grid,.portal:has(.inspector:not([hidden])) .service-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .favorite-grid {
    gap:10px
  }
  .favorite-card {
    padding:14px
  }
  .favorite-card h3 {
    font-size:12px
  }
  .favorite-bottom {
    font-size:9px
  }
  .home-illustration {
    width:80px
  }
  .overview-note {
    display:none
  }
  .service-grid.list {
    grid-template-columns:1fr!important
  }
}

@media(max-width:720px) {
  .sidebar {
    width:190px
  }
  .main-content {
    padding:25px 18px 0
  }
  .topbar {
    padding:0 15px
  }
  h1 {
    font-size:23px
  }
  .favorite-grid {
    grid-template-columns:1fr
  }
  .favorite-card {
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:10px
  }
  .favorite-head {
    grid-row:1/4;
    margin:0;
    justify-content:flex-start;
    gap:15px
  }
  .favorite-card h3 {
    align-self:end
  }
  .favorite-card p {
    font-size:10px
  }
  .favorite-bottom {
    margin-top:10px
  }
  .favorite-head .mini-label {
    display:none
  }
  .home-illustration {
    display:none
  }
  .overview {
    gap:16px
  }
  .toolbar select {
    width:85px
  }
  .list .service-card {
    display:block
  }
  .list .card-head {
    margin-bottom:12px
  }
  .list .card-address {
    padding:10px 0
  }
  .list .card-bottom {
    margin-top:8px
  }
  .content-footer {
    flex-direction:column;
    gap:3px
  }
  .preview-label {
    display:none
  }
  .topbar-right {
    gap:10px
  }
}

@media(max-width:560px) {
  .portal:not(.nav-collapsed) .sidebar {
    position:fixed;
    z-index:30;
    box-shadow:10px 0 50px #0003
  }
  .portal:not(.nav-collapsed):after {
    content:'';
    position:fixed;
    inset:0 0 0 190px;
    background:#0003;
    z-index:20;
    pointer-events:none
  }
  .service-grid,.portal:has(.inspector:not([hidden])) .service-grid {
    grid-template-columns:1fr
  }
  .favorite-card {
    padding:15px
  }
  .main-content {
    padding:25px 18px 0
  }
  .page-heading {
    margin-bottom:20px
  }
  .overview {
    padding-bottom:22px
  }
  .toolbar {
    gap:6px
  }
  .search-box {
    padding:0 8px
  }
  .search-box kbd {
    display:none
  }
  .view-switch button {
    padding:3px 5px
  }
  .inspector,.portal[data-dock=float] .inspector {
    width:100%;
    max-width:100%;
    right:0;
    top:59px;
    bottom:0;
    max-height:calc(100dvh - 59px);
    border-radius:0
  }
  .portal[data-dock=bottom] .inspector {
    position:fixed;
    z-index:10;
    overflow:auto
  }
  .portal[data-dock=bottom] .panel-body {
    max-height:none
  }
  .form-row {
    grid-template-columns:1fr;
    gap:0
  }
  .dialog-body {
    padding:18px
  }
  .dialog-header,.dialog-footer {
    padding:18px
  }
  .lead {
    font-size:11px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    animation:none!important
  }
}

/* Keep transient feedback clear of the tool tabs. */
.ds-toast-container {
  top:auto;
  bottom:20px;
  right:20px
}


/* Let short windows scroll the navigation instead of compressing controls. */
.sidebar {
  overflow-y: auto;
}
.brand, .add-service, .sidebar-bottom, .nav-label, #navigation {
  flex-shrink: 0;
}
