@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; }
.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; font-family: 'DM Sans', sans-serif; }
.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: white; }.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 { font-size: 15px; line-height: 10px; }.battery-mark { position: relative; width: 17px; height: 9px; padding: 1px; border: 1px solid #fff; border-radius: 2px; }.battery-mark::after { position: absolute; top: 2px; right: -3px; width: 2px; height: 3px; border-radius: 0 2px 2px 0; background: white; content: ''; }.battery-mark i { display: block; width: 100%; height: 100%; background: white; }
.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); }
.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; padding-top: 79px; background: #10171538; backdrop-filter: blur(24px); }.pass-title { margin-bottom: 20px; font-size: 14px; }.pass-dots { display: flex; gap: 13px; margin-bottom: 28px; }.pass-dots i { width: 9px; height: 9px; border: 1px solid white; border-radius: 50%; }.pass-dots i.filled { background: white; }.pass-keys { display: grid; grid-template-columns: repeat(3, 55px); gap: 10px 17px; }.pass-keys button { width: 55px; height: 55px; border: 0; border-radius: 50%; background: #ffffff31; color: white; font-size: 21px; cursor: pointer; }.pass-cancel { margin-top: 20px; border: 0; background: transparent; color: #fff; font-size: 10px; cursor: pointer; }
.home-view { padding: 84px 19px 78px; }.home-date-label { color: #ffffffdb; font: 500 9px 'DM Mono', monospace; text-align: center; }.home-clock-label { margin: 3px 0 18px; font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; text-shadow: 0 2px 12px #0004; }.home-widget { display: flex; align-items: center; gap: 10px; min-height: 57px; margin-bottom: 18px; padding: 9px 10px; border: 1px solid #ffffff28; border-radius: 14px; background: #19221db9; backdrop-filter: blur(18px); }.widget-art { width: 39px; height: 39px; flex: none; border-radius: 7px; object-fit: cover; }.widget-song { flex: 1; min-width: 0; }.widget-song b, .widget-song small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.widget-song b { font-size: 10px; }.widget-song small { margin-top: 3px; color: #ffffffad; font-size: 8px; }.widget-play { padding: 5px; font-size: 12px; }
.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: 9px; text-shadow: 0 1px 5px #0009; cursor: pointer; }.home-app:active .app-icon { transform: scale(.9); }.app-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; box-shadow: 0 4px 9px #0004, inset 0 1px 1px #ffffff75; font-size: 25px; 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: 27px; height: 27px; 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: 71px; 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: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; align-items: center; 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 7px; }
.app-icon.line { background: linear-gradient(145deg,#28d66d,#05ad4e); }
.app-icon.calendar { background: linear-gradient(#fff 0 23%,#fff 23%); color: #e15e54; font-size: 9px; font-weight: 700; }
.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.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; overflow-y: auto; padding: 0 14px 30px; scrollbar-width: none; }.app-body::-webkit-scrollbar { display: none; }.app-subtitle { margin: 14px 0 8px; color: #838780; font: 500 9px 'DM Mono', monospace; letter-spacing: .7px; text-transform: uppercase; }
.ig-stories { display: flex; gap: 9px; overflow-x: auto; padding: 12px 0 14px; scrollbar-width: none; }.ig-stories::-webkit-scrollbar { display: none; }.story-button { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 59px; flex: none; padding: 0; border: 0; background: none; color: #252825; font-size: 8px; }.story-ring { display: grid; place-items: center; width: 48px; height: 48px; padding: 2px; border-radius: 50%; background: conic-gradient(#f7ca6b,#e35279,#9a58bd,#f7ca6b); }.story-ring img { width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }.story-button.self .story-ring { background: #d9d9d5; }.story-name { max-width: 59px; 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 'DM Mono', monospace; }.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-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 'DM Sans', sans-serif; }.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; }
.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; }
.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 'DM Mono',monospace; 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-header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 16px; color: #d7564e; font-size: 10px; font-weight: 700; letter-spacing: .6px; }.calendar-header button { border: 0; background: none; color: #d7564e; font-size: 22px; }.calendar-body { padding-top: 4px; }.calendar-month-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }.calendar-month-nav h2 { margin: 0; font: 600 20px 'DM Sans',sans-serif; }.calendar-month-nav button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f0f0ed; color: #d7564e; font-size: 21px; }.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,1fr); justify-items: center; }.calendar-weekdays { padding: 4px 0 7px; border-bottom: 1px solid #ededeb; color: #a0a39e; font: 9px 'DM Mono',monospace; }.calendar-days { grid-auto-rows: 36px; align-items: center; padding: 3px 0 7px; }.calendar-day { position: relative; display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 50%; background: transparent; color: #252925; font-size: 10px; }.calendar-day.selected { background: #d9574f; color: white; }.calendar-day.has-event::after { position: absolute; bottom: -2px; width: 3px; height: 3px; border-radius: 50%; background: #d9574f; content: ''; }.calendar-day.selected.has-event::after { background: white; }.calendar-agenda { margin: 5px -14px 0; padding: 0 14px; border-top: 7px solid #f0f0ed; }.calendar-event { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid #ecece7; background: none; text-align: left; }.calendar-event > i, .event-color { width: 3px; height: 34px; border-radius: 3px; background: var(--event-color); }.calendar-event span:nth-child(2) { display: grid; flex: 1; gap: 3px; }.calendar-event b { font-size: 9px; }.calendar-event small { color: #858982; font-size: 8px; }.calendar-event > span:last-child { color: #9b9e97; }.calendar-detail { padding-top: 25px; }.calendar-detail .event-color { display: block; width: 4px; height: 44px; }.calendar-detail h2 { font-size: 17px; }.calendar-detail p { font-size: 10px; }
.camera-ui { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 47px; background: #090a09; color: white; }.camera-ui header { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 0 20px; color: #f4d677; font: 10px 'DM Mono',monospace; }.camera-ui header button { border: 0; background: transparent; color: white; font-size: 17px; }.camera-viewfinder { flex: 1; min-height: 0; margin: 4px 8px 13px; overflow: hidden; border-radius: 3px; background: #171b18; }.camera-viewfinder img { width: 100%; height: 100%; object-fit: cover; }.camera-controls { display: flex; align-items: center; justify-content: space-around; min-height: 75px; }.camera-controls > button { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: transparent; color: white; font-size: 23px; }.camera-controls > button:first-child { overflow: hidden; border: 2px solid #fff; border-radius: 7px; }.camera-controls > button:first-child img { width: 100%; height: 100%; object-fit: cover; }.camera-shutter { width: 61px !important; height: 61px !important; border: 4px solid white !important; }.camera-shutter i { width: 47px; height: 47px; border-radius: 50%; background: white; }.camera-modes { display: flex; justify-content: center; gap: 12px; min-height: 38px; padding-top: 4px; color: #e4c768; }.camera-modes button { border: 0; background: transparent; color: #b0b1ad; font-size: 7px; }.camera-modes button.active { color: #f6d467; font-weight: 700; }
.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 span, .alarm-row span { display: grid; gap: 3px; }.world-clock-row b { font-size: 12px; font-weight: 500; }.world-clock-row small, .alarm-row small { color: #858a82; font-size: 8px; }.world-clock-row strong { font-size: 26px; font-weight: 300; }.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-list-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 16px; color: #d3a92c; }.notes-list-top b { color: #242720; font-size: 14px; }.notes-list-top button { border: 0; background: none; color: #d3a92c; font-size: 19px; }.notes-search { margin: 9px 0 11px; border-radius: 9px; background: #efefec; }.note-row { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #e9e9e4; background: none; text-align: left; }.note-row span:first-child { display: grid; gap: 4px; min-width: 0; }.note-row b { font-size: 10px; }.note-row small { overflow: hidden; color: #868a82; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.note-row > span:last-child { color: #acafa8; }.notes-editor-top { display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding: 0 14px; color: #d3a92c; font-size: 9px; }.notes-editor-top button { border: 0; background: none; color: #d3a92c; }.notes-edit { padding: 4px 17px; }.note-title-input { width: 100%; margin-top: 8px; padding: 5px 0; border: 0; outline: 0; background: transparent; color: #292d26; font-size: 17px; font-weight: 700; }.note-sheet { width: 100%; min-height: 65%; padding: 3px 0; border: 0; outline: 0; background: transparent; color: #444940; font: 11px/1.6 'DM Sans',sans-serif; resize: none; }
.weather-screen { position: absolute; inset: 0; overflow-y: auto; padding: 74px 13px 38px; background: linear-gradient(160deg,#78b9e1,#9dc6db 43%,#d8e5e4); color: white; scrollbar-width: none; }.weather-screen::-webkit-scrollbar { display: none; }.weather-current { display: flex; flex-direction: column; align-items: center; padding: 6px 0 18px; text-shadow: 0 1px 8px #54728a40; }.weather-current p { margin: 0 0 3px; font-size: 16px; }.weather-current strong { font-size: 65px; line-height: 1.05; font-weight: 200; }.weather-current span { font-size: 12px; }.weather-current small { margin-top: 4px; font-size: 9px; }.weather-panel { margin: 8px 0; padding: 12px; border: 1px solid #ffffff35; border-radius: 11px; background: #f7fbfc34; backdrop-filter: blur(8px); }.weather-panel h3 { margin: 0 0 10px; color: #ffffffc9; font: 8px 'DM Mono',monospace; letter-spacing: .7px; }.hourly-forecast { display: flex; justify-content: space-between; }.hourly-forecast div { display: grid; justify-items: center; gap: 8px; font-size: 8px; }.hourly-forecast b { font-size: 16px; }.hourly-forecast small { font-size: 9px; }.forecast-row { display: grid; grid-template-columns: 34px 1fr 25px 1.1fr 25px; gap: 4px; align-items: center; min-height: 29px; border-top: 1px solid #ffffff24; font-size: 8px; }.forecast-row i { height: 4px; border-radius: 4px; background: #ffffff4c; }.forecast-row em { display: block; width: var(--forecast-width); height: 100%; border-radius: 4px; background: #ffe18a; }.weather-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.weather-detail-grid div { display: grid; gap: 7px; min-height: 54px; padding: 10px; border: 1px solid #ffffff35; border-radius: 10px; background: #f7fbfc34; }.weather-detail-grid small { color: #ffffffbc; font: 7px 'DM Mono',monospace; }.weather-detail-grid b { font-size: 10px; font-weight: 500; }
.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 'DM Mono',monospace; }.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 'DM Mono',monospace; 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 'DM Mono',monospace; 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 'DM Sans',sans-serif; 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(3),.safari-toolbar button:nth-child(4) { color: #2777c7; font-size: 18px; }.safari-toolbar button:last-child { color: #2777c7; }.safari-toolbar button:last-child span { display: grid; place-items: center; width: 20px; height: 20px; border: 1.6px solid currentColor; border-radius: 6px; font-size: 9px; }
.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 'DM Sans',sans-serif; 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 'DM Mono',monospace; }.safari-back-start { margin-top: 11px; padding: 7px 11px; border: 0; border-radius: 15px; background: #ecf2f8; color: #3178b9; font-size: 8px; }
.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 'DM Mono',monospace; 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; }
@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; }
@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; }.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: relative; z-index: 8; flex: none; padding: 7px 4px max(8px, env(safe-area-inset-bottom)); background: #d1d5dc; box-shadow: 0 -4px 14px #0001; }
.keyboard-row { display: flex; justify-content: center; gap: 4px; margin: 0 0 7px; }
.keyboard-row button { min-width: 0; height: 36px; flex: 1; padding: 0 1px; border: 0; border-radius: 5px; background: #fafbfe; color: #242832; box-shadow: 0 1px 1px #71798580; font-size: 12px; font-weight: 500; cursor: pointer; touch-action: manipulation; }
.keyboard-row .keyboard-special { max-width: 43px; background: #aeb5c1; font-size: 10px; }
.keyboard-row .keyboard-delete { margin-left: auto; }
.keyboard-row.keyboard-bottom { gap: 4px; margin-bottom: 0; }
.keyboard-row .keyboard-globe { max-width: 34px; font-size: 14px; }.keyboard-row .keyboard-space { flex: 3; max-width: none; font-size: 8px; }.keyboard-row .keyboard-return { flex: 1.15; max-width: 58px; background: #aeb5c1; font-size: 9px; }.keyboard-row .keyboard-hide { max-width: 28px; }
.phone-app-header { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-bottom: 1px solid #ecece7; background: #fafaf8; }.phone-app-header h2 { margin: 0; font-size: 15px; }.phone-app-header button { min-width: 35px; border: 0; background: transparent; color: #368354; font-size: 12px; }
.phone-tabbar { display: flex; justify-content: space-around; flex: none; min-height: 48px; border-top: 1px solid #e7e8e3; background: #fafaf8; }.phone-tabbar button { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: transparent; color: #81867d; font-size: 8px; }.phone-tabbar button b { font-size: 14px; }.phone-tabbar button.active { color: #19814b; }
.phone-list { padding-top: 8px; }.phone-search { display: flex; gap: 8px; margin: 3px 0 10px; padding: 8px; border-radius: 8px; background: #ededeb; }.phone-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.phone-contact-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 59px; border-bottom: 1px solid #ecece8; }.phone-contact-row > button:first-child { display: flex; align-items: center; gap: 9px; flex: 1; padding: 8px 0; border: 0; background: none; text-align: left; }.phone-contact-row img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; background: #e5e5df; }.phone-contact-row span { display: grid; gap: 3px; }.phone-contact-row b { font-size: 10px; }.phone-contact-row small { color: #8c9089; font-size: 8px; }.phone-contact-call { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eaf5ed; color: #299b58; }
.phone-call-row { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 57px; padding: 8px 0; border: 0; border-bottom: 1px solid #e9e9e4; background: none; text-align: left; }.phone-call-row > span:nth-child(2) { display: grid; flex: 1; gap: 4px; }.phone-call-row b { font-size: 10px; }.phone-call-row small, .phone-call-row time { color: #858981; font-size: 8px; }.phone-call-icon { color: #54825c; font-size: 15px; }.phone-call-icon.missed { color: #df514d; }.phone-call-row > i { color: #bbb; font-style: normal; }
.phone-keypad-body { flex: 1; overflow: auto; padding: 12px 16px; }.phone-keypad-body .phone-keypad { gap: 7px; margin: 10px auto; }.phone-keypad-body .phone-keypad button { width: 48px; height: 48px; }.phone-keypad-body .dial-number { display: block; width: 100%; border: 0; border-bottom: 1px solid #ddd; background: transparent; font-size: 20px; }
.phone-contact-detail { text-align: center; }.phone-contact-detail > img { width: 88px; height: 88px; margin: 34px auto 10px; border-radius: 50%; object-fit: cover; }.phone-contact-detail h2 { margin: 0; font-size: 17px; }.phone-contact-detail p { color: #757b73; font-size: 11px; }.phone-contact-detail .call-button { margin-top: 20px; }
.simulated-call-screen { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px 35px; background: radial-gradient(ellipse,#48544b,#151a17); color: white; text-align: center; }.simulated-call-screen > img { width: 92px; height: 92px; margin-bottom: 14px; border-radius: 50%; object-fit: cover; }.simulated-call-screen p { margin: 0 0 7px; color: #d2d7d0; font-size: 11px; }.simulated-call-screen h2 { margin: 0; font-size: 20px; }.simulated-call-screen > span { margin-top: 7px; color: #c7ccc5; font-size: 11px; }.simulated-call-screen small { margin-top: 18px; color: #a7b1a5; font: 7px 'DM Mono',monospace; }.call-end-button { width: 54px; height: 54px; margin-top: 44px; transform: rotate(135deg); border: 0; border-radius: 50%; background: #f04444; color: white; font-size: 22px; }
.camera-source-picker { display: flex; align-items: center; gap: 8px; padding: 0 14px 5px; color: #c6c8c4; font-size: 8px; }.camera-source-picker select { max-width: 75%; border: 0; background: #242724; color: white; font-size: 8px; }.camera-viewfinder video { width: 100%; height: 100%; object-fit: contain; background: #000; }.camera-viewfinder .empty-editor { padding: 20px; color: white; font-size: 10px; }.camera-shutter.video-record i { width: 27px; height: 27px; border-radius: 6px; background: #f04b46; }.camera-shutter.video-record.recording i { width: 22px; height: 22px; border-radius: 4px; }
.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); }
.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 { z-index: 2; display: grid; gap: 5px; width: min(290px,100%); margin-top: 13px; }
.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; }
.incoming-call-actions { display: flex; gap: 34px; margin-top: 38px; }
.incoming-call-actions button { min-width: 68px; padding: 10px 12px; border: 0; border-radius: 20px; color: #fff; font-size: 10px; }
.call-reject-button { background: #e84c4c; }.call-answer-button { background: #43bb69; }
.incoming-call-screen .call-end-button { display: none; }
.phone-incoming-control { display: grid; gap: 7px; margin: 0 0 10px; padding: 10px; border-radius: 9px; background: #f3f4f1; }
.phone-incoming-control label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #555b53; font-size: 9px; }
.phone-incoming-control select { max-width: 65%; border: 1px solid #e0e2dc; border-radius: 6px; background: white; font-size: 9px; }
.phone-incoming-control button { min-height: 30px; border: 0; border-radius: 7px; background: #4c8957; color: #fff; font-size: 9px; font-weight: 700; }
.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-center-launcher { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin: 8px auto; padding: 5px 9px; border: 1px solid #ffffff4d; border-radius: 12px; background: #17221d8c; color: white; font-size: 8px; cursor: pointer; }
.notification-center-launcher span { display: grid; place-items: center; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 9px; background: #f14d50; color: white; font-size: 7px; }
.home-view > .notification-center-launcher { position: absolute; top: 60px; right: 14px; margin: 0; }
.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-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 .22s ease-out; }
@keyframes notification-arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .line-message-actions button { min-width: 25px; min-height: 25px; }
  .incoming-call-actions { gap: 24px; }
}

/* iPhone-style simulated in-call controls */
.line-message-actions { display: none !important; }
.ios-call-screen { position: absolute; inset: 0; width: 100%; height: 100%; justify-content: flex-start; gap: 0; overflow-y: auto; padding: 58px 21px 26px; background: radial-gradient(ellipse at 50% 30%, #46554a 0, #202823 52%, #121714 100%); }
.call-screen-top { position: absolute; top: 49px; right: 18px; left: 18px; display: flex; justify-content: space-between; color: #d2d8d1; font: 8px 'DM Mono', monospace; letter-spacing: 1px; }
.call-simulation-tag { padding: 4px 7px; border: 1px solid #ffffff35; border-radius: 10px; color: #c4d2bd; letter-spacing: .3px; }
.call-person { display: flex; flex-direction: column; align-items: center; flex: none; padding-top: 20px; }
.call-avatar-wrap { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 12px; border: 1px solid #ffffff45; border-radius: 50%; background: #ffffff12; box-shadow: 0 6px 22px #0003; }
.call-contact-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.call-person h2 { max-width: 100%; margin: 0; overflow: hidden; font-size: 21px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.call-phone-number { margin-top: 5px; color: #ccd1cb; font-size: 11px; }
.call-status { display: flex; align-items: center; gap: 7px; min-height: 19px; margin: 10px 0 14px; color: #d1d8ce; font-size: 11px; }
.call-status time { font-variant-numeric: tabular-nums; }
.call-controls-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 11px; width: min(100%, 260px); margin: 8px auto 0; }
.call-control, .call-end-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 66px; padding: 5px; border: 0; border-radius: 16px; background: #ffffff1a; color: white; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.call-control > span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #ffffff20; font-size: 19px; }
.call-control small, .call-end-button small { margin: 0; color: #f5f7f3; font: 9px 'DM Sans', sans-serif; }
.call-control.active { background: #f3f5ef; color: #273129; }
.call-control.active > span { background: #dce7d8; }
.call-control.active small { color: #273129; }
.call-end-button { min-height: 66px; margin: 0; transform: none; background: transparent; }
.call-end-button > span { display: grid; place-items: center; width: 49px; height: 49px; transform: rotate(135deg); border-radius: 50%; background: #f04444; color: white; font-size: 22px; }
.call-end-button small { color: #fff; }
.ios-call-screen footer { flex: none; margin-top: auto; padding-top: 16px; color: #aab3a8; font: 7px 'DM Mono', monospace; letter-spacing: .45px; }
.call-participants { max-width: 250px; margin: 12px auto 0; color: #d3d9d2; font-size: 9px; text-align: center; }
.call-subtitle-slot { display: grid; place-items: center; width: min(100%, 270px); min-height: 48px; flex: none; margin: 7px 0 3px; }
.call-subtitle { width: 100%; max-height: 48px; overflow-y: auto; margin: 0; padding: 7px 11px; border: 1px solid #ffffff20; border-radius: 12px; background: #ffffff1b; box-shadow: 0 3px 12px #0002; color: #fff; font-size: 10px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; white-space: pre-wrap; opacity: 0; transform: translateY(4px); transition: opacity .28s ease, transform .28s ease; scrollbar-width: thin; }
.call-subtitle.visible { opacity: 1; transform: translateY(0); }
.call-options-panel, .call-details-panel, .call-keypad-panel, .facetime-panel { width: min(100%, 280px); margin: 2px auto 0; }
.call-options-panel h3, .call-details-panel h3 { margin: 10px 0 12px; font-size: 14px; font-weight: 600; text-align: center; }
.call-panel-back { display: block; padding: 6px 0; border: 0; background: none; color: #d5e2d1; font-size: 10px; cursor: pointer; }
.call-options-panel > button:not(.call-panel-back) { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 46px; margin: 6px 0; padding: 9px 11px; border: 1px solid #ffffff22; border-radius: 10px; background: #ffffff12; color: white; font-size: 10px; text-align: left; cursor: pointer; }
.call-options-panel > button span { color: #c3ccc0; font-size: 8px; }
.call-options-panel > .call-script-unavailable { opacity: .68; cursor: not-allowed !important; }
.call-panel-note { color: #d3d9d2; font-size: 10px; text-align: center; }
.call-details-panel dl { display: grid; grid-template-columns: 78px 1fr; gap: 9px; margin: 12px 0 0; padding: 12px; border: 1px solid #ffffff20; border-radius: 12px; background: #ffffff0e; text-align: left; }
.call-details-panel dt { color: #bac4b8; font-size: 9px; }
.call-details-panel dd { margin: 0; overflow-wrap: anywhere; color: white; font-size: 9px; }
.call-keypad-panel { text-align: center; }
.call-dtmf-display { min-height: 35px; margin: 4px 0 8px; color: white; font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: 2px; overflow-wrap: anywhere; }
.call-keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 13px; width: min(100%, 206px); margin: 0 auto; }
.call-keypad-grid button { display: grid; place-items: center; width: 49px; height: 49px; justify-self: center; border: 0; border-radius: 50%; background: #ffffff26; color: white; font-size: 18px; cursor: pointer; }
.call-keypad-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 10px; }
.call-keypad-actions button { padding: 6px 8px; border: 0; border-radius: 8px; background: #ffffff1a; color: white; font-size: 9px; }
.call-keypad-actions small { margin: 0; color: #b8c1b5; font: 7px 'DM Sans', sans-serif; }
.facetime-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.facetime-remote, .facetime-local { position: relative; min-width: 0; height: 112px; overflow: hidden; border: 1px solid #ffffff35; border-radius: 12px; background: #26302a; }
.facetime-remote img, .facetime-local img { width: 100%; height: 100%; object-fit: cover; }
.facetime-remote span, .facetime-local span { position: absolute; right: 4px; bottom: 5px; left: 4px; overflow: hidden; color: white; font-size: 7px; 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: #cbd3c8; font-size: 8px; text-align: center; }
.facetime-panel .call-panel-button { grid-column: 1 / -1; min-height: 33px; border: 1px solid #ffffff28; border-radius: 9px; background: #ffffff14; color: white; font-size: 9px; }
.call-panel-open .call-person { padding-top: 8px; }
.call-panel-open .call-avatar-wrap { width: 56px; height: 56px; margin-bottom: 6px; }
.call-panel-open .call-contact-avatar { width: 50px; height: 50px; }
.call-panel-open .call-person h2 { font-size: 15px; }
.call-panel-open .call-status { margin: 6px 0 8px; }
.call-panel-open footer { padding-top: 10px; }
@media (max-height: 700px) {
  .ios-call-screen { padding-top: 51px; padding-bottom: 17px; }
  .call-screen-top { top: 43px; }
  .call-person { padding-top: 11px; }
  .call-avatar-wrap { width: 74px; height: 74px; margin-bottom: 8px; }
  .call-contact-avatar { width: 68px; height: 68px; }
  .call-controls-grid { gap: 8px; margin-top: 2px; }
  .call-control, .call-end-button { min-height: 57px; }
}

.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 'DM Mono', monospace; 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; }


/* Mawin Phone public player mode: keep the original app simulator and hide builder controls. */
html, body { width: 100%; min-width: 320px; min-height: 100%; margin: 0; }
body { overflow: hidden; background: #20251f; }
.builder-shell { display: block !important; width: 100%; min-height: 100svh; height: 100svh; }
.editor-panel { display: none !important; }
.preview-panel { display: grid !important; grid-template-rows: 0 minmax(0, 1fr) 0 !important; width: 100%; min-width: 0; min-height: 100svh !important; height: 100svh !important; overflow: hidden; }
.preview-toolbar, .preview-foot { display: none !important; }
.preview-mat { width: 100%; height: 100%; min-height: 0; padding: 0 !important; overflow: hidden; }
.phone-frame { width: min(100vw, 430px, calc(100cqh * .45995)) !important; max-height: 100% !important; border-radius: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.phone-screen { border-radius: 0 !important; }
@media (max-width: 700px) {
  .builder-shell { display: block !important; }
  .preview-panel { min-height: 100svh !important; height: 100svh !important; }
  .preview-mat { padding: 0 !important; }
  .phone-frame { width: min(100vw, calc(100svh * .45995)) !important; height: 100svh !important; max-height: 100svh !important; aspect-ratio: 1206 / 2622; }
}


/* Mawin Phone public player mode: hide Pocket Studio editor */
.editor-panel { display: none !important; }
.builder-shell { grid-template-columns: minmax(0, 1fr) !important; min-height: 100vh; }
.preview-panel { min-height: 100vh !important; grid-template-rows: minmax(0, 1fr) !important; }
.preview-toolbar, .preview-foot { display: none !important; }
.preview-mat { min-height: 100vh !important; padding: 0 !important; }
.phone-frame { width: min(100%, 420px, calc(100cqh * .45995)); }
