/* OpenSpace — iOS-inspired Mini App / web */

:root {
  --bg: #f2f2f7;
  --bg-elevated: #ffffff;
  --text: #000000;
  --hint: #8e8e93;
  --separator: rgba(60, 60, 67, 0.29);
  --separator-light: rgba(60, 60, 67, 0.12);
  --accent: #007aff;
  --accent-press: #0062cc;
  --destructive: #ff3b30;
  --free: #34c759;
  --occupied: #ff3b30;
  --mine: #ff9f0a;
  --closed: #8e8e93;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --inset-pad: 16px;
  --nav-blur: saturate(180%) blur(20px);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: none;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --text: #ffffff;
    --hint: #8e8e93;
    --separator: rgba(84, 84, 88, 0.65);
    --separator-light: rgba(84, 84, 88, 0.35);
    --accent: #0a84ff;
    --accent-press: #409cff;
    --destructive: #ff453a;
    --free: #30d158;
    --occupied: #ff453a;
    --mine: #ffd60a;
    --closed: #636366;
  }
}

/* Telegram theme overrides when present */
body.ios-app {
  --bg: var(--tg-theme-bg-color, #f2f2f7);
  --text: var(--tg-theme-text-color, #000000);
  --hint: var(--tg-theme-hint-color, #8e8e93);
  --accent: var(--tg-theme-button-color, #007aff);
}

@media (prefers-color-scheme: dark) {
  body.ios-app {
    --bg: var(--tg-theme-bg-color, #000000);
    --text: var(--tg-theme-text-color, #ffffff);
    --hint: var(--tg-theme-hint-color, #8e8e93);
    --accent: var(--tg-theme-button-color, #0a84ff);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  padding-bottom: env(safe-area-inset-bottom);
}

body.webapp-loading #dateRow,
body.webapp-loading #officeSelect,
body.webapp-loading #authHelp,
body.webapp-loading #planSection,
body.webapp-loading #desks-heading,
body.webapp-loading #desksLead,
body.webapp-loading #deskLegend,
body.webapp-loading #grid,
body.webapp-loading #meetingsSection,
body.webapp-loading #myBookingsSection,
body.webapp-loading #notificationsSection,
body.webapp-loading .site-footer,
body.webapp-loading #fetchErr,
body.webapp-loading .ios-large-title {
  display: none !important;
}

/* —— Navigation bar —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: var(--nav-blur);
  backdrop-filter: var(--nav-blur);
  border-bottom: 0.5px solid var(--separator-light);
}

.site-header__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.022em;
  line-height: 1.2;
}

.site-brand small {
  display: none;
}

.admin-nav-btn {
  font-size: 15px;
  font-weight: 400;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 4px;
  border: none;
  background: transparent;
  white-space: nowrap;
  transition: opacity 0.15s var(--spring);
}

.admin-nav-btn:active {
  opacity: 0.4;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* —— Layout —— */
main {
  max-width: 680px;
  margin: 0 auto;
  padding: 4px 16px 40px;
}

.ios-large-title {
  margin: 4px 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  animation: ios-fade-up 0.45s var(--spring) both;
}

@keyframes ios-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section-title {
  font-size: 13px;
  font-weight: 400;
  margin: 28px 0 8px;
  padding: 0 4px;
  line-height: 1.2;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--hint);
}

/* —— Inset grouped surfaces —— */
.ios-inset,
.date-row,
.auth-help,
.plan-card,
.meeting-card,
.unauthorized-panel {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.date-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 16px;
  padding: 0;
  animation: ios-fade-up 0.5s var(--spring) 0.05s both;
}

.date-row__line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px var(--inset-pad);
  min-height: 44px;
  position: relative;
}

.date-row__line + .date-row__line::before {
  content: "";
  position: absolute;
  left: var(--inset-pad);
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--separator);
}

.date-row__label {
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  flex: 0 0 auto;
  width: auto;
  min-width: 4.2rem;
}

.date-row__input {
  font: inherit;
  font-size: 17px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  min-width: 0;
  flex: 1 1 auto;
  text-align: right;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.date-row__select {
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238E8E93' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}

.date-row__date {
  width: 100%;
  box-sizing: border-box;
}

.auth-help {
  margin: 0 0 16px;
  padding: 14px var(--inset-pad);
}

.auth-help__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.auth-help__text {
  font-size: 15px;
  color: var(--hint);
  margin: 0;
  line-height: 1.4;
}

.auth-help__text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--text);
}

.auth-help__btn {
  margin-top: 12px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  width: 100%;
}

.auth-help__btn:active {
  background: var(--accent-press);
}

/* —— Plan —— */
.plan-card {
  margin-bottom: 8px;
  animation: ios-fade-up 0.55s var(--spring) 0.08s both;
}

.plan-card__scroll {
  /* Высота по картинке — без пустых полей сверху/снизу на телефоне */
  height: auto;
  max-height: none;
  overflow: hidden;
  background: color-mix(in srgb, var(--hint) 8%, var(--bg-elevated));
  display: block;
  touch-action: none;
  overscroll-behavior: none;
  padding: 0;
}

.plan-panzoom {
  display: block;
  width: 100%;
  height: auto;
  transform: none !important;
  transform-origin: 50% 50%;
  pointer-events: none;
}

.plan-panzoom img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center top;
  margin: 0 auto;
  vertical-align: top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

/* Телефон: план на всю ширину, рамка по контенту */
@media (max-width: 599px) {
  .plan-card__scroll {
    background: var(--bg-elevated);
  }

  .plan-panzoom img {
    max-height: none;
    width: 100%;
  }
}

/* —— Legend & desks —— */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 12px;
  padding: 0 4px;
  font-size: 13px;
  color: var(--hint);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.unauthorized-panel {
  text-align: center;
  padding: 24px 20px;
  margin: 0 0 16px;
}

.unauthorized-panel__img {
  display: block;
  max-width: min(240px, 100%);
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.unauthorized-panel__caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--hint);
}

.unauthorized-panel__intro {
  margin: 16px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.unauthorized-panel__btn {
  margin-top: 14px;
  border: none;
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
  max-width: 320px;
  transition: transform 0.15s var(--spring), opacity 0.15s ease;
}
a.unauthorized-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
}

.unauthorized-panel__btn:active {
  transform: scale(0.98);
  opacity: 0.85;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  animation: ios-fade-up 0.5s var(--spring) 0.12s both;
}

.desk {
  border: none;
  border-radius: var(--radius);
  padding: 16px 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #fff;
  cursor: pointer;
  text-shadow: none;
  transition: transform 0.18s var(--spring), filter 0.15s ease;
  min-height: 52px;
}

.desk:active {
  transform: scale(0.94);
}

.desk.free {
  background: var(--free);
}
.desk.occupied {
  background: var(--occupied);
}
.desk.mine {
  background: var(--mine);
  color: #1c1c1e;
}
.desk.closed {
  background: var(--closed);
  cursor: not-allowed;
  opacity: 0.85;
}
.desk.closed:active {
  transform: none;
}

.err {
  color: var(--destructive);
  font-size: 13px;
  margin-top: 8px;
  padding: 0 4px;
}

#meetingsSection,
#myBookingsSection {
  margin-top: 8px;
}

/* —— Calendar —— */
.bookings-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 0;
}

.bookings-cal__nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--hint) 12%, transparent);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.15s var(--spring);
}

.bookings-cal__nav-btn:active {
  transform: scale(0.9);
}

.bookings-cal__month {
  font-weight: 600;
  font-size: 17px;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: -0.02em;
}

.bookings-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--hint);
  text-transform: uppercase;
}

.bookings-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.bookings-cal__cell {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  min-height: 44px;
  aspect-ratio: 1;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s var(--spring);
}

.bookings-cal__cell:disabled {
  opacity: 0.28;
  cursor: default;
}

.bookings-cal__cell--muted {
  color: var(--hint);
  opacity: 0.4;
}

.bookings-cal__cell--today .bookings-cal__daynum {
  color: var(--accent);
  font-weight: 700;
}

.bookings-cal__cell--selected {
  background: var(--accent);
  color: #fff;
}

.bookings-cal__cell--selected .bookings-cal__daynum {
  color: #fff;
}

.bookings-cal__daynum {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.bookings-cal__marks {
  display: flex;
  gap: 3px;
  min-height: 5px;
}

.bookings-cal__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: var(--hint);
}

.bookings-cal__dot--desk {
  background: var(--mine);
}

.bookings-cal__dot--meeting {
  background: var(--accent);
}

.bookings-cal__dot--both {
  background: var(--accent);
}

.bookings-cal__cell--selected .bookings-cal__dot {
  background: #fff;
}

.bookings-cal__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 12px 0 4px;
  font-size: 12px;
  color: var(--hint);
  align-items: center;
}

.bookings-cal__legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bookings-cal__day {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--separator);
}

.meeting-card {
  padding: 12px;
  margin-bottom: 12px;
}

.meeting-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.meeting-form__times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

#meetingTimeFields[hidden] {
  display: none !important;
}

#meetingDateRow[hidden],
body.meetings-only #meetingDateRow {
  display: none !important;
}

.meeting-slot-picker,
#meetingSlotPicker {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

#meetingSlotPicker[hidden] {
  display: none !important;
}

.meeting-slot-legend {
  margin: 0;
}

.meeting-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.meeting-slot {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: var(--radius);
  padding: 12px 6px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  color: #fff;
  cursor: pointer;
  text-shadow: none;
  transition: transform 0.15s var(--spring);
}

.meeting-slot:active {
  transform: scale(0.96);
}

.meeting-slot.free {
  background: var(--free);
}
.meeting-slot.occupied {
  background: var(--occupied);
  cursor: not-allowed;
}
.meeting-slot.mine {
  background: var(--mine);
  color: #1c1c1e;
  cursor: not-allowed;
}
.meeting-slot.closed {
  background: var(--closed);
  cursor: not-allowed;
}
.meeting-slot.selected {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.meeting-slot:disabled,
.meeting-slot[aria-disabled="true"] {
  opacity: 1;
  filter: none;
  -webkit-text-fill-color: currentColor;
}

.meeting-slot:disabled:active,
.meeting-slot[aria-disabled="true"]:active,
.meeting-slot.occupied:active,
.meeting-slot.mine:active,
.meeting-slot.closed:active {
  transform: none;
}

.meeting-form__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px;
  min-height: 44px;
  position: relative;
}

.meeting-form__row + .meeting-form__row::before,
.meeting-form__times .meeting-form__row::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--separator);
}

.meeting-form__row label {
  font-size: 17px;
  color: var(--text);
}

.meeting-form__row input {
  font: inherit;
  font-size: 17px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  text-align: right;
  outline: none;
  min-width: 0;
  flex: 1 1 auto;
}

.meeting-form > .meeting-btn {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.meeting-btn {
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  color: #fff;
  background: var(--accent);
  width: 100%;
  transition: transform 0.15s var(--spring), opacity 0.15s ease;
}

.meeting-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.meeting-btn--ghost {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.meeting-form__row textarea {
  font: inherit;
  border-radius: var(--radius);
  border: 0.5px solid var(--separator);
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  resize: vertical;
  min-height: 72px;
  width: 100%;
}

.meeting-row__meta {
  display: block;
  font-size: 13px;
  color: var(--hint);
  line-height: 1.35;
  margin-top: 2px;
}

.meeting-subtitle {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.meeting-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.booking-group-title {
  margin: 12px 0 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.meeting-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-radius: 0;
  border: none;
  border-bottom: 0.5px solid var(--separator);
}

.meeting-row:last-child {
  border-bottom: none;
}

.meeting-row__time {
  font-size: 17px;
}

.meeting-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.meeting-row__cancel {
  flex-shrink: 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  background: color-mix(in srgb, var(--destructive) 12%, transparent);
  color: var(--destructive);
}

.meeting-row__actions .meeting-row__cancel:first-child {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* —— Notifications —— */
.notification-settings {
  display: grid;
  gap: 0;
  margin-bottom: 20px;
  padding: 0 !important;
}

.notification-settings label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
  padding: 12px var(--inset-pad);
  min-height: 44px;
  position: relative;
  flex-direction: row-reverse;
}

.notification-settings label + label::before {
  content: "";
  position: absolute;
  left: var(--inset-pad);
  right: 0;
  top: 0;
  height: 0.5px;
  background: var(--separator);
}

.notification-settings input[type="checkbox"] {
  width: 51px;
  height: 31px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--free);
  cursor: pointer;
}

.notification-settings .lead {
  padding: 8px var(--inset-pad) 12px;
  margin: 0;
}

/* —— Footer —— */
.site-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 13px;
  color: var(--hint);
  border-top: none;
}

/* —— Guest / loading —— */
body.webapp-guest-only .site-header,
body.webapp-guest-only #subtitle,
body.webapp-guest-only #dateRow,
body.webapp-guest-only #authHelp,
body.webapp-guest-only #planSection,
body.webapp-guest-only #desks-heading,
body.webapp-guest-only #desksLead,
body.webapp-guest-only #deskLegend,
body.webapp-guest-only #grid,
body.webapp-guest-only #meetingsSection,
body.webapp-guest-only #myBookingsSection,
body.webapp-guest-only #notificationsSection,
body.webapp-guest-only .site-footer,
body.webapp-guest-only #fetchErr,
body.webapp-guest-only .ios-large-title {
  display: none !important;
}

body.webapp-guest-only main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 24px);
  padding-top: 24px;
  padding-bottom: 24px;
}

body.webapp-guest-only #unauthorizedPanel {
  margin-top: auto;
  margin-bottom: auto;
  width: min(360px, 100%);
}

.hidden {
  display: none !important;
}

/* —— iOS action sheet —— */
.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  animation: ios-sheet-fade 0.2s ease both;
}

@keyframes ios-sheet-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.action-sheet[hidden] {
  display: none !important;
}

.action-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.action-sheet__panel {
  position: relative;
  width: min(400px, 100%);
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  color: var(--text);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: none;
  padding: 14px 12px 10px;
  margin-bottom: 0;
  animation: ios-sheet-up 0.35s var(--spring) both;
}

@keyframes ios-sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.action-sheet__title {
  margin: 4px 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
  text-align: center;
  text-transform: none;
  letter-spacing: -0.01em;
}

.action-sheet__msg {
  margin: 0 8px 12px;
  color: var(--hint);
  white-space: pre-wrap;
  font-size: 13px;
  text-align: center;
  line-height: 1.35;
}

.action-sheet__input-wrap {
  margin: 0 0 10px;
}

.action-sheet__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  outline: none;
}

.action-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-sheet__btn {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 16px 14px;
  font-size: 20px;
  font-weight: 400;
  background: var(--bg-elevated);
  color: var(--accent);
  cursor: pointer;
  transition: opacity 0.12s ease;
}

.action-sheet__btn:active {
  opacity: 0.55;
}

.action-sheet__btn--primary {
  background: var(--bg-elevated);
  color: var(--accent);
  font-weight: 600;
}

.action-sheet__btn--danger {
  background: var(--bg-elevated);
  color: var(--destructive);
  font-weight: 400;
}

.action-sheet__btn--ghost {
  background: var(--bg-elevated);
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

@media (min-width: 720px) {
  main {
    padding-top: 12px;
  }
  .ios-large-title {
    font-size: 40px;
  }
}
