/* Wall dashboard: flat, person first. Only scoped selectors. */
.family-wall {
  color: #e8eaf0;
  font-family: "DM Sans", sans-serif;
  width: 100%;
  --person: #fbbf24;
}
.family-wall button {
  font: inherit;
  color: inherit;
  min-height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  padding: 6px 0;
}
.family-wall button:disabled {
  opacity: 0.45;
  cursor: default;
}
.family-wall button:focus-visible,
.family-wall summary:focus-visible,
.family-wall input:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 3px;
}
.family-wall h2,
.family-wall h3 {
  font-family: "Syne", sans-serif;
}
.family-wall small {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}
.fw-muted {
  color: #9ca3af;
  font-size: 13px;
}
.fw-label {
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #6b7280 !important;
  margin: 14px 0 5px;
  line-height: 1.4;
}
.fw-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #818cf8;
}
.fw-clock-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 15px;
}
.fw-clock {
  font-family: "Syne", sans-serif;
  font-size: 72px;
  letter-spacing: -3px;
  font-weight: 800;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.fw-weather {
  display: grid;
  grid-template-columns: 38px auto 16px;
  align-items: center;
  column-gap: 7px;
  max-width: 48%;
  text-align: right !important;
}
.fw-weather > svg:first-child {
  grid-row: 1/3;
}
.fw-weather strong {
  font-family: "Syne", sans-serif;
  font-size: 28px;
}
.fw-weather > span {
  grid-column: 2;
  font-size: 12px;
  color: #9ca3af;
}
.fw-weather small {
  grid-column: 1/4;
  font-size: 10px;
}
.fw-weather > svg:last-child {
  grid-column: 3;
  grid-row: 1/3;
}
.fw-next {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  flex-wrap: wrap;
}
.fw-next strong {
  color: #a5b4fc;
}
.fw-brief {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  margin: 12px 0 15px;
  max-width: 100%;
}
.fw-period {
  border-top: 1px solid #1c1f2c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.fw-period > .fw-label {
  margin: 0;
}
.fw-period nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.fw-period button {
  font-size: 11px;
  padding: 8px;
  color: #6b7280;
}
.fw-period button[aria-pressed="true"] {
  color: #a5b4fc;
}
.fw-columns {
  display: grid;
  grid-template-columns: repeat(var(--people, 3), minmax(0, 1fr));
  margin: 0 0 18px;
}
.fw-person {
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid #22263a;
}
.fw-person:first-child {
  padding-left: 0;
  border-left: 0;
}
.fw-person:last-child {
  padding-right: 0;
}
.fw-person-name {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 5px;
}
.fw-person-name h3 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}
.fw-person-name > svg {
  color: #6b7280;
}
.fw-avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: color-mix(in srgb, var(--person) 15%, transparent);
  color: var(--person);
  border-radius: 50%;
  font:
    600 15px "DM Sans",
    sans-serif;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.fw-event {
  margin-bottom: 4px;
}
.fw-event summary {
  display: flex;
  gap: 8px;
  min-height: 44px;
  align-items: baseline;
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  line-height: 1.35;
  padding: 5px 0;
}
.fw-event summary::-webkit-details-marker {
  display: none;
}
.fw-event summary time {
  font-size: 12px;
  color: #a5b4fc;
  font-weight: 600;
  flex-shrink: 0;
}
.fw-event summary > span:not(.fw-tag) {
  flex: 1;
  overflow-wrap: anywhere;
}
.fw-event summary > svg {
  flex-shrink: 0;
  color: #6b7280;
}
.fw-event[open] summary > svg {
  transform: rotate(180deg);
}
.fw-event-detail {
  font-size: 12px;
  line-height: 1.5;
  color: #9ca3af;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fw-empty {
  font-style: italic;
  color: #6b7280;
  font-size: 12px;
  padding: 5px 0 10px;
}
.fw-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
}
.family-wall .fw-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1.5px solid #3a4058;
  border-radius: 5px;
  background: #12141f;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}
.family-wall .fw-check input[type="checkbox"]:checked {
  appearance: auto;
  -webkit-appearance: checkbox;
  accent-color: #34d399;
}
.fw-check small,
.fw-message small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.fw-check > span {
  overflow-wrap: anywhere;
}
.fw-danger {
  color: #f87171 !important;
}
.fw-message {
  font-size: 13px;
  line-height: 1.4;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.fw-bring {
  display: block;
  color: #a5b4fc !important;
  margin-top: 4px;
}
.fw-tag {
  display: inline-block;
  font-size: 9px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #fbbf24;
  color: #12141f;
  padding: 1px 5px;
  border-radius: 5px;
  margin-left: 5px;
  vertical-align: middle;
}
.fw-tag.fw-test {
  background: #ec4899;
  color: #fff;
}
.fw-more {
  font-size: 12px !important;
  color: #a5b4fc !important;
}
.fw-allowance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 4px;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10px !important;
  color: #9ca3af !important;
}
.fw-track {
  display: block;
  height: 4px;
  background: #22263a;
  border-radius: 2px;
  flex-basis: 100%;
  overflow: hidden;
}
.fw-track > span {
  display: block;
  height: 100%;
  background: #34d399;
}
.fw-food-alerts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fw-food-alerts > button {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fbbf24;
  min-height: 44px;
}
.fw-week {
  border-top: 1px solid #1c1f2c;
  margin-top: 8px;
  padding: 5px 0;
}
.fw-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.fw-section-heading .fw-label {
  margin: 0;
}
.fw-section-heading button {
  font-size: 11px;
  color: #a5b4fc;
}
.fw-week-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 32px;
  padding: 7px 0;
  border-bottom: 1px solid #1c1f2c;
  font-size: 12px;
  line-height: 1.35;
}
.fw-week-row > time {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 62px;
}
.fw-week-row > span:not(.fw-dot):not(.fw-tag) {
  flex: 1;
  overflow-wrap: anywhere;
}
.fw-entertainment {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #1c1f2c !important;
  border-bottom: 1px solid #1c1f2c !important;
  width: 100%;
  font-size: 11px !important;
  color: #9ca3af !important;
}
.fw-entertainment > svg:last-child {
  margin-left: auto;
}
.fw-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.fw-footer > button {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.fw-footer > small {
  font-size: 10px;
  text-align: right;
}
.fw-footer button > small {
  color: #a5b4fc;
}
.fw-section {
  margin: 20px 0;
}
.fw-section > p {
  margin: 10px 0;
  line-height: 1.5;
}
/* Shared panel pattern from Laptimes: portal over the whole application. */
.fw-overlay.family-wall {
  position: fixed;
  inset: var(--fw-viewport-top, 0px) 0 auto 0;
  height: var(--fw-viewport-height, 100vh);
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  overscroll-behavior: none;
}
.fw-panel {
  background: #1a1d2b;
  border-radius: 18px;
  width: min(560px, 92vw);
  padding: 20px 20px 22px;
  max-height: calc(var(--fw-viewport-height, 100vh) - 40px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  outline: none;
}
.fw-sheet-handle {
  display: none;
  flex-shrink: 0;
  justify-content: center;
  height: 19px;
}
.fw-sheet-handle span {
  display: block;
  width: 40px;
  height: 5px;
  background: #2d3148;
  border-radius: 3px;
}
.fw-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.fw-panel .fw-sheet-close {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  background: #12141f;
  color: #9ca3af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fw-sheet-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.family-sheet-open #_hsync {
  visibility: hidden;
}
@keyframes fwSheetUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@media (max-width: 600px) {
  .fw-overlay.family-wall {
    align-items: flex-end;
    padding: 0;
  }
  .fw-overlay .fw-panel {
    width: 100%;
    max-height: calc(
      var(--fw-viewport-height, 100vh) -
        max(16px, env(safe-area-inset-top, 0px))
    );
    border-radius: 20px 20px 0 0;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    animation: fwSheetUp 0.22s ease-out;
  }
  .fw-sheet-handle {
    display: flex;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fw-overlay .fw-panel {
    animation: none;
  }
}
.fw-panel h2 {
  font-size: 20px;
}
.fw-panel p {
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0;
}
.fw-panel small {
  display: block;
}
.fw-night {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  padding: 7vh 12% !important;
  background: #050608 !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  color: #6b7280 !important;
  text-align: center !important;
}
.fw-night-clock {
  font:
    800 clamp(90px, 22vw, 200px) / 1.1 "Syne",
    sans-serif;
  letter-spacing: -5px;
}
.fw-night > p {
  margin: 12px 0 30px;
}
.fw-night > .fw-label {
  text-align: left;
  margin-top: 30px;
}
.fw-night-event {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 15px;
  text-align: left;
  border-top: 1px solid #1c1f2c;
  padding: 14px 0;
}
.fw-night > small {
  margin-top: 50px;
  color: #4b5563;
}
.fw-person-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 28px;
}
.fw-person-heading .fw-avatar {
  width: 60px;
  height: 60px;
  font-size: 26px;
}
.fw-person-heading h2 {
  font-size: 38px;
}
.fw-person-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.fw-person-grid > div + div {
  border-left: 1px solid #22263a;
  padding-left: 25px;
}
.fw-person-view .fw-week-row {
  font-size: 14px;
  min-height: 44px;
}
.fw-person-view .fw-label {
  margin: 18px 0 10px;
}
.fw-minutes {
  font:
    700 32px "Syne",
    sans-serif;
  display: block;
}
.fw-person-view .fw-legacy-allowance .card {
  background: none;
}
.fw-legacy-allowance button {
  min-height: 44px !important;
}
.fw-legacy-allowance {
  font-size: 14px;
}
.fw-legacy-allowance > div:first-child {
  display: none !important;
}
.fw-legacy-allowance > div:nth-child(2) > div {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.fw-legacy-allowance
  > div:nth-child(2)
  > div
  > div:first-child
  > div:last-child {
  display: none !important;
}
@media (min-width: 700px) {
  .family-wall {
    max-width: 1100px;
    margin: auto;
  }
  .fw-columns {
    min-height: 300px;
  }
}
@media (max-width: 699px) {
  .fw-clock {
    font-size: 46px;
    letter-spacing: -2px;
  }
  .fw-clock-weather {
    margin-top: 6px;
  }
  .fw-clock-weather > .fw-weather {
    max-width: 47%;
  }
  .fw-weather strong {
    font-size: 23px;
  }
  .fw-weather small {
    font-size: 9px;
  }
  .fw-brief {
    font-size: 20px;
  }
  .fw-columns {
    display: block;
  }
  .fw-person {
    padding: 12px 0 !important;
    border-left: 0;
    border-top: 1px solid #22263a;
  }
  .fw-person:first-child {
    border-top: 0;
  }
  .fw-person-name h3 {
    font-size: 19px;
  }
  .fw-person .fw-label {
    margin-top: 8px;
  }
  .fw-person .fw-event summary {
    font-size: 14px;
  }
  .fw-allowance {
    max-width: 200px;
  }
  .fw-period {
    gap: 0;
  }
  .fw-period nav {
    gap: 0;
  }
  .fw-period button {
    font-size: 10px;
    padding: 5px;
  }
  .fw-next {
    font-size: 11px;
    gap: 6px;
  }
  .fw-next small {
    font-size: 10px;
  }
  .fw-person-grid {
    grid-template-columns: 1fr;
  }
  .fw-person-grid > div + div {
    border-left: 0;
    border-top: 1px solid #22263a;
    padding: 15px 0 0;
  }
  .fw-person-heading h2 {
    font-size: 30px;
  }
  .fw-section-heading button {
    font-size: 10px;
  }
  .fw-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .fw-footer > small {
    padding-bottom: 12px;
  }
  .fw-week-row {
    gap: 7px;
    font-size: 11px;
  }
  .fw-week-row > time {
    min-width: 55px;
  }
}
/* Existing application header and tab navigation stay fixed above the scroll area. */
.family-wall-page [data-scroll-main] {
  padding-bottom: 16px !important;
  max-width: 1100px !important;
}
.family-wall-page .family-subnav > .card {
  background: none;
  border: 0;
  padding: 0 !important;
}
.family-wall-page .family-subnav button {
  min-height: 44px !important;
}
.family-wall-page .main-wrap {
  max-width: 100%;
}
@media (min-width: 700px) {
  .family-wall-page {
    position: relative;
    padding-top: 0;
  }
  .family-wall-page > .family-subnav {
    position: absolute;
    top: 8px;
    left: 190px;
    right: 75px;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    z-index: 35;
    background: none !important;
  }
  .family-wall-page > .family-subnav button {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  .family-wall-page > .family-subnav > .card > div {
    background: none !important;
  }
  .family-wall-page > .family-subnav > .card > div > button {
    border: 0 !important;
  }
}
.fw-person-points {
  font:
    700 44px "Syne",
    sans-serif;
  color: #34d399;
  margin: 10px 0 16px;
}
.fw-person-points small {
  font:
    400 13px "DM Sans",
    sans-serif;
  color: #9ca3af;
}
.fw-legacy-allowance
  > div:nth-child(2)
  > div
  > div:first-child
  > span:first-child,
.fw-legacy-allowance
  > div:nth-child(2)
  > div
  > div:first-child
  > div:nth-child(2) {
  display: none !important;
}
.fw-clock-weather {
  margin-bottom: 10px;
}
.fw-brief {
  margin: 10px 0 12px;
}
.fw-columns {
  margin-bottom: 10px;
}
.fw-message small:empty {
  display: none;
}
.fw-person .fw-label {
  margin-top: 10px;
}
/* Syne is wide: keep the entire night clock inside the physical tablet. */
.fw-night {
  padding: 7vh 6% !important;
  border: 0 !important;
}
.fw-night-clock {
  font-size: clamp(70px, 17vw, 150px);
  letter-spacing: -3px;
  white-space: nowrap;
}
.family-night #_hsync {
  display: none !important;
}
.fw-week-event > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
}
.fw-week-event > summary::-webkit-details-marker {
  display: none;
}
.fw-week-event > summary > svg {
  color: #6b7280;
  flex-shrink: 0;
}
.fw-week-event[open] > summary > svg {
  transform: rotate(180deg);
}
.fw-week-event > .fw-event-detail {
  padding: 8px 0 12px 80px;
}
.fw-person-view details.fw-section > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}
.fw-person-view details.fw-section > summary::-webkit-details-marker {
  display: none;
}
.fw-person-view details.fw-section[open] > summary > svg {
  transform: rotate(180deg);
}
.family-wall button {
  min-width: 44px;
}
.family-wall-page > div:first-child {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
.family-wall-page > div:first-child button {
  min-height: 44px;
  min-width: 44px;
}

.fw-event summary > .fw-tag {
  flex: 0 0 auto;
  align-self: flex-start;
}

.fw-restored-energy {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  min-width: 0;
}

/* Läsbarhet på väggen: större text på surfplatta, en etikett per grupp och
   etiketter i textflödet så att titlar inte bryts mitt i ett ord. */
.fw-event summary > span:not(.fw-tag),
.fw-week-row > span:not(.fw-dot):not(.fw-tag) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.fw-group + .fw-group {
  margin-top: 4px;
}
.fw-group > .fw-message {
  padding: 6px 0;
}
.fw-legacy-allowance button {
  min-height: 48px !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
}
/* Lyckad synk är brus på väggen; fel visas fortfarande. */
html:has(.family-wall) #_hsync[style*="rgb(22, 101, 52)"] {
  display: none !important;
}
@media (min-width: 700px) {
  .fw-clock {
    font-size: 60px;
    letter-spacing: -2px;
    line-height: 1;
  }
  .fw-clock-weather {
    margin: 0 0 6px;
  }
  .fw-clock-weather .fw-muted {
    font-size: 17px;
  }
  .fw-weather strong {
    font-size: 32px;
  }
  .fw-weather > span {
    font-size: 15px;
  }
  .fw-weather small {
    font-size: 13px;
  }
  .fw-next {
    font-size: 17px;
    gap: 10px;
  }
  .fw-next small {
    font-size: 15px;
  }
  .fw-brief {
    font-size: 21px;
    line-height: 1.3;
    margin: 8px 0 10px;
  }
  .fw-label {
    font-size: 12px !important;
    letter-spacing: 1px !important;
    margin: 12px 0 2px !important;
  }
  .fw-period button {
    font-size: 14px;
    padding: 8px 12px;
  }
  .fw-person {
    padding: 0 22px;
  }
  .fw-person-name h3 {
    font-size: 22px;
  }
  .fw-avatar {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .fw-event {
    margin-bottom: 0;
  }
  .fw-event summary {
    font-size: 18px;
    gap: 10px;
    padding: 4px 0;
    min-height: 40px;
    line-height: 1.3;
  }
  .fw-event summary time {
    font-size: 16px;
    min-width: 50px;
  }
  .fw-event-detail {
    font-size: 14px;
    padding-left: 60px;
  }
  .fw-empty {
    font-size: 16px;
  }
  .fw-check {
    font-size: 17px;
    gap: 12px;
    padding: 4px 0;
    line-height: 1.3;
  }
  .family-wall .fw-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }
  .fw-check small,
  .fw-message small {
    font-size: 13px;
    margin-top: 2px;
  }
  .fw-message {
    font-size: 17px;
    line-height: 1.35;
  }
  .fw-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .fw-allowance {
    font-size: 13px !important;
    margin-top: 10px;
  }
  .fw-person-name {
    margin: 0;
  }
  .fw-columns {
    margin-bottom: 4px;
    min-height: 0;
  }
  .fw-week {
    margin-top: 0;
  }
  .fw-week-row {
    padding: 4px 0;
  }
  .fw-food-alerts > button {
    font-size: 15px;
    min-height: 44px;
  }
  .fw-section-heading button {
    font-size: 14px;
  }
  .fw-week-row {
    font-size: 16px;
    min-height: 40px;
  }
  .fw-week-row > time {
    font-size: 13px;
    min-width: 92px;
  }
  .fw-entertainment {
    font-size: 15px !important;
  }
  .fw-footer {
    font-size: 15px;
  }
  .fw-footer > small {
    font-size: 14px;
  }
  .fw-person-view .fw-week-row {
    font-size: 17px;
  }
  .fw-person-view .fw-check {
    font-size: 18px;
  }
}

/* Settings uses the same Sheet as Family, with one active navigation level. */
.fw-panel .fw-sheet-back {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
  background: #12141f;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fw-settings-sheet .fw-panel {
  height: min(800px, calc(var(--fw-viewport-height, 100vh) - 40px));
}
.fw-settings-sheet .fw-panel > header h2 {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.fw-settings-sheet .fw-sheet-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.settings-panel-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.settings-panel-content [data-settings-level] {
  outline: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.fw-settings-sheet .settings-status {
  flex-shrink: 0;
  font-size: 10px;
  padding: 4px 7px;
  border-radius: 6px;
}
@media (max-width: 600px) {
  .fw-settings-sheet .fw-panel {
    height: calc(var(--fw-viewport-height, 100vh) - max(16px, env(safe-area-inset-top, 0px)));
  }
}

/* Keep settings subviews on the same surface as the main settings menu. */
.fw-settings-sheet .settings-panel-content {
  color: #e8eaf0;
}
.fw-settings-sheet .settings-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.fw-settings-sheet .settings-provider-name {
  display: none;
}
.fw-settings-sheet .settings-provider-toolbar {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px !important;
}
.fw-settings-sheet button[title="Pausa polling"],
.fw-settings-sheet button[title="Starta polling"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9ca3af !important;
}
.fw-settings-sheet .settings-debt-summary {
  gap: 14px;
}
.fw-settings-sheet .settings-debt-summary > div:first-child {
  flex: 1;
  min-width: 0;
}
.fw-settings-sheet .settings-debt-summary > div:last-child {
  flex-shrink: 0;
}
.fw-settings-sheet .settings-debt-summary > div:last-child > div:last-child {
  white-space: nowrap;
}
.fw-settings-sheet .settings-debt-fields > div {
  min-width: 0;
}
.fw-settings-sheet .settings-debt-fields input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.fw-settings-sheet .lbl {
  color: #9ca3af;
}
.fw-settings-sheet input::placeholder,
.fw-settings-sheet textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}
.fw-settings-sheet [data-settings-level="section"],
.fw-settings-sheet [data-settings-level="integration"],
.fw-settings-sheet [data-settings-level="hub"] {
  animation-duration: 0.18s !important;
}
@media (prefers-reduced-motion: reduce) {
  .fw-settings-sheet [data-settings-level] {
    animation: none !important;
  }
}
.fw-settings-sheet .settings-panel-content input,
.fw-settings-sheet .settings-panel-content select,
.fw-settings-sheet .settings-panel-content textarea {
  color-scheme: dark;
}
.fw-settings-sheet .settings-provider-remove {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

