/* Shared action geometry. Load last; calendar dates and content rows are not actions. */
body.authed {
  --frost-action-height: 32px;
}

body.authed :is(.btn, .ui-action, .cl-link, .cl-seg > button, .seg > button,
  .ship > button, .star, .workspace-privacy, .warehouse-add, .stock-inline-save,
  .cl-mini-month > span > button, .cl-week-navigation > span > button,
  .cl-mini-today, .location-button, .weather-retry) {
  box-sizing: border-box;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding-block: 0 !important;
  line-height: 18px;
  align-items: center;
}

body.authed :is(.ui-action--icon, .warehouse-add, .weather-retry) {
  width: 32px !important;
  min-width: 32px !important;
  padding-inline: 0 !important;
}

/* The input border and send button have the same top and bottom edges. */
body.authed #view .home-chat-compose {
  align-items: center;
}
body.authed #view .home-chat-input {
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  border-radius: 8px;
}
body.authed #view .home-chat-input textarea {
  box-sizing: border-box;
  width: 100%;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 6px 10px !important;
  margin: 0;
  font: 12px/18px var(--font);
  border: 0;
  resize: none;
  overflow-y: auto;
  scrollbar-width: thin;
}
body.authed #view .home-chat-input textarea::placeholder {
  font: inherit;
}
body.authed #view .home-chat-compose > .ui-action {
  align-self: center;
  font: 12px/18px var(--font);
  padding-inline: 10px !important;
}

/* Undo the former 26px weather exception while retaining its transparent surface. */
body.authed #view .coastal-workspace .window-weather :is(.ui-action, .weather-v4-city) {
  box-sizing: border-box;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 8px;
}
body.authed #view .coastal-workspace .window-weather .ui-action--icon {
  width: 32px !important;
  min-width: 32px !important;
  flex-basis: 32px;
  padding: 0 !important;
}
body.authed #view .coastal-workspace .window-weather .weather-v4-city select {
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  padding-block: 0;
}

/* Both notice actions live in the existing heading; its old footer is removed. */
body.authed #view .notice-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: none;
  gap: 6px;
}
body.authed #view .notice-lower > .cl-head {
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}
body.authed #view .notice-header-actions > .ui-action {
  font-size: 11px;
}
body.authed #view .notice-lower,
body.authed #view .notice-home-content,
body.authed #view .warehouse-grid,
body.authed #view .warehouse-paper,
body.authed #view .warehouse-paper-body {
  min-height: 0;
}
body.authed #view .notice-home-content,
body.authed #view .warehouse-paper-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.authed #view .cl-warehouses > .private-error {
  flex: none;
  margin: 0;
}

/* Preserve the existing shared desktop row; freed footer space goes to content. */
@media (min-width: 1001px) {
  body.authed #view .cl-middle.cl-aligned-board > :is(.home-chat, .cl-warehouses),
  body.authed #view .cl-middle.cl-aligned-board > .cl-album-notice-stack {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  body.authed #view .cl-album-notice-stack > #home-notices {
    align-self: stretch;
    height: 100%;
    min-height: 0;
    max-height: 100%;
  }
  body.authed #view .cl-warehouses > .warehouse-grid {
    flex: 1 1 0;
  }
}

@media (max-width: 380px) {
  body.authed #view .notice-header-actions {
    gap: 4px;
  }
  body.authed #view .notice-header-actions > .ui-action {
    padding-inline: 7px !important;
  }
}

/* Keep native wheel/touch scrolling without a visible scroll track. */
body.authed #view .notice-home-content{scrollbar-width:none;-ms-overflow-style:none}
body.authed #view .notice-home-content::-webkit-scrollbar{display:none;width:0;height:0}

/* All board cells retain native scrolling without visible scrollbar chrome. */
body.authed #view *{scrollbar-width:none;-ms-overflow-style:none}
body.authed #view *::-webkit-scrollbar{display:none;width:0;height:0}

/* A single right-aligned album action; private storage remains per account. */
body.authed #view .private-album-actions{margin-left:auto;justify-content:flex-end}

/* Clear-glass slideshow playback control over the photo. */
body.authed #view .private-slide-toggle{background:transparent;border:0;color:#fff;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;opacity:.9}
body.authed #view .private-slide-toggle svg{filter:drop-shadow(0 1px 2px #17212dcc)}
body.authed #view .private-slide-toggle:hover{background:#ffffff26;opacity:1}
body.authed #view .private-slide-toggle:focus-visible{outline:2px solid #ffffffd9;outline-offset:2px}
