.ios-brand,
.ios-brand-subtitle,
.ios-only-control,
.ios-day-panel,
.ios-tabbar,
.ios-event-dots,
.ios-resource-icon { display:none; }

.public-brand { min-width:0; flex:1; }

[data-theme="ios"] {
  --bg:#f2f2f7;
  --surface:#ffffff;
  --surface2:#f4f4f8;
  --primary:#1c1c1e;
  --secondary:#636366;
  --tertiary:#8e8e93;
  --accent:#007aff;
  --separator:#d8d8dd;
  background:var(--bg);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

[data-theme="ios"] body { background:var(--bg); }
[data-theme="ios"] .classic-brand { display:none; }
[data-theme="ios"] .ios-brand,
[data-theme="ios"] .ios-brand-subtitle { display:block; }
[data-theme="ios"] .ios-only-control { display:inline-flex; }
[data-theme="ios"] .site-header { background:#ffffffeb; backdrop-filter:saturate(180%) blur(18px); }
[data-theme="ios"] .nav-inner { max-width:1200px; height:64px; padding-inline:24px; }
[data-theme="ios"] .public-brand { display:flex; align-items:baseline; gap:12px; }
[data-theme="ios"] .ios-brand { font-size:22px; font-weight:750; letter-spacing:-.035em; }
[data-theme="ios"] .public-brand h1 { flex:0 1 auto; color:var(--secondary); font-size:14px; font-weight:550; }
[data-theme="ios"] .nav-inner nav { gap:10px; }
[data-theme="ios"] .nav-inner nav > button { height:40px; min-height:40px; align-items:center; justify-content:center; line-height:1.2; }
[data-theme="ios"] .nav-icon { width:40px; height:40px; }
[data-theme="ios"] .nav-profile,
[data-theme="ios"] .nav-inner .text-button { padding-inline:10px; border-radius:10px; }
[data-theme="ios"] .nav-profile:hover,
[data-theme="ios"] .nav-inner .text-button:hover { background:#e8f1ff; }

[data-theme="ios"] .calendar-main {
  width:min(1200px,100%);
  max-width:none;
  margin:0 auto;
  padding:28px 24px 120px;
  display:grid;
  grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);
  align-items:start;
  gap:20px;
}
[data-theme="ios"] .calendar-pane,
[data-theme="ios"] .ios-day-panel,
[data-theme="ios"] .mine-panel {
  min-width:0;
  border:1px solid #e1e1e6;
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 8px 28px #1c1c1e0a;
  overflow:hidden;
}
[data-theme="ios"] .ios-day-panel { display:block; position:sticky; top:92px; max-height:calc(100dvh - 116px); overflow-y:auto; }
[data-theme="ios"] .mine-panel { grid-column:1 / -1; }
[data-theme="ios"] .month-header { padding:24px 24px 16px; align-items:center; }
[data-theme="ios"] .month-header h2 { font-size:30px; }
[data-theme="ios"] .month-header .year { display:inline; margin:0 0 0 7px; font-size:20px; }
[data-theme="ios"] .weekdays { margin-inline:16px; }
[data-theme="ios"] .calendar-grid { padding:0 16px 16px; }
[data-theme="ios"] .calendar-cell { min-height:104px; padding:7px 4px; }
[data-theme="ios"] .selected .day-number,
[data-theme="ios"] .selected.today .day-number { color:white; background:var(--accent); box-shadow:none; }
[data-theme="ios"] .day-header { padding:20px 20px 16px; }
[data-theme="ios"] .day-header .close-button { display:none; }
[data-theme="ios"] .day-sections { padding:12px; background:#f7f7fa; }
[data-theme="ios"] .resource-section { padding:6px 0; border:1px solid #e7e7eb; border-radius:16px; background:var(--surface); overflow:hidden; }
[data-theme="ios"] .resource-section + .resource-section { margin-top:10px; border-top:1px solid #e7e7eb; }
[data-theme="ios"] .resource-heading { padding:8px 12px; justify-content:flex-start; }
[data-theme="ios"] .resource-heading h3 { flex:1; min-width:0; overflow-wrap:anywhere; color:var(--primary); font-size:17px; font-weight:650; letter-spacing:-.015em; text-transform:none; }
[data-theme="ios"] .ios-resource-icon { width:32px; height:32px; flex:0 0 32px; display:grid; place-items:center; border-radius:10px; color:var(--accent); background:#eaf3ff; }
[data-theme="ios"] .ios-resource-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
[data-theme="ios"] .resource-heading button { min-height:36px; padding:0 4px; flex-shrink:0; font-size:15px; }
[data-theme="ios"] .resource-unavailable { padding:8px 16px 12px; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
[data-theme="ios"] .free-time,
[data-theme="ios"] .capacity-free,
[data-theme="ios"] .capacity-timeline p,
[data-theme="ios"] .day-booking-copy p { font-size:15px; line-height:1.45; }
[data-theme="ios"] .day-bookings { padding-inline:16px; }
[data-theme="ios"] .capacity-free { margin-inline:20px; }
[data-theme="ios"] .capacity-timeline { margin-inline:16px; }
[data-theme="ios"] .free-time { padding-inline:20px; }

[data-theme="ios"] .mine-header { padding:22px 24px 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--separator); }
[data-theme="ios"] .mine-header p { margin-bottom:3px; color:var(--secondary); font-size:12px; text-transform:uppercase; letter-spacing:.04em; font-weight:650; }
[data-theme="ios"] .mine-header h2 { font-size:26px; letter-spacing:-.025em; }
[data-theme="ios"] .mine-bookings { padding:12px; display:grid; gap:8px; }
[data-theme="ios"] .mine-booking { width:100%; min-height:72px; padding:12px 14px; display:grid; grid-template-columns:84px minmax(0,1fr) auto 16px; align-items:center; gap:12px; border-radius:14px; background:var(--surface2); text-align:left; }
[data-theme="ios"] .mine-booking:hover { background:#ececf2; }
[data-theme="ios"] .mine-booking-date { color:var(--secondary); font-size:13px; text-transform:capitalize; }
[data-theme="ios"] .mine-booking-main { min-width:0; display:flex; flex-direction:column; gap:3px; }
[data-theme="ios"] .mine-booking-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; }
[data-theme="ios"] .mine-booking-main > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--secondary); font-size:13px; }
[data-theme="ios"] .mine-booking-status { color:var(--green); font-size:12px; font-weight:650; }
[data-theme="ios"] .mine-booking-status.status-completed { color:var(--secondary); }
[data-theme="ios"] .mine-booking-status.status-cancelled { color:var(--red); }

[data-theme="ios"] .fab { position:sticky; inset:auto; bottom:0; width:calc(100% - 32px); height:50px; margin:8px 16px 16px; border-radius:14px; display:flex; gap:8px; justify-content:center; font-size:16px; font-weight:650; }
[data-theme="ios"] .fab::after { content:'Забронювати'; }

@media (min-width:768px) {
  [data-theme="ios"] .modal { max-width:430px; border-radius:20px; }
  [data-theme="ios"] .compact-modal { max-width:380px; }
}

@media (max-width:767px) {
  [data-theme="ios"] .site-header { position:relative; }
  [data-theme="ios"] .nav-inner { height:58px; padding-inline:16px; gap:8px; }
  [data-theme="ios"] .public-brand { display:block; }
  [data-theme="ios"] .ios-brand { font-size:19px; line-height:21px; }
  [data-theme="ios"] .public-brand h1 { max-width:none; font-size:11px; line-height:14px; }
  [data-theme="ios"] #today-button,
  [data-theme="ios"] #mine-button,
  [data-theme="ios"] #profile-button { display:none; }
  [data-theme="ios"] .nav-inner nav { gap:2px; }
  [data-theme="ios"] .calendar-main { display:block; padding:12px 0 156px; }
  [data-theme="ios"] .calendar-pane,
  [data-theme="ios"] .ios-day-panel,
  [data-theme="ios"] .mine-panel { border:0; border-radius:0; box-shadow:none; }
  [data-theme="ios"] .calendar-pane { margin:0 12px 12px; border-radius:18px; }
  [data-theme="ios"] .ios-day-panel { position:static; max-height:none; margin-top:10px; border-top:1px solid var(--separator); overflow:visible; }
  [data-theme="ios"] .mine-panel { margin:0 12px; border-radius:18px; }
  [data-theme="ios"] .month-header { padding:16px 16px 10px; }
  [data-theme="ios"] .month-header h2 { font-size:24px; white-space:nowrap; }
  [data-theme="ios"] .month-header .year { margin-left:5px; font-size:15px; }
  [data-theme="ios"] .month-navigation { gap:0; }
  [data-theme="ios"] .month-navigation .icon-button { width:40px; height:40px; }
  [data-theme="ios"] .weekdays { margin:0 8px; padding:2px 0 5px; border:0; font-size:12px; }
  [data-theme="ios"] .calendar-grid { padding:0 8px 10px; row-gap:2px; }
  [data-theme="ios"] .calendar-cell { min-height:46px; height:46px; padding:3px 0; border:0; align-items:center; justify-content:flex-start; gap:1px; }
  [data-theme="ios"] .calendar-cell.selected { background:transparent; }
  [data-theme="ios"] .calendar-cell.is-free:not(.selected) { background:transparent; }
  [data-theme="ios"] .calendar-cell.is-free:not(.selected) .day-number { background:#e4f5e9; color:#176c35; }
  [data-theme="ios"] .day-number { width:32px; height:32px; font-size:15px; }
  [data-theme="ios"] .today .day-number { color:var(--red); background:transparent; box-shadow:inset 0 0 0 1px #ff3b3059; }
  [data-theme="ios"] .selected .day-number,
  [data-theme="ios"] .selected.today .day-number { color:white; background:var(--accent); box-shadow:none; }
  [data-theme="ios"] .calendar-events { display:none; }
  [data-theme="ios"] .ios-event-dots { height:4px; display:flex; align-items:center; justify-content:center; gap:2px; }
  [data-theme="ios"] .ios-event-dots i { width:3px; height:3px; border-radius:50%; background:var(--accent); }
  [data-theme="ios"] .ios-event-dots .event-completed { background:var(--tertiary); }
  [data-theme="ios"] .ios-event-dots .event-cancelled { background:var(--red); }
  [data-theme="ios"] .calendar-loading { margin-inline:8px; }
  [data-theme="ios"] .calendar-loading > div { height:46px; }
  [data-theme="ios"] .day-header { padding:18px 16px 13px; }
  [data-theme="ios"] .day-sections { padding:10px 12px 12px; }
  [data-theme="ios"] .day-bookings { padding-inline:12px; }
  [data-theme="ios"] .capacity-free { margin-inline:16px; }
  [data-theme="ios"] .capacity-timeline { margin-inline:12px; }
  [data-theme="ios"] .free-time { padding-inline:16px; }
  [data-theme="ios"] .mine-header { padding:18px 16px 13px; }
  [data-theme="ios"] .mine-header h2 { font-size:24px; }
  [data-theme="ios"] .mine-booking { min-height:76px; grid-template-columns:68px minmax(0,1fr) 14px; gap:9px; }
  [data-theme="ios"] .mine-booking-status { grid-column:2; }
  [data-theme="ios"] .mine-booking > svg { grid-column:3; grid-row:1 / span 2; }
  [data-theme="ios"] .ios-tabbar { position:fixed; z-index:30; left:0; right:0; bottom:0; height:calc(68px + env(safe-area-inset-bottom)); padding:6px max(10px,env(safe-area-inset-left)) max(5px,env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(3,1fr); background:#fffffff2; border-top:1px solid var(--separator); backdrop-filter:saturate(180%) blur(18px); }
  [data-theme="ios"] .ios-tabbar button { min-height:52px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:var(--secondary); font-size:12px; }
  [data-theme="ios"] .ios-tabbar button[aria-selected="true"] { color:var(--accent); }
  [data-theme="ios"] .ios-tabbar svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  [data-theme="ios"] .fab { position:fixed; left:16px; right:16px; bottom:calc(78px + env(safe-area-inset-bottom)); width:auto; height:50px; margin:0; border-radius:13px; justify-content:center; }
  [data-theme="ios"] .modal { width:100%; max-width:none; max-height:calc(100dvh - 20px); margin:auto auto 0; border-radius:24px 24px 0 0; }
  [data-theme="ios"] .modal[open] { animation:ios-sheet-in .18s ease-out; }
  [data-theme="ios"] .modal-header { min-height:52px; padding:10px 16px; }
  [data-theme="ios"] .booking-form { padding-bottom:max(24px,env(safe-area-inset-bottom)); }
  @keyframes ios-sheet-in { from { opacity:0; transform:translateY(24px); } }
}

@media (max-width:359px) {
  [data-theme="ios"] .calendar-pane,
  [data-theme="ios"] .mine-panel { margin-inline:8px; }
  [data-theme="ios"] .month-header { padding-inline:12px; gap:6px; }
  [data-theme="ios"] .month-header h2 { font-size:22px; }
  [data-theme="ios"] .month-header .year { font-size:14px; }
  [data-theme="ios"] .calendar-grid { padding-inline:5px; }
}
