/* Dotayi — a Persian garden. Native layout, inspired by shadcn/ui's inset sidebar
   and chatcn's conversation patterns. See DESIGN.md for references and tokens. */
.shell { display: flow-root; width: min(1600px,100%); margin: auto; padding: 16px; }
.party { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: calc(100dvh - 32px); gap: 30px; }
.sidebar { padding: 30px 18px 22px; display: flex; flex-direction: column; position: sticky; top: 16px; height: calc(100dvh - 32px); max-height: 1100px; border-radius: 24px; background: #571e31; color: #f9efe3; overflow: hidden; }
.wordmark { display: flex; align-items: center; gap: 12px; padding: 0 9px; margin-bottom: 46px; text-decoration: none; color: #fff5e9; font-size: 25px; font-weight: 600; line-height: 1.6; }
.wordmark small { display: block; color: #ddbcc0; font-size: 10px; font-weight: 400; margin-top: 2px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; padding: 7px; border-radius: 14px; background: var(--card); flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav-label { color: #d5adb5; font-size: 10px; padding-inline: 14px; margin-bottom: 14px; }
.main-nav { display: flex; flex-direction: column; gap: 9px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 12px 15px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: #ead0d3; font-size: 12px; text-align: start; }
.nav-item:hover { background: #ffffff0a; color: white; }
.nav-item.active { background: #fff4e9; color: #64273a; border-color: #fff2; box-shadow: 0 4px 16px #31071915; font-weight: 600; }
.nav-item.active svg { stroke-width: 2; }
.nav-item:focus-visible { outline-color: #a4d3c5; }
.badge { margin-inline-start: auto; border-radius: 6px; font-size: 10px; min-width: 21px; padding: 1px 5px; background: #9fd1c2; color: #224b40; text-align: center; }
.sidebar-note { margin-top: auto; padding: 58px 14px 0; }
.small-heart { font-size: 46px; line-height: 1; color: #b0d8c6; }
.sidebar-note p { font-size: 16px; line-height: 2; margin: 20px 0 10px; font-weight: 400; }
.sidebar-note>span:last-of-type { font-size: 10px; color: #d7adb4; }
.sidebar-signature { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid #fff2; font-size: 9px; color: #d4a9b2; direction: ltr; }
.sidebar-signature i { height: 1px; background: #b0d8c6; flex: 1; }
.workspace { min-width: 0; padding: 18px 14px 18px 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 53px; margin: 0 0 30px; }
.topbar-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-heading>div { min-width: 0; }
.mobile-brand { display: none; }
.mobile-brand img { display: block; width: 32px; height: 32px; object-fit: contain; }
.topbar h1 { font-size: 24px; line-height: 1.6; font-weight: 600; }
.topbar .eyebrow { color: var(--muted); font-size: 10px; font-weight: 400; margin-bottom: 4px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--burgundy-soft); color: var(--accent); border: 1px solid #e8d5da; font-size: 18px; flex-shrink: 0; }
.home-hero { display: flex; position: relative; overflow: hidden; min-height: 360px; align-items: center; border: 1px solid #e5d9c9; border-radius: 24px; background: #eee5d8; }
.home-hero::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid #d5c2a666; border-radius: 50%; left: -130px; top: -95px; }
.hero-copy { padding: 34px 40px; position: relative; z-index: 1; flex: 1; }
.pill { display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px; border: 1px solid #d9cbbb; border-radius: 6px; font-size: 10px; color: #71534c; background: #fff8ec77; }
.pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--turquoise); }
.hero-copy h2 { font-size: clamp(31px,3.1vw,46px); line-height: 1.7; margin: 18px 0 13px; font-weight: 600; color: #59273a; }
.hero-copy h2 em { color: #16736b; font-style: normal; }
.hero-copy p { color: #715b55; font-size: 12px; line-height: 2.1; margin-bottom: 24px; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.primary.compact { display: inline-flex; align-items: center; justify-content: center; gap: 15px; width: auto; padding: 12px 18px; font-size: 12px; border-radius: 11px; margin: 0; }
.compact svg { width: 17px; height: 17px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 0; color: #6e3c47; font-size: 11px; }
.hero-link:hover { color: var(--turquoise); }
.together-art { width: 36%; max-width: 345px; flex-shrink: 0; align-self: stretch; position: relative; margin: 20px 0 13px 36px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.art-frame { position: relative; width: 100%; max-width: 285px; }
.persian-garden { display: block; width: 100%; height: auto; }
.art-seal { position: absolute; bottom: 14px; left: -15px; width: 75px; height: 75px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 4px solid #eee5d8; border-radius: 50%; background: #813348; color: #fff0da; font-size: 13px; transform: rotate(-12deg); }
.art-seal i { font-style: normal; color: #b4dacc; font-size: 12px; }
.art-caption { color: #947e6c; font-size: 9px; margin-top: 4px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 16px; }
.section-heading h2 { font-size: 16px; font-weight: 600; margin: 0; }
.section-heading>span { color: var(--muted); font-size: 10px; }
.activity-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.activity-card { text-align: start; color: var(--text); border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; min-height: 224px; position: relative; box-shadow: var(--shadow); }
.activity-card:hover { transform: translateY(-4px); border-color: #c9aea8; box-shadow: 0 12px 24px #5731280a; }
.activity-icon { background: var(--burgundy-soft); color: var(--accent); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; margin-bottom: 20px; }
.activity-icon.turquoise { color: #176e68; background: #e0eee7; }
.activity-icon.sand { color: #8b6938; background: #f3ebd9; }
.activity-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.activity-description { color: var(--muted); font-size: 11px; line-height: 2; margin-bottom: 20px; }
.activity-link { width: 100%; font-size: 10px; color: var(--accent); margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.call-activity .activity-link { color: #176e68; }
.cinema-activity .activity-link { color: #876138; }
.activity-link b { font-size: 20px; font-weight: 400; line-height: 1; }
.together-strip { display: flex; align-items: center; gap: 15px; border: 1px solid #d6e4dd; border-radius: 16px; margin-top: 18px; padding: 18px 22px; background: #eaf1eb; }
.pair-avatars { width: 44px; height: 44px; border-radius: 50%; background: #d8e8df; color: #2d7265; font-size: 28px; display: grid; place-items: center; flex-shrink: 0; }
.together-strip h3 { font-size: 12px; font-weight: 600; margin: 0 0 4px; color: #2c5749; }
.together-strip p { font-size: 10px; line-height: 1.9; color: #556d5d; margin: 0; }
.together-strip .ghost { margin-inline-start: auto; flex-shrink: 0; color: #376957; border-color: #cfdfd4; background: #f8fbf6; font-size: 11px; }

/* Conversation: quiet canvas, strong outgoing bubbles, floating composer. */
.workspace:has(#view-chat:not(.hidden)) { display: flex; flex-direction: column; height: calc(100dvh - 32px); }
.workspace:has(#view-chat:not(.hidden)) .topbar { flex-shrink: 0; }
#view-chat { display: flex; flex: 1; min-height: 0; }

.messenger { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--card); height: auto; flex: 1; min-width: 0; min-height: 430px; max-height: 1100px; box-shadow: var(--shadow); }
.messenger-header { display: flex; align-items: center; gap: 13px; padding: 18px 24px; background: var(--card); border-bottom: 1px solid var(--border); }
.partner-avatar { background: #e0eee7; color: #246d5d; border-color: #ccdfd4; width: 45px; height: 45px; }
.partner-heading { margin-inline-end: auto; min-width: 0; }
.partner-heading h2 { font-size: 14px; font-weight: 600; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.partner-heading>span { color: var(--muted); font-size: 10px; }
.icon-button { background: transparent; border: 0; border-radius: 11px; width: 40px; height: 40px; display: inline-grid; place-items: center; flex-shrink: 0; color: #806c70; font-size: 24px; }
.icon-button:hover { background: #eee7e1; color: var(--accent); }
.search-bar { display: flex; gap: 12px; padding: 12px 24px; align-items: center; border-bottom: 1px solid var(--border); }
.search-bar input { padding: 10px 13px; font-size: 13px; }
.search-bar span { font-size: 10px; white-space: nowrap; color: var(--muted); }
.messenger .chat-messages { flex: 1; min-height: 0; overflow-y: auto; background: radial-gradient(circle at 1px 1px,#95796612 1px,transparent 0) 0 0/22px 22px,#f6f2eb; padding: 20px 28px; scroll-behavior: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d7c9c0 transparent; }
.chat-message { width: fit-content; background: #fffefa; color: var(--text); border: 1px solid #e7ddd3; border-radius: 17px 17px 5px 17px; max-width: 78%; padding: 11px 15px; margin: 0 0 13px; min-width: 115px; box-shadow: 0 2px 3px #4f2d3003; }
.chat-message.mine { margin-right: auto; background: #743047; color: #fff8f2; border-color: #743047; border-radius: 17px 17px 17px 5px; }
.chat-message p { font-size: 13px; line-height: 2; margin: 0 0 6px; }
.chat-meta { display: flex; justify-content: flex-end; gap: 8px; align-items: center; color: #857478; font-size: 9px; }
.mine .chat-meta { color: #e4c4cc; }
.chat-meta strong { font-size: 10px; font-weight: 500; }
.receipt { letter-spacing: -2px; font-size: 13px; }
.receipt.read { color: #19796e; }
.mine .receipt.read { color: #a6e6d4; }
.pending { opacity: .6; }
.deleted { opacity: .7; font-style: italic; }
.chat-date { text-align: center; margin: 3px auto 23px; background: #eae3da; color: #78655c; font-size: 9px; border-radius: 20px; width: fit-content; padding: 5px 13px; }
.conversation-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); }
.empty-symbol { display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid #d7e3d8; border-radius: 26px 26px 26px 8px; background: #e2ece2; color: var(--turquoise); font-size: 44px; margin-bottom: 18px; }
.conversation-empty h3 { color: var(--accent); font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.conversation-empty p { font-size: 12px; line-height: 2; }
.messenger .chat-form { display: flex; align-items: flex-end; gap: 4px; margin: 14px 18px 0; padding: 8px; background: #fffefa; border: 1px solid #ded3cc; border-radius: 16px; box-shadow: 0 3px 10px #502f3305; }
.messenger .chat-form:focus-within { border-color: #69a79c; box-shadow: 0 0 0 3px #167b7810; }
.chat-form textarea { resize: none; max-height: 120px; min-height: 40px; flex: 1; width: 100%; min-width: 0; padding: 8px; font-size: 13px; line-height: 1.8; background: transparent; border: 0; color: var(--text); outline: 0; }
.chat-form textarea::placeholder { color: #978584; font-size: 12px; }
.send-button { width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: #fff7ee; border: 0; display: grid; place-items: center; flex-shrink: 0; }
.send-button:hover { background: #62263b; }
.send-button svg { width: 19px; transform: rotate(-90deg); }
.composer-hint { min-height: 15px; margin: 8px 25px 12px; font-size: 9px; color: #877771; line-height: 1.8; }
.compose-context { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 8px 20px 0; padding: 4px 12px; border-inline-start: 3px solid var(--turquoise); border-radius: 8px; background: #e9f1e9; font-size: 11px; color: #296552; }
.compose-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 20px 0; background: #f4eee7; padding: 8px; border: 1px solid var(--border); border-radius: 12px; }
.emoji-picker button { font-size: 22px; background: transparent; border: 0; padding: 6px; border-radius: 9px; }
.emoji-picker button:hover { background: #e7ded2; }
.reply-quote { display: block; max-width: 100%; text-align: start; border: 0; border-inline-start: 2px solid #2d8577; border-radius: 6px; background: #e5eee5; color: #2e6b58; padding: 8px 10px; margin-bottom: 7px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine .reply-quote { background: #fff1; border-color: #a4d7c5; color: #d8eadf; }
.message-menu { position: relative; font-style: normal; }
.message-menu summary { list-style: none; cursor: pointer; font-size: 18px; line-height: 1; padding: 3px 6px; color: inherit; border-radius: 5px; }
.message-menu summary::-webkit-details-marker { display: none; }
.message-menu summary:hover { background: #bba9aa33; }
.message-actions { position: absolute; inset-inline-end: 0; bottom: 26px; z-index: 4; width: 190px; border: 1px solid #dcccc3; border-radius: 13px; padding: 6px; background: #fffefa; box-shadow: 0 10px 35px #4c252627; color: var(--text); }
.message-menu.opens-below .message-actions { top: 26px; bottom: auto; }
.message-actions>button { width: 100%; background: transparent; border: 0; color: var(--text); padding: 10px; text-align: start; border-radius: 7px; font-size: 11px; }
.message-actions>button:hover { background: #f2e8e7; color: var(--accent); }
.reaction-picker { display: flex; gap: 2px; border-top: 1px solid var(--border); padding-top: 5px; }
.reaction-picker button { padding: 5px 2px; background: transparent; border: 0; font-size: 20px; }
.message-reactions { display: flex; gap: 5px; margin-top: 8px; }
.message-reactions button { border: 1px solid #d9d1c7; border-radius: 9px; background: #f3eee8; padding: 4px 7px; color: #634953; font-size: 11px; }
.message-reactions .selected { border-color: #7eaa9a; background: #deeee2; }
.image-attachment img { max-width: 100%; width: 270px; max-height: 280px; object-fit: cover; border-radius: 10px; display: block; margin: 3px 0 10px; }
.file-attachment { display: block; overflow-wrap: anywhere; color: #17695d; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.mine .file-attachment { color: #d5eadf; }
.chat-message audio { width: 260px; max-width: 100%; height: 40px; }
.audio-message { display: flex; align-items: center; gap: 12px; width: 275px; max-width: 100%; padding: 4px 0 8px; color: #176f69; }
.mine .audio-message { color: #f8ecea; }
.audio-message audio { display: none; }
.audio-toggle { flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #167b78; color: #fff; font: inherit; font-size: 19px; display: grid; place-items: center; cursor: pointer; }
.mine .audio-toggle { background: #fff1e8; color: #743047; }
.audio-toggle:disabled { opacity: .7; cursor: wait; }
.audio-toggle svg { width: 22px; height: 22px; }
.audio-loading { width: 17px; height: 17px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.audio-content { flex: 1; min-width: 0; }
.audio-title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; margin-bottom: 2px; }
.audio-message .audio-seek { --audio-progress: 0%; appearance: none; display: block; width: 100%; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; cursor: pointer; background: linear-gradient(to right,currentColor var(--audio-progress),#9aa39e55 var(--audio-progress)) center / 100% 4px no-repeat; color: inherit; }
.audio-seek::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; background: currentColor; }
.audio-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: currentColor; }
.audio-seek:disabled { opacity: .5; cursor: default; }
.audio-footer { display: flex; align-items: center; gap: 6px; min-height: 23px; font-size: 9px; }
.audio-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.audio-status { flex: 1; min-width: 0; line-height: 1.7; opacity: .85; }
.audio-speed { border: 1px solid #91a59e66; background: transparent; color: inherit; font: inherit; font-size: 10px; min-width: 34px; min-height: 28px; border-radius: 8px; cursor: pointer; }
.audio-failed .audio-status { opacity: 1; }
.audio-message button:focus-visible,.audio-seek:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.highlight { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.load-history { display: block; margin: 0 auto 16px; border: 1px solid #d0dad0; border-radius: 10px; background: #eaf1e7; color: #34634f; padding: 8px 14px; font-size: 10px; }
.jump-latest { position: absolute; bottom: 135px; left: 25px; border: 1px solid #d1ddd4; background: #fffefa; box-shadow: 0 5px 15px #3254461a; border-radius: 24px; padding: 10px 15px; font-size: 11px; color: #316e5e; }
.recording { color: #b33650; background: #f5dde3; animation: record-pulse 1s infinite alternate; }
@keyframes record-pulse { to { opacity: .5; } }

/* Calls and cinema retain their functional controls in the shared palette. */
.calls-intro { text-align: center; padding: 40px 25px; background: radial-gradient(ellipse at 10% 0,#b9dacf33,transparent 60%),#fffefa; }
.calls-intro .eyebrow { display: block; margin-bottom: 20px; color: #797064; }
.calls-intro .activity-icon { margin: 0 auto 22px; width: 66px; height: 66px; border-radius: 22px; outline: 1px solid #dce8df; outline-offset: 7px; }
.calls-intro h2 { font-size: 25px; font-weight: 500; line-height: 1.9; color: var(--accent); }
.calls-intro p { font-size: 12px; margin-bottom: 25px; }
.calls-intro>div { display: flex; gap: 12px; justify-content: center; }
.calls-intro .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; }
.calls-intro .secondary svg { width: 17px; }
.call-history { padding: 8px 24px; }
.call-record { display: flex; gap: 15px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.call-record:last-child { border: 0; }
.call-record-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--turquoise-soft); color: var(--turquoise); }
.call-record strong { font-size: 12px; font-weight: 500; }
.call-record p { color: var(--muted); font-size: 10px; margin: 5px 0 0; }
.call-record .ghost { margin-inline-start: auto; font-size: 11px; }
.call-dialog { color-scheme: dark; border: 1px solid #98617466; width: min(760px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border-radius: 25px; background: #301d26; color: #fff5e9; box-shadow: 0 35px 150px #1e0e2080; overflow: auto; }
.call-dialog::backdrop { background: #281321bb; backdrop-filter: blur(10px); }
.call-stage { isolation: isolate; height: min(52dvh,440px); min-height: 270px; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%,#79425355,transparent 70%),#371e2b; }
.call-stage>video { object-fit: cover; }
.call-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.call-avatar { width: 96px; height: 96px; border-radius: 34px 34px 34px 12px; background: #97cabb; display: grid; place-items: center; color: #245848; font-size: 56px; margin-bottom: 24px; box-shadow: 0 0 0 12px #97cabb09,0 0 0 25px #97cabb05; }
.call-placeholder h2 { font-size: 25px; margin-bottom: 8px; }
.call-placeholder p { font-size: 12px; color: #d3adb9; margin-bottom: 10px; }
.call-placeholder>span { font-size: 14px; font-variant-numeric: tabular-nums; direction: ltr; }
.call-placeholder.over-video { top: auto; bottom: 0; padding: 20px; background: linear-gradient(transparent,#000b); }
.over-video .call-avatar { display: none; }
.over-video h2 { font-size: 17px; }
.over-video p { margin: 5px; color: #fff2e5; }
.call-stage .local-video { position: absolute; width: 115px; height: 150px; bottom: 20px; left: 20px; border: 1px solid #ffffff55; border-radius: 16px; object-fit: cover; transform: scaleX(-1); }
.call-details { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; color: #d0b8be; }
.call-details label { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.call-details select { width: auto; padding: 8px; font-size: 11px; background: #432f3c; color: #f6eadd; border-color: #664351; }
.call-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 10px 20px 25px; }
.call-audio-status { min-height: 1.7em; margin: 0; padding: 0 20px 8px; color: #d0b8be; font-size: 11px; line-height: 1.8; text-align: center; }
.call-speaker { display: flex; align-items: center; gap: 6px; padding: 11px 12px; min-height: 44px; border: 1px solid #ffffff26; border-radius: 25px; background: #4b3442; color: #f5e5df; font-size: 11px; }
.call-speaker.speaker-on { background: #97cabb; color: #174536; border-color: #97cabb; }
.call-speaker:disabled { opacity: .5; cursor: default; }
.call-controls .icon-button { width: 48px; height: 48px; border-radius: 50%; background: #4b3442; color: #f5e5df; }
.call-controls .disabled-media { background: #983e594d; color: #ffb2c1; }
.end-button, .accept-button { padding: 13px 20px; border: 1px solid #ffffff17; border-radius: 25px; background: #b7425f; color: white; font-size: 12px; }
.accept-button { background: #97cabb; color: #174536; }
.call-controls .secondary { font-size: 10px; }
#view-cinema>.section-heading { margin-top: 0; }

.entry { position: relative; overflow: hidden; text-align: center; margin: 7vh auto; width: min(470px,100%); padding: 42px; border-color: #dfd2c5; border-radius: 26px; box-shadow: 0 25px 80px #57302c0c; }
.entry::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 6px; background: linear-gradient(to left,#84334b 0 50%,#74ae9f 50% 85%,#d3b482 85%); }
.entry .brand-mark { margin: 0 auto 23px; width: 96px; height: 96px; padding: 0; background: transparent; border-radius: 0; }
.entry h1 { font-size: 38px; color: #64263b; font-weight: 600; }
.entry .muted { font-size: 13px; line-height: 2.2; margin: 15px 0 28px; }
.entry label { display: block; margin: 22px 0 10px; text-align: right; color: #705955; font-size: 12px; }
#display-name { padding: 13px 16px; font-size: 16px; }
.entry .eyebrow { font-size: 10px; margin-bottom: 8px; color: #827162; }
.new-space { margin-top: 16px; font-size: 11px; }
.entry .error { margin: 16px 0 0; }

@media (min-width: 1450px) {
  .party { grid-template-columns: 240px minmax(0,1fr); gap: 40px; }
  .workspace { padding-inline-end: 24px; }
  .home-hero { min-height: 405px; }
  .together-art { margin-inline-end: 65px; }
  .activity-card { min-height: 240px; padding: 26px; }
}
@media (max-width: 1150px) {
  .party { grid-template-columns: 185px minmax(0,1fr); gap: 22px; }
  .sidebar { padding-inline: 12px; }
  .wordmark { padding-inline: 4px; gap: 10px; font-size: 22px; }
  .workspace { padding-inline-end: 4px; }
  .top-actions { gap: 12px; }
  .top-actions .ghost { font-size: 10px; }
  .hero-copy { padding: 28px; }
  .hero-copy h2 { font-size: 34px; }
  .together-art { width: 33%; margin-left: 25px; }
  .hero-actions { gap: 18px; }
  .hero-link { font-size: 10px; }
  .activity-card { padding: 20px 16px; }
  .activity-title { font-size: 13px; }
  .activity-description { font-size: 10px; }
}
@media (max-width: 850px) {
  .shell { padding: 0; }
  .party { display: block; }
  .sidebar { position: fixed; bottom: 0; top: auto; height: auto; z-index: 8; width: 100%; border-radius: 20px 20px 0 0; border-top: 1px solid #e6dbd3; background: #fffdf8f5; backdrop-filter: blur(18px); padding: 8px 10px max(8px,env(safe-area-inset-bottom)); box-shadow: 0 -5px 30px #57302c06; }
  .wordmark, .sidebar-note, .nav-label { display: none; }
  .mobile-brand { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; }
  .main-nav { flex-direction: row; justify-content: space-around; gap: 6px; }
  .nav-item { flex: 1; flex-direction: column; gap: 4px; min-height: 57px; font-size: 10px; padding: 6px 2px; position: relative; color: #8c7778; }
  .nav-item:hover { background: #f4e9e8; color: var(--accent); }
  .nav-item.active { background: #f2e6e7; color: #7a3147; box-shadow: none; }
  .nav-item svg { width: 20px; height: 20px; }
  .badge { position: absolute; top: 0; left: calc(50% + 9px); font-size: 8px; min-width: 15px; }
  .workspace { padding: 26px 24px 105px; }
  .topbar { margin-bottom: 24px; }
  .topbar h1 { font-size: 22px; }
  .top-actions .avatar { display: none; }
  .top-actions .ghost { font-size: 11px; }
  .hero-copy { padding: 32px; }
  .together-art { width: 35%; margin-left: 25px; }
  .activity-grid { gap: 12px; }
  .activity-card { padding: 20px 17px; }
  .workspace:has(#view-chat:not(.hidden)) { height: 100dvh; }
  .messenger { min-height: 340px; }
  .messenger-header { padding: 15px 18px; gap: 10px; }
  .messenger .chat-messages { padding: 18px; }
  .chat-form textarea, .search-bar input { font-size: 16px; }
  .toast { bottom: 90px; }
}
@media (max-width: 580px) {
  .workspace { padding: max(22px,env(safe-area-inset-top)) 16px 100px; }
  .topbar { margin-bottom: 22px; gap: 8px; }
  .topbar h1 { font-size: 21px; }
  .topbar .eyebrow { font-size: 9px; }
  .top-actions { gap: 12px; }
  .top-actions .status { font-size: 9px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .top-actions .ghost span:last-child { display: none; }
  .top-actions .ghost { width: 40px; height: 40px; padding: 0; }
  .home-hero { min-height: 390px; align-items: flex-start; border-radius: 22px; }
  .hero-copy { padding: 26px; }
  .hero-copy h2 { font-size: 34px; line-height: 1.65; margin-top: 18px; }
  .hero-copy p { font-size: 11px; margin-bottom: 23px; max-width: 220px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-link { font-size: 10px; }
  .primary.compact { padding: 11px 15px; gap: 12px; font-size: 11px; }
  .together-art { position: absolute; width: 142px; left: -13px; bottom: -16px; margin: 0; pointer-events: none; }
  .art-caption, .art-seal { display: none; }
  .section-heading { margin-top: 26px; margin-bottom: 15px; }
  .section-heading h2 { font-size: 15px; }
  .section-heading>span { font-size: 9px; }
  .activity-grid { grid-template-columns: 1fr; gap: 12px; }
  .activity-card { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; column-gap: 16px; min-height: 149px; padding: 21px; border-radius: 17px; }
  .activity-icon { grid-row: 1/4; margin: 0; width: 44px; height: 44px; }
  .activity-title { font-size: 14px; margin-bottom: 6px; }
  .activity-description { font-size: 10px; line-height: 2.1; margin: 0 0 11px; }
  .activity-link { grid-column: 2; font-size: 10px; padding-top: 11px; }
  .together-strip { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .together-strip h3 { font-size: 11px; }
  .together-strip p { max-width: 235px; font-size: 9px; }
  .together-strip .ghost { margin-inline-start: 48px; font-size: 10px; }
  .pair-avatars { width: 36px; height: 36px; }
  .messenger { margin-inline: -6px; border-radius: 18px; }
  .messenger-header { padding: 13px 10px; gap: 5px; }
  .partner-heading { padding-inline-start: 4px; }
  .partner-heading h2 { font-size: 12px; }
  .partner-heading>span { font-size: 9px; }
  .partner-avatar { width: 36px; height: 36px; }
  .messenger-header .icon-button { width: 35px; height: 38px; }
  .messenger-header .icon-button svg { width: 19px; }
  .messenger .chat-messages { padding: 15px 11px; }
  .chat-message { max-width: 90%; padding: 9px 12px; }
  .chat-message p { font-size: 13px; }
  .messenger .chat-form { margin: 10px 9px 0; padding: 7px 4px; gap: 1px; }
  .chat-form .icon-button { width: 31px; height: 38px; font-size: 23px; }
  .chat-form .icon-button svg { width: 19px; }
  .chat-form textarea { padding: 5px; min-height: 38px; }
  .chat-form textarea::placeholder { font-size: 11px; }
  .send-button { width: 36px; height: 38px; }
  .composer-hint { font-size: 8px; margin-inline: 16px; }
  .search-bar { padding: 9px; gap: 7px; }
  .call-details { align-items: flex-start; flex-direction: column; gap: 10px; }
  .call-controls { gap: 8px; padding-inline: 12px; }
  .call-controls .icon-button { width: 42px; height: 42px; }
  .end-button, .accept-button { padding: 13px 15px; font-size: 11px; }
  .call-stage .local-video { width: 82px; height: 110px; left: 12px; bottom: 12px; }
  .calls-intro { padding: 35px 20px; }
  .calls-intro h2 { font-size: 20px; }
  .calls-intro p { font-size: 11px; }
  .calls-intro .secondary { font-size: 11px; padding: 11px 15px; }
  .call-record { gap: 10px; }
  .call-record strong { font-size: 11px; }
  .call-record p { font-size: 9px; }
  .call-record .ghost { font-size: 9px; padding: 9px; }
  .call-history { padding-inline: 15px; }
  .entry { width: calc(100% - 32px); margin-top: 5vh; padding: 32px 26px; }
}
@media (max-width: 360px) {
  .workspace { padding-inline: 12px; }
  .hero-copy { padding: 22px; }
  .hero-copy h2 { font-size: 30px; }
  .together-art { width: 114px; }
  .hero-copy p { font-size: 10px; }
  .activity-card { padding: 18px; gap: 12px; }
  .together-strip .ghost { margin-inline-start: 0; }
}
@media (max-height: 560px) {
  .messenger { min-height: 200px; }
  .workspace { padding-top: 14px; }
  .topbar { margin-bottom: 14px; }
}

/* Settings use the same Iranian palette and quiet, legible Noto typography. */
.security-banner{margin:0 0 20px;padding:12px 18px;border:1px solid #b98241;border-radius:16px;background:#fcf2df;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.settings-heading{display:flex;justify-content:space-between;align-items:center;margin:6px 0 30px}.settings-heading h2{font-size:clamp(23px,3vw,34px);margin:7px 0}.settings-emblem{font-size:72px;color:var(--teal,#167b78);padding-inline:20px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;padding-bottom:30px}.settings-card{background:#fffdf9;border:1px solid #e7dfd6;border-radius:22px;padding:26px;min-width:0}.settings-card h3{font-size:19px;margin:6px 0 17px}.settings-card p{font-size:13px;line-height:2;color:#6e6663}.settings-card form{display:grid;gap:9px}.settings-card label{font-size:13px;color:#554544}.settings-card input,.settings-card select{width:100%;min-width:0;border:1px solid #ded5ca;background:#fff;border-radius:12px;padding:12px 14px;font:inherit;font-size:13px;color:#453534}.settings-card button{width:fit-content}.settings-card .field-note{font-size:11px;color:#84756f;margin:4px 0 12px}.settings-wide{grid-column:1/-1}.settings-space{background:#eef5ef}.space-code{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-block:1px solid #d3e1d7;margin:22px 0;font-size:12px}.space-code code{font-size:23px;letter-spacing:3px;color:#146c68}.settings-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.device-row{display:flex;gap:16px;padding:20px 0;border-bottom:1px solid #ede6df;align-items:flex-start}.device-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:46px;background:#f2e6e9;border-radius:14px;color:#813348;font-size:24px}.device-info{flex:1;min-width:0}.device-info h3{font-size:14px;margin:0 0 5px}.device-info p{font-size:11px;margin:0}.device-info summary,.add-device summary,.security-details summary{cursor:pointer;font-size:12px;color:#146c68;padding:10px 0}.device-info code,.security-details code{display:block;word-break:break-all;white-space:normal;font-size:11px;line-height:2.1;user-select:all}.device-actions{display:flex;flex-wrap:wrap;gap:6px;max-width:190px}.danger{color:#962d45!important}.settings-inline,.secret-field{display:flex;gap:8px;align-items:center}.settings-inline input,.secret-field input{flex:1;min-width:0}.settings-inline button,.secret-field button{flex-shrink:0}.add-device{margin-top:16px}.add-device form{margin-top:10px}.privacy-card{border-top:3px solid #167b78}.privacy-status{display:inline-block;border-radius:30px;background:#e7f1ec;color:#17695f!important;padding:6px 14px;font-size:12px!important}.privacy-status.locked{background:#faedd7;color:#87591f!important}.key-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:22px}.key-grid form{align-content:start}.key-grid select{margin:8px 0}.secret-field{margin-top:12px}.security-details{margin-top:24px;padding-top:12px;border-top:1px solid #e6ded4}.entry-security{font-size:11px!important;margin:16px 0 0}.chat-message>img{max-width:100%;max-height:360px;border-radius:12px;object-fit:contain}.chat-message button.file-attachment{font:inherit;border:0;text-align:start;cursor:pointer;background:transparent;color:inherit}
@media(max-width:850px){.main-nav{grid-template-columns:repeat(5,1fr)}.settings-card{padding:20px}.settings-grid{gap:16px}.settings-emblem{font-size:54px}.settings-heading{margin-bottom:20px}.nav-item{font-size:10px}.security-banner{font-size:11px}}
@media(max-width:580px){.settings-grid,.key-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}.settings-heading p{font-size:12px}.device-row{gap:10px;flex-wrap:wrap}.device-actions{max-width:none;margin-inline-start:52px}.device-info{flex-basis:calc(100% - 60px)}.settings-inline{align-items:stretch}.settings-inline button{font-size:11px;padding-inline:10px}.secret-field{flex-wrap:wrap}.secret-field input{flex-basis:100%}.settings-card{padding:18px}.settings-emblem{display:none}.security-banner{align-items:flex-start}}

.entry-auth-link{display:block;font-size:12px;color:#167b78;margin-top:12px;text-align:center}
