@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --panel: #fbfaf6;
  --ink: #222720;
  --muted: #777c72;
  --line: #e4e2d9;
  --acid: #d4e67b;
  --coral: #e9735a;
  font-family: 'DM Sans', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #82953f; outline-offset: 2px; }
.builder-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(345px, 400px) minmax(0, 1fr); }
.editor-panel { position: relative; z-index: 2; display: flex; flex-direction: column; min-height: 100vh; max-height: 100vh; overflow: hidden; background: var(--panel); border-right: 1px solid var(--line); }
.editor-header { height: 66px; min-height: 66px; padding: 0 27px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 9px; align-items: center; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.brand > span:last-child > span { color: #818b55; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--acid); color: #35401b; font: 500 10px 'DM Mono', monospace; }
.saved-state { color: var(--muted); font-size: 10px; }
.saved-state::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; border-radius: 50%; background: #91ac52; }
.editor-scroll { flex: 1; overflow: auto; padding: 0 27px 22px; scrollbar-width: thin; scrollbar-color: #d6d5ca transparent; }
.editor-intro { padding: 27px 0 22px; }
.eyebrow, .step-number, .preview-toolbar, .preview-foot, .field > span, .editor-footnote { font-family: 'DM Mono', monospace; }
.eyebrow { margin: 0 0 11px; color: #78844d; font-size: 9px; letter-spacing: 1px; }
.editor-intro h1 { margin: 0; font: 500 34px/.99 'Playfair Display', Georgia, serif; letter-spacing: 0; }
.editor-intro > p:last-child { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.editor-tabs { position: sticky; z-index: 4; top: 0; display: flex; gap: 4px; overflow-x: auto; margin: 0 -27px 21px; padding: 0 27px; background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.editor-tab { min-height: 43px; flex: none; padding: 0 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.editor-tab.active { border-bottom-color: #56663b; color: var(--ink); font-weight: 700; }
.form-section[hidden] { display: none; }
.section-heading { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 19px; }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 50%; background: #e8edd8; color: #5d6d3c; font-size: 10px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 700; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 13px; }
.field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #595f55; font-size: 9px; }
.field small { color: #92958d; font-family: 'DM Sans', sans-serif; font-size: 9px; }
.field input, .field textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #e2e0d7; border-radius: 7px; background: #fffefa; color: var(--ink); font-size: 11px; }
.field textarea { min-height: 57px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #b3b5ac; }
.subsection-title { display: flex; justify-content: space-between; align-items: center; padding: 13px 0 9px; border-top: 1px solid var(--line); color: #52584e; font-size: 11px; font-weight: 700; }
.text-button { padding: 4px 0; border: 0; background: none; color: #718444; font-size: 10px; font-weight: 700; cursor: pointer; }
.character-list { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 12px; scrollbar-width: none; }
.character-list::-webkit-scrollbar { display: none; }
.character-choice { display: flex; align-items: center; gap: 7px; flex: none; max-width: 150px; padding: 5px 9px 5px 5px; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: #656a61; font-size: 10px; cursor: pointer; }
.character-choice.active { border-color: #84934e; background: #eff1e5; color: #39432b; }
.character-choice img { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; background: #e0e1d8; }
.character-editor { padding: 11px 12px 1px; border: 1px solid #e8e6dc; border-radius: 9px; background: #f7f6f0; }
.character-editor .field:last-child { margin-bottom: 7px; }
.post-heading { margin-top: 16px; }
.post-card { margin: 0 0 9px; padding: 11px 12px 0; border: 1px solid #e8e6dc; border-radius: 9px; background: #f7f6f0; }
.post-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; color: #646a5d; font: 500 9px 'DM Mono', monospace; }
.story-rule-card .post-card-top { flex-wrap: wrap; gap: 6px 10px; }
.story-rule-card .post-card-top > div, .story-flag-card .post-card-top > div { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.story-rule-card .secondary-button { min-height: 25px; padding: 0 9px; font-size: 9px; }
.story-rule-card .field-hint, .story-flag-card .field-hint { margin-bottom: 11px; }
.call-editor-card .embedded-rule { margin-left: 10px; border-left: 3px solid #7d8f6d; }
.remove-button { padding: 3px 5px; border: 0; background: none; color: #bd6756; font-size: 10px; cursor: pointer; }
.editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 16px; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid #d3d8c2; border-radius: 7px; font-size: 10px; font-weight: 700; cursor: pointer; }
.primary-button { background: #dce8a4; color: #35401c; }.primary-button span { font-size: 15px; }
.secondary-button { background: #fffefa; color: #59614a; }
.reset-button { grid-column: 1 / -1; justify-self: start; padding: 7px 0 3px; border: 0; background: none; color: #8a8d83; font-size: 10px; cursor: pointer; }
.editor-footnote { margin: 12px 0 0; color: #9a9d94; font-size: 8px; }

.preview-panel { position: relative; display: grid; grid-template-rows: 56px minmax(0,1fr) 38px; min-width: 0; min-height: 100vh; overflow: hidden; background-color: #242b25; background-image: radial-gradient(ellipse at 51% 43%, rgba(164, 185, 123, .2), transparent 47%), linear-gradient(135deg, #252d27, #1a201d 70%); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 25px; color: #c1c9bb; font-size: 9px; letter-spacing: .7px; }
.preview-toolbar > div { display: flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px #d4e67b88; }
.preview-toolbar button { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #ffffff25; border-radius: 6px; background: #ffffff0c; color: #d7ddd4; font-size: 14px; cursor: pointer; }
.preview-toolbar button span { font-size: 10px; }
.preview-mat { display: grid; place-items: center; min-height: 0; padding: 9px 24px; overflow: hidden; container-type: size; }
.phone-frame { position: relative; width: min(100%, 350px, calc(100cqh * .45995)); height: auto; max-height: 100%; aspect-ratio: 1206 / 2622; padding: 8px; border: 1px solid #656d65; border-radius: 47px; background: linear-gradient(130deg, #535951, #080a09 24%, #3d433d 52%, #080a09 78%, #414840); box-shadow: 0 32px 72px #0008, inset 0 0 0 2px #ffffff0b; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate; border-radius: 39px; background: #18201d; color: white; --ios-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Thonburi', 'Noto Sans Thai', 'DM Sans', sans-serif; font-family: var(--ios-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 25px; color: #848d82; font-size: 8px; letter-spacing: .8px; }

/* Phone shell and navigation */
.phone-wallpaper { position: absolute; z-index: -2; inset: -2%; background: linear-gradient(180deg,#121b1960,#121b190c 43%,#1017149c), var(--wallpaper) center / cover; transition: filter .5s ease, transform .7s ease; }
.phone-screen[data-view="app"] .phone-wallpaper { filter: blur(18px) brightness(.3); transform: scale(1.12); }
.dynamic-island { position: absolute; z-index: 20; top: 10px; left: 50%; width: 103px; height: 31px; transform: translateX(-50%); border-radius: 20px; background: #020303; box-shadow: 0 1px #ffffff1e; }
.dynamic-island::after { content: ''; position: absolute; top: 9px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: #0f1920; box-shadow: inset 0 0 2px #92b4cd; }
.phone-status { position: absolute; z-index: 21; top: 0; right: 0; left: 0; display: flex; justify-content: space-between; height: 45px; padding: 12px 22px 0; color: white; font-size: 11px; font-weight: 700; pointer-events: none; }
.status-signals { display: flex; align-items: center; gap: 5px; }
.signal-bars { display: flex; gap: 2px; align-items: end; height: 10px; }.signal-bars i { width: 2px; border-radius: 2px; background: currentColor; }.signal-bars i:nth-child(1) { height: 4px; }.signal-bars i:nth-child(2) { height: 6px; }.signal-bars i:nth-child(3) { height: 8px; }.signal-bars i:nth-child(4) { height: 10px; }
.wifi-mark { width: 14px; height: 11px; flex: none; }.battery-mark { position: relative; width: 17px; height: 9px; padding: 1px; border: 1px solid currentColor; border-radius: 2px; }.battery-mark::after { position: absolute; top: 2px; right: -3px; width: 2px; height: 3px; border-radius: 0 2px 2px 0; background: currentColor; content: ''; }.battery-mark i { display: block; width: 100%; height: 100%; background: currentColor; }
.airplane-mark { width: 13px; height: 13px; }
.battery-percent { font-size: 10px; font-weight: 700; letter-spacing: -0.2px; }
.battery-mark.low-power { border-color: #ffd60a; }.battery-mark.low-power::after { background: #ffd60a; }.battery-mark.low-power i { background: #ffd60a; }.battery-percent.low-power { color: #ffd60a; }
.phone-view { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: scale(1.015); transition: opacity .34s ease, transform .4s ease, visibility .34s; }.phone-view.active { visibility: visible; opacity: 1; transform: scale(1); }
@keyframes app-enter { from { opacity: .35; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes home-enter { from { opacity: .5; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
.phone-screen[data-nav="enter"] .phone-view.active { animation: app-enter .32s cubic-bezier(.2, .85, .25, 1) both; }
.phone-screen[data-nav="home"] .phone-view.active { animation: home-enter .3s cubic-bezier(.2, .85, .25, 1) both; }
.phone-screen[data-nav="enter"] .phone-status { animation: app-enter .32s ease both; }
.phone-lock { display: flex; flex-direction: column; align-items: center; padding: 78px 20px 28px; text-align: center; }.lock-focus { margin: 2px 0 0; font-size: 12px; text-shadow: 0 1px 12px #0008; }.lock-time { margin-top: 1px; font-size: clamp(67px, 17vw, 92px); font-weight: 400; line-height: 1.02; font-variant-numeric: tabular-nums; text-shadow: 0 3px 18px #0003; }.lock-date-live { margin-top: 1px; font-size: 14px; text-shadow: 0 1px 12px #0008; }
.lock-notification { display: flex; gap: 9px; align-items: center; width: min(280px, 100%); margin-top: 23px; padding: 11px 12px; border: 1px solid #ffffff24; border-radius: 14px; background: #292f2bb8; backdrop-filter: blur(16px); text-align: left; }.notification-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 9px; background: linear-gradient(145deg,#d7e67c,#71884a); color: #29301e; font-size: 14px; }.notification-copy { flex: 1; min-width: 0; }.notification-copy b, .notification-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.notification-copy b { font-size: 10px; }.notification-copy span { margin-top: 3px; color: #e1e3dc; font-size: 9px; }.notification-age { align-self: flex-start; color: #bec4ba; font-size: 8px; }
.lock-bottom { position: absolute; right: 24px; bottom: 31px; left: 24px; display: flex; align-items: end; justify-content: space-between; }.round-control { display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 50%; background: #222723a8; color: white; font-size: 17px; backdrop-filter: blur(10px); cursor: pointer; }.unlock-area { display: flex; flex-direction: column; align-items: center; gap: 8px; }.unlock-hint { color: #ffffffe0; font-size: 9px; text-shadow: 0 1px 5px #000; }.unlock-button { width: 92px; height: 31px; border: 0; border-radius: 24px; background: #ffffff37; backdrop-filter: blur(12px); cursor: pointer; touch-action: none; }.unlock-button i { display: block; width: 28px; height: 3px; margin: auto; border-radius: 3px; background: white; }
.pass-view { display: flex; flex-direction: column; align-items: center; container-type: inline-size; background: #10171538; backdrop-filter: blur(24px); }.pass-title { margin-top: 30cqi; margin-bottom: 7.6cqi; font-size: 5.3cqi; }.pass-dots { display: flex; gap: 4.93cqi; margin-bottom: 12.15cqi; }.pass-dots i { width: 3.4cqi; height: 3.4cqi; border: 1px solid white; border-radius: 50%; }.pass-dots i.filled { background: white; }.pass-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.55cqi 6.07cqi; width: 78.2cqi; }.pass-keys button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; height: auto; border: 0; border-radius: 50%; background: #ffffff31; color: white; font-family: var(--ios-font); cursor: pointer; }.pass-digit { font-size: 14cqi; font-weight: 500; line-height: 12.5cqi; }.pass-letters { font-size: 3.03cqi; font-weight: 500; line-height: 3.79cqi; letter-spacing: .42cqi; padding-left: .42cqi; }.pass-bottom { position: absolute; bottom: 18.2cqi; left: 50%; display: flex; justify-content: space-between; width: 78.2cqi; transform: translateX(-50%); }.pass-bottom button { border: 0; background: transparent; color: white; font: 400 3.8cqi/1.2 var(--ios-font); cursor: pointer; }
.home-view { padding: 72px 11px 78px; }.home-widget-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; justify-items: center; margin-bottom: 16px; }.home-widget-photo { width: 56px; height: 56px; padding: 0; overflow: hidden; border: 0; border-radius: 15px; background: #ffffff2b; box-shadow: 0 4px 9px #0004, inset 0 1px 1px #ffffff75; cursor: pointer; transition: transform .16s ease; }.home-widget-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }.home-widget-photo:active { transform: scale(.9); }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 9px; justify-items: center; }.home-app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: transparent; color: white; font-size: 10px; text-shadow: 0 1px 5px #0009; cursor: pointer; }.home-app:active .app-icon { transform: scale(.9); }.app-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 4px 9px #0004, inset 0 1px 1px #ffffff75; font-size: 28px; text-shadow: none; transition: transform .16s ease; }.app-icon.messages { background: linear-gradient(145deg,#66e880,#15a953); }.app-icon.photos { background: #fff; }.app-icon.photos i { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#f46256,#ffad3d,#f0d447,#58c574,#43b5e4,#627eed,#ae66d2,#f46256); mask: radial-gradient(circle,transparent 0 23%,#000 25%); }.app-icon.instagram { background: linear-gradient(38deg,#ffcf63,#f03d63 50%,#8454cb 80%,#4385e7); }.app-icon.notes { background: linear-gradient(#fff 0 22%,#f7d04d 22%); color: #ad8b15; }.app-icon.phone { background: linear-gradient(145deg,#66e880,#15a953); }.app-icon.music { background: linear-gradient(145deg,#fb7780,#e42e54); }.app-label { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.unread-badge { position: absolute; top: -4px; right: 4px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border: 1px solid #fff; border-radius: 9px; background: #f44e52; color: white; font-size: 8px; text-shadow: none; }
.phone-dock { position: absolute; right: 12px; bottom: 22px; left: 12px; display: flex; justify-content: center; align-items: center; gap: 14px; min-height: 66px; border: 1px solid #ffffff24; border-radius: 22px; background: #dbe5d331; backdrop-filter: blur(20px); }.phone-dock .home-app { gap: 0; }.phone-dock .app-icon { width: 45px; height: 45px; }
.home-indicator { position: absolute; z-index: 22; bottom: 7px; left: 50%; width: 110px; height: 4px; transform: translateX(-50%); border: 0; border-radius: 4px; background: #ffffffd9; cursor: pointer; }.phone-screen[data-view="app"] .home-indicator { background: #111; }

/* App surfaces */
.home-grid { grid-template-columns: repeat(4, 1fr); gap: 12px 6px; }
.app-icon.line { background: linear-gradient(145deg,#28d66d,#05ad4e); }
.app-icon.calendar { background: #fff; color: #161618; font-size: 25px; font-weight: 400; }
.calendar-icon-face { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1; }
.calendar-icon-face b { margin-top: -1px; color: #ee4f43; font: 600 8px var(--ios-font); letter-spacing: .2px; }
.calendar-icon-face i { margin-top: 1px; color: #17171a; font: 300 26px/1 var(--ios-font); font-style: normal; letter-spacing: -.7px; }
.app-icon.camera { background: linear-gradient(145deg,#60645f,#242824); }
.app-icon.clock { background: radial-gradient(circle,#292d29,#070808); }
.app-icon.weather { background: linear-gradient(145deg,#8ed2f3,#458ac7); }
.app-icon.todo { background: #fff; }
.app-icon .todo-icon-art { width: 82%; height: 82%; }
.app-icon .todo-icon-line { fill: #d9d9de; }
.app-icon .todo-icon-ring { fill: #fff; stroke-width: 1.15; }
.app-icon .todo-icon-ring-a { stroke: #0a84ff; }
.app-icon .todo-icon-ring-b { stroke: #ff453a; }
.app-icon .todo-icon-ring-c { stroke: #ffbe0b; }
.app-icon .todo-icon-dot-a { fill: #0a84ff; }
.app-icon .todo-icon-dot-b { fill: #ff453a; }
.app-icon .todo-icon-dot-c { fill: #ffbe0b; }
.app-icon.settings { background: linear-gradient(145deg,#aeb3b9,#747b83); }
.app-icon.youtube { background: #fff; color: #f03; }
.app-body { font-size: var(--app-font-size, 14px); }
.app-view { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; padding-top: 47px; background: #f7f7f4; color: #202320; }.app-topbar { display: grid; grid-template-columns: 65px 1fr 65px; align-items: center; min-height: 40px; padding: 0 12px; border-bottom: 1px solid #e9e9e4; }.app-topbar h2 { overflow: hidden; margin: 0; font-size: 14px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }.app-topbar .top-action { justify-self: end; }.phone-back { display: flex; align-items: center; gap: 3px; padding: 5px 0; border: 0; background: none; color: #3d785a; font-size: 10px; cursor: pointer; }.phone-back b { font-size: 22px; line-height: 12px; }.app-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: 0 14px 30px; scrollbar-width: none; }.app-body::-webkit-scrollbar { display: none; }.app-subtitle { margin: 14px 0 8px; color: #838780; font: 500 9px var(--ios-font); letter-spacing: .7px; text-transform: uppercase; }
.ig-stories { display: flex; gap: 5px; overflow-x: auto; padding: 10px 0 12px; scrollbar-width: none; }.ig-stories::-webkit-scrollbar { display: none; }.story-button { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 55px; flex: none; padding: 0; border: 0; background: none; color: #252825; font-size: 8px; }.story-ring { position: relative; display: grid; place-items: center; overflow: hidden; width: 48px; height: 48px; padding: 2px; border-radius: 50%; background: conic-gradient(#f7ca6b,#e35279,#9a58bd,#f7ca6b); }.story-ring img { position: absolute; top: 2px; left: 2px; width: 44px; height: 44px; border: 2.5px solid #fff; border-radius: 50%; object-fit: cover; }.story-button.self .story-ring { background: #d9d9d5; }.story-name { max-width: 55px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-post { margin: 0 -14px 12px; padding-bottom: 7px; border-bottom: 1px solid #e8e8e3; }.post-head { display: flex; align-items: center; gap: 8px; padding: 7px 13px; font-size: 10px; }.post-avatar { width: 29px; height: 29px; border: 2px solid #df6482; border-radius: 50%; object-fit: cover; }.post-author { flex: 1; font-weight: 700; }.post-location { display: block; margin-top: 2px; color: #81857e; font-size: 8px; font-weight: 400; }.post-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #e5e4dc; }.post-actions { display: flex; align-items: center; gap: 12px; padding: 8px 13px 3px; }.post-actions button { padding: 0; border: 0; background: transparent; color: #242824; font-size: 18px; cursor: pointer; }.post-actions .save-post { margin-left: auto; }.post-likes { padding: 0 13px; font-size: 9px; font-weight: 700; }.post-caption { padding: 4px 13px 0; font-size: 9px; line-height: 1.5; }.post-caption b { margin-right: 4px; }.post-time { padding: 5px 13px 0; color: #898d86; font: 8px var(--ios-font); }.ig-tabbar { display: flex; justify-content: space-around; align-items: center; min-height: 43px; padding: 4px 3px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #e9e9e4; background: #fbfbf9; }.ig-tabbar button { display: grid; place-items: center; width: 43px; height: 35px; border: 0; background: none; color: #202320; font-size: 17px; cursor: pointer; }.ig-tabbar img { width: 22px; height: 22px; border: 1px solid #777; border-radius: 50%; object-fit: cover; }
.conversation-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #ecece7; background: none; color: inherit; text-align: left; cursor: pointer; }.conversation-avatar { width: 41px; height: 41px; flex: none; border-radius: 50%; object-fit: cover; background: #dedfd5; }.conversation-copy { flex: 1; min-width: 0; }.conversation-copy b, .conversation-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.conversation-copy b { font-size: 10px; }.conversation-copy span { margin-top: 4px; color: #858981; font-size: 9px; }.conversation-time { color: #8a8c86; font-size: 8px; }.chat-messages { display: flex; flex-direction: column; gap: 7px; min-height: calc(100% - 35px); padding: 12px 0; }.chat-intro { margin: 15px 0 24px; color: #878b84; font-size: 9px; text-align: center; }.chat-intro img { display: block; width: 62px; height: 62px; margin: 0 auto 7px; border-radius: 50%; object-fit: cover; }.chat-intro b { display: block; margin-bottom: 3px; color: #262a26; font-size: 12px; }.chat-bubble { max-width: 80%; padding: 8px 11px; border-radius: 16px; background: #e8e9e4; color: #242824; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }.chat-bubble.mine { align-self: flex-end; border-bottom-right-radius: 5px; background: #54784d; color: white; }.chat-bubble.theirs { align-self: flex-start; border-bottom-left-radius: 5px; }.chat-time { align-self: center; margin: -1px 0; color: #8a8e88; font-size: 8px; text-align: center; }.chat-compose { position: sticky; bottom: 0; display: flex; gap: 6px; padding: 8px 0 2px; background: #f7f7f4; }.chat-compose input { flex: 1; min-width: 0; padding: 8px 11px; border: 1px solid #dedfd8; border-radius: 18px; background: white; color: #222; font-size: 9px; }.chat-compose button { width: 34px; border: 0; border-radius: 50%; background: #54784d; color: white; font-size: 11px; cursor: pointer; }
.profile-summary { display: flex; align-items: center; gap: 12px; padding: 16px 0; }.profile-summary > img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; }.profile-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; font-size: 8px; }.profile-stats b { display: block; margin-bottom: 3px; font-size: 11px; }.profile-bio { font-size: 9px; line-height: 1.45; }.profile-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 14px -14px 0; }.profile-post-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 -14px; }.photo-grid button { min-width: 0; padding: 0; border: 0; background: #e4e4df; cursor: pointer; }.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.message-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #e8e8e3; background: none; color: inherit; text-align: left; cursor: pointer; }.message-row .conversation-avatar { width: 42px; height: 42px; }.message-preview { flex: 1; min-width: 0; }.message-preview b, .message-preview span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.message-preview b { font-size: 10px; }.message-preview span { margin-top: 4px; color: #82867f; font-size: 9px; }.note-sheet { min-height: 230px; margin: 14px 0; padding: 14px; border-radius: 8px; background: repeating-linear-gradient(#fffefa 0 26px, #e9e9e1 27px 27.5px); color: #434a3f; font: 12px/27px 'Playfair Display', Georgia, serif; white-space: pre-wrap; }.note-sheet h3 { margin: 0; font: 700 16px/27px var(--ios-font); }.phone-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; max-width: 220px; margin: 16px auto; }.phone-keypad button { display: grid; place-items: center; width: 53px; height: 53px; justify-self: center; border: 0; border-radius: 50%; background: #e7e8e3; color: #232723; font-size: 19px; cursor: pointer; }.dial-number { min-height: 39px; padding-top: 5px; font-size: 19px; text-align: center; }.call-button { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border: 0; border-radius: 50%; background: #36bb69; color: white; font-size: 19px; cursor: pointer; }.music-player { display: flex; flex-direction: column; align-items: center; padding: 19px 5px 9px; text-align: center; }.album-cover { width: min(205px, 76%); aspect-ratio: 1; border-radius: 5px; object-fit: cover; box-shadow: 0 9px 20px #0002; }.music-track { align-self: stretch; display: flex; justify-content: space-between; gap: 8px; margin-top: 18px; text-align: left; }.music-track b, .music-track small { display: block; }.music-track b { font-size: 12px; }.music-track small { margin-top: 3px; color: #7f847d; font-size: 9px; }.music-progress { align-self: stretch; height: 3px; margin-top: 19px; border-radius: 3px; background: #d9dad4; }.music-progress i { display: block; width: 34%; height: 100%; border-radius: 3px; background: #69735e; }.music-controls { display: flex; align-items: center; gap: 27px; margin-top: 17px; }.music-controls button { border: 0; background: none; font-size: 17px; cursor: pointer; }.music-controls .play-main { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #292d29; color: white; font-size: 13px; }
.story-overlay { position: absolute; z-index: 25; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 52px 15px 32px; background: #151817; }.story-overlay > img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }.story-overlay::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(#0007,transparent 25%,transparent 67%,#0008); content: ''; }.story-overlay header { display: flex; align-items: center; gap: 8px; font-size: 9px; }.story-overlay header img { width: 28px; height: 28px; border: 1px solid white; border-radius: 50%; object-fit: cover; }.story-overlay header button { margin-left: auto; border: 0; background: none; font-size: 21px; cursor: pointer; }.story-overlay .story-caption { padding: 0 7px 25px; font-size: 12px; text-align: center; text-shadow: 0 1px 5px #000; }.story-progress { position: absolute; top: 44px; right: 14px; left: 14px; height: 2px; background: #ffffff70; }.story-progress i { display: block; width: 45%; height: 100%; background: white; }
.story-overlay-controls { position: absolute; inset: 48px 0 42px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }.story-overlay-controls button { width: 42px; height: 74px; border: 0; background: #0001; color: white; font-size: 28px; text-shadow: 0 1px 4px #000; pointer-events: auto; cursor: pointer; }
.highlight-empty { display: grid; min-height: 100%; place-items: center; color: #e8e8e4; font-size: 13px; text-align: center; }
.highlight-overlay > img { object-fit: contain; }
.highlight-overlay .highlight-backdrop { z-index: -2; object-fit: cover; filter: blur(13px) brightness(.72); transform: scale(1.14); }
.story-overlay .story-progress { display: flex; gap: 3px; }
.story-overlay .story-progress i { flex: 1 1 0; width: auto; height: 100%; overflow: hidden; background: #ffffff55; }
.story-overlay .story-progress i b { display: block; width: 100%; height: 100%; background: #fff; transform-origin: left; }
.story-overlay .story-progress i b.done { transform: scaleX(1); }
.story-overlay .story-progress i b.idle { transform: scaleX(0); }
.story-overlay .story-progress i b.running { animation: highlight-progress linear forwards; }
@keyframes highlight-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.story-exit-bar { position: absolute; right: 15px; bottom: 11px; left: 15px; height: 27px; display: grid; place-items: center; border: 1px solid #ffffff61; border-radius: 7px; background: #222522d9; color: white; font: 600 9px var(--ios-font); cursor: pointer; }
.story-exit-bar:active { background: #222522f5; }
.post-photo-unavailable { display: grid; width: 100%; aspect-ratio: 1; place-items: center; background: #e5e4dc; color: #62665f; font-size: 10px; }
.ig-detail-post { padding-bottom: 10px; border-bottom: 1px solid #e8e8e3; }
.ig-detail-post:last-child { padding-bottom: 0; border-bottom: 0; }
.post-detail .feed-post { margin-bottom: 0; padding-bottom: 3px; border-bottom: 0; }
.post-detail .app-subtitle { margin: 6px 0 5px; }
.instagram-comment { margin: 0; padding: 2px 0; font-size: 9px; line-height: 1.45; }
.toast-message { position: absolute; z-index: 30; bottom: 40px; left: 50%; max-width: 85%; padding: 8px 12px; transform: translate(-50%, 8px); border-radius: 18px; background: #242824ed; color: white; font-size: 9px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }.toast-message.visible { transform: translate(-50%, 0); opacity: 1; }

/* App-specific interfaces */
.phone-status.app-status { color: #222722; }
.app-view { font-size: var(--app-font-size, 14px); }
.app-body, .line-body, .calendar-body, .clock-body, .notes-list, .notes-edit, .settings-list, .youtube-feed { padding-bottom: 34px; }
.empty-editor, .field-hint, .settings-footnote { color: #81867d; font-size: 10px; line-height: 1.5; }
.zone-preview { margin-top: 4px; color: #3f7a4f; font-size: 10px; font-style: normal; font-weight: 600; }.zone-preview.is-empty { color: #a08a4a; font-weight: 400; }
.zone-cell { display: grid; gap: 4px; justify-items: start; }
.zone-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: #00000073; }.zone-modal[hidden] { display: none; }.zone-modal-card { display: grid; gap: 10px; width: min(430px, 100%); max-height: min(540px, 88vh); padding: 15px 16px; border-radius: 18px; background: #f7f8f4; box-shadow: 0 18px 46px #00000042; }.zone-modal-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }.zone-modal-search { padding: 9px 11px; border: 1px solid #d2d5ce; border-radius: 11px; background: white; font: 400 13px/1.3 var(--ios-font); }.zone-modal-list { overflow-y: auto; display: grid; gap: 1px; }.zone-modal-item { display: grid; gap: 1px; padding: 7px 9px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font-family: var(--ios-font); }.zone-modal-item:hover { background: #e5e8e0; }.zone-modal-item b { color: #22261f; font-size: 13px; font-weight: 500; }.zone-modal-item small { color: #7d827a; font-size: 10px; }.zone-modal-alias { color: #8a8f86; font-size: 9px; line-height: 1.35; }.zone-modal-empty { margin: 0; padding: 10px; color: #7d827a; font-size: 11px; }
.field select, .inline-field input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #e2e0d7; border-radius: 7px; background: #fffefa; color: var(--ink); font-size: 11px; }
.inline-field { display: flex; gap: 7px; }.inline-field button { padding: 0 12px; border: 0; border-radius: 7px; background: #e1e8c7; color: #384421; font-size: 10px; font-weight: 700; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); color: #555b51; font-size: 11px; }.toggle-field input { accent-color: #718444; }
.upload-control { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 0 13px; border: 1px solid #d3d8c2; border-radius: 7px; background: #e8edda; color: #465337; font-size: 10px; font-weight: 700; cursor: pointer; }
.photo-edit-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #e8e6dc; }.photo-edit-row img { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; }.photo-edit-row .field { margin: 0; }.photo-edit-row .field input { font-size: 9px; }
.line-topbar { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; background: #06c755; color: white; }.line-brand { flex: 1; font-size: 20px; font-weight: 700; letter-spacing: -.6px; }.line-topbar > button { width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; background: #ffffff28; overflow: hidden; }.line-topbar > button img { width: 100%; height: 100%; object-fit: cover; }.line-account-select { display: grid; gap: 2px; max-width: 126px; }.line-account-select span { font: 7px var(--ios-font); opacity: .82; }.line-account-select select { width: 100%; border: 0; background: transparent; color: white; font-size: 9px; font-weight: 700; }.line-account-select option { color: #222; }.line-body { padding-top: 10px; }.line-search, .notes-search { display: flex; align-items: center; gap: 7px; margin: 2px 0 13px; padding: 7px 10px; border-radius: 7px; background: #f0f1ee; color: #838880; font-size: 14px; }.line-search input, .notes-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #202320; font-size: 10px; }.line-section-title { margin: 8px 0 5px; color: #72776f; font-size: 9px; font-weight: 700; }.line-chat-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #edeee9; background: none; color: inherit; text-align: left; cursor: pointer; }.line-avatar-wrap { position: relative; flex: none; }.line-avatar-wrap .conversation-avatar { width: 44px; height: 44px; }.line-avatar-wrap i { position: absolute; top: -3px; right: -4px; display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: #06c755; color: white; font-size: 8px; font-style: normal; }.line-chat-time { align-self: flex-start; padding-top: 3px; color: #8b9087; font-size: 8px; }.line-active-profile { display: flex; align-items: center; gap: 10px; padding: 8px 0 15px; border-bottom: 1px solid #ebede7; }.line-active-profile img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }.line-active-profile span { display: grid; flex: 1; gap: 3px; }.line-active-profile b { font-size: 11px; }.line-active-profile small { color: #858a81; font-size: 8px; }.line-active-profile button { border: 0; background: none; color: #8c9189; font-size: 22px; }.line-active-profile.large { flex-direction: column; align-items: center; padding: 25px 0; text-align: center; }.line-active-profile.large img { width: 75px; height: 75px; }.line-active-profile.large span { flex: initial; }.line-tabbar { display: flex; justify-content: space-around; min-height: 48px; border-top: 1px solid #e9ebe5; background: #fff; }.line-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 33%; border: 0; background: none; color: #a0a59c; font-size: 8px; }.line-tabbar button b { font-size: 15px; }.line-tabbar button.active { color: #06c755; }.line-chat-header { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-bottom: 1px solid #eceee8; background: #fff; color: #202320; }.line-chat-header > button { width: 32px; border: 0; background: none; color: #333a31; font-size: 23px; }.line-chat-header > span { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }.line-chat-header img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }.line-conversation { flex: 1; overflow-y: auto; padding: 12px 11px 17px; background: #8fcf78; }.line-date-separator { width: max-content; margin: 3px auto 13px; padding: 4px 9px; border-radius: 12px; background: #72b864aa; color: white; font-size: 8px; }.line-message { display: flex; flex-direction: column; max-width: 82%; margin-bottom: 10px; }.line-message.incoming { align-items: flex-start; }.line-message.outgoing { align-items: flex-end; margin-left: auto; }.line-message > small { margin: 0 0 3px 7px; color: #34533a; font-size: 8px; }.line-bubble { padding: 8px 10px; border-radius: 13px; background: white; color: #202820; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }.line-message.outgoing .line-bubble { background: #fff58c; }.line-bubble.sticker { padding: 0; background: transparent; font-size: 45px; }.line-bubble img { width: 130px; max-height: 120px; border-radius: 8px; object-fit: cover; }.line-message-meta { margin: 3px 4px 0; color: #49684d; font-size: 7px; }.line-composer { display: flex; align-items: center; gap: 7px; min-height: 47px; padding: 5px 9px; background: white; }.line-composer input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; border-radius: 18px; background: #f1f2ef; font-size: 10px; }.line-composer button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #06c755; color: white; }.line-composer .line-attach { background: transparent; color: #7b8379; font-size: 17px; }.line-profile-editor { text-align: center; }.line-profile-editor > img { width: 74px; height: 74px; margin: 25px auto 9px; border-radius: 50%; object-fit: cover; }.line-profile-editor h2 { margin: 0; font-size: 14px; }.line-profile-editor p { color: #858a81; font-size: 10px; }
/* Calendar */
.calendar-topbar { border-bottom: .5px solid #e5e5ea; background: #f9f9f9; }
.calendar-view { display: flex; flex: 1; flex-direction: column; min-height: 0; background: #fff; color: #1c1c1e; }
.calendar-month-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px 4px; }
.calendar-month-head h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.calendar-month-head h1 span { margin-left: 3px; color: #8e8e93; font-size: 13px; font-weight: 500; }
.calendar-month-buttons { display: flex; gap: 2px; }
.calendar-month-buttons button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: transparent; color: #ff3b30; font-size: 21px; line-height: 1; cursor: pointer; }
.calendar-month-buttons button:active { background: #ffeceb; }
.calendar-month-title { padding: 2px 5px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; }
.calendar-month-title[aria-expanded="true"] { background: #f2f2f7; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7,1fr); justify-items: center; padding: 3px 8px 3px; color: #8e8e93; font: 500 8px var(--ios-font); letter-spacing: .5px; }
.calendar-days { display: grid; grid-template-columns: repeat(7,1fr); justify-items: center; padding: 0 8px 5px; border-bottom: .5px solid #e5e5ea; }
.calendar-day { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; height: 37px; padding: 3px 0 1px; border: 0; background: transparent; color: #1c1c1e; cursor: pointer; }
.calendar-day-empty { height: 37px; }
.calendar-day-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-variant-numeric: tabular-nums; }
.calendar-day.today .calendar-day-number { color: #ff3b30; font-weight: 700; }
.calendar-day.selected .calendar-day-number { background: #ff3b30; color: #fff; font-weight: 600; }
.calendar-day:active .calendar-day-number { background: #f2f2f7; }
.calendar-day.selected:active .calendar-day-number { background: #e02f25; }
.calendar-dots { display: flex; align-items: center; gap: 2px; height: 4px; }
.calendar-dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--dot-color, #ff3b30); }
.calendar-agenda-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.calendar-agenda-scroll::-webkit-scrollbar { display: none; }
.calendar-agenda-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 15px 5px; }
.calendar-agenda-head b { font-size: 11px; font-weight: 700; }
.calendar-agenda-head span { color: #8e8e93; font-size: 8.5px; }
.calendar-agenda { padding: 0 12px 12px; }
.calendar-event { display: flex; align-items: stretch; gap: 9px; width: 100%; margin-bottom: 5px; padding: 9px 8px; border: 0; border-radius: 9px; background: #f7f7f9; text-align: left; cursor: pointer; }
.calendar-event:active { background: #efeff2; }
.calendar-event-bar { width: 3px; flex: none; border-radius: 3px; background: var(--event-color, #ff3b30); }
.calendar-event-copy { display: grid; flex: 1; min-width: 0; gap: 2px; }
.calendar-event-copy b { overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-copy small { overflow: hidden; color: #8e8e93; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event-chevron { align-self: center; color: #c5c5ca; font-size: 16px; }
.calendar-empty { display: grid; justify-items: center; gap: 3px; padding: 34px 0 20px; color: #8e8e93; text-align: center; }
.calendar-empty b { color: #48484a; font-size: 11px; }
.calendar-empty span { font-size: 9px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 5px 16px 8px; border-top: .5px solid #e5e5ea; background: #f9f9f9; }
.calendar-today-button { padding: 6px 4px; border: 0; background: none; color: #ff3b30; font-size: 10px; font-weight: 600; cursor: pointer; }
.calendar-add-button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #ff3b30; color: #fff; font-size: 19px; line-height: 1; box-shadow: 0 1px 4px #ff3b3033; cursor: pointer; }
.calendar-sheet-backdrop { position: absolute; z-index: 8; inset: 0; background: #00000040; animation: photo-backdrop-in .18s ease both; }
.calendar-sheet { position: absolute; z-index: 9; right: 7px; bottom: 7px; left: 7px; max-height: 78%; overflow-y: auto; padding: 9px 14px 13px; border-radius: 18px; background: #fff; color: #1c1c1e; box-shadow: 0 14px 38px #0005; animation: photo-sheet-up .28s cubic-bezier(.2,.9,.3,1) both; }
.calendar-jump-sheet { position: absolute; z-index: 9; right: 7px; bottom: 7px; left: 7px; max-height: 74%; overflow-y: auto; padding: 8px 12px 11px; border-radius: 18px; background: #fff; color: #1c1c1e; box-shadow: 0 14px 38px #0005; animation: photo-sheet-up .28s cubic-bezier(.2,.9,.3,1) both; }
.calendar-jump-label { margin: 5px 1px 4px; color: #8e8e93; font: 600 8px var(--ios-font); letter-spacing: .5px; text-transform: uppercase; }
.calendar-jump-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; }
.calendar-jump-grid button { padding: 6px 0; border: 0; border-radius: 8px; background: #f2f2f7; color: #1c1c1e; font: 600 10px var(--ios-font); font-variant-numeric: tabular-nums; cursor: pointer; }
.calendar-jump-grid button:active { background: #e5e5ea; }
.calendar-jump-grid button.current { background: #ff3b30; color: #fff; }
.calendar-jump-done { display: block; width: 100%; margin-top: 9px; padding: 7px 0; border: 0; border-radius: 9px; background: #f2f2f7; color: #ff3b30; font: 600 11px var(--ios-font); cursor: pointer; }
.calendar-sheet-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #f2f2f7; color: #8e8e93; font-size: 16px; line-height: 1; cursor: pointer; }
.calendar-sheet-head { display: flex; gap: 10px; padding: 2px 24px 10px 0; }
.calendar-sheet-head > i { width: 4px; flex: none; border-radius: 3px; background: var(--event-color, #ff3b30); }
.calendar-sheet-head h3 { margin: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 700; line-height: 1.25; }
.calendar-sheet-head p { margin: 3px 0 0; color: #8e8e93; font-size: 9px; }
.calendar-sheet-rows { border-top: .5px solid #e5e5ea; }
.calendar-sheet-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 1px; border-bottom: .5px solid #e5e5ea; font-size: 9px; }
.calendar-sheet-row > span { flex: none; color: #8e8e93; }
.calendar-sheet-row > b { overflow-wrap: anywhere; font-weight: 500; text-align: right; white-space: pre-wrap; }
.calendar-sheet-calendar { display: flex; align-items: center; gap: 5px; }
.calendar-sheet-calendar i { width: 8px; height: 8px; border-radius: 50%; background: var(--event-color, #ff3b30); }
.calendar-sheet-actions { display: flex; gap: 7px; margin-top: 12px; }
.calendar-sheet-edit, .calendar-sheet-delete { flex: 1; min-height: 38px; border: 0; border-radius: 11px; background: #f2f2f7; color: #007aff; font-size: 10px; font-weight: 600; cursor: pointer; }
.calendar-sheet-delete { color: #ff3b30; }
.calendar-sheet-delete.confirming { background: #ff3b30; color: #fff; }
.calendar-editor-bar .calendar-editor-cancel, .calendar-editor-bar .calendar-editor-save { padding: 5px 0; border: 0; background: none; color: #ff3b30; font-size: 10px; font-weight: 500; cursor: pointer; }
.calendar-editor-bar .calendar-editor-cancel { justify-self: start; }
.calendar-editor-bar .calendar-editor-save { justify-self: end; font-weight: 700; }
.calendar-editor-bar .calendar-editor-save:disabled { color: #ff3b3066; }
.calendar-form { padding: 14px 12px 40px; background: #f2f2f7; }
.calendar-form-group { margin-bottom: 16px; overflow: hidden; border-radius: 10px; background: #fff; }
.calendar-title-input { width: 100%; padding: 13px 12px; border: 0; background: transparent; color: #1c1c1e; font-size: 15px; font-weight: 600; outline: none; }
.calendar-title-input::placeholder { color: #b8b8bd; font-weight: 400; }
.calendar-form-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin: 0 12px; border-bottom: .5px solid #e5e5ea; color: #1c1c1e; font-size: 10px; }
.calendar-form-row:last-child { border-bottom: 0; }
.calendar-form-row > span:first-child { flex: none; }
.calendar-form-value { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.calendar-form-value input { min-width: 0; padding: 3px 0; border: 0; background: transparent; color: #ff3b30; font-size: 10px; text-align: right; outline: none; }
.calendar-form-value input[type="date"] { width: 108px; }
.calendar-form-value input[type="time"] { width: 64px; }
.calendar-form-value.is-disabled { opacity: .38; }
.calendar-form input:focus-visible, .calendar-form textarea:focus-visible { outline: none; }
.calendar-form-text { flex: 1; min-width: 0; padding: 11px 0; border: 0; background: transparent; color: #1c1c1e; font-size: 10px; text-align: right; outline: none; }
.calendar-form-text::placeholder { color: #b8b8bd; }
.calendar-form-row-notes { align-items: flex-start; }
.calendar-form-row-notes > span { padding-top: 12px; }
.calendar-form-row-notes .calendar-form-text { min-height: 64px; line-height: 1.5; resize: none; }
.calendar-switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.calendar-switch { position: relative; width: 34px; height: 20px; flex: none; border-radius: 12px; background: #e5e5ea; transition: background .18s ease; }
.calendar-switch::after { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0002; content: ''; transition: transform .18s ease; }
.calendar-switch-row input:checked + .calendar-switch { background: #34c759; }
.calendar-switch-row input:checked + .calendar-switch::after { transform: translateX(14px); }
.calendar-color-row { flex-direction: column; align-items: flex-start; gap: 8px; border-bottom: 0; padding: 10px 0 11px; }
.calendar-swatches { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 7px; }
.calendar-swatch { position: relative; width: 21px; height: 21px; padding: 0; border: 0; border-radius: 50%; background: var(--swatch); cursor: pointer; }
.calendar-swatch.selected::after { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #0004; content: '✓'; }
.calendar-editor-delete { width: 100%; min-height: 42px; border: 0; border-radius: 10px; background: #fff; color: #ff3b30; font-size: 10px; font-weight: 500; cursor: pointer; }
.calendar-editor-delete.confirming { background: #ff3b30; color: #fff; font-weight: 600; }
.camera-ui { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; color: #fff; overflow: hidden; }
.camera-viewfinder { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #0b0b0c; }
.camera-media-layer { position: absolute; inset: 0; transform: scale(var(--camera-zoom,1)); transform-origin: 50% 50%; transition: transform .28s ease; }
.camera-media-layer.is-front { transform: scaleX(-1) scale(var(--camera-zoom,1)); }
.camera-media { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 34px; color: #8e8e93; text-align: center; }
.camera-empty b { color: #d1d1d6; font-size: 12px; font-weight: 600; }
.camera-empty span { max-width: 220px; font-size: 10px; line-height: 1.5; }
.camera-topbar { position: absolute; z-index: 5; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; padding: 55px 16px 18px; background: linear-gradient(#000000b8,#0000); pointer-events: none; }
.camera-topbar button { pointer-events: auto; }
.camera-top-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #1c1c1eb3; color: #f2f2f7; font-size: 17px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.camera-top-button.camera-flash { color: #ffd60a; font-size: 18px; }
.camera-top-button.camera-flash.off { color: #f2f2f7; }
.camera-flash-slash { position: absolute; width: 24px; height: 1.5px; transform: rotate(-42deg); border-radius: 2px; background: #f2f2f7; box-shadow: 0 0 2px #00000080; }
.camera-top-button.camera-flash b { position: absolute; right: 5px; bottom: 4px; color: #ffd60a; font: 700 7px var(--ios-font); }
.camera-grid-toggle { font-size: 16px; }
.camera-grid-toggle.active { background: #ffd60a; color: #111; }
.camera-grid-lines { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.camera-grid-lines span { position: absolute; background: #ffffff73; }
.camera-grid-lines span:nth-child(1), .camera-grid-lines span:nth-child(2) { top: 0; bottom: 0; width: 1px; }
.camera-grid-lines span:nth-child(3), .camera-grid-lines span:nth-child(4) { right: 0; left: 0; height: 1px; }
.camera-mode-vignette { position: absolute; z-index: 1; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center,#0000 52%,#000000a8 100%); transition: opacity .3s; }
.camera-viewfinder.mode-portrait .camera-mode-vignette { opacity: 1; }
.camera-cinema-bars { position: absolute; z-index: 3; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s; }
.camera-cinema-bars::before, .camera-cinema-bars::after { position: absolute; right: 0; left: 0; height: 10.5%; background: #000; content: ''; }
.camera-cinema-bars::before { top: 0; }
.camera-cinema-bars::after { bottom: 0; }
.camera-viewfinder.mode-cinematic .camera-cinema-bars { opacity: 1; }
.camera-zoom-pill { position: absolute; z-index: 4; bottom: 14px; left: 50%; display: flex; gap: 2px; padding: 3px; transform: translateX(-50%); border-radius: 22px; background: #00000059; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.camera-zoom-pill button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; font: 600 10px var(--ios-font); font-variant-numeric: tabular-nums; }
.camera-zoom-pill button.active { background: #3a3a3c; color: #ffd60a; }
.camera-rec-badge { position: absolute; z-index: 5; top: 105px; left: 50%; display: flex; align-items: center; gap: 6px; padding: 5px 11px; transform: translateX(-50%); border-radius: 18px; background: #00000080; color: #fff; font: 500 10px var(--ios-font); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.camera-rec-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: cameraRecPulse 1s steps(2,start) infinite; }
.camera-flash-layer { position: absolute; z-index: 8; inset: 0; opacity: 0; pointer-events: none; background: #fff; }
.camera-flash-layer.fire { animation: cameraFlash .3s ease-out; }
.camera-viewfinder.snapping { animation: cameraSnap .18s ease-out; }
.camera-bottom { flex: none; padding: 4px 0 18px; background: #000; }
.camera-modes { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 20px 0; }
.camera-modes button { padding: 4px 0; border: 0; background: transparent; color: #8e8e93; font: 600 9px var(--ios-font); letter-spacing: .5px; white-space: nowrap; }
.camera-modes button.active { color: #ffd60a; }
.camera-ui.is-recording .camera-modes { opacity: .35; }
.camera-controls { display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; justify-items: center; padding: 8px 18px 0; }
.camera-latest { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 9px; background: #1c1c1e; color: #8e8e93; font-size: 16px; }
.camera-latest .camera-latest-media, .camera-latest img, .camera-latest video { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-latest .media-video-thumb { width: 100%; height: 100%; }
.camera-latest .media-video-thumb i { font-size: 11px; }
.camera-latest-empty { font-size: 17px; }
.camera-shutter { display: grid; place-items: center; width: 70px; height: 70px; padding: 0; border: 4px solid #fff; border-radius: 50%; background: transparent; }
.camera-shutter i { width: 56px; height: 56px; border-radius: 50%; background: #fff; transition: transform .12s ease,border-radius .16s ease,background .16s ease; }
.camera-shutter:active i { transform: scale(.86); }
.camera-shutter.video-record i { width: 56px; height: 56px; background: #ff453a; }
.camera-shutter.video-record.recording i { width: 27px; height: 27px; border-radius: 6px; }
.camera-flip { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #2c2c2e; color: #fff; font-size: 21px; line-height: 1; }
.camera-ui.is-recording .camera-flip { opacity: .4; pointer-events: none; }
.phone-screen[data-app="camera"] .phone-status { color: #fff; }
@keyframes cameraFlash { 0% { opacity: 0; } 10% { opacity: .92; } 100% { opacity: 0; } }
@keyframes cameraSnap { 0% { filter: brightness(1); } 45% { filter: brightness(.5); } 100% { filter: brightness(1); } }
@keyframes cameraRecPulse { 50% { opacity: .15; } }
.clock-tabs { display: flex; justify-content: space-around; gap: 2px; padding: 8px 0 14px; }.clock-tabs button { padding: 6px 5px; border: 0; border-radius: 13px; background: #f0f0ed; color: #72766f; font-size: 8px; }.clock-tabs button.active { background: #343833; color: white; }.world-clock-row, .alarm-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 3px; border-bottom: 1px solid #e8e9e4; }.world-clock-row { padding: 11px 3px; }.world-clock-row span { display: grid; gap: 1px; }.alarm-row span { display: grid; gap: 3px; }.world-clock-row b { font-size: 20px; font-weight: 400; line-height: 24px; letter-spacing: -.3px; }.alarm-row small { color: #858a82; font-size: 8px; }.world-clock-row small { color: #858a82; font-size: 9px; font-weight: 400; line-height: 11px; letter-spacing: .1px; }.world-clock-row strong { display: flex; align-items: baseline; font-size: 34px; font-weight: 300; line-height: 34px; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }.world-clock-row strong i { margin-left: 2px; font: 400 15px/1 var(--ios-font); letter-spacing: 0; }.alarm-row b { font-size: 24px; font-weight: 300; }.ios-switch { position: relative; width: 35px; height: 21px; border: 0; border-radius: 12px; background: #d5d7d1; }.ios-switch::after { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #0002; content: ''; transition: transform .18s; }.ios-switch.on { background: #34c759; }.ios-switch.on::after { transform: translateX(14px); }.timer-dial { display: grid; place-items: center; width: 210px; height: 210px; margin: 34px auto 18px; border: 2px solid #e1e2dc; border-radius: 50%; color: #252925; }.timer-dial span { font-size: 41px; font-variant-numeric: tabular-nums; font-weight: 300; }.timer-controls { display: flex; justify-content: space-around; }.timer-controls button { min-width: 80px; padding: 10px; border: 0; border-radius: 18px; background: #e9eae5; color: #343933; font-size: 10px; }.timer-controls button:last-child { background: #dce8a4; }
/* Notes */
.phone-screen[data-app="notes"] .app-view { background: #f2f2f7; }
.notes-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 14px; border-bottom: .5px solid #e8e8ec; background: #fff; }
.notes-home, .notes-compose { border: 0; background: none; color: #e0a516; }
.notes-home { padding: 5px 0; font-size: 10px; }
.notes-compose { padding: 0; font-size: 20px; line-height: 1; }
.notes-list { padding: 0 15px 40px; background: #fff; color: #1c1c1e; }
.notes-folders-head { position: relative; display: flex; align-items: center; justify-content: flex-end; flex: none; min-height: 56px; padding: 3px 11px 5px; background: #f2f2f7; }
.notes-folders-title { position: absolute; top: 7px; right: 0; left: 0; text-align: center; pointer-events: none; }
.notes-folders-title b { display: block; color: #1c1c1e; font-size: 11.5px; font-weight: 700; letter-spacing: -.2px; }
.notes-folders-title span { display: block; margin-top: 2px; color: #8e8e93; font-size: 7.5px; }
.notes-folders-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.notes-folders-new { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1c1c1e; box-shadow: 0 1px 5px #3a3a3c14; cursor: pointer; }
.notes-folders-new svg { width: 19px; height: 19px; }
.notes-folders-edit { height: 29px; padding: 0 10px; border: 0; border-radius: 15px; background: #fff; color: #1c1c1e; font: 500 9px var(--ios-font); box-shadow: 0 1px 5px #3a3a3c14; cursor: pointer; }
.notes-folders-body { flex: 1; overflow-y: auto; padding: 0 11px 10px; background: #f2f2f7; scrollbar-width: none; }
.notes-folders-body::-webkit-scrollbar { display: none; }
.notes-folders-section { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 6px; color: #1c1c1e; }
.notes-folders-section b { font-size: 13px; font-weight: 700; letter-spacing: -.3px; }
.notes-folders-section span { display: flex; color: #e0a516; }
.notes-folders-section svg { width: 12px; height: 12px; }
.notes-folders-card { overflow: hidden; border-radius: 12px; background: #fff; }
.notes-folder-row { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; background: #fff; color: #1c1c1e; text-align: left; cursor: pointer; }
.notes-folder-row + .notes-folder-row::before { position: absolute; top: 0; right: 0; left: 38px; height: .5px; background: #dedee3; content: ''; }
.notes-folder-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: none; color: #e6a91b; }
.notes-folder-icon svg { width: 21px; height: 21px; }
.notes-folder-name { flex: 1; min-width: 0; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.notes-folder-count { color: #8e8e93; font-size: 9.5px; }
.notes-folder-chevron { color: #c4c4c8; font-size: 13px; line-height: 1; }
.notes-folders-toolbar { display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 11px 19px; background: #f2f2f7; }
.notes-folders-search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 35px; padding: 0 12px; border: 0; border-radius: 18px; background: #e4e4e9; color: #1c1c1e; font: 400 10px var(--ios-font); cursor: pointer; }
.notes-folders-search > span { flex: 1; color: #8e8e93; text-align: left; }
.notes-folders-search > span.notes-mic { display: flex; flex: none; color: #1c1c1e; }
.notes-folders-search svg { width: 15px; height: 15px; flex: none; }
.notes-folders-compose { display: grid; place-items: center; width: 35px; height: 35px; flex: none; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1c1c1e; box-shadow: 0 1px 5px #3a3a3c14; cursor: pointer; }
.notes-folders-compose svg { width: 19px; height: 19px; }
.notes-large-title { margin: 2px 0 8px; color: #1c1c1e; font-size: 29px; font-weight: 700; letter-spacing: -.7px; line-height: 1.1; }
.notes-search { gap: 5px; height: 30px; margin: 0 0 8px; padding: 0 9px; border-radius: 9px; background: #efeff4; color: #8e8e93; font-size: 13px; }
.notes-search input { color: #1c1c1e; font-size: 10px; }
.notes-count { margin: 0 0 4px; color: #8e8e93; font-size: 8px; font-weight: 600; }
.notes-section-title { display: flex; align-items: center; gap: 3px; margin: 10px 0 1px; color: #8e8e93; font-size: 8px; font-weight: 500; }
.notes-pin-icon, .note-row-pin { display: inline-flex; align-items: center; color: #c9a13b; }
.notes-pin-icon svg, .note-row-pin svg { display: block; width: 9px; height: 9px; fill: currentColor; }
.note-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 0; border: 0; border-bottom: .5px solid #e5e5ea; background: none; color: inherit; text-align: left; }
.note-row[hidden], .notes-pinned[hidden], .notes-rest[hidden], .notes-empty[hidden] { display: none; }
.note-row-copy { display: grid; gap: 2px; min-width: 0; }
.note-row b { overflow: hidden; color: #1c1c1e; font-size: 10.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.note-row small { display: flex; align-items: baseline; gap: 5px; min-width: 0; color: #8e8e93; font-size: 8px; }
.note-row-date { flex: none; }
.note-row-snippet { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-row-pin { flex: none; margin-top: 1px; }
.notes-empty { padding: 64px 16px; color: #8e8e93; text-align: center; }
.notes-empty b { display: block; margin-bottom: 4px; color: #545458; font-size: 12px; }
.notes-empty span { font-size: 8px; }
.notes-editor-top { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 48px; padding: 4px 14px 2px; background: #fff; }
.notes-editor-back { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1c1c1e; box-shadow: 0 1px 6px #3a3a3c16; cursor: pointer; }
.notes-editor-back svg { width: 22px; height: 22px; }
.notes-editor-tools { display: flex; align-items: center; gap: 9px; }
.notes-editor-actions { display: flex; align-items: center; gap: 9px; height: 29px; padding: 0 9px; border-radius: 15px; background: #fff; box-shadow: 0 1px 6px #3a3a3c16; }
.notes-editor-actions button { display: grid; place-items: center; width: 21px; height: 21px; padding: 0; border: 0; background: none; color: #1c1c1e; cursor: pointer; }
.notes-editor-actions svg { width: 21px; height: 21px; }
.notes-editor-done { display: none; place-items: center; width: 29px; height: 29px; flex: none; padding: 0; border: 0; border-radius: 50%; background: #e1ad07; color: #fffb57; box-shadow: 0 1px 6px #3a3a3c14; cursor: pointer; }
.notes-editor-done svg { width: 19px; height: 19px; }
.phone-screen.keyboard-open .notes-editor-done { display: grid; }
.notes-edit { flex: 1; display: flex; flex-direction: column; padding: 2px 17px 12px; background: #fff; overflow-y: auto; scrollbar-width: none; }
.notes-edit::-webkit-scrollbar { display: none; }
.notes-editor-date { flex: none; margin: 6px 0 0; color: #8e8e93; font: 500 9px var(--ios-font); letter-spacing: .1px; text-align: center; }
.note-title-input { width: 100%; flex: none; margin-top: 4px; padding: 4px 0; border: 0; outline: 0; background: transparent; color: #1c1c1e; font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.note-title-input:focus-visible, .note-title-input:focus, .note-sheet:focus-visible, .note-sheet:focus { outline: none; box-shadow: none; }
.note-title-input::placeholder, .note-sheet::placeholder { color: #c7c7cc; }
.note-sheet-wrap { position: relative; display: flex; flex: 1; min-height: 220px; }
.note-sheet { width: 100%; flex: 1; min-height: 220px; padding: 4px 0 12px; border: 0; outline: 0; background: transparent; color: #1c1c1e; font: 12px/1.55 var(--ios-font); caret-color: #e1ad07; resize: none; }
.note-sheet::selection { background: #f7e6a7; }
.note-check-layer { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.note-check-track { position: absolute; inset: 0; will-change: transform; }
.note-check-chip { position: absolute; display: block; width: 15px; height: 15px; border: 1.4px solid #9b9ba0; border-radius: 50%; background: #fff; box-shadow: -3px 0 0 2px #fff; box-sizing: border-box; }
.note-check-chip.checked { display: grid; place-items: center; border: 0; background: #e1ad07; }
.note-check-chip svg { display: block; width: 13px; height: 13px; }
.note-drawings { display: grid; gap: 8px; flex: none; margin: 4px 0 10px; }
.note-drawings figure { margin: 0; }
.note-drawings img { display: block; width: 100%; border: 1px solid #e5e5ea; border-radius: 10px; background: #fff; }
.notes-editor-toolbar { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 5px 13px 19px; background: #fff; }
.phone-screen.keyboard-open .notes-editor-toolbar { padding-bottom: 9px; }
.notes-tools-pill { display: flex; align-items: center; gap: 17px; height: 35px; padding: 0 15px; border-radius: 18px; background: #f4f4f6; box-shadow: 0 1px 6px #3a3a3c12; }
.notes-tools-pill button { display: grid; place-items: center; width: 22px; height: 24px; padding: 0; border: 0; background: none; color: #1c1c1e; cursor: pointer; }
.notes-tools-pill svg { width: 22px; height: 22px; }
.notes-editor-compose { display: grid; place-items: center; width: 35px; height: 35px; flex: none; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #1c1c1e; box-shadow: 0 1px 6px #3a3a3c14; cursor: pointer; }
.notes-editor-compose svg { width: 20px; height: 20px; }
.notes-menu-backdrop { position: absolute; z-index: 30; inset: 0; background: #00000033; }
.notes-menu-sheet { position: absolute; z-index: 31; right: 9px; bottom: 34px; left: 9px; display: grid; gap: 1px; overflow: hidden; border-radius: 14px; background: #d1d1d6; }
.notes-menu-sheet button { min-height: 42px; border: 0; background: #fff; color: #007aff; font-size: 11px; }
.notes-menu-sheet button.danger { color: #ff3b30; font-weight: 600; }
.notes-menu-sheet button.cancel { margin-top: 6px; border-radius: 14px; font-weight: 600; }
.notes-share-backdrop { position: absolute; z-index: 30; inset: 0; background: #00000030; }
.notes-share-sheet { position: absolute; z-index: 31; right: 8px; bottom: 27px; left: 8px; display: grid; gap: 10px; padding: 13px 13px 10px; border-radius: 20px; background: #fff; box-shadow: 0 14px 38px #0003; }
.notes-share-sheet header { display: flex; align-items: center; justify-content: space-between; color: #1c1c1e; }
.notes-share-sheet header b { font-size: 11px; }
.notes-share-sheet header button { border: 0; background: none; color: #8e8e93; font-size: 18px; line-height: 1; }
.notes-share-preview { display: grid; gap: 3px; padding: 9px 10px; border-radius: 10px; background: #f2f2f7; }
.notes-share-preview b { overflow: hidden; color: #1c1c1e; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.notes-share-preview p { display: -webkit-box; overflow: hidden; margin: 0; color: #8e8e93; font-size: 8px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notes-share-actions { display: grid; gap: 1px; overflow: hidden; border-radius: 12px; background: #e5e5ea; }
.notes-share-actions button { min-height: 38px; border: 0; background: #fff; color: #007aff; font-size: 10px; }
.notes-share-actions .cancel { margin-top: 5px; border-radius: 12px; color: #8e8e93; }
.note-draw-overlay { position: absolute; z-index: 29; inset: 47px 0 0; display: flex; flex-direction: column; background: #fff; }
.note-draw-top { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 44px; padding: 0 15px; background: #fff; }
.note-draw-top b { color: #1c1c1e; font-size: 11px; }
.note-draw-top button { border: 0; background: none; color: #e0a516; font-size: 10px; }
.note-draw-top .note-draw-done { font-weight: 700; }
.note-draw-canvas-wrap { flex: 1; min-height: 0; padding: 2px 10px; }
.note-draw-canvas-wrap canvas { display: block; width: 100%; height: 100%; border-radius: 10px; background: #fff; touch-action: none; }
.note-draw-tools { display: grid; gap: 9px; flex: none; padding: 9px 14px 20px; background: #fff; }
.note-draw-colors { display: flex; justify-content: center; gap: 10px; }
.note-draw-colors button { width: 19px; height: 19px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: var(--draw-color); box-shadow: inset 0 0 0 1px #00000014; }
.note-draw-colors button.active { border-color: #8e8e93; }
.note-draw-actions { display: flex; justify-content: center; gap: 9px; }
.note-draw-actions button { min-width: 76px; padding: 7px 12px; border: 0; border-radius: 16px; background: #f2f2f7; color: #1c1c1e; font-size: 9px; }
.settings-profile { display: flex; align-items: center; gap: 9px; margin: 12px 0 18px; padding: 11px; border-radius: 10px; background: #fff; }.settings-profile img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; }.settings-profile span:nth-child(2) { display: grid; flex: 1; gap: 3px; }.settings-profile b { font-size: 10px; }.settings-profile small { color: #858a82; font-size: 8px; }.settings-group { margin: 12px 0; padding: 0 11px; border-radius: 10px; background: #fff; }.settings-group > p { margin: 0; padding: 11px 1px 5px; color: #858a82; font: 8px var(--ios-font); }.settings-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; border: 0; border-bottom: 1px solid #edeee9; background: transparent; color: #242824; text-align: left; font-size: 10px; }.settings-row:last-child { border-bottom: 0; }.settings-row i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 6px; background: #889c58; color: white; font-size: 12px; font-style: normal; }.settings-row span { flex: 1; }.settings-row b { color: #898d86; font-size: 8px; font-weight: 400; }.settings-row em { color: #b2b5ae; font-size: 15px; font-style: normal; }.appearance-choice { width: 49%; min-height: 37px; margin: 2px 0 9px; border: 1px solid #e6e6e1; border-radius: 7px; background: #f6f6f3; color: #4c514a; font-size: 10px; }.appearance-choice.selected { border-color: #64754b; background: #e8eddc; }.settings-wallpaper-preview { height: 210px; overflow: hidden; border-radius: 13px; }.settings-wallpaper-preview img { width: 100%; height: 100%; object-fit: cover; }.phone-screen[data-appearance="dark"] .app-view { background: #f7f7f4; }
.youtube-topbar { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 0 12px; }.youtube-topbar > b { flex: 1; font-size: 15px; letter-spacing: -1px; }.youtube-topbar > b span { color: #f03; }.youtube-topbar button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; font-size: 17px; }.youtube-topbar img { width: 25px; height: 25px; border-radius: 50%; object-fit: cover; }.youtube-categories { display: flex; gap: 6px; overflow-x: auto; padding: 7px 11px; border-top: 1px solid #e8e8e4; border-bottom: 1px solid #e8e8e4; scrollbar-width: none; }.youtube-categories button { flex: none; padding: 6px 9px; border: 0; border-radius: 7px; background: #efefec; color: #343833; font-size: 8px; }.youtube-categories button.active { background: #252925; color: white; }.youtube-feed { padding: 4px 0 0; }.youtube-video { display: block; width: 100%; padding: 0 0 12px; border: 0; background: none; text-align: left; }.youtube-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e5e5df; }.youtube-thumb img { width: 100%; height: 100%; object-fit: cover; }.youtube-thumb i { position: absolute; right: 5px; bottom: 5px; padding: 3px 4px; border-radius: 3px; background: #000c; color: white; font: 7px var(--ios-font); font-style: normal; }.youtube-video-info { display: flex; align-items: flex-start; gap: 8px; padding: 8px 11px 0; }.youtube-video-info > img { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; }.youtube-video-info > span { display: grid; flex: 1; gap: 4px; }.youtube-video-info b { font-size: 9px; line-height: 1.35; }.youtube-video-info small { color: #858a82; font-size: 7px; }.youtube-video-info em { color: #737870; font-style: normal; }.youtube-tabs { display: flex; justify-content: space-around; align-items: center; min-height: 45px; border-top: 1px solid #e9e9e4; background: #fff; }.youtube-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; font-size: 14px; }.youtube-tabs small { font-size: 7px; }.youtube-detail { display: flex; flex-direction: column; min-height: 0; flex: 1; }.video-player { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; flex: none; background: #111; }.video-player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }.video-player span { z-index: 1; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #f03; color: white; }.youtube-detail h2 { margin: 11px 0 4px; font-size: 12px; }.youtube-metadata { margin: 0 0 10px; color: #858a82; font-size: 8px; }.youtube-channel { display: flex; align-items: center; gap: 8px; }.youtube-channel img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }.youtube-channel span { display: grid; flex: 1; gap: 3px; }.youtube-channel b { font-size: 9px; }.youtube-channel small { color: #858a82; font-size: 7px; }.youtube-channel button { padding: 7px 10px; border: 0; border-radius: 15px; background: #242824; color: white; font-size: 8px; }.youtube-description { padding: 8px; border-radius: 8px; background: #f0f0ed; font-size: 8px; }.youtube-comment { padding: 6px 0; border-bottom: 1px solid #ecece7; font-size: 8px; }
.phone-screen[data-appearance="light"] .phone-wallpaper { filter: brightness(1.05); }
.app-icon.safari { background: radial-gradient(circle at 50% 48%,#f9fcff 0 45%,#c9e5f8 46% 50%,#3b8fd1 51% 75%,#f5f8fc 76%); color: #e24940; font-size: 34px; }
/* Safari */
.phone-screen[data-app="safari"] .app-view { background: #f5f6f8; }
.safari-start { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 9px 17px 28px; background: linear-gradient(180deg,#f6f8fbeb,#f5f6f8ed),var(--safari-background) center/cover; color: #242a31; scrollbar-width: none; }
.safari-start::-webkit-scrollbar { display: none; }.safari-start.private { background: linear-gradient(150deg,#292c36,#46414f 54%,#34313b); color: #f5f4f6; }
.safari-start-top { display: flex; justify-content: space-between; align-items: center; min-height: 34px; color: #858b94; font: 8px var(--ios-font); letter-spacing: .8px; }.safari-start.private .safari-start-top { color: #d7d1e2; }.safari-start-top button { border: 0; background: transparent; color: inherit; font-size: 17px; }
.safari-address { display: flex; align-items: center; gap: 7px; width: 100%; height: 36px; margin: 7px 0 17px; padding: 0 10px; border: 1px solid #e3e6ea; border-radius: 11px; background: #fff; color: #727a84; box-shadow: 0 2px 6px #2029340b; }.safari-address > span { color: #7f8790; font-size: 12px; }.safari-address input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #30363d; font-size: 9px; text-align: center; }.safari-address input::placeholder { color: #9298a0; }.safari-address button { border: 0; background: transparent; color: #78818c; font-size: 16px; }.safari-address.compact { flex: 1; margin: 0; height: 30px; border-radius: 10px; }
.safari-start-section { margin: 0 0 18px; }.safari-start-section h2 { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0; }.safari-favorites { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px 5px; }.safari-favorite { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }.safari-favorite-icon { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 1px solid #e1e5e9; border-radius: 11px; background: white; color: #3b4958; font: 600 15px var(--ios-font); box-shadow: 0 2px 5px #20293412; }.safari-favorite-icon img { width: 100%; height: 100%; object-fit: cover; }.safari-favorite small { max-width: 64px; overflow: hidden; color: inherit; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.safari-frequent { display: grid; gap: 7px; }.safari-frequent-card { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 57px; padding: 6px; border: 1px solid #e4e7eb; border-radius: 10px; background: #ffffffc9; color: #292e34; text-align: left; }.safari-frequent-card > img, .safari-frequent-placeholder { display: grid; place-items: center; width: 58px; height: 43px; flex: none; border-radius: 6px; background: var(--site-accent); color: #fff; object-fit: cover; font-size: 17px; }.safari-frequent-card > span:last-child { display: grid; gap: 4px; min-width: 0; }.safari-frequent-card b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.safari-frequent-card small { overflow: hidden; color: #858b93; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }.safari-privacy-note { margin: 20px 0 0; color: #9299a1; font-size: 8px; text-align: center; }
.safari-toolbar { display: flex; align-items: center; justify-content: space-around; flex: none; min-height: 49px; padding: 3px 8px max(7px,env(safe-area-inset-bottom)); border-top: 1px solid #e7e9ec; background: #fbfcfe; }.safari-toolbar button { display: grid; place-items: center; width: 43px; height: 37px; border: 0; border-radius: 11px; background: transparent; color: #a6adb5; font-size: 23px; }.safari-toolbar button.enabled { color: #2777c7; }.safari-toolbar button:nth-child(n+3) { color: #2777c7; }.safari-toolbar button:active { background: #edf2f7; }.safari-toolbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.safari-webpage { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #fff; }.safari-web-head { display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-bottom: 1px solid #ebedf0; }.safari-page-bookmark { width: 26px; border: 0; background: none; color: #387ec3; font-size: 19px; }.safari-page-scroll { flex: 1; overflow-y: auto; scrollbar-width: none; }.safari-page-scroll::-webkit-scrollbar { display: none; }.fiction-site-header { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 3px 9px; padding: 15px 16px 12px; border-bottom: 1px solid #e9edf0; }.fiction-site-icon { display: grid; place-items: center; grid-row: span 2; width: 34px; height: 34px; overflow: hidden; border-radius: 9px; background: var(--site-accent); color: white; font-size: 15px; }.fiction-site-icon img { width: 100%; height: 100%; object-fit: cover; }.fiction-site-header b { font-size: 10px; }.fiction-site-header small { color: #7f8790; font-size: 8px; }.fiction-site-hero { display: block; width: 100%; max-height: 150px; aspect-ratio: 16/8; object-fit: cover; }.fiction-site-content { padding: 14px 17px 25px; color: #29313a; font: 10px/1.55 var(--ios-font); overflow-wrap: anywhere; }.fiction-site-content h1 { margin: 5px 0 12px; font: 600 20px/1.1 'Playfair Display',Georgia,serif; }.fiction-site-content p { margin: 0 0 8px; }.fiction-site-url { color: #8b9198; font: 7px var(--ios-font); }.safari-back-start { margin-top: 11px; padding: 7px 11px; border: 0; border-radius: 15px; background: #ecf2f8; color: #3178b9; font-size: 8px; }
.fiction-site-links { display: grid; gap: 6px; margin-top: 18px; padding-top: 12px; border-top: 1px solid #e9edf0; }.fiction-site-links-title { margin: 0 0 2px !important; color: #8b9198; font: 7px var(--ios-font); letter-spacing: .7px; }.fiction-site-links button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 11px; border: 1px solid #e1e7ed; border-radius: 9px; background: #f8fafc; color: #2f6fa8; font-size: 9px; text-align: left; cursor: pointer; }.fiction-site-links button span { color: #9aa3ac; font-size: 13px; }
.safari-tabs-header, .safari-page-header { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 13px; color: #303741; }.safari-tabs-header b, .safari-page-header b { font-size: 12px; }.safari-tabs-header button, .safari-page-header button { min-width: 30px; border: 0; background: none; color: #397ec1; font-size: 11px; }.safari-tabs-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 10px; padding: 8px 13px 24px; background: #e8ebef; }.safari-tab-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #d7dce2; border-radius: 12px; background: white; box-shadow: 0 3px 9px #26313d12; }.safari-tab-card.active { outline: 2px solid #4d91cf; }.safari-tab-open { display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }.safari-tab-preview { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 100%; aspect-ratio: 1.23; overflow: hidden; background: linear-gradient(145deg,#fff,var(--site-accent)); color: #47515d; }.safari-tab-preview img { width: 100%; height: 100%; object-fit: cover; }.safari-tab-preview b { font-size: 19px; }.safari-tab-preview small { max-width: 90%; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.safari-tab-title { display: block; overflow: hidden; padding: 8px 8px 9px; color: #313842; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.safari-tab-close { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #303640b8; color: white; font-size: 15px; }.safari-new-tab-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 94px; border: 1px dashed #aeb7c1; border-radius: 12px; background: #ffffff65; color: #64717f; font-size: 21px; }.safari-new-tab-card span { font-size: 8px; }.safari-bookmarks { padding-top: 12px; }.safari-section-label { margin: 10px 0; color: #7f8790; font: 8px var(--ios-font); letter-spacing: .6px; }.safari-bookmark-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #e8ebee; background: none; color: #28313a; text-align: left; }.safari-bookmark-row > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }.safari-bookmark-row b { font-size: 10px; }.safari-bookmark-row small { color: #808992; font-size: 8px; }.safari-bookmark-row i { color: #a6adb5; font-size: 16px; font-style: normal; }.safari-loading, .safari-unknown { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 10px 14px; background: #f5f6f8; }.safari-loading-indicator { height: 2px; margin-top: -7px; overflow: hidden; }.safari-loading-indicator i { display: block; width: 42%; height: 100%; background: #448ccc; animation: safari-load .34s ease-out forwards; }.safari-loading p { margin: auto; color: #8d949c; font-size: 9px; }.safari-unknown > div { margin: auto 8px; color: #404751; text-align: center; }.safari-unknown b { font-size: 14px; }.safari-unknown p { color: #828a93; font-size: 9px; line-height: 1.5; }.safari-unknown button { padding: 8px 13px; border: 0; border-radius: 18px; background: #e6eef7; color: #3179bd; font-size: 9px; }
.safari-tab-edit { display: flex; flex-direction: column; gap: 13px; padding: 17px 16px; }.safari-tab-edit > label { display: grid; gap: 6px; color: #6e7780; font-size: 9px; }.safari-tab-edit input:not([type="checkbox"]), .safari-tab-edit select { width: 100%; padding: 10px; border: 1px solid #dfe3e8; border-radius: 9px; background: white; color: #27313b; font-size: 10px; }.safari-private-option { display: flex !important; grid-template-columns: 1fr auto; align-items: center; padding: 10px 0; border-bottom: 1px solid #e7eaed; }.safari-tab-edit-actions { display: flex; justify-content: space-between; margin-top: auto; }.safari-tab-edit-actions button { padding: 8px 14px; border: 0; border-radius: 18px; background: #eaf1f7; color: #327bb8; font-size: 9px; }
.safari-tab-open { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.safari-tab-menu-backdrop { position: absolute; z-index: 30; inset: 0; display: flex; align-items: flex-end; padding: 10px; background: #0c172180; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: safari-menu-fade .18s ease-out; }
.safari-tab-menu { display: grid; width: 100%; padding: 10px 10px 8px; border-radius: 15px; background: #fbfcfefa; box-shadow: 0 12px 32px #0f1a2433; animation: safari-menu-up .22s cubic-bezier(.2,.85,.25,1); }
.safari-tab-menu-title { padding: 2px 8px 8px; overflow: hidden; color: #7d858e; font-size: 8px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.safari-tab-menu button { padding: 11px 8px; border: 0; border-top: 1px solid #e6eaee; background: none; color: #2e79be; font-size: 10px; text-align: center; }
.safari-tab-menu button:active { background: #eef3f8; }
.safari-tab-menu-cancel { font-weight: 700; }
.safari-history-group-label { margin: 10px 0 2px; color: #6f7780; font-size: 9px; font-weight: 700; }
.safari-history-groups .safari-history-group-label:first-child { margin-top: 2px; }
@keyframes safari-menu-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes safari-menu-up { from { transform: translateY(18px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes safari-load { from { width: 2%; } to { width: 100%; } }
.safari-share-sheet { display: flex; flex-direction: column; align-items: center; padding: 20px 18px; }.safari-share-preview { display: grid; justify-items: center; gap: 5px; width: 100%; padding: 15px; border-radius: 12px; background: #fff; color: #333b44; box-shadow: 0 2px 9px #26313d10; }.safari-share-preview > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #edf3f8; color: #4987bc; font-size: 21px; }.safari-share-preview b { font-size: 10px; }.safari-share-preview small { color: #878e96; font-size: 8px; }.safari-share-sheet form { display: flex; gap: 7px; width: 100%; margin: 15px 0; }.safari-share-sheet input { flex: 1; min-width: 0; padding: 9px; border: 1px solid #e0e4e8; border-radius: 8px; background: #fff; color: #545e69; font-size: 8px; }.safari-share-sheet form button, .safari-share-sheet > button { padding: 8px 12px; border: 0; border-radius: 8px; background: #e8f1fa; color: #3179bd; font-size: 9px; }.safari-share-sheet > button { width: 100%; text-align: left; }
.safari-webpage, .safari-unknown { touch-action: pan-y; }
.safari-webpage { position: relative; }
.safari-webpage.safari-slide-back, .safari-unknown.safari-slide-back, .safari-start.safari-slide-back, .safari-search-page.safari-slide-back { animation: safari-slide-back .26s cubic-bezier(.2,.85,.25,1) both; }
.safari-webpage.safari-slide-forward, .safari-unknown.safari-slide-forward, .safari-start.safari-slide-forward, .safari-search-page.safari-slide-forward { animation: safari-slide-forward .26s cubic-bezier(.2,.85,.25,1) both; }
@keyframes safari-slide-back { from { transform: translateX(-22%); opacity: .45; } to { transform: none; opacity: 1; } }
@keyframes safari-slide-forward { from { transform: translateX(22%); opacity: .45; } to { transform: none; opacity: 1; } }
.safari-page-scroll { position: relative; overscroll-behavior-y: contain; }
.safari-refresh-indicator { position: absolute; top: 0; left: 0; right: 0; display: grid; justify-items: center; opacity: 0; pointer-events: none; z-index: 2; }
.safari-refresh-indicator i { display: block; width: 15px; height: 15px; margin-top: 12px; border: 2px solid #ccd6df; border-top-color: #3b8fd1; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #1f2b3714; transition: transform .15s ease; }
.safari-refresh-indicator.ready i { transform: rotate(180deg); border-top-color: #2b7fc6; }
.safari-refresh-indicator.spinning i { animation: safari-spin .7s linear infinite; }
@keyframes safari-spin { to { transform: rotate(360deg); } }
.safari-web-head { min-height: 46px; transition: box-shadow .2s ease; }
.safari-web-head.collapsed { box-shadow: 0 4px 12px #1f2b370f; }
.safari-address.compact { transition: height .2s ease, background .2s ease; }
.safari-web-head.collapsed .safari-address.compact { height: 24px; background: #f4f6f8; }
.safari-progress-bar { position: absolute; z-index: 9; top: 47px; left: 0; right: 0; height: 2px; overflow: hidden; pointer-events: none; }
.safari-progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg,#3b8fd1,#6db8ef); animation: safari-progress .34s ease-out forwards; }
@keyframes safari-progress { 0% { width: 6%; } 55% { width: 72%; } 100% { width: 100%; } }
.safari-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 7px; }.safari-section-head h2 { margin: 0; }.safari-section-head button { padding: 0; border: 0; background: none; color: #3d84c4; font-size: 9px; }
.safari-history-section { margin-bottom: 16px; }.safari-history-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 33px; padding: 5px 1px; border: 0; border-bottom: 1px solid #e3e7eb80; background: none; color: #2f3943; text-align: left; }.safari-history-row:last-child { border-bottom: 0; }.safari-history-icon { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: #e9edf2; color: #7a838d; font-size: 11px; }.safari-history-row b { flex: 1; min-width: 0; overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.safari-history-row small { color: #89919a; font-size: 8px; white-space: nowrap; }.safari-history-list { display: grid; }.safari-clear-history { display: block; margin: 7px 0 5px; padding: 0; border: 0; background: none; color: #4b88c2; font-size: 9px; }.safari-history-empty { margin: 3px 0 11px; color: #8c939b; font-size: 9px; }
.safari-start.private .safari-history-row { color: #f1eef5; border-bottom-color: #ffffff1f; }.safari-start.private .safari-history-icon { background: #ffffff1f; color: #ded8e7; }.safari-start.private .safari-history-row small { color: #c7c1d1; }.safari-start.private .safari-section-head button { color: #d9e7f5; }
.safari-suggestions { position: absolute; left: 8px; right: 8px; bottom: calc(var(--keyboard-height, 0px) + 10px); z-index: 12; max-height: 60%; overflow-y: auto; padding: 9px 11px 11px; border: 1px solid #d8dde3; border-radius: 15px; background: #fbfcfef2; box-shadow: 0 18px 40px #1b283314, 0 2px 8px #1b28330f; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); scrollbar-width: none; animation: safari-suggestions-in .18s ease-out; }.safari-suggestions::-webkit-scrollbar { display: none; }
@keyframes safari-suggestions-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.app-view.safari-searching::before { content: ''; position: absolute; inset: 47px 0 0; z-index: 11; background: #0c16200a; pointer-events: none; }
.safari-suggestion-label { margin: 8px 2px 2px; color: #8a929b; font: 7px var(--ios-font); letter-spacing: .7px; }.safari-suggestion-label:first-child { margin-top: 2px; }.safari-suggestion-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 37px; padding: 5px 3px; border: 0; border-radius: 8px; background: none; color: #2b353f; text-align: left; }.safari-suggestion-row:active { background: #eef2f6; }.safari-suggestion-row.primary { margin-bottom: 3px; border-bottom: 1px solid #e6eaee; border-radius: 8px 8px 0 0; }.safari-suggestion-icon { display: grid; place-items: center; width: 21px; height: 21px; flex: none; overflow: hidden; border-radius: 6px; background: #e9eef3; color: #7d8791; font-size: 11px; }.safari-suggestion-icon.site { background: #dde8f2; color: #42719d; font-size: 9px; font-weight: 700; }.safari-suggestion-icon img { width: 100%; height: 100%; object-fit: cover; }.safari-suggestion-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }.safari-suggestion-copy b { overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.safari-suggestion-copy small { overflow: hidden; color: #8a929b; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }.safari-suggestion-row > small { color: #8a929b; font-size: 8px; white-space: nowrap; }.safari-suggestion-row > i { color: #9aa2ab; font-size: 10px; font-style: normal; }.safari-suggestion-empty { margin: 4px 2px; color: #8a929b; font-size: 9px; }
.safari-address-cancel { display: none; padding: 0; border: 0; background: none; color: #3b82c4; font-size: 9px; white-space: nowrap; }.app-view.safari-searching .safari-address-cancel { display: block; }.app-view.safari-searching .safari-address [data-action="safari-reload"] { display: none; }
.safari-search-page { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 9px 14px 0; background: #f6f7f9; }.safari-search-page .safari-address { width: 100%; margin: 2px 0 12px; }.safari-search-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 20px; scrollbar-width: none; }.safari-search-scroll::-webkit-scrollbar { display: none; }.safari-search-title { margin: 2px 0 4px; overflow-wrap: anywhere; color: #222b34; font: 600 19px/1.2 'Playfair Display',Georgia,serif; }.safari-search-count { margin: 0 0 12px; color: #8a9199; font-size: 8px; }.safari-search-results { display: grid; gap: 8px; }.safari-search-result { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px; border: 1px solid #e4e8ec; border-radius: 11px; background: #fff; color: #29323b; text-align: left; box-shadow: 0 1px 3px #1f2b3708; }.safari-search-result-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; overflow: hidden; border-radius: 9px; background: var(--site-accent); color: #fff; font-size: 14px; }.safari-search-result-icon img { width: 100%; height: 100%; object-fit: cover; }.safari-search-result > span:nth-child(2) { display: grid; flex: 1; gap: 2px; min-width: 0; }.safari-search-result b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.safari-search-result small { overflow: hidden; color: #7f8892; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }.safari-search-result em { display: -webkit-box; overflow: hidden; color: #8a929b; font-size: 8px; font-style: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.safari-search-result > i { color: #a5adb5; font-size: 14px; font-style: normal; }.safari-search-empty { margin: 34px 10px; color: #3a444e; text-align: center; }.safari-search-empty b { font-size: 12px; }.safari-search-empty p { margin: 6px 0 12px; color: #858e97; font-size: 9px; line-height: 1.5; }.safari-search-empty button { padding: 7px 12px; border: 0; border-radius: 15px; background: #e7eff7; color: #367cba; font-size: 9px; }
@media (max-width: 850px) {
  .builder-shell { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
  .editor-header { padding-right: 19px; padding-left: 19px; }.editor-scroll { padding-right: 19px; padding-left: 19px; }.editor-tabs { margin-right: -19px; margin-left: -19px; padding-right: 19px; padding-left: 19px; }
  .preview-mat { padding-right: 12px; padding-left: 12px; }.phone-frame { width: min(320px, 100%); }
}
@media (max-width: 680px) {
  .builder-shell { display: flex; flex-direction: column; }
  .preview-panel { order: 0; grid-template-rows: 42px minmax(0,1fr) 0; min-height: 670px; height: min(78svh, 780px); }
  .preview-toolbar { padding: 0 16px; }.preview-mat { padding: 5px 12px 11px; }.phone-frame { width: min(100%, 340px, calc(100cqh * .45995)); height: auto; max-height: 100%; }
  .preview-foot { display: none; }
  .editor-panel { order: 1; min-height: auto; max-height: none; overflow: visible; border-right: 0; }
  .editor-scroll { overflow: visible; padding: 0 22px 28px; }.editor-header { padding: 0 22px; }.editor-tabs { margin-right: -22px; margin-left: -22px; padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 380px) { .preview-panel { min-height: 610px; height: 75svh; }.home-view { padding-right: 14px; padding-left: 14px; }.home-grid { gap: 15px 4px; }.home-widget-row { gap: 15px 4px; }.home-widget-photo { width: 46px; height: 46px; }.app-icon { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Interactive LINE keyboard and call simulator */
.line-section-title { display: flex; align-items: center; justify-content: space-between; }
.line-add-chat { width: 25px; height: 25px; border: 0; border-radius: 50%; background: #e7f6e9; color: #079b43; font-size: 18px; cursor: pointer; }
.line-details-view { text-align: center; }.line-details-view > img { width: 76px; height: 76px; margin: 24px auto 8px; border-radius: 50%; object-fit: cover; }.line-details-view h2 { margin: 0; font-size: 15px; }.line-details-view > p { margin: 5px 0 20px; color: #81867e; font-size: 10px; }.line-details-view .settings-group { text-align: left; }.line-details-view > .secondary-button { width: 100%; margin: 12px 0; }.line-details-view > .remove-button { display: block; margin: 12px auto; }
.line-composer { flex: none; }
.ios-keyboard { position: absolute; z-index: 25; right: 0; bottom: 0; left: 0; padding: 6px 3px max(10px, env(safe-area-inset-bottom)); background: linear-gradient(180deg,#d6d9de,#cfd3d9); box-shadow: 0 -1px 0 #00000012; font-family: var(--ios-font); user-select: none; -webkit-user-select: none; touch-action: manipulation; animation: ios-keyboard-in .26s cubic-bezier(.22,.9,.28,1) both; }
.ios-keyboard.keyboard-no-anim { animation: none; }
@keyframes ios-keyboard-in { from { transform: translateY(102%); } to { transform: translateY(0); } }
.ios-keyboard-home { position: absolute; bottom: 3px; left: 50%; width: 104px; height: 4px; transform: translateX(-50%); border-radius: 3px; background: #111; opacity: .7; }
.phone-screen.keyboard-open .app-view { padding-bottom: var(--keyboard-height, 206px); transition: padding-bottom .22s cubic-bezier(.25,.85,.3,1); }
.phone-screen.keyboard-open .line-tabbar, .phone-screen.keyboard-open .ig-tabbar, .phone-screen.keyboard-open .youtube-tabs, .phone-screen.keyboard-open .phone-tabbar, .phone-screen.keyboard-open .safari-toolbar, .phone-screen.keyboard-open .calendar-toolbar { display: none; }
.keyboard-row { display: flex; align-items: stretch; justify-content: center; gap: 5px; margin: 0 0 7px; padding: 0 1px; }
.keyboard-row:last-child { margin-bottom: 0; }
.keyboard-row-2 { padding: 0 16px; }
.keyboard-row-bottom { gap: 6px; }
.keyboard-row button { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; height: 42px; padding: 0 1px; border: 0; border-radius: 5.5px; background: #fff; color: #101010; box-shadow: 0 1px 0 #0000004d; font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .06s linear, transform .06s ease; }
.keyboard-row button:active { background: #c3c8cf; transform: scale(.97); }
.keyboard-row button.keyboard-special { flex: 1.35 1 0; background: #adb2ba; box-shadow: 0 1px 0 #00000024; font-size: 12px; }
.keyboard-row button.keyboard-special:active { background: #a0a6ae; }
.keyboard-row button.keyboard-shift svg { width: 19px; height: 19px; }
.keyboard-row button.keyboard-delete svg { width: 22px; height: 22px; }
.keyboard-row button.keyboard-shift.on { background: #fff; color: #101010; }
.keyboard-caps-dot { position: absolute; bottom: 6px; left: 50%; width: 10px; height: 2px; transform: translateX(-50%); border-radius: 1px; background: currentColor; }
.keyboard-row button.keyboard-thai-key { font-size: 15px; font-weight: 500; }
.keyboard-row button.keyboard-mark-key { font-size: 14px; }
.keyboard-row button.keyboard-emoji-key { font-size: 19px; }
.keyboard-row .keyboard-space { flex: 3.6 1 0; background: #fff; font-size: 9px; letter-spacing: .1px; }
.keyboard-row .keyboard-return { flex: 1.6 1 0; font-size: 11px; }
.keyboard-row .keyboard-globe, .keyboard-row .keyboard-emoji { flex: 1 1 0; font-size: 16px; }
.keyboard-row .keyboard-mode-key { flex: 1.3 1 0; font-size: 11px; }
.keyboard-row .keyboard-mod { flex: 1.25 1 0; font-size: 10px; }
.keyboard-row .keyboard-emoji + .keyboard-space { flex: 3.4 1 0; }
.keyboard-row button .thai-mark-img { display: block; pointer-events: none; }
.thai-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: .8em; height: 1.2em; }
.thai-mark-base { visibility: hidden; }
.thai-mark-ink { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.thai-mark.above .thai-mark-ink { clip-path: inset(0 0 56% 0); }
.thai-mark.below .thai-mark-ink { clip-path: inset(50% 0 0 0); }
.simulated-call-screen { position: absolute; inset: 0; display: block; padding: 0; overflow: hidden; color: white; text-align: left; }
.media-video-thumb { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #191b1a; }.media-video-thumb video { width: 100%; height: 100%; object-fit: cover; }.media-video-thumb i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: white; font-size: 12px; text-shadow: 0 1px 5px #000; font-style: normal; }.photo-full-view > video { width: min(100%, 300px); max-height: 78%; object-fit: contain; }.photo-edit-row > .media-video-thumb { width: 65px; height: 65px; flex: none; border-radius: 5px; }.media-library-row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px; border: 1px solid #e8e6dc; border-radius: 8px; }.media-library-row > .media-video-thumb, .media-library-row > img { width: 43px; height: 43px; flex: none; border-radius: 5px; object-fit: cover; }.media-library-row > div { display: grid; flex: 1; min-width: 0; gap: 3px; }.media-library-row > div b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.media-library-row > div small { color: #858a81; font-size: 8px; }.media-library-row label { position: relative; cursor: pointer; }.keyboard-row .keyboard-emoji { max-width: 34px; font-size: 14px; }
.line-message.incoming { position: relative; padding-left: 24px; }.line-message-avatar { position: absolute; top: 2px; left: 0; width: 19px; height: 19px; border-radius: 50%; object-fit: cover; }.line-message.incoming > small { margin-left: 2px; }
.generic-notification-icon { overflow: hidden; padding: 0 2px; background: linear-gradient(145deg,#f3c5a2,#bd6e56); color: #fff; font-size: 6px; font-weight: 700; text-align: center; }
.notification-banner { position: absolute; z-index: 30; top: 42px; right: 9px; left: 9px; display: flex; align-items: center; gap: 5px; min-height: 56px; padding: 5px 6px 5px 9px; border: 1px solid #ffffffa6; border-radius: 13px; background: #f5f6f3ed; box-shadow: 0 5px 18px #0004; color: #272b27; backdrop-filter: blur(18px); font-family: var(--ios-font); touch-action: pan-y; will-change: transform, opacity; }
.notification-banner-open { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 4px 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-banner .notification-copy span { color: #555b53; }
.notification-banner .notification-age { color: #858a81; }
.notification-banner-close { display: grid; place-items: center; width: 19px; height: 19px; flex: none; border: 0; border-radius: 50%; background: #dfe2dc; color: #5f655d; cursor: pointer; }
.line-notification-icon { background: linear-gradient(145deg,#27d76c,#05ad4e); color: #fff; font-size: 7px; font-weight: 700; }
.notification-avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; background: #dfe3db; }
.lock-notification-stack { position: absolute; z-index: 2; bottom: 96px; left: 50%; transform: translateX(-50%); display: grid; gap: 5px; width: min(290px,calc(100% - 40px)); margin-top: 0; }
.lock-notification-item { position: relative; }
.lock-notification-stack .lock-notification { width: 100%; margin: 0; padding-right: 30px; }
.lock-notification-item .notification-dismiss { position: absolute; top: 8px; right: 7px; }
.line-message-actions { display: flex; gap: 5px; align-items: center; margin: 0 4px; }
.line-message-actions button { min-width: 22px; padding: 3px; border: 0; border-radius: 6px; background: #ffffffd9; color: #565d54; font-size: 8px; cursor: pointer; }
.line-message.outgoing .line-message-actions { order: 1; }
.photo-remove-button { margin: 8px 0; padding: 8px 10px; border: 0; border-radius: 7px; background: #bd514c; color: #fff; font-size: 10px; }
.photo-full-view { gap: 6px; }
.notification-dismiss { align-self: flex-start; display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #ffffff36; color: #fff; font-style: normal; }
.notification-center-view { display: flex; flex-direction: column; padding-top: 48px; background: #eef0ed; color: #252a25; }
.notification-center-header { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 11px; border-bottom: 1px solid #dfe2dd; background: #f8f9f7; }
.notification-center-header h2 { margin: 0; font-size: 11px; }
.notification-center-header button { padding: 5px 0; border: 0; background: none; color: #568b60; font-size: 8px; }
.notification-center-list { flex: 1; overflow-y: auto; padding: 10px; }
.notification-center-group { margin-bottom: 12px; }
.notification-center-group-head { display: flex; align-items: center; gap: 6px; padding: 2px 4px 6px; color: #3c423c; }
.notification-center-group-head .notification-app-icon { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.notification-center-group-head b { overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.notification-center-group-head > span:last-child { flex: none; margin-left: auto; color: #8a9086; font-size: 8px; }
.notification-center-item.read { background: #fafbf9; }
.notification-center-item { position: relative; display: flex; align-items: flex-start; margin-bottom: 8px; padding: 8px 27px 8px 8px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px #10151012; }
.notification-center-open { display: flex; align-items: center; gap: 7px; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.notification-center-open .notification-copy { display: grid; gap: 2px; }
.notification-center-open .notification-copy b { font-size: 8px; }
.notification-center-open .notification-copy span { color: #50564f; font-size: 8px; white-space: normal; }
.notification-center-open .notification-copy small { color: #868c83; font-size: 7px; }
.notification-center-open > i { color: #9a9f97; font-style: normal; }
.notification-center-dismiss { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 50%; background: #f0f1ef; color: #6d736a; }
.notification-center-empty { padding: 25px 10px; color: #767c73; font-size: 10px; text-align: center; }
.notification-banner { animation: notification-arrive var(--banner-enter, 320ms) cubic-bezier(.2,.8,.2,1) both; }
@keyframes notification-arrive { from { opacity: 0; transform: translateX(-108%); } to { opacity: 1; transform: translateX(0); } }
.notification-banner.banner-exit { animation: notification-exit var(--banner-exit, 240ms) ease-in both; }
@keyframes notification-exit { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-108%); } }
.notification-banner[data-banner-direction="right"] { animation-name: notification-arrive-right; }
.notification-banner[data-banner-direction="right"].banner-exit { animation-name: notification-exit-right; }
@keyframes notification-arrive-right { from { opacity: 0; transform: translateX(108%); } to { opacity: 1; transform: translateX(0); } }
@keyframes notification-exit-right { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(108%); } }
.notification-banner.swiping, .notification-center-item.swiping { cursor: grabbing; }
.notification-banner .notification-copy { display: grid; gap: 1px; min-width: 0; }
.notification-banner-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.notification-banner .notification-copy .notification-banner-app { overflow: hidden; color: #6a7168; font-size: 7.5px; font-weight: 600; letter-spacing: .2px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.notification-banner .notification-copy b { overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.notification-banner-body { display: -webkit-box; overflow: hidden; color: #555b53; font-size: 8.5px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.notification-logo { position: relative; display: flex; flex: none; width: 32px; height: 32px; }
.notification-logo .notification-logo-face { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.notification-logo-badge { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #ffffffc4; border-radius: 5px; overflow: hidden; }
.notification-logo-badge .notification-app-icon { width: 13px; height: 13px; border-radius: 4px; font-size: 7px; box-shadow: none; }
.notification-banner-meta b, .lock-notification-meta b { min-width: 0; flex: 1; }
.notification-banner-attachment { width: 34px; height: 34px; flex: none; align-self: center; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 7px #00000026; }
.notification-center-item { transition: transform .24s ease-out, opacity .24s ease-out; touch-action: pan-y; }
.notification-shade { position: absolute; z-index: 24; top: 0; right: 0; left: 0; overflow: hidden; border-radius: 0 0 26px 26px; background: linear-gradient(180deg, #101713f2, #101713c2 64%, #101713e6); box-shadow: 0 12px 34px #0007; backdrop-filter: blur(18px); pointer-events: none; transition: opacity .1s linear; }
.notification-shade::after { content: ''; position: absolute; bottom: 14px; left: 50%; width: 64px; height: 3px; transform: translateX(-50%); border-radius: 3px; background: #ffffff2e; }

@media (max-width: 700px) {
  .line-message-actions button { min-width: 25px; min-height: 25px; }
}

/* iPhone-style simulated in-call controls */
.line-message-actions { display: none !important; }
.ios-call-screen { position: absolute; inset: 0; display: block; padding: 0; overflow: hidden; background: linear-gradient(180deg, #00000030 0, #0000003d 44%, #0000007a 100%); color: white; text-align: left; }
.phone-screen:has(.ios-call-screen) .phone-status { color: #fff; }
.phone-screen:has(.ios-call-screen) .phone-wallpaper { filter: blur(22px) brightness(.55) saturate(1.08); transform: scale(1.18); }
.call-identity { position: absolute; top: 95px; right: 26px; left: 30px; display: flex; align-items: flex-start; gap: 11px; }
.call-avatar-wrap { display: grid; place-items: center; flex: none; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: #ffffff2b; }
.call-contact-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.call-identity-copy { min-width: 0; }
.call-status { margin: 0; overflow: hidden; color: #b7b7bd; font: 400 20px/1.15 var(--ios-font); letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.call-status time { font-variant-numeric: tabular-nums; }
.call-identity h2 { margin: 1px 0 0; overflow: hidden; color: white; font: 700 27px/1.12 var(--ios-font); letter-spacing: -.8px; text-overflow: ellipsis; white-space: nowrap; }
.call-subtitle-slot { position: absolute; top: 250px; right: 24px; left: 24px; pointer-events: none; }
.call-subtitle { max-height: 168px; overflow-y: auto; padding: 14px 16px; border-radius: 15px; background: #ffffff10; -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; scrollbar-width: thin; }
.call-subtitle.visible { opacity: 1; transform: translateY(0); }
.call-subtitle-speaker { display: block; margin: 0 0 4px; color: #ffffff9e; font: 600 12px/1.2 var(--ios-font); letter-spacing: -.1px; }
.call-subtitle-text { margin: 0; color: #ffffffea; font: 400 17px/1.5 var(--ios-font); overflow-wrap: anywhere; white-space: pre-wrap; }
.call-participants { position: absolute; top: 218px; right: 30px; left: 30px; margin: 0; color: #d6d6db; font: 400 11px/1.4 var(--ios-font); text-align: center; }
.call-controls-grid { position: absolute; right: 17px; left: 17px; bottom: 44px; display: flex; flex-direction: column; gap: 15px; }
.call-control-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-items: center; width: 100%; }
.call-control { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; min-width: 0; padding: 0; border: 0; background: none; color: white; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.call-control-glyph { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid #ffffff54; border-radius: 50%; background: #ffffff1a; box-shadow: 0 2px 12px #00000026; color: white; }
.call-control small { margin: 0; color: #f2f2f7; font: 400 11px/1.2 var(--ios-font); }
.call-control.active .call-control-glyph { border-color: transparent; background: #f7f5f2; color: #0a0a0a; }
.call-control.dimmed .call-control-glyph { border-color: #ffffff2e; color: #ffffff8f; }
.call-control.dimmed small { color: #ffffff8f; }
.call-end-control .call-control-glyph { border-color: #ff5f5a4d; background: #d10d0c; color: white; }
.call-end-glyph svg { transform: rotate(135deg); }
.incoming-call-actions { position: absolute; right: 40px; bottom: 96px; left: 40px; display: flex; align-items: flex-start; justify-content: space-between; }
.incoming-call-actions button.locked-nudge { animation: locked-call-nudge .3s ease-in-out; }
@keyframes locked-call-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.incoming-call-actions button { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; padding: 0; border: 0; background: none; color: white; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.incoming-call-actions button > span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: white; box-shadow: 0 2px 12px #00000033; }
.incoming-call-actions button small { color: #f2f2f7; font: 400 11px/1.2 var(--ios-font); }
.call-reject-button > span { background: #d10d0c; }
.call-answer-button > span { background: #30d158; }
.call-reject-button > span svg { transform: rotate(135deg); }
.call-sheet { position: absolute; right: 13px; bottom: 13px; left: 13px; display: flex; flex-direction: column; gap: 7px; max-height: 62%; overflow-y: auto; padding: 13px 12px 11px; border: 1px solid #ffffff1f; border-radius: 21px; background: #1c1c1ed6; -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6); box-shadow: 0 14px 38px #00000080; scrollbar-width: thin; }
.call-sheet h3 { margin: 0 0 3px; color: white; font: 600 15px/1.3 var(--ios-font); text-align: center; }
.call-sheet-row { display: flex; flex-direction: column; border-radius: 13px; background: #ffffff14; }
.call-sheet-row button { display: flex; align-items: center; justify-content: space-between; min-height: 41px; padding: 0 12px; border: 0; border-bottom: .5px solid #ffffff1f; background: none; color: white; font: 400 13px/1.3 var(--ios-font); text-align: left; cursor: pointer; }
.call-sheet-row button:first-child { border-top-left-radius: 13px; border-top-right-radius: 13px; }
.call-sheet-row button:last-child { border-bottom: 0; border-bottom-left-radius: 13px; border-bottom-right-radius: 13px; }
.call-sheet-button { min-height: 37px; margin-top: 4px; border: 0; border-radius: 13px; background: #ffffff1f; color: white; font: 600 13px/1.3 var(--ios-font); cursor: pointer; }
.call-sheet-note { margin: 0; padding: 6px 4px; border-bottom: .5px solid #ffffff14; color: #e9e9ee; font: 400 12px/1.45 var(--ios-font); overflow-wrap: anywhere; }
.call-sheet-note:last-of-type { border-bottom: 0; }
.call-sheet-person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 12px; background: none; color: white; font: 400 13px/1.3 var(--ios-font); text-align: left; cursor: pointer; }
.call-sheet-person > span { display: flex; flex-direction: column; min-width: 0; }
.call-sheet-person em { color: #b7b7bd; font: 400 10px/1.3 var(--ios-font); font-style: normal; }
.call-sheet-person img, .call-sheet-person .phone-avatar-blank { width: 32px; height: 32px; flex: none; border-radius: 50%; object-fit: cover; }
.call-sheet dl { display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px; margin: 6px 0 2px; text-align: left; }
.call-sheet dt { color: #b7b7bd; font: 400 11px/1.35 var(--ios-font); }
.call-sheet dd { margin: 0; color: white; font: 500 11px/1.35 var(--ios-font); overflow-wrap: anywhere; }
.call-keypad-sheet { align-items: center; padding: 14px 14px 12px; }
.call-dtmf-display { min-height: 30px; margin: 0 0 8px; color: white; font: 400 24px/1.2 var(--ios-font); letter-spacing: 1px; text-align: center; overflow-wrap: anywhere; }
.call-keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 26px; }
.call-keypad-grid button { display: grid; place-items: center; width: 56px; height: 56px; justify-self: center; border: 0; border-radius: 50%; background: #ffffff26; color: white; font: 400 27px/1 var(--ios-font); cursor: pointer; }
.call-keypad-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.call-keypad-actions button { display: grid; place-items: center; min-width: 46px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: #ffffff1f; color: white; font: 600 12px/1 var(--ios-font); cursor: pointer; }
.facetime-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.facetime-remote, .facetime-local { position: relative; min-width: 0; height: 104px; overflow: hidden; border-radius: 14px; background: #26262b; }
.facetime-remote img, .facetime-local img { width: 100%; height: 100%; object-fit: cover; }
.facetime-remote span, .facetime-local span { position: absolute; right: 5px; bottom: 5px; left: 5px; overflow: hidden; color: white; font: 400 8px/1.2 var(--ios-font); text-overflow: ellipsis; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.facetime-local.camera-back img { filter: saturate(.55) brightness(.8); transform: scaleX(-1); }
.facetime-panel > p { grid-column: 1 / -1; margin: 0; color: #c9c9d0; font: 400 9px/1.4 var(--ios-font); text-align: center; }
.facetime-unavailable { align-items: center; text-align: center; }
.facetime-unavailable p { margin: 0 0 4px; color: #d6d6db; font: 400 11px/1.45 var(--ios-font); }
.call-panel-open .call-identity { top: 62px; }
.call-panel-open .call-avatar-wrap, .call-panel-open .call-contact-avatar { width: 34px; height: 34px; }
.call-panel-open .call-status { font-size: 13px; }
.call-panel-open .call-identity h2 { font-size: 17px; letter-spacing: -.4px; }
.call-panel-open .call-subtitle-slot { top: 150px; right: 28px; left: 28px; }
.call-panel-open .call-subtitle { max-height: 118px; padding: 12px 14px; border-radius: 14px; }
.call-panel-open .call-subtitle-speaker { font-size: 11px; }
.call-panel-open .call-subtitle-text { font-size: 15px; line-height: 1.45; }
.call-panel-open .call-participants { top: 152px; }
.call-footnote { position: absolute; right: 24px; bottom: 14px; left: 24px; margin: 0; color: #ffffff52; font: 600 7px/1.4 var(--ios-font); letter-spacing: .6px; text-align: center; }
.photo-detail-header { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 13px; border-bottom: .5px solid #00000014; background: #ffffffd9; -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); }
.photo-detail-header button { padding: 6px 0; border: 0; background: none; color: #007aff; font-size: 10px; cursor: pointer; }
.photo-detail-header > span:first-of-type { position: absolute; left: 50%; transform: translateX(-50%); color: #111114; font-size: 15px; font-weight: 600; }
.photo-year-filter { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 2px; padding: 5px 9px; border-radius: 9px; background: #efeff3; color: #6c6c70; font-size: 9px; }
.photo-year-filter select { border: 0; outline: 0; background: transparent; color: #007aff; font-size: 9px; font-weight: 600; }
.photo-year-filter select option { color: #1c1c1e; }
.phone-screen[data-app="photos"] .app-view .app-body { padding-bottom: 80px; }
.phone-screen[data-app="photos"] .app-subtitle { font: 9px var(--ios-font); letter-spacing: 0; text-transform: none; }
.album-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; border: 0; border-bottom: .5px solid #00000010; background: none; color: #1c1c1e; text-align: left; cursor: pointer; }
.album-row > img, .album-row > .media-video-thumb { width: 60px; height: 60px; flex: none; border-radius: 7px; object-fit: cover; overflow: hidden; }
.album-row > span:not(.media-video-thumb) { display: grid; flex: 1; min-width: 0; gap: 3px; }
.album-row b { font-size: 11px; font-weight: 600; }
.album-row small { color: #8a8a8e; font-size: 9px; }
.album-row i { color: #c3c3c7; font-size: 16px; font-style: normal; }
.photos-tabbar { position: absolute; z-index: 4; right: 10px; bottom: 17px; left: 10px; display: flex; padding: 5px 6px; border-radius: 24px; background: #f8f8f8d9; -webkit-backdrop-filter: blur(26px) saturate(1.9); backdrop-filter: blur(26px) saturate(1.9); box-shadow: inset 0 0 0 .5px #00000012, 0 10px 28px #0000001a; }
.photos-tabbar button { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; border: 0; border-radius: 19px; background: transparent; color: #8b8b90; font-size: 9px; font-weight: 500; cursor: pointer; }
.photos-tabbar button:active { background: #00000008; }
.photos-tabbar button.active { color: #007aff; }
.photos-tabbar .photos-tab-icon { display: block; width: 21px; height: 21px; }
.photos-tabbar svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.photos-tabbar button.active svg { stroke-width: 1.95; }
.photo-year-group { margin-bottom: 12px; }
.photo-year-group h3 { margin: 11px 0 6px; color: #555b54; font-size: 11px; }
.photo-caption { width: 100%; padding: 8px 14px 0; color: #303630; font-size: 11px; text-align: left; }
.photo-detail-navigation { display: flex; justify-content: space-between; width: 100%; padding: 12px 15px; }
.photo-detail-navigation button { padding: 7px 10px; border: 1px solid #e3e5df; border-radius: 15px; background: #f7f8f5; color: #536f50; font-size: 9px; }
.photo-detail-navigation button:disabled { opacity: .45; }
.photo-metadata-card { padding-bottom: 2px; }
.dialogue-editor-row { margin: 8px 0; padding: 8px 9px 0; border: 1px solid #e8e6dc; border-radius: 8px; background: #fbfaf6; }

.youtube-link-form { flex: none; margin: 8px 11px; padding: 11px; border: 1px solid #e5e5e0; border-radius: 10px; background: #f7f7f4; }
.youtube-link-form > label { display: block; margin-bottom: 6px; color: #353a35; font-size: 9px; font-weight: 700; }
.youtube-link-form > input { width: 100%; min-width: 0; padding: 9px; border: 1px solid #dedfd9; border-radius: 7px; background: #fff; font-size: 10px; }
.youtube-link-form > small { display: block; margin-top: 5px; color: #80857d; font-size: 8px; }
.youtube-link-error { margin: 7px 0 0; color: #bd3535; font-size: 9px; }
.youtube-link-form > div { display: flex; justify-content: flex-end; gap: 7px; margin-top: 8px; }
.youtube-link-form > div button { min-height: 29px; padding: 0 10px; border: 0; border-radius: 7px; background: #e7e8e4; color: #30352f; font-size: 9px; }
.youtube-link-form > div button[type="submit"] { background: #e51d2a; color: #fff; }
.youtube-link-card { margin: 8px 0 13px; overflow: hidden; border: 1px solid #e6e6e1; border-radius: 9px; background: #fff; }
.youtube-link-main { display: block; color: inherit; text-decoration: none; }
.youtube-link-thumb { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg,#252525,#484848); color: white; }
.youtube-link-thumb > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.youtube-link-thumb > span { display: grid; place-items: center; gap: 4px; width: 100%; height: 100%; font-size: 24px; }
.youtube-link-thumb > span[hidden] { display: none; }
.youtube-link-thumb > span small { font-size: 9px; }
.youtube-link-thumb > i { position: absolute; right: 6px; bottom: 6px; padding: 3px 5px; border-radius: 4px; background: #000c; color: #fff; font: 7px var(--ios-font); font-style: normal; }
.youtube-link-card .youtube-video-info { padding: 8px 10px; }
.youtube-link-card .youtube-video-info > span { overflow: hidden; }
.youtube-link-card .youtube-video-info b { display: block; overflow-wrap: anywhere; }
.youtube-link-card .youtube-video-info small { display: block; overflow: hidden; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }
.youtube-link-card .youtube-video-info em { flex: none; }
.youtube-link-actions { display: flex; gap: 6px; padding: 0 9px 9px; }
.youtube-link-actions button { min-height: 27px; padding: 0 8px; border: 1px solid #e3e4de; border-radius: 14px; background: #f7f7f4; color: #343933; font-size: 8px; }
.youtube-link-actions button:last-child { margin-left: auto; color: #b43c3c; }
.youtube-embed-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #111; }
.youtube-embed-note { display: block; padding: 6px 9px; color: #7b8079; font-size: 8px; }
.youtube-detail-header { display: flex; align-items: center; gap: 8px; flex: none; min-height: 39px; padding: 0 10px; border-bottom: 1px solid #e8e8e4; }.youtube-detail-header button { width: 25px; border: 0; background: none; color: #3d785a; font-size: 22px; }.youtube-detail-header b { flex: 1; font-size: 12px; }

/* iOS-style notification grouping and home badges */
.home-icon-wrap { position: relative; display: inline-grid; place-items: center; }
.notification-app-icon { width: 32px; height: 32px; border-radius: 9px; color: #fff; font-size: 15px; box-shadow: none; flex: none; }
.notification-app-icon.photos i { width: 17px; height: 17px; }
.notification-app-icon.calendar { background: #fff; font-size: 8px; }
.notification-app-icon .calendar-icon-face b { margin-top: 0; font-size: 5px; }
.notification-app-icon .calendar-icon-face i { margin-top: 0; font-size: 12px; letter-spacing: -.3px; }
.notification-center-group-head .notification-app-icon .calendar-icon-face b { font-size: 3.5px; }
.notification-center-group-head .notification-app-icon .calendar-icon-face i { font-size: 8px; }
.app-icon.generic { background: linear-gradient(145deg,#98a0a9,#646c76); color: #fff; }
.lock-notification-group { align-items: flex-start; gap: 9px; margin: 0; padding: 9px 31px 9px 10px; }
.lock-notification-copy { display: grid; flex: 1; gap: 2px; min-width: 0; text-align: left; }
.lock-notification-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lock-notification-app { overflow: hidden; color: #d7dbd2; font-size: 8px; letter-spacing: .2px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lock-notification-meta .notification-age { color: #c6ccc2; font-size: 8px; white-space: nowrap; }
.lock-notification-copy b { display: block; overflow: hidden; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.lock-notification-body { display: -webkit-box; overflow: hidden; color: #e1e3dc; font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.lock-notification-count { color: #c9cec4; font-size: 8px; }
.lock-notifications-more { margin: 1px 0 0; color: #d7dbd2; font-size: 8px; text-align: center; text-shadow: 0 1px 8px #0008; }
.unread-badge { white-space: nowrap; }

/* Instagram — icon buttons, tab bar, reels, profile */
.ig-icon { display: block; flex: none; }
.post-actions button { display: grid; place-items: center; color: #1c1c1c; }
.post-actions button.liked { color: #ed4956; }
.post-actions .save-post { color: #1c1c1c; }
.post-more-icon { display: grid; place-items: center; color: #262626; }
.ig-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ig-topbar h2 { flex: 1; text-align: center; }
.ig-back-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; color: #1c1c1c; cursor: pointer; }
.ig-home-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px 0 16px; border-bottom: 1px solid #ecece7; background: #fff; }
.ig-wordmark { color: #111; font-family: 'Snell Roundhand', 'Segoe Script', 'Brush Script MT', cursive; font-size: 23px; font-weight: 600; letter-spacing: .2px; }
.ig-topbar-actions { display: flex; align-items: center; gap: 16px; }
.ig-header-button { display: grid; place-items: center; padding: 2px; border: 0; background: none; color: #1c1c1c; cursor: pointer; }
.ig-tabbar button { color: #262626; }
.ig-tabbar button.active .ig-icon { stroke-width: 2.2; }
.ig-tabbar button[data-tab="profile"] { padding: 0; }
.ig-tabbar button[data-tab="profile"] img { width: 23px; height: 23px; border: 1px solid #1c1c1c33; }
.ig-tabbar button[data-tab="profile"].active img { outline: 1.5px solid #1c1c1c; outline-offset: 2px; border-color: transparent; }
.profile-grid-tabs { display: flex; align-items: stretch; margin: 16px -14px 0; border-top: 1px solid #e9e9e4; }
.profile-grid-tabs button { display: grid; flex: 1; place-items: center; height: 38px; padding: 0; border: 0; border-bottom: 1.5px solid transparent; background: none; color: #92968f; cursor: pointer; }
.profile-grid-tabs button.active { color: #1c1c1c; border-bottom-color: #1c1c1c; }
.profile-post-grid { margin: 0 -14px; }
.profile-post-grid button { padding: 0; border: 0; background: #e7e7e2; cursor: pointer; }
.profile-post-grid button > * { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.profile-post-grid .media-video-thumb { height: auto; }
.ig-highlights { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.ig-highlights::-webkit-scrollbar { display: none; }
.ig-highlights button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 42px; flex: none; padding: 0; border: 0; background: none; color: #262626; font-size: 8px; cursor: pointer; }
.ig-highlights img { width: 34px; height: 34px; padding: 2px; border: 1px solid #d9d9d4; border-radius: 50%; background: #fff; object-fit: cover; }
.ig-highlights span { max-width: 42px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig-reels { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: #050505; scrollbar-width: none; scroll-snap-type: y mandatory; }
.ig-reels::-webkit-scrollbar { display: none; }
.ig-reel { position: relative; flex: none; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; color: #fff; }
.ig-reel::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 45%; background: linear-gradient(transparent,#000000bf); pointer-events: none; }
.ig-reel-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.ig-reel-media img, .ig-reel-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-reel-rail { position: absolute; z-index: 2; right: 8px; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.ig-reel-rail button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0; border: 0; background: none; color: #fff; font-size: 8px; cursor: pointer; filter: drop-shadow(0 1px 4px #0009); }
.ig-reel-rail button.liked { color: #fe2c55; }
.ig-reel-rail small { font-size: 8px; font-weight: 600; }
.ig-reel-copy { position: absolute; z-index: 2; right: 58px; bottom: 20px; left: 12px; text-shadow: 0 1px 6px #0009; }
.ig-reel-author { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.ig-reel-avatar { width: 24px; height: 24px; border: 1px solid #ffffffb8; border-radius: 50%; object-fit: cover; }
.ig-reel-author b { font-size: 10px; }
.ig-reel-copy p { display: -webkit-box; overflow: hidden; margin: 0 0 7px; font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ig-reel-audio { display: flex; align-items: center; gap: 4px; color: #f2f2f2; font-size: 8px; }
.ig-reel-unavailable { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 9px; }

/* Instagram — account search */
.ig-search-topbar { display: flex; min-height: 44px; padding: 6px 10px; border-bottom: 1px solid #e9e9e4; background: #fff; }
.ig-search-field { display: flex; flex: 1; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: #efefef; color: #6d6d6d; }
.ig-search-field input { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #262626; font: inherit; font-size: 10px; outline: none; }
.ig-search-field input::placeholder { color: #8e8e8e; }
.ig-search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ig-search-empty[hidden], .ig-account-row[hidden] { display: none !important; }
.ig-recent[hidden] { display: none !important; }
.ig-results[hidden] { display: none !important; }
.ig-recent .app-subtitle { margin-top: 4px; }
.ig-recent .ig-account-list { margin-bottom: 12px; }
.ig-account-list { margin: 0 -14px; }
.ig-account-row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 14px; border: 0; border-bottom: 1px solid #f0f0ee; background: none; color: #262626; text-align: left; cursor: pointer; }
.ig-account-row:last-child { border-bottom: 0; }
.ig-account-name { display: grid; flex: 1; min-width: 0; }
.ig-search-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.ig-account-row b { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ig-account-row small { overflow: hidden; color: #737373; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ig-account-chevron { flex: none; color: #8e8e8e; transform: rotate(180deg); }
.ig-search-empty { margin: 26px 0; color: #737373; font-size: 10px; text-align: center; }
.ig-account-head { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 18px 0 4px; text-align: center; }
.ig-account-head > img { width: 74px; height: 74px; margin-bottom: 6px; border-radius: 50%; object-fit: cover; }
.ig-account-head b { font-size: 11.5px; }
.ig-account-head small { color: #737373; font-size: 9px; }
.ig-account-head p { max-width: 240px; margin: 4px 0 0; font-size: 9px; line-height: 1.45; }
.ig-account-meta { margin-top: 5px; color: #737373; font-size: 9px; }

/* Custom app icons */
.app-icon.has-image { overflow: hidden; background: #fff; }
.app-icon > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-icon-editor { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e9e9e4; }
.app-icon-editor-preview .app-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 21px; box-shadow: none; }
.app-icon-editor-preview .app-icon.photos i { width: 23px; height: 23px; }
.app-icon-editor-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.app-icon-editor-copy b { font-size: 10.5px; }
.app-icon-editor-copy small { color: #838780; font-size: 8.5px; }
.app-icon-editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 8px; }
.app-icon-editor-actions .text-button, .app-icon-editor-actions .remove-button { white-space: nowrap; }

/* LINE in-chat call entries */
.line-call-message { display: flex; align-items: flex-start; gap: 5px; max-width: 90%; margin-bottom: 10px; }
.line-call-message.outgoing { flex-direction: row-reverse; margin-left: auto; }
.line-call-avatar { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; object-fit: cover; }
.line-call-bubble { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border-radius: 5px 14px 14px 14px; background: #fff; box-shadow: 0 1px 2px #1d241d12; }
.line-call-message.outgoing .line-call-bubble { background: #ffd3e0; border-radius: 14px 5px 14px 14px; }
.line-call-bubble::before { content: ''; position: absolute; top: 0; left: -6px; width: 7px; height: 9px; background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 0); }
.line-call-message.outgoing .line-call-bubble::before { left: auto; right: -6px; clip-path: polygon(0 0, 0 100%, 100% 0); }
.line-call-icon { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e9e9e9; color: #3f3f3f; }
.line-call-icon svg { width: 14px; height: 14px; fill: currentColor; }
.line-call-message.outgoing .line-call-icon { background: #f2b6c7; color: #3f3f3f; }
.line-call-message.missed .line-call-icon, .line-call-message.declined .line-call-icon { background: #ffe3e0; color: #d23a35; }
.line-call-message.canceled .line-call-icon { background: #e6e6e6; color: #3f3f3f; }
.line-call-copy { display: grid; gap: 1px; }
.line-call-copy b { color: #1d1d1f; font-size: 10.5px; font-weight: 600; }
.line-call-copy small { color: #8c8c91; font-size: 8.5px; font-variant-numeric: tabular-nums; }
.line-call-message.missed .line-call-copy b, .line-call-message.declined .line-call-copy b { color: #d23a35; }
.line-call-time { align-self: flex-end; color: #37543a; font-size: 7px; white-space: nowrap; }

/* Photo viewer */
.phone-screen[data-photo-viewer="1"] .phone-status { color: #fff; }
.phone-screen[data-photo-viewer="1"] .home-indicator { background: #ffffffd9; }
.photo-viewer { position: absolute; z-index: 40; inset: 0; overflow: hidden; touch-action: none; }
.photo-viewer-scrim { position: absolute; inset: 0; background: #000; opacity: var(--photo-scrim-opacity, 1); }
.photo-viewer-track { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .24s cubic-bezier(.2,.85,.3,1), opacity .24s ease; will-change: transform, opacity; }
.photo-viewer-slide { position: absolute; inset: 0; display: grid; place-items: center; }
.photo-viewer-media { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
img.photo-viewer-media { pointer-events: none; }
.photo-viewer-top { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 52px 12px 16px; background: linear-gradient(#000000b8, #0000); color: #fff; opacity: var(--photo-chrome-opacity, 1); transition: opacity .22s ease; }
.photo-viewer-back { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #ffffff2b; color: #fff; cursor: pointer; }
.photo-viewer-title { display: grid; justify-items: center; gap: 1px; min-width: 0; text-align: center; }
.photo-viewer-title b { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 600; letter-spacing: .1px; text-overflow: ellipsis; white-space: nowrap; }
.photo-viewer-title span { color: #ffffffa8; font-size: 9px; font-variant-numeric: tabular-nums; }
.photo-viewer-bar { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: space-around; padding: 16px 18px 27px; background: linear-gradient(#0000, #000000c4); opacity: var(--photo-chrome-opacity, 1); transition: opacity .22s ease; }
.photo-viewer-bar button { display: grid; place-items: center; width: 52px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.photo-viewer-bar button:active { background: #ffffff1f; }
.photo-viewer-bar button:disabled { opacity: .32; }
.photo-viewer-bar button.favorite { color: #ff5a86; }
.photo-icon { display: grid; place-items: center; width: 23px; height: 23px; }
.photo-icon svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.photo-viewer-bar button.favorite .photo-icon svg { fill: currentColor; }
.photo-viewer-back .photo-icon svg { stroke-width: 2; }
.photo-viewer.chrome-hidden [data-photo-chrome] { opacity: 0; pointer-events: none; }
.photo-sheet-backdrop { position: absolute; z-index: 5; inset: 0; background: #0000005c; animation: photo-backdrop-in .2s ease both; }
.photo-sheet { position: absolute; z-index: 6; right: 8px; bottom: 8px; left: 8px; padding: 9px 14px 14px; border-radius: 16px; background: #f7f7f7f2; color: #1b1d1b; box-shadow: 0 12px 34px #0005; -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); animation: photo-sheet-up .28s cubic-bezier(.2,.9,.3,1) both; }
.photo-sheet-grabber { display: block; width: 34px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #00000024; }
.photo-sheet h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-align: center; }
.photo-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; padding: 2px 0 13px; }
.photo-sheet dt { color: #6c7069; font-size: 9px; }
.photo-sheet dd { margin: 0; overflow-wrap: anywhere; font-size: 9px; text-align: right; }
.photo-sheet-done { width: 100%; min-height: 38px; border: 0; border-radius: 11px; background: #fff; color: #3f7f5e; font-size: 10px; font-weight: 600; box-shadow: 0 1px 0 #00000010; cursor: pointer; }
.photo-delete-sheet p { margin: 0 0 13px; color: #6c7069; font-size: 9px; text-align: center; }
.photo-delete-confirm { width: 100%; min-height: 38px; margin-bottom: 6px; border: 0; border-radius: 11px; background: #fff; color: #e5484d; font-size: 10px; font-weight: 600; cursor: pointer; }
@keyframes photo-sheet-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes photo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.media-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-grid .media-video-thumb { height: auto; aspect-ratio: 1; }

/* iOS 18 Settings */
.settings-app { margin: 0 -14px; padding: 6px 16px 46px; background: #f2f2f7; color: #1c1c1e; font-size: 13px; }
.settings-app *, .settings-topbar * { box-sizing: border-box; }
.settings-app [hidden], .settings-labeled-group[hidden] { display: none !important; }
.settings-topbar { display: grid; grid-template-columns: 78px 1fr 78px; align-items: center; min-height: 40px; padding: 0 8px; background: #f2f2f7; }
.settings-topbar h2 { overflow: hidden; margin: 0; color: #1c1c1e; font-size: 14px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.settings-back { display: flex; align-items: center; gap: 2px; padding: 5px 0; border: 0; background: none; color: #007aff; font-size: 12px; cursor: pointer; }
.settings-back b { margin-left: -4px; font-size: 25px; font-weight: 400; line-height: 12px; }
.settings-topbar-end { display: block; }
.settings-search { display: flex; align-items: center; gap: 6px; margin: 8px 0 14px; padding: 7px 9px; border-radius: 10px; background: #e3e3e8; color: #8e8e93; }
.settings-search svg { width: 14px; height: 14px; flex: none; fill: none; stroke: #8e8e93; stroke-width: 2; stroke-linecap: round; }
.settings-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #1c1c1e; font: 13px var(--ios-font); }
.settings-search input::placeholder { color: #8e8e93; }
.settings-search-empty { margin: 20px 0; color: #8e8e93; font-size: 13px; text-align: center; }
.settings-profile { display: flex; align-items: center; gap: 11px; width: 100%; margin: 0 0 20px; padding: 12px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #0000000f; color: #1c1c1e; text-align: left; cursor: pointer; }
.settings-profile img { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; }
.settings-profile span:nth-of-type(1) { display: grid; flex: 1; gap: 2px; min-width: 0; }
.settings-profile b { overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.settings-profile small { color: #8e8e93; font-size: 11px; }
.settings-profile em { color: #c4c4c8; font-size: 20px; font-style: normal; line-height: 1; }
.settings-labeled-group { margin: 0 0 20px; }
.settings-group-label { margin: 0 0 6px; padding: 0 2px; color: #8e8e93; font-size: 11px; font-weight: 400; }
.settings-group { overflow: hidden; margin: 0 0 20px; padding: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #0000000d; }
.settings-labeled-group .settings-group { margin-bottom: 0; }
.settings-app .settings-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 44px; padding: 7px 12px; border: 0; border-bottom: .5px solid #d8d8dc; background: #fff; color: #1c1c1e; font-size: 13px; text-align: left; cursor: pointer; }
.settings-app .settings-row:last-child { border-bottom: 0; }
.settings-app .settings-row[disabled] { opacity: .45; cursor: default; }
.settings-app .settings-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 7px; background: #8e8e93; color: #fff; font-style: normal; }
.settings-icon svg { width: 18px; height: 18px; }
.settings-icon.blue { background: #007aff; }
.settings-icon.green { background: #34c759; }
.settings-icon.red { background: #ff3b30; }
.settings-icon.orange { background: #ff9500; }
.settings-icon.pink { background: #ff2d55; }
.settings-icon.purple { background: #af52de; }
.settings-icon.indigo { background: #5856d6; }
.settings-icon.gray { background: #8e8e93; }
.settings-row-copy { display: grid; flex: 1; gap: 1px; min-width: 0; }
.settings-app .settings-row .settings-row-copy b { color: #1c1c1e; font-size: 13px; font-weight: 400; }
.settings-row-copy small { color: #8e8e93; font-size: 11px; line-height: 1.25; }
.settings-row-value { color: #8e8e93; font-size: 13px; }
.settings-app .settings-row em { color: #c4c4c8; font-size: 19px; font-style: normal; line-height: 1; }
.settings-app .ios-switch { width: 42px; height: 25px; flex: none; border-radius: 13px; }
.settings-app .ios-switch::after { top: 2px; left: 2px; width: 21px; height: 21px; }
.settings-app .ios-switch.on::after { transform: translateX(17px); }
.settings-network-row { min-height: 52px; }
.settings-signal { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 28px; height: 18px; flex: none; }
.settings-signal i { width: 3px; border-radius: 1px; background: #c7c7cc; }
.settings-signal i:nth-child(1) { height: 5px; }
.settings-signal i:nth-child(2) { height: 9px; }
.settings-signal i:nth-child(3) { height: 13px; }
.settings-signal i.on { background: #1c1c1e; }
.settings-check { color: #007aff; font-size: 16px; font-style: normal; font-weight: 700; }
.settings-lock { display: inline-flex; flex: none; color: #8e8e93; }
.settings-lock .settings-icon { width: 18px; height: 18px; background: none; color: #8e8e93; }
.settings-lock .settings-icon svg { width: 17px; height: 17px; }
.settings-slider-card { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #0000000d; }
.settings-slider-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.settings-slider-copy > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.settings-slider-copy b { color: #1c1c1e; font-size: 13px; font-weight: 400; }
.settings-range-value { color: #8e8e93; font-size: 12px; }
.settings-slider-copy input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 0; border-radius: 2px; background: #d1d1d6; outline: 0; }
.settings-slider-copy input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0003; cursor: pointer; }
.settings-section-label { margin: 2px 2px 6px; color: #8e8e93; font-size: 11px; }
.settings-appearance { display: flex; gap: 10px; margin: 0 0 20px; }
.settings-appearance .appearance-choice { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 64px; margin: 0; padding: 9px; border: 1px solid #e5e5ea; border-radius: 12px; background: #fff; color: #1c1c1e; font-size: 12px; }
.settings-appearance .appearance-choice i { font-size: 22px; font-style: normal; line-height: 1; }
.settings-appearance .appearance-choice.selected { border-color: #007aff; box-shadow: inset 0 0 0 1px #007aff; }
.settings-account-hero { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 4px 0 22px; }
.settings-account-hero img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.settings-account-hero b { font-size: 17px; font-weight: 500; }
.settings-account-hero small { color: #8e8e93; font-size: 11px; }
.settings-stat-hero { display: grid; gap: 3px; margin: 2px 0 20px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #0000000d; }
.settings-stat-hero small { color: #8e8e93; font-size: 10px; letter-spacing: .4px; }
.settings-stat-hero b { font-size: 26px; font-weight: 600; letter-spacing: -.5px; }
.settings-stat-hero span { color: #8e8e93; font-size: 11px; }
.settings-app .settings-footnote { margin: 14px 2px 0; color: #8e8e93; font-size: 10px; line-height: 1.45; }
.phone-screen.reduce-motion *, .phone-screen.reduce-motion *::before, .phone-screen.reduce-motion *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
.settings-app .settings-row .settings-signal { flex: none; }
.settings-app .settings-row .settings-row-value { flex: none; }
.settings-app .settings-row .settings-check, .settings-app .settings-row .settings-lock { flex: none; }
.settings-profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-app .settings-row .settings-check { flex: none; color: #007aff; font-size: 16px; font-weight: 700; }
.settings-app .settings-lock .settings-icon { background: transparent; color: #8e8e93; }
.settings-profile small { font-size: 10px; }
.settings-topbar { grid-template-columns: 66px 1fr 66px; }
.settings-topbar h2 { font-size: 13.5px; }
.settings-group-label { text-transform: uppercase; letter-spacing: .3px; font-size: 10px; }
.settings-topbar { position: relative; display: flex; align-items: center; grid-template-columns: none; padding: 0 8px; }
.settings-topbar h2 { position: absolute; left: 50%; max-width: 86%; transform: translateX(-50%); font-size: 13.5px; }
.settings-topbar-end { margin-left: auto; }
.settings-topbar { display: grid; grid-template-columns: 62px 1fr 62px; }
.settings-topbar h2 { position: static; max-width: none; transform: none; font-size: 13px; }
.settings-topbar-end { margin-left: 0; }
.settings-topbar { min-height: 34px; }
.settings-large-title { overflow: hidden; margin: 0; padding: 2px 16px 10px; background: #f2f2f7; color: #1c1c1e; font-size: 24px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.settings-app .settings-large-title { padding: 2px 0 10px; }
.settings-rootbar { border-bottom: 0; }
.settings-large-title { font-size: 22px; letter-spacing: -.4px; }
.settings-app .settings-row .settings-row-copy b { font-size: 12px; }
.settings-row-value { font-size: 12px; }
.settings-row-copy small { font-size: 10.5px; }
.settings-app .settings-row { position: relative; border-bottom: 0; }
.settings-app .settings-row::after { position: absolute; right: 0; bottom: 0; left: 51px; height: .5px; background: #d8d8dc; content: ''; }
.settings-app .settings-row:last-child::after { display: none; }

/* YouTube app */
.phone-screen[data-app="youtube"] .app-view { background: #fff; }
.yt-screen { display: flex; flex: 1; flex-direction: column; min-height: 0; background: #fff; color: #0f0f0f; }
.yt-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; scrollbar-width: none; }
.yt-scroll::-webkit-scrollbar, .yt-shorts-feed::-webkit-scrollbar, .yt-categories::-webkit-scrollbar, .yt-shelf-row::-webkit-scrollbar, .yt-action-chips::-webkit-scrollbar { display: none; }
.yt-icon { width: 17px; height: 17px; flex: none; }
.yt-logo { display: flex; align-items: center; gap: 4px; }
.yt-logo svg { width: 27px; height: 18px; }
.yt-logo b { font-size: 13px; font-weight: 700; letter-spacing: -.8px; }
.yt-appbar { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 10px; }
.yt-appbar-actions { display: flex; align-items: center; gap: 1px; }
.yt-appbar-actions button, .yt-page-bar button, .yt-shorts-bar button, .yt-search-bar button, .yt-watch-bar button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: currentColor; }
.yt-bell { position: relative; }
.yt-bell i { position: absolute; top: 4px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: #ff0033; }
.yt-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
span.yt-avatar { display: grid; place-items: center; }
.yt-avatar-fallback { background: #e8e8e8; color: #606060; font-size: 9px; font-weight: 600; }
.yt-avatar-button .yt-avatar { width: 23px; height: 23px; }
.yt-categories { display: flex; flex: none; gap: 6px; overflow-x: auto; padding: 3px 10px 8px; scrollbar-width: none; }
.yt-categories button { flex: none; padding: 5px 9px; border: 0; border-radius: 8px; background: #f2f2f2; color: #0f0f0f; font: 500 8px var(--ios-font); }
.yt-categories button.active { background: #0f0f0f; color: #fff; }
.yt-feed { padding-bottom: 8px; }
.yt-video-card { display: block; width: 100%; padding: 0 0 14px; border: 0; background: none; color: inherit; text-align: left; }
.yt-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e9e9; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-thumb i, .yt-compact-thumb i { position: absolute; right: 5px; bottom: 5px; padding: 2px 4px; border-radius: 4px; background: #000000d9; color: #fff; font: 6.5px var(--ios-font); font-style: normal; }
.yt-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: #e9e9e9; color: #8f8f8f; }
.yt-thumb-fallback .yt-icon { width: 27px; height: 27px; }
.yt-video-row { display: flex; align-items: flex-start; gap: 7px; padding: 7px 10px 0; }
.yt-video-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.yt-video-copy b { display: -webkit-box; overflow: hidden; font-size: 9px; font-weight: 600; line-height: 1.32; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.yt-video-copy small { color: #606060; font-size: 7px; line-height: 1.35; }
.yt-video-row em { margin-top: 1px; color: #606060; }
.yt-video-row em .yt-icon { width: 13px; height: 13px; }
.yt-shelf { margin-bottom: 10px; padding-bottom: 11px; border-bottom: 8px solid #f2f2f2; }
.yt-shelf header { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 7px; }
.yt-shelf-title { display: flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; }
.yt-shelf-title .yt-icon { width: 15px; height: 15px; color: #ff0033; }
.yt-shelf header button { padding: 0; border: 0; background: none; color: #606060; font-size: 8px; }
.yt-shelf-row { display: flex; gap: 7px; overflow-x: auto; padding: 0 10px; scrollbar-width: none; }
.yt-shelf-card { display: block; flex: none; width: 104px; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
.yt-shelf-card img, .yt-shelf-card > .yt-thumb-fallback { display: block; width: 104px; height: 150px; border-radius: 8px; object-fit: cover; }
.yt-shelf-card > .yt-thumb-fallback { display: grid; place-items: center; }
.yt-shelf-card b { display: -webkit-box; overflow: hidden; margin-top: 5px; font-size: 8px; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.yt-shelf-card small { color: #606060; font-size: 7px; }
.yt-tabbar { display: flex; flex: none; align-items: center; justify-content: space-around; min-height: 46px; padding: 2px 4px 15px; border-top: 1px solid #ececec; background: #fff; }
.yt-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 52px; padding: 2px 0; border: 0; background: none; color: #606060; }
.yt-tabbar button.active { color: #0f0f0f; }
.yt-tabbar small { font-size: 6.5px; }
.yt-tabbar .yt-create { width: 34px; height: 26px; border-radius: 13px; background: #f2f2f2; color: #0f0f0f; }
.yt-tabbar .yt-create .yt-icon { width: 15px; height: 15px; }
.yt-shorts-screen { background: #000; color: #fff; }
.yt-shorts-bar { display: flex; flex: none; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; }
.yt-shorts-bar b { font-size: 13px; }
.yt-shorts-bar div { display: flex; gap: 2px; }
.yt-shorts-feed { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.yt-short { position: relative; height: 100%; min-height: 100%; overflow: hidden; scroll-snap-align: start; background: #111; }
.yt-short > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-short-fallback { position: absolute; inset: 0; background: linear-gradient(160deg, #2a2a2a, #0c0c0c); }
.yt-short-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #0000 55%, #000000b8); }
.yt-short-play { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: #ffffff26; color: #fff; font-size: 14px; }
.yt-short-rail { position: absolute; right: 7px; bottom: 74px; display: grid; justify-items: center; gap: 11px; }
.yt-short-rail button { display: grid; justify-items: center; gap: 2px; padding: 0; border: 0; background: none; color: #fff; }
.yt-short-rail button.active { color: #ff0033; }
.yt-short-rail .yt-icon { width: 19px; height: 19px; }
.yt-short-rail small { font-size: 6.5px; }
.yt-short-info { position: absolute; right: 52px; bottom: 24px; left: 10px; display: grid; justify-items: start; gap: 4px; }
.yt-short-info .yt-avatar { width: 24px; height: 24px; }
.yt-short-info b { font-size: 8.5px; }
.yt-short-info button { padding: 4px 8px; border: 0; border-radius: 10px; background: #fff; color: #0f0f0f; font-size: 7px; font-weight: 600; }
.yt-short-info p { margin: 1px 0 0; font-size: 8px; line-height: 1.35; }
.yt-short-info small { display: flex; align-items: center; gap: 3px; font-size: 7px; }
.yt-short-info small .yt-icon { width: 11px; height: 11px; color: #ff0033; }
.yt-page-bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 6px; min-height: 42px; padding: 0 10px; background: #fff; }
.yt-page-bar h1 { flex: 1; margin: 0; font-size: 13px; font-weight: 700; }
.yt-page-bar > div { display: flex; gap: 2px; }
.yt-page-bar-back h1 { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.yt-page-bar-back > button { display: grid; flex: none; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; }
.yt-section-title { margin: 12px 10px 6px; font-size: 10px; font-weight: 700; }
.yt-channel-list { padding: 2px 0 6px; }
.yt-channel-list-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; color: inherit; text-align: left; }
.yt-channel-list-row .yt-avatar { width: 31px; height: 31px; }
.yt-channel-list-row > span:nth-child(2) { display: grid; flex: 1; gap: 3px; min-width: 0; }
.yt-channel-list-row b { font-size: 9px; font-weight: 600; }
.yt-channel-list-row small { color: #606060; font-size: 7px; }
.yt-channel-list-row em { color: #909090; font-style: normal; font-size: 14px; }
.yt-search-short-thumb { flex: none; width: 52px; height: 29px; overflow: hidden; border-radius: 5px; background: #e9e9e9; }
.yt-search-short-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-search-bar { display: flex; flex: none; align-items: center; gap: 4px; min-height: 42px; padding: 0 8px; background: #fff; }
.yt-search-bar > button { flex: none; }
.yt-search-bar form { display: flex; flex: 1; align-items: center; min-width: 0; }
.yt-search-bar input { flex: 1; min-width: 0; height: 26px; padding: 0 9px; border: 1px solid #e5e5e5; border-radius: 13px 0 0 13px; background: #f7f7f7; color: #0f0f0f; font: 8px var(--ios-font); outline: none; }
.yt-search-bar form button { width: 27px; height: 26px; border-radius: 0 13px 13px 0; background: #f0f0f0; color: #606060; }
.yt-recent-list { padding: 2px 0; }
.yt-recent-list button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border: 0; background: none; color: inherit; font-size: 9px; text-align: left; }
.yt-recent-list .yt-icon { width: 13px; height: 13px; color: #606060; }
.yt-recent-list span { flex: 1; }
.yt-recent-list em { color: #909090; font-size: 10px; font-style: normal; transform: rotate(-45deg); }
.yt-channel-scroll { padding-bottom: 16px; }
.yt-channel-banner { height: 62px; background: #e5e5e5 center / cover no-repeat; background-image: var(--yt-banner); }
.yt-channel-head { display: flex; flex-direction: column; align-items: flex-start; padding: 0 12px 10px; }
.yt-channel-head .yt-avatar { width: 42px; height: 42px; margin-top: -22px; border: 2px solid #fff; }
.yt-channel-head h2 { margin: 5px 0 2px; font-size: 13px; }
.yt-channel-head p { margin: 0 0 8px; color: #606060; font-size: 7.5px; }
.yt-channel-actions { display: flex; align-items: center; gap: 6px; width: 100%; }
.yt-channel-actions button { padding: 5px 12px; border: 0; border-radius: 13px; background: #0f0f0f; color: #fff; font-size: 7.5px; font-weight: 600; }
.yt-channel-actions button.subscribed { background: #f2f2f2; color: #0f0f0f; }
.yt-channel-actions button:last-child { display: grid; place-items: center; width: 26px; height: 24px; padding: 0; border-radius: 12px; background: #f2f2f2; color: #0f0f0f; }
.yt-channel-tabs { display: flex; gap: 16px; padding: 0 12px; border-bottom: 1px solid #ececec; }
.yt-channel-tabs span { padding: 7px 0; border-bottom: 1.5px solid transparent; color: #606060; font-size: 8px; font-weight: 600; }
.yt-channel-tabs span.active { border-color: #0f0f0f; color: #0f0f0f; }
.yt-shelf-row-flat { padding: 0 12px; }
.yt-watch-bar { display: flex; flex: none; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px; background: #fff; }
.yt-watch-bar > button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; }
.yt-mini-logo { flex: 1; color: #0f0f0f; font-size: 11px; font-weight: 700; letter-spacing: -.5px; }
.yt-watch-bar div { display: flex; gap: 2px; }
.yt-watch-scroll { padding-bottom: 14px; }
.yt-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.yt-player-fallback { position: absolute; inset: 0; background: #111; }
.yt-player-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, #00000047, #0000 30%, #0003); }
.yt-player-play { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: #ff0033; color: #fff; font-size: 14px; }
.yt-player-progress { position: absolute; right: 0; bottom: 6px; left: 0; height: 2px; background: #ffffff59; }
.yt-player-progress i { display: block; width: 2%; height: 100%; background: #ff0033; }
.yt-player-time { position: absolute; right: 7px; bottom: 10px; color: #fff; font: 6px var(--ios-font); }
.yt-watch-body { padding: 9px 11px 0; }
.yt-watch-body h1 { margin: 0 0 4px; font-size: 11px; font-weight: 700; line-height: 1.35; }
.yt-watch-meta { margin: 0 0 8px; color: #606060; font-size: 7px; }
.yt-action-chips { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.yt-action-chips button { display: flex; flex: none; align-items: center; gap: 4px; padding: 5px 8px; border: 0; border-radius: 13px; background: #f2f2f2; color: #0f0f0f; font-size: 7px; font-weight: 600; }
.yt-action-chips button.active { background: #0f0f0f; color: #fff; }
.yt-action-chips .yt-icon { width: 13px; height: 13px; }
.yt-icon.flip { transform: rotate(180deg); }
.yt-watch-channel { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.yt-watch-channel .yt-avatar { width: 27px; height: 27px; }
.yt-watch-channel > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.yt-watch-channel b { font-size: 8.5px; }
.yt-watch-channel small { color: #606060; font-size: 6.5px; }
.yt-watch-channel > button { padding: 5px 10px; border: 0; border-radius: 13px; background: #0f0f0f; color: #fff; font-size: 7px; font-weight: 600; }
.yt-watch-channel > button.subscribed { background: #f2f2f2; color: #0f0f0f; }
.yt-watch-description { display: grid; gap: 4px; width: 100%; margin-top: 8px; padding: 8px; border: 0; border-radius: 8px; background: #f2f2f2; color: #0f0f0f; font-size: 7.5px; text-align: left; }
.yt-watch-description b { font-size: 7.5px; }
.yt-watch-description span { display: -webkit-box; overflow: hidden; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.yt-watch-description em { color: #606060; font-size: 7px; font-style: normal; font-weight: 600; }
.yt-comments { margin-top: 12px; }
.yt-comments header { display: flex; align-items: baseline; gap: 5px; font-size: 9px; }
.yt-comments header span { color: #606060; font-size: 7px; }
.yt-comment-input { display: flex; align-items: center; gap: 7px; width: 100%; margin: 8px 0 6px; padding: 0; border: 0; background: none; color: #606060; font-size: 8px; text-align: left; }
.yt-comment-input .yt-avatar { width: 23px; height: 23px; }
.yt-comment { display: flex; gap: 7px; padding: 7px 0; }
.yt-comment .yt-avatar { width: 23px; height: 23px; }
.yt-comment > div { display: grid; gap: 3px; }
.yt-comment b { font-size: 7.5px; }
.yt-comment b small { color: #606060; font-weight: 400; }
.yt-comment p { margin: 0; font-size: 8px; line-height: 1.4; }
.yt-comment > div > span { display: flex; align-items: center; gap: 3px; color: #606060; font-size: 6.5px; }
.yt-comment > div > span .yt-icon { width: 11px; height: 11px; }
.yt-up-next { margin-top: 12px; padding-top: 10px; border-top: 1px solid #ececec; }
.yt-up-next h2 { margin: 0 0 8px; font-size: 10px; }
.yt-compact-card { display: flex; gap: 8px; width: 100%; padding: 0 10px 9px; border: 0; background: none; color: inherit; text-align: left; }
.yt-compact-thumb { position: relative; flex: none; width: 118px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #e9e9e9; }
.yt-compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-compact-copy { display: grid; align-content: start; gap: 2px; min-width: 0; }
.yt-compact-copy b { display: -webkit-box; overflow: hidden; font-size: 8px; font-weight: 600; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.yt-compact-copy small { color: #606060; font-size: 6.5px; }
.yt-account { display: flex; align-items: center; gap: 9px; width: 100%; padding: 12px 12px 10px; border: 0; background: none; color: inherit; text-align: left; }
.yt-account .yt-avatar { width: 36px; height: 36px; }
.yt-account > span { display: grid; flex: 1; gap: 3px; }
.yt-account b { font-size: 11px; }
.yt-account small { color: #606060; font-size: 7px; }
.yt-account em { color: #909090; font-size: 15px; font-style: normal; }
.yt-you-rows { border-top: 1px solid #ececec; }
.yt-you-rows button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid #f4f4f4; background: none; color: inherit; }
.yt-you-rows button > span { display: flex; align-items: center; gap: 9px; }
.yt-you-rows button b { font-size: 9px; font-weight: 500; }
.yt-you-rows small { color: #606060; font-size: 7px; }
.yt-you-rows .yt-icon { width: 15px; height: 15px; color: #606060; }
.yt-linked-head { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-right: 12px; }
.yt-linked-head .yt-section-title { margin-right: 0; }
.yt-linked-head button { padding: 0; border: 0; background: none; color: #065fd4; font-size: 8px; font-weight: 600; }
.yt-linked-note { margin: 0 12px 8px; color: #606060; font-size: 7px; line-height: 1.4; }
.yt-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 20px; text-align: center; }
.yt-empty b { font-size: 10px; }
.yt-empty p { margin: 0; color: #606060; font-size: 8px; line-height: 1.4; }
.yt-empty-light { color: #fff; }
.yt-empty-light p { color: #aaa; }
.yt-settings-scroll { padding-bottom: 18px; }
.yt-settings-label { margin: 13px 12px 5px; color: #606060; font: 6.5px var(--ios-font); letter-spacing: .6px; }
.yt-settings-group { border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; background: #fff; }
.yt-setting-row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-bottom: 1px solid #f2f2f2; }
.yt-setting-row:last-child { border-bottom: 0; }
.yt-setting-row > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.yt-setting-row b { font-size: 8.5px; font-weight: 500; }
.yt-setting-row small { color: #606060; font-size: 6.5px; }
.yt-setting-row select { max-width: 96px; padding: 4px 6px; border: 0; border-radius: 7px; background: #f2f2f2; color: #0f0f0f; font: 7px var(--ios-font); }
.yt-settings-note { margin: 14px 12px; color: #606060; font-size: 7px; line-height: 1.45; }
.phone-screen[data-youtube-theme="dark"] .phone-status { color: #fff; }

/* Apple Music app */
.phone-screen[data-app="music"] .app-view { background: #fff; }
.phone-screen[data-music-theme="dark"] .phone-status { color: #fff; }
.phone-screen[data-music-theme="dark"] .home-indicator { background: #ffffffd9; }
.phone-screen.keyboard-open .music-tabbar, .phone-screen.keyboard-open .music-mini { display: none; }
.music-screen { display: flex; flex: 1; flex-direction: column; min-height: 0; background: #fff; color: #111; }
.music-icon { display: block; flex: none; }
.music-screen button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.music-art-placeholder { display: grid; place-items: center; background: linear-gradient(145deg,#3a3a3e,#1b1b1e); color: #ffffff8c; }
.music-large-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; min-height: 38px; padding: 4px 16px 2px; }
.music-large-head h1 { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.7px; line-height: 1.05; }
.music-large-head > div { display: flex; align-items: center; gap: 8px; }
.music-profile-button { display: flex; padding: 0; border: 0; border-radius: 50%; background: none; }
.music-profile-avatar { width: 27px; height: 27px; overflow: hidden; border-radius: 50%; object-fit: cover; }
.music-header-button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fa2d48; }
.music-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 14px; overscroll-behavior: contain; scrollbar-width: none; }
.music-scroll::-webkit-scrollbar { display: none; }
.music-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 7px; }
.music-section-head h2 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.35px; }
.music-section-link { padding: 0; border: 0; background: none; color: #fa2d48; font-size: 10px; font-weight: 500; white-space: nowrap; }
.music-card-row { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.music-card-row::-webkit-scrollbar { display: none; }
.music-card { display: flex; flex: none; flex-direction: column; gap: 2px; width: 92px; padding: 0; border: 0; background: none; color: #111; text-align: left; scroll-snap-align: start; }
.music-card-art { width: 92px; height: 92px; overflow: hidden; border-radius: 6px; object-fit: cover; box-shadow: 0 1px 3px #00000014; }
.music-card-art.music-card-round { border-radius: 50%; }
.music-card b { display: -webkit-box; overflow: hidden; margin-top: 3px; font-size: 9.5px; font-weight: 600; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.music-card small { overflow: hidden; color: #8a8a8e; font-size: 8.5px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.music-album-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; }
.music-album-grid .music-card { width: auto; }
.music-album-grid .music-card-art { width: 100%; height: auto; aspect-ratio: 1; }
.music-eq { display: inline-flex; align-items: flex-end; justify-content: center; gap: 1.5px; width: 15px; height: 13px; }
.music-eq i { width: 2.5px; height: 30%; border-radius: 1px; background: #fa2d48; transform-origin: bottom; }
.music-eq.playing i { animation: music-eq .82s ease-in-out infinite alternate; }
.music-eq.playing i:nth-child(2) { animation-delay: -.42s; }
.music-eq.playing i:nth-child(3) { animation-delay: -.2s; }
@keyframes music-eq { from { height: 24%; } to { height: 100%; } }
.music-list { display: flex; flex-direction: column; }
.music-song-row { display: flex; align-items: center; gap: 3px; min-height: 48px; border-bottom: .5px solid #ededef; }
.music-song-row:last-child { border-bottom: 0; }
.music-song-main { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 5px 0; border: 0; background: none; color: inherit; text-align: left; }
.music-song-leading { display: flex; flex: none; align-items: center; justify-content: center; width: 38px; }
.music-song-leading .music-row-art { width: 38px; height: 38px; overflow: hidden; border-radius: 4px; object-fit: cover; }
.music-row-number { width: 100%; color: #a0a0a4; font-size: 9px; text-align: center; }
.music-song-copy { display: grid; flex: 1; gap: 1px; min-width: 0; }
.music-song-copy b { display: flex; align-items: center; gap: 4px; overflow: hidden; font-size: 10.5px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.music-song-copy small { overflow: hidden; color: #8a8a8e; font-size: 8.5px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.music-song-row.active .music-song-copy b { color: #fa2d48; }
.music-explicit { display: inline-grid; place-items: center; width: 8px; height: 8px; flex: none; border-radius: 1.5px; background: #b0b0b4; color: #fff; font-size: 6px; font-style: normal; font-weight: 700; line-height: 1; }
.music-song-copy b .music-explicit { margin-left: 1px; }
.music-song-time { flex: none; color: #a0a0a4; font-size: 8px; font-variant-numeric: tabular-nums; }
.music-song-more { display: grid; place-items: center; width: 22px; height: 26px; flex: none; padding: 0; border: 0; background: none; color: #8a8a8e; }
.music-row-liked { display: flex; flex: none; align-items: center; padding-right: 2px; color: #fa2d48; }
.music-chart-list .music-song-leading { width: auto; min-width: 24px; }
.music-empty-inline { margin: 10px 0; color: #8a8a8e; font-size: 9px; line-height: 1.45; }
.music-home-note { margin: 16px 0 4px; color: #a0a0a4; font-size: 7.5px; line-height: 1.5; text-align: center; }
.music-genre-card { position: relative; flex: none; width: 146px; height: 74px; overflow: hidden; padding: 0; border: 0; border-radius: 9px; background: #232326; color: #fff; text-align: left; }
.music-genre-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.music-genre-tint { position: absolute; inset: 0; background: linear-gradient(180deg,#00000014,#000000b8); }
.music-genre-copy { position: absolute; right: 9px; bottom: 8px; left: 9px; display: grid; gap: 1px; z-index: 1; }
.music-genre-copy b { overflow: hidden; font-size: 10.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.music-genre-copy small { color: #ffffffc2; font-size: 7.5px; }
.music-feature-station { position: relative; display: block; width: 100%; height: 132px; overflow: hidden; padding: 0; border: 0; border-radius: 11px; background: #2a1b28; color: #fff; text-align: left; }
.music-feature-bg { position: absolute; inset: 0; background-image: var(--music-feature); background-size: cover; background-position: center; filter: saturate(1.05); }
.music-feature-bg::after { position: absolute; inset: 0; background: linear-gradient(180deg,#00000005,#000000b3); content: ''; }
.music-feature-content { position: absolute; right: 13px; bottom: 12px; left: 13px; display: grid; gap: 2px; z-index: 1; }
.music-feature-content small { color: #ffffffc4; font-size: 6.5px; font-weight: 700; letter-spacing: .8px; }
.music-feature-content b { font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.music-feature-content > span { color: #ffffffc4; font-size: 8px; }
.music-feature-play { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fa2d48; color: #fff; box-shadow: 0 3px 10px #0003; }
.music-radio-intro { margin: 5px 0 10px; color: #8a8a8e; font-size: 8.5px; line-height: 1.45; }
.music-radio-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.music-radio-grid .music-genre-card { width: auto; height: 78px; }
.music-library-switch { display: grid; grid-template-columns: repeat(4,1fr); flex: none; gap: 2px; margin: 3px 16px 4px; padding: 2px; border-radius: 9px; background: #f0f0f2; }
.music-library-switch button { padding: 5px 0; border: 0; border-radius: 7px; background: none; color: #8a8a8e; font-size: 9px; font-weight: 500; }
.music-library-switch button.active { background: #fff; color: #111; box-shadow: 0 1px 3px #0000001f, 0 0 0 .5px #0000000a; font-weight: 600; }
.music-playlist-list { display: flex; flex-direction: column; }
.music-playlist-row { display: flex; align-items: center; gap: 4px; border-bottom: .5px solid #ededef; }
.music-playlist-open { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; padding: 6px 0; border: 0; background: none; color: inherit; text-align: left; }
.music-playlist-row-art { width: 44px; height: 44px; overflow: hidden; border-radius: 5px; object-fit: cover; }
.music-playlist-open > span, .music-artist-row > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.music-playlist-open b, .music-artist-row b { overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.music-playlist-open small, .music-artist-row small { overflow: hidden; color: #8a8a8e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.music-playlist-play { display: grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; background: none; color: #fa2d48; }
.music-new-playlist-row { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 6px; padding: 8px 0; border: 0; background: none; color: #fa2d48; font-size: 10px; font-weight: 500; }
.music-new-playlist-row .music-icon { padding: 3px; border-radius: 50%; background: #fa2d48; color: #fff; }
.music-artist-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 0; border: 0; border-bottom: .5px solid #ededef; background: none; color: inherit; text-align: left; }
.music-artist-row:last-child { border-bottom: 0; }
.music-artist-row-art { width: 42px; height: 42px; overflow: hidden; border-radius: 50%; object-fit: cover; }
.music-artist-row > i { color: #b0b0b4; font-size: 13px; font-style: normal; }
.music-search-head { flex: none; padding: 4px 16px 7px; background: #fff; }
.music-search-field { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 8px; background: #efeff1; color: #8a8a8e; }
.music-search-field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: #111; font: 10px -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif; }
.music-search-field input::placeholder { color: #8a8a8e; }
.music-search-clear { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: #c3c3c7; color: #fff; }
.music-recent-searches { display: flex; flex-wrap: wrap; gap: 6px; }
.music-recent-searches button { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 5px 9px; border: 0; border-radius: 14px; background: #f0f0f2; color: #3c3c43; font-size: 8.5px; }
.music-recent-searches button .music-icon { color: #8a8a8e; }
.music-browse-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.music-browse-tile { position: relative; display: grid; align-content: start; gap: 2px; height: 62px; overflow: hidden; padding: 9px 10px; border: 0; border-radius: 8px; background: var(--music-tint); color: #fff; text-align: left; box-shadow: inset 0 -20px 26px #00000024; }
.music-browse-tile span { font-size: 10px; font-weight: 700; }
.music-browse-tile small { color: #ffffffcf; font-size: 7px; }
.music-search-empty { margin: 30px 4px; color: #8a8a8e; font-size: 9px; line-height: 1.45; text-align: center; }
.music-search-results .music-section-head { margin-top: 10px; }
.music-search-results [data-music-search][hidden], .music-search-recent[hidden], .music-search-browse[hidden], .music-search-results[hidden], .music-search-empty[hidden] { display: none !important; }
.music-search-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 5px 0; border: 0; border-bottom: .5px solid #ededef; background: none; color: inherit; text-align: left; }
.music-search-row-art { width: 38px; height: 38px; overflow: hidden; border-radius: 4px; object-fit: cover; }
.music-search-row > span:nth-child(2) { display: grid; flex: 1; gap: 1px; min-width: 0; }
.music-search-row b { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.music-search-row small { overflow: hidden; color: #8a8a8e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.music-search-row > i { color: #b0b0b4; font-size: 13px; font-style: normal; }
.music-profile-hero { display: flex; flex-direction: column; align-items: center; padding: 6px 0 4px; text-align: center; }
.music-profile-hero-art { width: 92px; height: 92px; overflow: hidden; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 12px #0000001f; }
.music-profile-hero h1 { margin: 9px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.4px; }
.music-profile-hero > p { margin: 2px 0 0; color: #fa2d48; font-size: 9px; }
.music-profile-hero > span { max-width: 250px; margin-top: 5px; color: #636366; font-size: 8.5px; line-height: 1.4; }
.music-profile-stats { display: flex; gap: 16px; margin-top: 9px; }
.music-profile-stats button { padding: 0; border: 0; background: none; color: #8a8a8e; font-size: 8px; }
.music-profile-stats b { color: #111; font-size: 10.5px; font-weight: 700; }
.music-profile-actions { display: flex; gap: 7px; width: 100%; margin-top: 10px; padding: 0 14px; }
.music-profile-edit { flex: 1; height: 27px; border: 0; border-radius: 14px; background: #fa2d48; color: #fff; font-size: 9px; font-weight: 600; }
.music-profile-share { display: grid; place-items: center; width: 40px; height: 27px; border: 0; border-radius: 14px; background: #f0f0f2; color: #fa2d48; }
.music-pushed-screen > .music-detail-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; flex: none; height: 38px; color: #111; }
.music-pushed-screen > .music-detail-top button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; background: none; color: inherit; }
.music-pushed-screen > .music-detail-top button:last-child { justify-self: end; }
.music-pushed-screen > .music-detail-top span { font-size: 10px; font-weight: 600; text-align: center; }
.music-detail-hero { position: relative; flex: none; overflow: hidden; color: #fff; background: #1c1c1e; }
.music-detail-hero-bg { position: absolute; inset: -40px; background-image: var(--music-hero); background-size: cover; background-position: center; filter: blur(24px) saturate(1.25); transform: scale(1.2); opacity: .9; }
.music-detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg,#00000052,#00000012 40%,#000000b8); }
.music-detail-top { position: relative; z-index: 2; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 38px; }
.music-detail-top button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; background: none; color: inherit; }
.music-detail-top button:last-child { justify-self: end; }
.music-detail-top > span { font-size: 9px; font-weight: 600; text-align: center; }
.music-detail-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 18px 15px; text-align: center; }
.music-detail-art { width: 118px; height: 118px; overflow: hidden; border-radius: 7px; object-fit: cover; box-shadow: 0 8px 22px #00000059; }
.music-detail-art.music-detail-art-round { border-radius: 50%; }
.music-detail-content h1 { max-width: 100%; margin: 9px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.music-detail-content > p { display: -webkit-box; overflow: hidden; max-width: 250px; margin: 4px 0 0; color: #ffffffc4; font-size: 8.5px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.music-detail-eyebrow { margin: 8px 0 0; color: #ffffffb8; font-size: 7px; font-weight: 700; letter-spacing: .8px; }
.music-detail-content .music-detail-eyebrow { margin-bottom: 2px; }
.music-detail-artist { margin-top: 1px; padding: 0; border: 0; background: none; color: #fa6877; font-size: 10px; font-weight: 500; }
.music-detail-content > small { margin-top: 3px; color: #ffffffb8; font-size: 7.5px; }
.music-detail-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.music-play-circle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fa2d48; color: #fff; box-shadow: 0 3px 10px #00000033; }
.music-play-circle .music-icon { margin-left: 2px; }
.music-shuffle-circle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #ffffff24; color: #fff; }
.music-add-songs-button { display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: #ffffff24; color: #fff; font-size: 8.5px; font-weight: 600; }
.music-add-songs-button.followed { background: #ffffff38; color: #fff; }
.music-detail-scroll { padding-top: 6px; }
.music-detail-empty { display: grid; justify-items: center; gap: 4px; padding: 26px 10px; color: #8a8a8e; text-align: center; }
.music-detail-empty b { color: #111; font-size: 11px; }
.music-detail-empty span { font-size: 8.5px; }
.music-detail-empty button { margin-top: 6px; padding: 6px 14px; border: 0; border-radius: 14px; background: #fa2d48; color: #fff; font-size: 9px; font-weight: 600; }
.music-delete-playlist { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; margin: 12px 0 0; padding: 7px 0; border: 0; background: none; color: #fa2d48; font-size: 9px; }
.music-mini { position: relative; display: flex; flex: none; align-items: center; gap: 2px; height: 50px; margin: 5px 8px; overflow: hidden; border-radius: 11px; background: #f7f7f8f2; box-shadow: 0 1px 0 #00000014, 0 3px 14px #00000014; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.music-mini-progress { position: absolute; top: 0; left: 0; height: 2px; border-radius: 0 2px 2px 0; background: #fa2d48; }
.music-mini-main { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 6px 4px 6px 7px; border: 0; background: none; color: inherit; text-align: left; }
.music-mini-art { width: 36px; height: 36px; flex: none; overflow: hidden; border-radius: 4px; object-fit: cover; }
.music-mini-main > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.music-mini-main b { overflow: hidden; font-size: 9.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.music-mini-main small { overflow: hidden; color: #8a8a8e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.music-mini-button { display: grid; place-items: center; width: 30px; height: 34px; flex: none; padding: 0; border: 0; background: none; color: #111; }
.music-mini-button:last-child { margin-right: 4px; }
.music-tabbar { display: grid; grid-template-columns: repeat(5,1fr); flex: none; height: 49px; border-top: .5px solid #d8d8dc; background: #fbfbfbed; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.music-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 0 6px; border: 0; background: none; color: #8a8a8e; }
.music-tabbar button.active { color: #fa2d48; }
.music-tabbar small { font-size: 6.5px; font-weight: 500; letter-spacing: .1px; }
.music-full-screen { position: relative; overflow: hidden; background: #000; color: #fff; }
.music-full-backdrop { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(34px) brightness(.46) saturate(1.3); transform: scale(1.15); opacity: .95; }
.music-full-backdrop-empty { background: linear-gradient(160deg,#4a2333,#111 60%); }
.music-full-shade { position: absolute; inset: 0; background: linear-gradient(180deg,#00000059,#0000001f 42%,#000000b8); }
.music-full-top { position: relative; z-index: 2; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; flex: none; height: 46px; }
.music-full-top button { display: grid; place-items: center; width: 34px; height: 32px; padding: 0; border: 0; background: none; color: #fff; }
.music-full-top button:last-child { justify-self: end; }
.music-full-top > span { display: grid; justify-items: center; gap: 1px; }
.music-full-top small { color: #ffffffa8; font-size: 6px; font-weight: 600; letter-spacing: .7px; }
.music-full-top b { font-size: 9px; font-weight: 600; }
.music-full-body { position: relative; z-index: 2; display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 4px 24px 12px; }
.music-full-art-wrap { position: relative; flex: none; align-self: center; margin: 2px 0 12px; }
.music-full-art { width: 212px; height: 212px; overflow: hidden; border-radius: 8px; object-fit: cover; box-shadow: 0 18px 40px #00000073; }
.music-full-art-shadow { position: absolute; right: 12px; bottom: -16px; left: 12px; height: 22px; border-radius: 50%; background: #00000059; filter: blur(12px); z-index: -1; }
.music-full-meta { display: flex; align-items: center; gap: 8px; flex: none; margin-bottom: 9px; }
.music-full-meta > span { display: grid; flex: 1; gap: 2px; min-width: 0; }
.music-full-meta b { display: flex; align-items: center; gap: 4px; overflow: hidden; font-size: 13px; font-weight: 700; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.music-full-meta small { overflow: hidden; color: #ffffffb3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.music-full-meta small button { padding: 0; border: 0; background: none; color: #fa6877; font: inherit; }
.music-full-like { display: grid; place-items: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; background: none; color: #ffffffb3; }
.music-full-like.active { color: #fa2d48; }
.music-full-progress { flex: none; }
.music-full-progress input[type="range"] { display: block; width: 100%; height: 3px; margin: 0; border-radius: 2px; outline: 0; background: linear-gradient(to right,#ffffff var(--music-seek,0%),#ffffff3d var(--music-seek,0%)); appearance: none; -webkit-appearance: none; }
.music-full-progress input[type="range"]::-webkit-slider-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #0006; appearance: none; -webkit-appearance: none; }
.music-full-progress input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
.music-full-times { display: flex; justify-content: space-between; margin-top: 3px; color: #ffffffa8; font-size: 7.5px; font-variant-numeric: tabular-nums; }
.music-full-controls { display: flex; align-items: center; justify-content: space-between; flex: none; margin: 5px 2px 0; }
.music-full-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #ffffffd9; }
.music-full-controls button.active { color: #fa2d48; }
.music-full-controls .music-full-play { width: 54px; height: 54px; color: #fff; }
.music-repeat-one { position: absolute; margin: 13px 0 0 14px; color: #fa2d48; font-size: 6px; font-weight: 800; }
.music-full-volume { display: flex; align-items: center; gap: 7px; flex: none; margin: 4px 0 2px; color: #ffffffa8; }
.music-full-volume input { flex: 1; accent-color: #fff; }
.music-full-actions { display: flex; align-items: center; justify-content: space-between; flex: none; margin-top: auto; padding-top: 4px; }
.music-full-actions button { display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; background: none; color: #ffffffb3; }
.music-full-actions button.active { color: #fa2d48; }
.music-queue-sheet { position: absolute; right: 0; bottom: 0; left: 0; z-index: 3; display: flex; flex-direction: column; max-height: 58%; padding: 8px 14px 12px; border-radius: 15px 15px 0 0; background: #1c1c1ee8; color: #fff; box-shadow: 0 -8px 30px #0006; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.music-queue-sheet header { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 2px 2px 6px; }
.music-queue-sheet header b { font-size: 11px; }
.music-queue-sheet header button { display: grid; place-items: center; width: 30px; height: 26px; padding: 0; border: 0; background: none; color: #ffffffb3; }
.music-queue-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.music-queue-list::-webkit-scrollbar { display: none; }
.music-queue-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 0; border: 0; border-bottom: .5px solid #ffffff1a; background: none; color: inherit; text-align: left; }
.music-queue-row.active { color: #fa2d48; }
.music-queue-art { width: 32px; height: 32px; overflow: hidden; border-radius: 3px; object-fit: cover; }
.music-queue-row > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.music-queue-row b { overflow: hidden; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.music-queue-row small { color: #ffffff99; font-size: 7.5px; }
.music-queue-shuffle { display: flex; align-items: center; gap: 5px; flex: none; margin-top: 6px; padding: 5px 0; border: 0; background: none; color: #fa6877; font-size: 8.5px; }
.music-sheet-backdrop { position: absolute; inset: 0; z-index: 24; display: flex; align-items: flex-end; background: #00000061; }
.phone-screen.keyboard-open .music-sheet-backdrop { inset: 0 0 var(--keyboard-height,206px); }
.music-sheet { display: flex; flex-direction: column; width: 100%; max-height: 78%; overflow: hidden; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; color: #111; box-shadow: 0 -10px 34px #0003; }
.music-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; padding: 2px 0 8px; }
.music-sheet-head h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.3px; }
.music-sheet-head > button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #f0f0f2; color: #636366; }
.music-sheet-form { display: grid; gap: 9px; overflow-y: auto; }
.music-sheet-form label { display: grid; gap: 4px; }
.music-sheet-form label > span { color: #8a8a8e; font-size: 7.5px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.music-sheet-form input, .music-sheet-form textarea { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 0; border-radius: 8px; outline: 0; background: #f2f2f4; color: #111; font: 10px -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif; resize: none; }
.music-sheet-actions { display: flex; justify-content: flex-end; gap: 7px; padding-top: 3px; }
.music-sheet-actions button { height: 28px; padding: 0 14px; border: 0; border-radius: 14px; background: #f0f0f2; color: #3c3c43; font-size: 9px; font-weight: 600; }
.music-sheet-actions button[type="submit"] { background: #fa2d48; color: #fff; }
.music-sheet-done { padding-top: 8px; }
.music-sheet-song { display: flex; flex: none; align-items: center; gap: 8px; padding: 0 0 8px; border-bottom: .5px solid #ededef; }
.music-sheet-song-art { width: 34px; height: 34px; overflow: hidden; border-radius: 4px; object-fit: cover; }
.music-sheet-song > span { display: grid; gap: 1px; min-width: 0; }
.music-sheet-song b { overflow: hidden; font-size: 9.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.music-sheet-song small { overflow: hidden; color: #8a8a8e; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.music-sheet-head.music-sheet-song-head { justify-content: flex-start; }
.music-sheet-head.music-sheet-song-head > button { margin-left: auto; }
.music-sheet-list { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.music-sheet-list::-webkit-scrollbar { display: none; }
.music-sheet-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 0; border: 0; border-bottom: .5px solid #ededef; background: none; color: inherit; text-align: left; }
.music-sheet-row-art { width: 36px; height: 36px; overflow: hidden; border-radius: 4px; object-fit: cover; }
.music-sheet-row > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.music-sheet-row b { overflow: hidden; font-size: 9.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.music-sheet-row small { color: #8a8a8e; font-size: 8px; }
.music-sheet-check, .music-sheet-add { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; font-style: normal; }
.music-sheet-check { background: #fa2d48; color: #fff; }
.music-sheet-add { background: #f0f0f2; color: #636366; }
.music-sheet-new { display: flex; align-items: center; justify-content: center; gap: 5px; flex: none; margin-top: 8px; height: 30px; border: 0; border-radius: 15px; background: #fa2d4814; color: #fa2d48; font-size: 9px; font-weight: 600; }
.music-sheet-hint { flex: none; margin: -2px 0 6px; color: #8a8a8e; font-size: 8px; }
.music-menu-list .music-sheet-row { min-height: 34px; }
.music-menu-list .music-sheet-row > i { display: grid; place-items: center; width: 22px; flex: none; color: #636366; font-style: normal; }
.music-song-plays { display: grid; gap: 2px; }
.music-song-picker { display: grid; gap: 3px; max-height: 190px; overflow-y: auto; padding: 3px 0; scrollbar-width: thin; }
.music-picker-row { display: flex; align-items: center; gap: 8px; padding: 4px 7px; border-radius: 7px; background: #f6f6f4; }
.music-picker-row input { flex: none; margin: 0; accent-color: #fa2d48; }
.music-picker-row > span { display: grid; gap: 1px; min-width: 0; }
.music-picker-row b { overflow: hidden; font-size: 9.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.music-picker-row small { color: #8a8a8e; font-size: 8px; }

/* Phone app · iOS 18 */
.phone-screen[data-app="phone"] .app-view { background:#fff; color:#111; }
.phone-app-screen { position:relative; display:flex; flex:1; flex-direction:column; min-height:0; background:#fff; color:#111; }
.phone-app-screen button { font-family:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.phone-app-screen [hidden] { display:none !important; }
.phone-icon { display:block; flex:none; }
.phone-large-head { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; flex:none; min-height:40px; padding:2px 16px 4px; }
.phone-large-head h1 { margin:0; font-size:25px; font-weight:800; letter-spacing:-.7px; line-height:1.05; }
.phone-center-head { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; flex:none; min-height:38px; padding:2px 16px 4px; }
.phone-center-head h1 { margin:0; font-size:16px; font-weight:700; letter-spacing:-.2px; text-align:center; }
.phone-center-head > .phone-head-leading { justify-content:flex-start; }
.phone-center-head > .phone-head-actions:last-child { justify-content:flex-end; }
.phone-nav-head { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; flex:none; min-height:44px; padding:4px 14px 6px; }
.phone-nav-head h2 { margin:0; overflow:hidden; font-size:14px; font-weight:600; letter-spacing:-.2px; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.phone-head-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; }
.phone-nav-back { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:#f2f2f7; color:#111; }
.phone-nav-back svg { margin-left:-1px; }
.phone-text-button { padding:3px 1px; border:0; background:none; color:#007aff; font-size:12.5px; font-weight:500; }
.phone-pill-button { padding:5px 11px; border:0; border-radius:16px; background:#f2f2f7d9; color:#007aff; font-size:11.5px; font-weight:600; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.phone-icon-button { display:grid; place-items:center; width:26px; height:26px; padding:0; border:0; border-radius:50%; background:none; color:#007aff; }
.phone-scroll { display:flex; flex:1; flex-direction:column; min-height:0; overflow-y:auto; padding:0 16px 26px; overscroll-behavior:contain; scrollbar-width:none; }
.phone-scroll::-webkit-scrollbar { display:none; }
.phone-segmented { display:grid; grid-template-columns:repeat(2,1fr); gap:2px; flex:none; margin:2px 0 8px; padding:2px; border-radius:8px; background:#efeff1; }
.phone-segmented button { height:24px; border:0; border-radius:6px; background:transparent; color:#111; font-size:10.5px; font-weight:600; }
.phone-segmented button.active { background:#fff; box-shadow:0 1px 3px #0000001f; }
.phone-row { display:flex; align-items:center; gap:6px; min-height:44px; border-bottom:.5px solid #e5e5ea; }
.phone-row-info, .phone-row-remove { display:grid; place-items:center; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:none; }
.phone-row-info { color:#8e8e93; }
.phone-row-remove { color:#fff; background:#ff3b30; }
.phone-row-main { display:flex; flex:1; align-items:center; gap:9px; min-width:0; padding:6px 0; border:0; background:none; color:inherit; text-align:left; }
.phone-row-copy { display:flex; align-items:center; gap:9px; min-width:0; flex:1; }
.phone-row-copy > span { display:grid; gap:1px; min-width:0; }
.phone-row-copy b { overflow:hidden; font-size:11.5px; font-weight:400; text-overflow:ellipsis; white-space:nowrap; }
.phone-row-copy small { overflow:hidden; color:#8e8e93; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.phone-row-avatar { width:30px; height:30px; flex:none; border-radius:50%; object-fit:cover; background:#e5e5ea; }
.phone-avatar-blank { display:grid; place-items:center; flex:none; overflow:hidden; border:0; border-radius:50%; background:#e5e5ea; color:#8e8e93; font-weight:500; letter-spacing:.2px; }
.phone-row-avatar.phone-avatar-blank { font-size:9.5px; }
.call-contact-avatar.phone-avatar-blank, .call-avatar-wrap > .phone-avatar-blank { background:#ffffff2e; color:#fff; font-size:17px; }
.call-panel-open .call-contact-avatar.phone-avatar-blank, .call-panel-open .call-avatar-wrap > .phone-avatar-blank { font-size:13px; }
.phone-row-chevron { color:#c7c7cc; }
.phone-missed { color:#ff3b30 !important; }
.phone-sections { display:flex; flex-direction:column; }
.phone-section { display:flex; flex-direction:column; }
.phone-section-head { position:sticky; top:0; z-index:2; margin:0; padding:3px 0 3px; background:#fff; color:#6c6c70; font-size:10.5px; font-weight:700; letter-spacing:.2px; }
.phone-indexed { position:relative; }
.phone-alphabet { position:absolute; top:4px; right:1px; z-index:4; display:flex; flex-direction:column; align-items:center; gap:1px; }
.phone-alphabet button { width:13px; padding:0; border:0; background:none; color:#007aff; font-size:7.5px; font-weight:600; line-height:1.25; }
.phone-search-field { display:flex; align-items:center; gap:6px; flex:none; height:30px; margin:0 0 8px; padding:0 8px; border-radius:8px; background:#efeff1; color:#8a8a8e; }
.phone-search-field input { flex:1; min-width:0; padding:0; border:0; outline:0; background:none; color:#111; font:10.5px -apple-system,BlinkMacSystemFont,'SF Pro Text',sans-serif; }
.phone-search-field input::placeholder { color:#8a8a8e; }
.phone-search-clear { display:grid; place-items:center; width:15px; height:15px; padding:0; border:0; border-radius:50%; background:#c6c6c8; color:#fff; }
.phone-footer-action { display:flex; align-items:center; justify-content:center; gap:5px; flex:none; padding:9px 0 3px; border:0; background:none; color:#007aff; font-size:11.5px; }
.phone-empty { margin:34px 0; color:#8e8e93; font-size:11px; text-align:center; }
.phone-detail-scroll { padding-bottom:16px; }
.phone-card-title { margin:2px 0 13px; font-size:22px; font-weight:700; letter-spacing:-.5px; text-align:center; overflow-wrap:anywhere; }
.phone-quick-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:0 10px 16px; }
.phone-quick-action { display:grid; place-items:center; width:42px; height:42px; margin:0 auto; padding:0; border:0; border-radius:50%; background:#f2f2f7; color:#007aff; }
.phone-card { margin:0 0 12px; padding:0 12px; border-radius:14px; background:#f2f2f7; }
.phone-action-list, .phone-value-list { display:flex; flex-direction:column; }
.phone-detail-row, .phone-static-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; width:100%; min-height:41px; padding:6px 0; border:0; border-bottom:.5px solid #dcdce1; background:none; color:inherit; text-align:left; font-size:12px; }
.phone-action-list > :last-child { border-bottom:0; }
.phone-detail-row span, .phone-static-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-detail-row b, .phone-static-row b { overflow:hidden; color:#8e8e93; font-size:11.5px; font-weight:400; text-overflow:ellipsis; white-space:nowrap; }
.phone-detail-row svg { color:#c7c7cc; }
.phone-detail-row.phone-danger, .phone-static-row.phone-danger { color:#ff3b30; }
.phone-row-on b { color:#ff3b30 !important; }
.phone-poster-row { display:grid; grid-template-columns:auto minmax(0,1fr) 12px; align-items:center; gap:10px; width:100%; min-height:46px; padding:7px 0; border:0; background:none; color:inherit; text-align:left; font-size:12px; }
.phone-poster-row > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-poster-row > svg { color:#c7c7cc; justify-self:end; }
.phone-poster-row .phone-row-avatar { width:32px; height:32px; }
.phone-value-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; width:100%; min-height:50px; padding:7px 0; border:0; border-bottom:.5px solid #dcdce1; background:none; color:inherit; text-align:left; }
.phone-value-list > :last-child { border-bottom:0; }
.phone-value-copy { display:grid; gap:1px; min-width:0; }
.phone-value-copy small { overflow:hidden; color:#8e8e93; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.phone-value-copy b { overflow:hidden; font-size:16px; font-weight:500; letter-spacing:-.2px; text-overflow:ellipsis; white-space:nowrap; }
.phone-value-row > svg { color:#8e8e93; }
.phone-number-kind { display:block; color:#8e8e93; font-size:10px; }
.phone-info-name { margin:2px 0 13px; font-size:22px; font-weight:700; letter-spacing:-.5px; text-align:center; overflow-wrap:anywhere; }
.phone-info-number { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; column-gap:10px; min-height:50px; padding:7px 0; }
.phone-info-number .phone-number-kind { grid-area:1/1/2/2; }
.phone-info-number b { grid-area:2/1/3/2; align-self:center; font-size:15px; font-weight:500; letter-spacing:-.3px; white-space:nowrap; }
.phone-callback-button { grid-area:1/2/3/3; justify-self:end; padding:5px 11px; border:0; border-radius:15px; background:#fff; color:#007aff; font-size:10.5px; font-weight:600; }
.phone-simulation-note { margin:2px 6px 0; color:#a0a0a5; font:600 6.5px/1.5 var(--ios-font); letter-spacing:.6px; text-align:center; text-transform:uppercase; }
.phone-voicemail-list { gap:0; }
.phone-voicemail-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px; border-bottom:.5px solid #e5e5ea; }
.phone-voicemail-row.active { background:#f2f2f7; }
.phone-voicemail-row > .phone-row-remove { flex:none; }
.phone-voicemail-main { flex:1; min-width:0; }
.phone-voicemail-main { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:7px 0; border:0; background:none; color:inherit; text-align:left; font-family:inherit; }
.phone-voicemail-main > span { display:grid; gap:1px; min-width:0; }
.phone-voicemail-main b { overflow:hidden; font-size:11.5px; font-weight:400; text-overflow:ellipsis; white-space:nowrap; }
.phone-voicemail-main small { overflow:hidden; color:#8e8e93; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.phone-voicemail-main time { color:#8e8e93; font-size:9.5px; }
.phone-voicemail-row.fresh .phone-voicemail-main b { color:#007aff; font-weight:600; }
.phone-voicemail-player { flex:1 1 100%; display:grid; gap:7px; padding:2px 0 12px; }
.phone-voicemail-controls { display:flex; align-items:center; justify-content:center; gap:26px; }
.phone-speed-button, .phone-play-button { display:grid; place-items:center; padding:0; border:0; background:none; color:#007aff; }
.phone-speed-button { font-size:10.5px; font-weight:600; }
.phone-play-button { width:26px; height:26px; }
.phone-voicemail-remaining { min-width:32px; color:#8e8e93; font-variant-numeric:tabular-nums; font-size:10px; }
.phone-voicemail-bar { height:2px; margin:0 4px; border-radius:2px; background:#d8d8dc; }
.phone-voicemail-bar i { display:block; width:0; height:100%; border-radius:2px; background:#007aff; transition:width .2s linear; }
.phone-voicemail-transcript { margin:2px 0 0; color:#3a3a3c; font-size:10.5px; line-height:1.5; text-align:center; }
.phone-greeting-card { padding:10px 0; text-align:center; }
.phone-greeting-card p { margin:0; color:#3a3a3c; font-size:11px; line-height:1.5; font-style:italic; }
.phone-dial-display { flex:none; min-height:34px; margin:2px 0 0; color:#111; font-size:22px; font-weight:300; letter-spacing:-.3px; text-align:center; overflow-wrap:break-word; }
.phone-key-suggestions { display:flex; flex-direction:column; flex:none; gap:2px; padding:4px 0; }
.phone-key-suggestion { display:flex; align-items:center; gap:9px; width:100%; padding:5px 4px; border:0; border-radius:8px; background:none; color:inherit; text-align:left; }
.phone-key-suggestion > span { display:grid; flex:1; gap:1px; min-width:0; }
.phone-key-suggestion b { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.phone-key-suggestion small { color:#8e8e93; font-size:9px; }
.phone-key-suggestion svg:last-child { color:#007aff; }
.phone-keypad-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px 12px; flex:none; margin:auto auto 0; padding:6px 0; }
.phone-key { display:grid; place-items:center; width:52px; height:52px; margin:0 auto; padding:0; border:0; border-radius:50%; background:#f2f2f7; color:#111; line-height:1; }
.phone-key span { font-size:21px; font-weight:400; }
.phone-key small { margin-top:-1px; color:#5b5b60; font-size:7px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; }
.phone-keypad-aux, .phone-keypad-actions { display:grid; grid-template-columns:repeat(3,1fr); align-items:end; flex:none; padding:2px 0 4px; }
.phone-keypad-actions { padding-bottom:12px; }
.phone-key-aux { display:grid; justify-items:center; gap:3px; padding:3px 0; border:0; background:none; color:#007aff; font-size:8px; }
.phone-key-aux.is-hidden { visibility:hidden; pointer-events:none; }
.phone-call-key { display:grid; place-items:center; width:52px; height:52px; margin:0 auto; padding:0; border:0; border-radius:50%; background:#34c759; color:#fff; }
.phone-tabbar { display:flex; flex:none; gap:2px; align-items:stretch; margin:0 12px 15px; padding:4px; border-radius:24px; background:#f4f4f6f2; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); box-shadow:0 0 0 .5px #0000000f, 0 8px 22px -14px #00000038; }
.phone-tabbar button { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:5px 0 6px; border:0; border-radius:19px; background:none; color:#7c7c81; }
.phone-tabbar button.active { background:#dcdce1; color:#111; }
.phone-tabbar span { overflow:hidden; max-width:100%; padding:0 2px; font-size:6.8px; font-weight:500; letter-spacing:.1px; text-overflow:ellipsis; white-space:nowrap; }
.phone-sheet-backdrop { position:absolute; z-index:12; inset:0; display:flex; align-items:flex-end; background:#00000052; }
.phone-sheet { display:grid; gap:1px; width:100%; max-height:76%; overflow-y:auto; padding:12px 0 8px; border-radius:13px 13px 0 0; background:#f7f7f9; scrollbar-width:none; }
.phone-sheet::-webkit-scrollbar { display:none; }
.phone-sheet h3 { margin:0 16px 8px; font-size:13px; font-weight:700; text-align:center; }
.phone-sheet p { margin:0 18px 10px; color:#48484a; font-size:10.5px; line-height:1.5; text-align:center; }
.phone-sheet-list { display:grid; gap:1px; padding:0 8px; }
.phone-sheet-row { display:flex; align-items:center; gap:9px; width:100%; min-height:36px; padding:6px 10px; border:0; border-bottom:.5px solid #e5e5ea; border-radius:8px; background:#fff; color:#111; text-align:left; font-size:11.5px; }
.phone-sheet-row > span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-sheet-row svg { color:#007aff; }
.phone-sheet-row.active { font-weight:600; }
.phone-sheet-row .phone-row-avatar { width:24px; height:24px; }
.phone-sheet-empty { margin:6px 12px 10px; color:#8e8e93; font-size:10px; text-align:center; }
.phone-sheet-cancel { margin:8px 8px 0; padding:9px 0; border:0; border-radius:11px; background:#fff; color:#007aff; font-size:12px; font-weight:600; }
.phone-sheet-confirm { gap:8px; padding:18px 14px 14px; text-align:center; }
.phone-sheet-actions { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:6px; }
.phone-sheet-actions button { padding:8px 0; border:0; border-radius:9px; background:#fff; color:#007aff; font-size:11.5px; font-weight:600; }
.phone-sheet-actions button.phone-danger { color:#ff3b30; }
.phone-screen.keyboard-open .phone-tabbar { display:none; }

/* Files app */
.phone-screen[data-app="files"] .app-view { background:#fff; color:#111; }
.app-icon.files { background:#fff; }
.app-icon .files-icon-art { width:80%; height:80%; }
.app-icon .files-icon-folder { fill:#4a90e2; }
.app-icon .files-icon-page { fill:#a9d5ff; }
.app-icon .files-icon-fold { fill:#63a2e6; }
.files-app-screen .phone-search-field { margin:0 16px 10px; height:32px; }
.files-section { display:flex; flex-direction:column; }
.files-section-title { margin:13px 0 6px; color:#6c6c70; font-size:10.5px; font-weight:700; letter-spacing:.2px; text-transform:uppercase; }
.files-section > .files-section-title:empty { display:none; }
.files-card { padding:0 12px; }
.files-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px; border-bottom:.5px solid #dcdce1; }
.files-row:last-child { border-bottom:0; }
.files-row-main { display:grid; grid-template-columns:34px minmax(0,1fr); align-items:center; gap:10px; width:100%; min-height:47px; padding:6px 0; border:0; background:none; color:inherit; text-align:left; }
.files-row-icon { display:grid; place-items:center; width:34px; height:34px; }
.files-row-thumb { width:34px; height:34px; border-radius:6px; object-fit:cover; background:#e5e5ea; }
.files-row-copy { display:grid; gap:1px; min-width:0; }
.files-row-copy b { overflow:hidden; font-size:12.5px; font-weight:450; letter-spacing:-.1px; text-overflow:ellipsis; white-space:nowrap; }
.files-row-copy small { overflow:hidden; color:#8e8e93; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.files-row-chevron { display:grid; place-items:center; color:#c7c7cc; }
.files-path-note { margin:2px 0 9px; color:#8e8e93; font-size:10px; letter-spacing:.1px; }
.files-simulation-note { margin-top:18px; }
.files-glyph-folder, .files-glyph-device, .files-glyph-cloud, .files-glyph-clock { color:#3d82c4; }
.files-glyph-document { color:#6e6e73; }
.files-glyph-image { color:#2fa45c; }
.files-glyph-audio { color:#e0842a; }
.files-glyph-video { color:#8b5cf6; }
.files-glyph-archive { color:#5b7fd4; }
.files-glyph-file { color:#8e8e93; }
.files-glyph-trash { color:#ff3b30; }
.files-glyph-note, .files-glyph-sort { color:#007aff; }
.files-quicklook { gap:13px; padding-bottom:34px; }
.files-ql-text { min-height:0; margin:0; padding:13px 14px; border-radius:12px; background:#f2f2f7; color:#111; font:400 10.5px/1.7 'DM Mono',ui-monospace,monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.files-ql-image { overflow:hidden; border-radius:12px; background:#f2f2f7; }
.files-ql-image img { display:block; width:100%; max-height:246px; object-fit:cover; }
.files-ql-cover { display:grid; justify-items:center; gap:6px; padding:26px 14px; border-radius:12px; background:#f2f2f7; text-align:center; }
.files-ql-cover b { overflow-wrap:anywhere; font-size:13px; font-weight:600; letter-spacing:-.2px; }
.files-ql-cover small { color:#8e8e93; font-size:10px; }
.files-meta-card { margin:0; }

/* Weather app */
.phone-screen[data-app="weather"] .app-view { padding-top:0; background:#22354b; }
.phone-screen[data-app="weather"] .phone-status.app-status { color:#fff; }
.wx-glyph .wx-lines { fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; }
.app-icon .weather-icon-art { width:82%; height:82%; }
.app-icon .weather-icon-sun { fill:#ffd75e; }
.app-icon .weather-icon-rays { fill:none; stroke:#ffd75e; stroke-width:1.7; stroke-linecap:round; }
.app-icon .weather-icon-cloud { fill:#fff; }
.wx-app-screen { color:#fff; text-shadow:0 1px 12px #0b1a2b26; }
.wx-app-screen.wx-clear-day { background:linear-gradient(180deg,#0a7cc9,#3fa0e0 42%,#9ed6f3); }
.wx-app-screen.wx-clear-night { background:linear-gradient(180deg,#060d1c,#14264a 52%,#2f4f74); }
.wx-app-screen.wx-cloudy-day { background:linear-gradient(180deg,#4b7f9f,#87b0c6 52%,#c6dbe4); }
.wx-app-screen.wx-cloudy-night { background:linear-gradient(180deg,#0d1520,#26364a 55%,#455f76); }
.wx-app-screen.wx-rain-day { background:linear-gradient(180deg,#2f5a70,#548096 52%,#87a8b8); }
.wx-app-screen.wx-rain-night { background:linear-gradient(180deg,#08131b,#1c2f3d 55%,#39566a); }
.wx-app-screen.wx-storm-day { background:linear-gradient(180deg,#232a44,#414a6b 55%,#6b7391); }
.wx-app-screen.wx-storm-night { background:linear-gradient(180deg,#05060f,#1a1d33 55%,#343a5c); }
.wx-app-screen.wx-snow-day { background:linear-gradient(180deg,#5f8fb4,#a9cde2 52%,#e8f4fb); }
.wx-app-screen.wx-snow-night { background:linear-gradient(180deg,#101c2a,#2c4763 55%,#5c819f); }
.wx-app-screen.wx-fog-day { background:linear-gradient(180deg,#6d818f,#a3b3bd 52%,#d3dade); }
.wx-app-screen.wx-fog-night { background:linear-gradient(180deg,#12181d,#2b353d 55%,#4d5a65); }
.wx-app-screen.wx-list-backdrop { background:linear-gradient(180deg,#0e1a28,#1d2f44 60%,#2f4560); }
.wx-scroll { gap:9px; padding:50px 14px 18px; }
.wx-scroll > * { flex-shrink:0; }
.wx-island { display:flex; justify-content:space-between; gap:9px; }
.wx-pill { display:grid; gap:2px; width:96px; padding:7px 8px 8px; border:1px solid #ffffff40; border-radius:13px; background:#ffffff26; backdrop-filter:blur(14px); text-align:center; }
.wx-pill small { color:#ffffffd8; font-size:8.5px; font-weight:600; }
.wx-pill b { font-size:9.5px; font-weight:600; line-height:1.15; }
.wx-pill-icon { display:grid; place-items:center; height:18px; }
.wx-pill-spacer { width:96px; }
.wx-current { display:grid; justify-items:center; gap:1px; padding:0 0 10px; }
.wx-current p { margin:0; font-size:17px; font-weight:600; letter-spacing:-.2px; }
.wx-current strong { font-size:66px; line-height:1.04; font-weight:200; letter-spacing:-2px; }
.wx-current span { font-size:14px; font-weight:500; }
.wx-current small { margin-top:2px; font-size:12px; font-weight:600; }
.wx-card { padding:11px 12px 12px; border:1px solid #ffffff3d; border-radius:15px; background:#ffffff26; backdrop-filter:blur(16px); }
.wx-card-title { margin:0 0 9px; color:#ffffffd0; font:700 9px var(--ios-font); letter-spacing:.6px; text-transform:uppercase; }
.wx-card-empty { margin:4px 0; color:#ffffffcc; font-size:11px; }
.wx-alert-card { border-color:#ffd76b7a; background:#f2a93b3d; }
.wx-alert-text { margin:0; font-size:12px; font-weight:600; }
.wx-alert-note { margin:4px 0 0; color:#ffffffd0; font-size:10px; }
.wx-hourly-wrap { margin:0 -12px; overflow-x:auto; scrollbar-width:none; }
.wx-hourly-wrap::-webkit-scrollbar { display:none; }
.wx-hourly-inner { position:relative; margin:0 12px; }
.wx-hourly { display:flex; }
.wx-hour, .wx-milestone { flex:0 0 54px; display:grid; justify-items:center; gap:6px; }
.wx-hour small, .wx-milestone small { font-size:9.5px; font-weight:600; }
.wx-hour b { font-size:12.5px; font-weight:500; }
.wx-hour-icon, .wx-mile-icon { display:grid; place-items:center; height:19px; }
.wx-milestone b { font-size:9.5px; font-weight:600; }
.wx-days { display:grid; }
.wx-day-row { display:grid; grid-template-columns:40px 22px 34px 26px minmax(0,1fr) 26px; align-items:center; gap:5px; min-height:30px; border-top:1px solid #ffffff2b; font-size:11px; }
.wx-day-row:first-child { border-top:0; }
.wx-day-row small { font-size:11px; }
.wx-day-row.is-today small { font-weight:700; }
.wx-day-icon { display:grid; place-items:center; }
.wx-day-rain { color:#bfe4ff; font-size:9.5px; font-weight:600; text-align:right; }
.wx-day-rain.is-hidden { visibility:hidden; }
.wx-day-low { color:#ffffffab; text-align:right; }
.wx-day-high { text-align:right; }
.wx-day-low, .wx-day-high { font-variant-numeric:tabular-nums; }
.wx-day-track { position:relative; display:block; height:5px; border-radius:5px; background:#ffffff33; }
.wx-day-track em { position:absolute; top:0; left:var(--wx-left); width:var(--wx-width); height:100%; border-radius:5px; background:linear-gradient(90deg,#8fd3f4,#ffe9a8,#ffbd6b); }
.wx-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.wx-tile { position:relative; display:grid; align-content:start; gap:5px; min-height:82px; padding:11px 12px; border:1px solid #ffffff3d; border-radius:15px; background:#ffffff26; backdrop-filter:blur(16px); }
.wx-tile small { color:#ffffffd0; font:700 8.5px var(--ios-font); letter-spacing:.5px; text-transform:uppercase; }
.wx-tile strong { font-size:22px; font-weight:400; }
.wx-tile strong small { font:500 11px/1 inherit; letter-spacing:0; text-transform:none; }
.wx-tile > span { color:#ffffffd8; font-size:10px; }
.wx-tile-arrow { position:absolute; top:11px; right:12px; }
.wx-scale { position:relative; display:block; height:3px; margin-top:3px; border-radius:3px; background:linear-gradient(90deg,#4cd964,#ffd60a,#ff9f0a,#ff453f,#9c6bd6); }
.wx-scale-uv { background:linear-gradient(90deg,#5ad1e8,#ffe17a,#ff9d5c,#ff5c5c,#b06bd6); }
.wx-scale em { position:absolute; top:-2px; left:var(--wx-marker); width:7px; height:7px; border-radius:50%; background:#fff; box-shadow:0 0 0 1px #ffffff80; transform:translateX(-50%); }
.wx-bottom-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 18px 13px; border-top:1px solid #ffffff2e; background:#00000026; backdrop-filter:blur(18px); }
.wx-dots { display:flex; flex:1; justify-content:center; gap:6px; min-height:8px; }
.wx-dot { width:7px; height:7px; padding:0; border:0; border-radius:50%; background:#ffffff5c; }
.wx-dot.active { background:#fff; }
.wx-bar-button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:#ffffff2e; color:#fff; }
.wx-page-head { display:grid; grid-template-columns:44px minmax(0,1fr) 54px; align-items:center; gap:8px; padding:44px 12px 4px; }
.wx-page-title { margin:0; font-size:25px; font-weight:700; letter-spacing:-.6px; }
.wx-head-button { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:50%; background:#ffffff2e; color:#fff; }
.wx-head-text { width:auto; height:auto; padding:5px 9px; border-radius:12px; font-size:11px; font-weight:600; justify-self:end; }
.wx-close svg { transform:rotate(-90deg); }
.wx-list-scroll, .wx-search-scroll { padding-top:6px; }
.wx-list-card { display:flex; align-items:center; padding:0 12px; }
.wx-list-open { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; flex:1; min-width:0; padding:12px 0; border:0; background:none; color:inherit; text-align:left; font-family:inherit; font-size:inherit; }
.wx-list-copy { display:grid; gap:1px; min-width:0; }
.wx-list-copy b { overflow:hidden; font-size:16px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.wx-list-copy small { color:#ffffffc4; font-size:11px; }
.wx-list-now { display:grid; justify-items:end; gap:1px; }
.wx-list-now small { color:#ffffffc4; font-size:10.5px; }
.wx-list-now strong { font-size:25px; font-weight:300; }
.wx-list-now span { color:#ffffffd8; font-size:10.5px; }
.wx-row-remove { display:grid; place-items:center; flex:0 0 auto; width:22px; height:22px; margin-right:9px; padding:0; border:0; border-radius:50%; background:#ff453f; color:#fff; }
.wx-search-head { display:flex; align-items:center; gap:8px; padding:44px 14px 10px; }
.wx-search-field { display:flex; align-items:center; gap:6px; flex:1; height:34px; padding:0 9px; border-radius:10px; background:#ffffff2e; color:#ffffffe0; }
.wx-search-field input { flex:1; min-width:0; border:0; background:none; color:#fff; font-family:inherit; font-size:13px; outline:none; }
.wx-search-field input::placeholder { color:#ffffffa0; }
.wx-search-clear { display:grid; place-items:center; width:18px; height:18px; padding:0; border:0; border-radius:50%; background:#ffffff55; color:#fff; }
.wx-results-title { margin:0 0 6px; color:#ffffffcc; font:700 9px var(--ios-font); letter-spacing:.6px; text-transform:uppercase; }
.wx-search-card { display:grid; padding:0 12px; }
.wx-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #ffffff2b; }
.wx-search-row:last-of-type { border-bottom:0; }
.wx-search-copy { display:grid; gap:1px; min-width:0; }
.wx-search-copy b { overflow:hidden; font-size:14px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.wx-search-copy small { color:#ffffffc4; font-size:10.5px; }
.wx-search-now { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:500; }
.wx-row-add { display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; border-radius:50%; background:#ffffff2e; color:#fff; }
.wx-row-empty { margin:8px 0; color:#ffffffc0; font-size:11.5px; text-align:center; }
.wx-search-hint { margin:0 2px; color:#ffffffb8; font-size:10.5px; }
.wx-page-empty { margin:38px 0; color:#ffffffd0; font-size:13px; line-height:1.6; text-align:center; }
.wx-note { margin:4px 2px 0; color:#ffffffa8; font-size:9.5px; letter-spacing:.2px; }
.wx-editor-hours { display:grid; grid-template-columns:repeat(auto-fill,minmax(126px,1fr)); gap:6px; margin-bottom:12px; }
.wx-editor-hour { display:grid; grid-template-columns:28px minmax(0,.8fr) minmax(0,1.2fr) 18px; align-items:center; gap:4px; padding:4px; border-radius:8px; background:#eef2e9; }
.wx-editor-hour > span, .wx-editor-day-name { font:600 9px 'DM Mono',monospace; color:#59614f; }
.wx-editor-days { display:grid; gap:5px; margin-bottom:8px; }
.wx-editor-day { display:grid; grid-template-columns:44px minmax(0,1fr) 50px 50px 56px 18px; align-items:center; gap:5px; }
.wx-editor-head { display:grid; grid-template-columns:44px minmax(0,1fr) 50px 50px 56px 18px; gap:5px; margin-bottom:4px; font:600 8.5px 'DM Mono',monospace; color:#8b9182; text-transform:uppercase; }
.wx-editor-hour .field, .wx-editor-day .field { gap:0; margin:0; }
.wx-editor-hour .field input, .wx-editor-day .field input, .wx-editor-hour .field select, .wx-editor-day .field select { padding:5px 6px; font-size:10px; }

/* To-Do (Reminders) */
.phone-screen[data-app="todo"] .app-view { background: #fff; color: #1c1c1e; -webkit-tap-highlight-color: transparent; }
.phone-screen[data-app="todo"] .app-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.phone-screen[data-app="todo"] .app-body::-webkit-scrollbar { display: none; }
.todo-topbar { display: flex; align-items: center; min-height: 34px; padding: 0 8px; }
.todo-back { display: grid; place-items: center; width: 30px; height: 28px; border: 0; background: none; color: #0a84ff; font-size: 1.55em; line-height: 1; cursor: pointer; }
.todo-body { padding: 0 0 10px; background: #fff; color: #1c1c1e; }
.todo-large-title { display: flex; align-items: center; gap: .3em; margin: 0 0 4px; padding: 4px 16px 8px; font-size: 1.72em; font-weight: 700; letter-spacing: -.022em; line-height: 1.09; }
.todo-large-title .todo-row-icon { width: .85em; height: .85em; }
.todo-large-title .todo-row-icon svg { width: .65em; height: .65em; }
.todo-large-title .todo-row-icon.is-list svg { width: .5em; height: .5em; }
.todo-group-title { margin: 12px 0 2px; padding: 0 16px; color: #76767c; font-size: .72em; font-weight: 600; letter-spacing: .028em; line-height: 1.45; text-transform: uppercase; }
.todo-group-empty { margin: 0; padding: 12px 16px 14px; color: #7f7f85; font-size: .86em; letter-spacing: -.011em; line-height: 1.35; }
.todo-rows { display: block; border-top: 1px solid #e5e5ea; }
.todo-list-row, .todo-row { display: flex; align-items: center; gap: 9px; width: 100%; margin: 0; padding: 8px 12px 8px 16px; border: 0; border-bottom: 1px solid #e5e5ea; background: none; color: #1c1c1e; text-align: left; }
.todo-list-row { gap: 12px; cursor: pointer; transition: background-color .14s ease; }
.todo-row { align-items: flex-start; }
.todo-row .todo-check { height: 19px; }
.todo-row .todo-flag { margin-top: -2px; }
.todo-list-row:active { background: #f2f2f4; }
.todo-list-row b { flex: 1; min-width: 0; overflow: hidden; font-weight: 400; font-size: .93em; letter-spacing: -.014em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.todo-list-row em, .todo-completed-toggle em { flex: none; color: #8e8e93; font-size: .93em; font-style: normal; letter-spacing: -.014em; }
.todo-row-icon { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.todo-row-icon svg { display: block; width: 15px; height: 15px; }
.todo-row-icon.is-list { color: #fff; }
.todo-row-icon.is-list svg { width: 12px; height: 12px; }
.todo-chevron { flex: none; width: 7px; height: 7px; margin: 0 2px 0 0; border-right: 1.6px solid #c7c7cc; border-bottom: 1.6px solid #c7c7cc; transform: rotate(-45deg); }
.todo-chevron.is-open { margin-top: -3px; transform: rotate(45deg); }
.todo-check { flex: none; display: grid; place-items: center; width: 20px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.todo-check i { display: grid; place-items: center; width: 19px; height: 19px; border: 1.5px solid #c7c7cc; border-radius: 50%; color: #fff; font-size: 11px; line-height: 1; transition: background-color .16s ease, border-color .16s ease; }
.todo-row.is-completed .todo-check i { border-color: transparent; background: var(--todo-tint, #8e8e93); }
.todo-row.is-completed .todo-check i::after { content: '✓'; }
.todo-copy { flex: 1; min-width: 0; }
.todo-copy b { display: block; font-weight: 400; font-size: .93em; letter-spacing: -.014em; line-height: 1.25; overflow-wrap: anywhere; }
.todo-copy small { display: -webkit-box; margin-top: 2px; overflow: hidden; color: #7f7f85; font-size: .72em; letter-spacing: -.011em; line-height: 1.3; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.todo-copy small.is-overdue { color: #ff3b30; }
.todo-row.is-completed .todo-copy b { color: #b8b8be; text-decoration: line-through; text-decoration-thickness: 1px; }
.todo-row.is-completed .todo-copy small { color: #c6c6cb; }
.todo-flag { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: #d0d0d5; cursor: pointer; }
.todo-flag svg { display: block; width: 14px; height: 14px; }
.todo-flag.is-flagged { color: #ff9f0a; }
.todo-completed-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px; padding: 8px 12px 8px 16px; border: 0; border-top: 1px solid #e5e5ea; background: none; color: #76767c; font-size: .72em; font-weight: 600; letter-spacing: .028em; text-transform: uppercase; text-align: left; cursor: pointer; }
.todo-completed-toggle span { flex: 1; }
.todo-add-bar { flex: none; margin: 0; padding: 0 16px 8px; background: #fff; }
.todo-add-new { width: 100%; padding: 10px 0; border: 0; border-top: 1px solid #e5e5ea; background: none; color: var(--todo-tint, #0a84ff); font-size: .93em; letter-spacing: -.014em; text-align: left; cursor: pointer; }
.todo-add-form { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #e5e5ea; }
.todo-add-form input { flex: 1; min-width: 0; border: 0; background: none; color: #1c1c1e; font-family: inherit; font-size: .93em; letter-spacing: -.014em; }
.todo-add-form input::placeholder { color: #a3a3a8; letter-spacing: -.014em; }
.todo-add-form input:focus { outline: none; }
.todo-add-form button { flex: none; display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 50%; background: var(--todo-tint, #0a84ff); color: #fff; font-size: 14px; cursor: pointer; }
.todo-editor-item { margin-bottom: 12px; padding: 10px 12px 12px; border: 1px solid #e2e4d8; border-radius: 10px; background: #fbfbf7; }
.todo-editor-item .post-card-top { padding: 0 0 6px; }

/* iOS 18 Recents — proportions from the reference screenshot, scaled to the frame as it renders in the preview */
.phone-recents-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 0; }
.phone-recents-head .phone-pill-button { padding: 4px 11px; border: 0; border-radius: 13px; background: #f2f2f7; color: #0a0a0a; font: 600 10.5px/1 var(--ios-font); }
.phone-recents-segmented { flex: none; width: 100px; height: 24px; gap: 0; margin: 0; padding: 2px; border-radius: 8px; background: #f2f2f7; }
.phone-recents-segmented button { height: 20px; border-radius: 6px; color: #0a0a0a; font-size: 10px; font-weight: 600; }
.phone-recents-filter { display: grid; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f2f2f7; color: #0a0a0a; }
.phone-recents-title { flex: none; margin: 0; padding: 8px 16px 6px; color: #000; font-size: 24px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; }
.phone-recents-row { position: relative; gap: 6px; min-height: 46px; border-bottom: 0; }
.phone-recents-row::after { position: absolute; right: -4px; bottom: 0; left: 31px; height: 1px; background: #e7e7e8; content: ""; }
.phone-recents-row .phone-row-main { margin-left: -4px; }
.phone-recents-row:has(.phone-recents-remove) .phone-row-main { margin-left: 0; }
.phone-recents-avatar { width: 30px; height: 30px; }
.phone-recents-avatar.phone-avatar-blank { background: linear-gradient(180deg, #a5bdde, #7581ba); color: #ffffffd9; }
.phone-row-copy > .phone-recents-copy { display: grid; gap: 1px; min-width: 0; }
.phone-recents-copy b { display: block; overflow: hidden; font-size: 13px; font-weight: 600; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.phone-recents-copy small { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: #8a8a8e; font-size: 10px; white-space: nowrap; }
.phone-recents-label { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.phone-recents-arrow { flex: none; font-size: 10px; }
.phone-recents-time { flex: none; color: #8a8a8e; font-size: 10px; }
.phone-recents-row .phone-row-info { width: 26px; height: 26px; margin-right: -4px; background: #f3f4f5; color: #0088ff; }


/* Cloudflare Pages phone-only deployment: preserve the original simulator and hide the builder UI. */
html, body { width: 100%; min-width: 320px; height: 100%; min-height: 100%; margin: 0; overflow: hidden; }
.builder-shell { display: block !important; width: 100%; height: 100svh; min-height: 100svh; }
.editor-panel { display: none !important; }
.preview-panel { display: grid !important; width: 100%; height: 100svh; min-height: 100svh; grid-template-rows: 0 minmax(0,1fr) 0 !important; overflow: hidden; }
.preview-toolbar, .preview-foot { display: none !important; }
.preview-mat { display: grid; width: 100%; height: 100%; min-height: 0; padding: 10px !important; overflow: hidden; container-type: size; }
.phone-frame { width: auto !important; height: min(100%, calc(100cqh - 20px)) !important; max-width: calc(100vw - 20px); max-height: calc(100svh - 20px); aspect-ratio: 1206 / 2622; padding: 8px; }
.phone-screen { width: 100%; height: 100%; }
@media (max-width: 680px) {
  .builder-shell { display: block !important; }
  .preview-panel { order: initial; height: 100svh !important; min-height: 100svh !important; }
  .preview-mat { padding: 10px !important; }
  .phone-frame { width: auto !important; height: min(100%, calc(100cqh - 20px)) !important; max-width: calc(100vw - 20px); }
}
