/* Shared visual system; module accents are set by navigation. */
/* Temporary density adjustment: set --panel-scale to 1 to revert. */
:root { --panel-scale: .96; }
html { zoom: var(--panel-scale); }
.grow { min-width:0; }
:where(.t1, .t2, .hint, .request-body, .notification-chat-heading) { overflow-wrap:anywhere; }
.notification-chat + .notification-chat { border-top:1px solid var(--border); }
.notification-chat-heading { display:flex; align-items:center; gap:10px; min-height:44px; padding:10px 0; cursor:pointer; list-style:none; }
.notification-chat-heading::-webkit-details-marker { display:none; }
.notification-chat-heading > span { flex:1; min-width:0; }
.notification-chat-heading::after { content:""; width:8px; height:8px; flex-shrink:0; margin-right:5px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); }
.notification-chat[open] > .notification-chat-heading::after { transform:rotate(225deg); }
.notification-chat-content { padding-bottom:12px; }
.notification-chat-content > .section-body { padding:0; }
.card.admin-user-card { padding: 9px 10px; }
.admin-user-card .grow { min-width: 0; }
.admin-user-card .t1 { overflow-wrap: anywhere; }
.admin-user-fields { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6px; margin-top: 6px; }
.admin-user-fields select, .admin-user-bottom input { box-sizing: border-box; min-width: 0; width: 100%; height: 36px; padding: 6px 9px; margin: 0; font-size: 12px; border-radius: 8px; border: 1px solid var(--border); background-color: var(--card-2); color: var(--text); box-shadow: none; }
.admin-user-fields select { appearance: none; -webkit-appearance: none; padding-right: 27px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%238795ab' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: right 8px center; }
.admin-user-fields select option { color: var(--text); background: var(--card); }
.admin-user-fields select:hover:not(:disabled), .admin-user-bottom input:hover:not(:disabled) { border-color: var(--accent); }
.admin-user-fields select:disabled, .admin-user-bottom input:disabled { opacity: .6; cursor: default; }
.admin-user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.admin-user-actions .user-access-button { height: 30px; padding: 4px 7px; font-size: 11px; }
.admin-user-actions .user-delete-button { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--card)); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.admin-user-bottom { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.admin-user-bottom input { flex: 1; width: 0; }
.user-icon-button, .user-access-button { flex-shrink: 0; height: 34px; border: 1px solid var(--border); background: var(--card-2); color: var(--text); border-radius: 7px; cursor: pointer; }
.user-icon-button { display: grid; place-items: center; width: 34px; padding: 7px; }
.user-icon-button svg { width: 18px; height: 18px; }
.user-access-button { padding: 5px 9px; font-size: 12px; }
.tour-overlay { position: fixed; inset: 0; z-index: 1000; background: #0009; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tour-dialog { width: min(420px, 100%); max-height: 65dvh; overflow-y: auto; box-sizing: border-box; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 12px 50px #0005; }
.tour-dialog h2 { margin: 8px 0; font-size: 20px; }
.tour-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-buttons .btn { flex: 1; width: auto; margin: 0; }
.tour-highlight { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
body:has(.tour-overlay) #topbar, body:has(.tour-overlay) #tabs { z-index: 1001; pointer-events: none; }
:root {
  --bg: #f3f5f9; --card: #fff; --card-2: #edf1f7;
  --text: #1b263b; --muted: #62718a; --border: #dfe5ef;
  --accent: #4967dc; --on-accent: #fff; --danger: #c83f56;
  --success: #18815d; --warning: #97620c; --purple: #7952c6;
  --teal: #137f80; --android: #548222; --ios: #62718a;
  --radius: 12px; --container-max: 1520px;
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101622; --card: #1a2333; --card-2: #222e42;
  --text: #ecf1fc; --muted: #a2b0c7; --border: #303d53;
  --accent: #98acff; --on-accent: #101b3c; --danger: #ff899b;
  --success: #65d4ad; --warning: #e9bb67; --purple: #baa0ff;
  --teal: #68cece; --android: #a9d476; --ios: #b8c5da;
  color-scheme: dark;
}
body { font-size: 14px; line-height: 1.4; background: radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 55%), var(--bg); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, [role="button"], [role="switch"] { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
#topbar { min-height: 54px; padding: 10px 18px; gap: 12px; background: var(--bg); border-bottom: 1px solid var(--border); padding-top: max(10px, var(--tg-content-safe-area-inset-top, 0px)); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--accent); font-size: 24px; font-weight: 850; text-decoration: none; letter-spacing: -1px; }
.brand span { color: var(--text); font-size: 16px; letter-spacing: -.6px; }
#who-id { flex: 0 1 auto; max-width: 150px; }
#who-name { max-width: 160px; }
#lang-btn { min-height: 36px; padding: 8px 12px; background: var(--card); border: 1px solid var(--border); }
#page-intro { max-width: var(--container-max); margin: 0 auto; padding: 16px 18px 12px; }
#page-title { margin: 0; font-size: clamp(21px, 3vw, 26px); letter-spacing: -.6px; line-height: 1.15; }
.page-description { color: var(--muted); margin: 0; max-width: 660px; font-size: 14px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.page-help { flex-shrink: 0; }
.page-help summary { display: grid; place-items: center; width: 34px; height: 34px; cursor: pointer; color: var(--muted); list-style: none; border-radius: 9px; }
.page-help summary::-webkit-details-marker { display: none; }
.page-help summary span { border: 1.5px solid currentColor; border-radius: 50%; width: 18px; height: 18px; font: 600 12px/16px Georgia, serif; text-align: center; }
.page-help[open] summary { color: var(--accent); background: var(--card-2); }
.page-help .page-description { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, 100%); padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: 0 8px 28px #0002; z-index: 15; font-size: 13px; line-height: 1.5; }
.search-toolbar { display: flex; align-items: stretch; gap: 4px; margin-bottom: 12px; }
.search-toolbar .search-bar { flex: 1; min-width: 0; margin: 0; }
.search-toolbar input { min-width: 0; height: 40px; border-radius: 10px; font-size: 14px; }
.os-filters { display: flex; gap: 2px; }
.os-filter { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--card); cursor: pointer; color: var(--muted); }
.os-filter.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); }
.os-icon { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 17px; margin-right: 3px; vertical-align: -3px; }
.os-icon svg { width: 100%; height: 100%; }
.os-filter .os-icon { width: 20px; height: 22px; margin: 0; color: inherit; }
main#view { padding: 0 18px calc(90px + var(--safe-bottom)); min-height: 55vh; }
.section-t { font-size: 11px; letter-spacing: 1px; margin: 16px 2px 8px; }
.card, .edit-group { border: 1px solid var(--border); padding: 12px; margin-bottom: 8px; box-shadow: 0 3px 12px #10204704; }
.card.section-body { padding: 2px 12px; }
.card.tap { transition: border-color .15s, background .15s; }
.card.tap:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 3%, var(--card)); }
.row { gap: 10px; }
.t1 { font-size: 14px; line-height: 1.4; }
.t2 { font-size: 12px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.app-meta { line-height: 1.6; }
.app-title { white-space: normal; overflow-wrap: anywhere; }
.app-card.os-android { --os-tint: #57c97c; }
.app-card.os-ios { --os-tint: #5b9fec; }
.app-card[class*="os-"] { background: linear-gradient(to top, color-mix(in srgb, var(--os-tint, var(--muted)) 22%, transparent), transparent 54px), var(--card); }
.gallery-item { position: relative; }
.gallery-remove { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--danger); font-size: 22px; cursor: pointer; }
.app-identity-block { position: relative; flex: 0 0 100px; width: 100px; height: 100px; align-self: center; border-radius: 18px; overflow: hidden; isolation: isolate; }
.app-identity-block .tag.status { margin: 0; max-width: 100%; padding: 3px 5px; font-size: 10px; line-height: 1.3; letter-spacing: 0; text-align: center; white-space: normal; overflow-wrap: normal; word-break: normal; }
.app-identity-block .icon-tile { width: 100%; height: 100%; border-radius: inherit; font-size: 34px; }
.app-corner { position: absolute; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; box-sizing: border-box; border-radius: 7px; background: #fffffff0; color: #3d4657; box-shadow: 0 1px 5px #0003; font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: -.3px; }
.app-corner > svg { width: 17px; height: 17px; }
.app-corner-power { top: 0; left: 0; border-radius: 0 0 7px 0; }
.app-corner-os { top: 0; right: 0; border-radius: 0 0 0 7px; }
.app-corner-store { bottom: 0; left: 0; border-radius: 0 7px 0 0; }
.app-corner-access { bottom: 0; right: 0; border-radius: 7px 0 0 0; }
.app-corner.tone-positive { color: #13733d; background: #e0f9eaf5; }
.app-corner.tone-negative { color: #c12442; background: #ffe8edf5; }
.app-corner .os-icon { width: 16px; height: 17px; margin: 0; color: inherit; }
.app-corner .os-icon.android { color: var(--android); }
.app-corner .os-icon.ios { color: var(--ios); }
[data-theme="dark"] .app-corner { color: #e0e6f0; background: #172233ed; box-shadow: 0 1px 5px #0006; }
[data-theme="dark"] .app-corner.tone-positive { color: #76e4a2; background: #143b29f5; }
[data-theme="dark"] .app-corner.tone-negative { color: #ff8da0; background: #481c29f5; }
@media (max-width: 380px) {
  .app-identity-block { flex-basis: 88px; width: 88px; height: 88px; border-radius: 16px; }
  .app-corner { width: 23px; height: 23px; }
}
.config-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.config-actions .btn { flex: 1; width: auto; min-width: 140px; margin: 0; }
.copy-target { display: block; width: 100%; text-align: left; color: var(--text); cursor: pointer; }
.copy-target:disabled { opacity: .5; cursor: wait; }
.integration-icon { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--card-2); color: var(--muted); vertical-align: middle; }
.store-verdict { font-size: 10px; margin-right: 5px; color: var(--muted); }
.store-verdict.published { color: var(--success); }
.store-verdict.unpublished { color: var(--danger); }
#apps-list, #configs-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
#apps-list > .card, #configs-list > .card { min-width: 0; margin: 0; }
#apps-list > :not(.card), #configs-list > :not(.card) { grid-column: 1 / -1; }
@media (min-width: 800px) {
  #apps-list, #configs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1160px) {
  #apps-list, #configs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.integ-row { gap: 4px; align-items: center; margin-top: 5px; }
.integ-row .integration-icon { padding: 3px 5px; gap: 3px; min-height: 25px; }
.platform-icon { display: inline-flex; width: 19px; height: 19px; flex-shrink: 0; }
.platform-icon svg { width: 100%; height: 100%; }
.platform-facebook { color: #1877f2; }
:root[data-theme="dark"] .platform-facebook { color: #71a9ff; }
.platform-tiktok { color: var(--text); }
.platform-onelink { color: var(--teal); }
.integration-plus { font-size: 10px; color: var(--muted); }
.integration-icon .num { font-size: 10px; font-weight: 650; margin-left: 1px; }
.integration-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px; }
.integration-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); min-width: 0; }
.integration-tile .platform-icon { width: 25px; height: 25px; }
.integration-tile-name { font-size: 14px; font-weight: 650; }
.integration-tile-kind { font-size: 11px; color: var(--muted); }
.setup-comment { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.setup-delete { margin-top: 24px; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.gallery-heading .pill { font-size: 11px; }
.gallery-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
.gallery-item { margin: 0; flex: 0 0 auto; max-width: 100%; scroll-snap-align: start; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.gallery-item img { display: block; height: 220px; width: auto; max-width: 100%; object-fit: contain; }
.gallery-hint { color: var(--muted); font-size: 11px; margin: 8px 0 12px; }
.setup-gallery:has(.gallery-strip:empty) .gallery-hint { padding: 16px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; }
.identity-list { display: grid; gap: 6px; margin-bottom: 12px; }
.identity-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 58px; padding: 10px 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-align: left; border-radius: 10px; cursor: pointer; }
.identity-choice.active { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: color-mix(in srgb, var(--accent) 7%, var(--card)); }
.identity-choice:hover:not(:disabled) { border-color: var(--accent); }
.identity-info { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.identity-name { font-size: 13px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.identity-origin { color: var(--muted); font-size: 11px; line-height: 1.3; }
.identity-mark { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 20px; border: 1px solid var(--border); border-radius: 50%; color: var(--on-accent); }
.identity-mark svg { width: 13px; height: 13px; visibility: hidden; }
.identity-choice.active .identity-mark { border-color: var(--accent); background: var(--accent); }
.identity-choice.active .identity-mark svg { visibility: visible; }
.identity-choice:disabled { cursor: wait; opacity: .65; }
.icon-tile { width: 38px; height: 38px; border-radius: 10px; }
.app-action { max-width: 120px; }
.search-bar { margin-bottom: 12px; }
.search-bar input { padding: 10px 12px 10px 36px; border-radius: 14px; font-size: 16px; border-width: 1px; }
.search-bar .icon { left: 12px; }
.filter-chips { gap: 8px; margin-bottom: 12px; }
.pill { min-height: 36px; background: var(--card-2); border: 1px solid transparent; }
.pill.on { background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.segmented { background: var(--card-2); padding: 3px; border-radius: 10px; margin-bottom: 10px; }
.segmented button { min-height: 36px; border-radius: 8px; font-size: 12px; }
.btn { min-height: 40px; padding: 9px 12px; border-radius: 10px; margin-top: 8px; }
.btn.secondary { border: 1px solid var(--border); background: var(--card-2); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, var(--card)); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border)); }
.btn.sticky-b { bottom: calc(90px + var(--safe-bottom)); box-shadow: 0 8px 28px #0002; }
.field { margin-bottom: 10px; }
.field label { color: var(--text); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.field input, .field textarea, .field select, .editor-row input, .compact-form input { min-height: 40px; font-size: 14px; border: 1px solid var(--border); background: var(--bg); padding: 9px 10px; border-radius: 10px; color: var(--text); width: 100%; }
.field textarea { min-height: 80px; font-size: 13px; }
.field .hint { font-size: 12px; line-height: 1.6; }
.kv { padding: 9px 0; font-size: 13px; }
.kv .k { flex-shrink: 1; }
.kv .v { white-space: normal; overflow-wrap: anywhere; }
.tog-row { min-height: 48px; padding: 10px 0; }
.tog { width: 46px; height: 28px; border: 0; padding: 0; background: var(--muted); }
.tog::after { width: 24px; height: 24px; }
.tog.on::after { left: 20px; }
.tog::before { content: ''; position: absolute; inset: -8px 0; }
.stat-row { gap: 8px; margin-bottom: 12px; }
.stat { padding: 10px 12px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 14px; }
.stat .k { font-size: 10px; }
.stat .v { font-size: 22px; letter-spacing: -.5px; }
.stat.g { border-top-color: var(--success); }.stat.a { border-top-color: var(--warning); }.stat.p { border-top-color: var(--purple); }.stat.t { border-top-color: var(--teal); }
.tag, .integ { line-height: 1.3; padding: 3px 6px; border-radius: 6px; }
.tag.n { background: var(--card-2); }
.mini-metrics { font-size: 12px; white-space: normal; line-height: 1.5; margin-top: 6px; }
.back { min-height: 44px; padding: 8px 0 12px; text-decoration: none; }
.icon-btn, .card-action { min-width: 34px; min-height: 44px; border-radius: 10px; }
.pixel-row { padding: 12px 0; gap: 12px; }.pixel-row button { min-height: 44px; }
.empty { border: 1px dashed var(--border); background: var(--card); border-radius: 18px; padding: 44px 24px; margin-top: 12px; }
.empty svg { color: var(--accent); opacity: 1; width: 48px; height: 48px; }
.empty h3 { font-size: 18px; }.empty p { max-width: 390px; font-size: 14px; }
.spinner { padding: 44px; }.spinner::before { content: ''; display: block; width: 24px; height: 24px; margin: 0 auto 12px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 16px; border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.modal-backdrop { background: #080f2466; backdrop-filter: blur(5px); padding-bottom: max(12px, var(--safe-bottom)); }
.modal-sheet { border: 1px solid var(--border); border-radius: 24px; padding: 22px; }
.doc-text { font-size: 14px; line-height: 1.7; }
#tabs { z-index: 20; left: 50%; right: auto; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); bottom: calc(8px + var(--safe-bottom)); border: 1px solid var(--border); background: color-mix(in srgb, var(--card) 95%, transparent); border-radius: 20px; padding: 6px; box-shadow: 0 8px 36px #10204718; gap: 4px; }
.tab { min-width: 0; min-height: 50px; border-radius: 12px; padding: 6px 4px; gap: 3px; font-size: 11px; }
.tab.on { background: color-mix(in srgb, var(--accent) 12%, var(--card)); font-weight: 700; }
.tab svg { width: 21px; height: 21px; stroke-width: 1.7; }
.auth-screen { max-width: 480px; margin: 12vh auto; padding: 32px; background: var(--card); border: 1px solid var(--border); border-radius: 24px; line-height: 1.8; }
.startup-screen { min-height:100dvh; box-sizing:border-box; display:grid; place-items:center; padding:24px 16px; }
.startup-card { box-sizing:border-box; width:100%; max-width:420px; padding:32px 24px; border:1px solid var(--border); border-radius:24px; background:var(--card); text-align:center; }
.startup-icon { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 20px; border-radius:20px; background:var(--card-2); color:var(--accent); }
.startup-icon svg { width:32px; height:32px; }
.startup-card h1 { margin:0 0 12px; font-size:23px; line-height:1.25; color:var(--text); }
.startup-description { margin:0; color:var(--muted); font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.startup-user { display:inline-block; margin-top:20px; padding:8px 12px; border-radius:10px; background:var(--card-2); color:var(--muted); font-size:12px; }
.startup-actions { display:grid; gap:10px; margin-top:24px; }
.startup-actions .btn { width:100%; margin:0; }
@media (max-width: 540px) {
  #topbar { padding-left: 16px; padding-right: 16px; gap: 8px; min-height: 52px; }
  #who-sep { display: none; } .brand { min-width: 0; max-width: 32%; } .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } #who-name { max-width: 120px; font-size: 12px; } #who-id { max-width: 100px; font-size: 11px; }
  #page-intro { padding: 14px 12px 10px; } main#view { padding-left: 12px; padding-right: 12px; }
  .card, .edit-group { padding: 10px 12px; }.card.section-body { padding: 2px 12px; }
  .row { gap: 10px; }.app-action { max-width: 96px; }.icon-tile { width: 36px; height: 36px; }
  #tabs { width: calc(100% - 16px); gap: 0; }.tab { font-size: 10px; }
  .stat { padding: 10px; }.stat .v { font-size: 21px; }
  .auth-screen { margin: 8vh 16px; padding: 24px; }
}
@media (pointer: coarse) {
  .search-toolbar input, .field input, .field select, .field textarea, .editor-row input, .compact-form input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.identifier-input-row { display:flex; align-items:center; gap:8px; }
.identifier-input-row input { flex:1; min-width:0; }
.identifier-input-row .identifier-save { flex:0 0 38px; width:38px; min-width:38px; height:38px; padding:8px; display:grid; place-items:center; }
.identifier-members { margin:8px 0; }
.identifier-members summary { cursor:pointer; color:var(--accent); font-size:12px; }
.identifier-members .t2 { margin-top:6px; overflow-wrap:anywhere; }
.admin-account-results { margin-top:12px; }
.admin-account-results > [hidden] { display:none; }
.identity-choice[hidden] { display:none; }
.heading-back { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; padding:0; border:0; border-radius:8px; background:transparent; color:var(--text); cursor:pointer; }
.heading-back:hover { background:var(--card); }
.identifier-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.identifier-heading .t1 { min-width:0; overflow-wrap:anywhere; }
.identifier-heading .btn { width:auto; flex-shrink:0; padding:5px 10px; font-size:12px; }
.page-heading h1 { flex:1; min-width:0; }
.app-identity-block .store-verdict { display:block; box-sizing:border-box; margin:0; max-width:100%; padding:3px 5px; border-radius:6px; font-size:10px; line-height:1.3; text-align:center; white-space:normal; overflow-wrap:normal; }
.app-identity-block .store-verdict.published { color:#16733d; background:#d9f4e3; }
.app-identity-block .store-verdict.unpublished { color:#af2941; background:#ffe0e5; }
.app-identity-block .store-verdict.unknown { color:var(--text-muted, #8793a4); background:var(--card); }
[data-theme="dark"] .app-identity-block .store-verdict.published { color:#8ae2b0; background:#224b3d; }
[data-theme="dark"] .app-identity-block .store-verdict.unpublished { color:#ff9fae; background:#582e39; }
.app-identity-block > .icon-tile { margin:0 auto; flex-shrink:0; }
.results-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 12px; grid-column:1 / -1; }
.results-toolbar .section-t { margin:0; }
.compact-icon { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:6px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--card); cursor:pointer; flex-shrink:0; box-sizing:border-box; }
.compact-icon svg { width:17px; height:17px; }
.compact-icon:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.store-copy { width:25px; height:25px; padding:4px; }
.requests-menu { position:relative; }
.requests-menu summary { list-style:none; }
.requests-menu summary::-webkit-details-marker { display:none; }
.requests-popup { position:absolute; right:0; top:36px; min-width:190px; padding:5px; border:1px solid var(--border); border-radius:12px; background:var(--card); box-shadow:0 8px 28px #0003; z-index:30; }
.requests-popup button { display:block; width:100%; padding:11px 12px; text-align:left; border:0; border-radius:8px; background:transparent; color:var(--text); cursor:pointer; }
.requests-popup button:hover { background:var(--bg); }
.request-sheet { display:flex; flex-direction:column; gap:16px; }
.request-field { display:flex; flex-direction:column; gap:8px; }
.request-sheet select { box-sizing:border-box; width:100%; padding:11px 38px 11px 12px; border:1px solid var(--border); border-radius:10px; background-color:var(--card); color:var(--text); font:inherit; }
.request-sheet .request-description { box-sizing:border-box; display:block; width:100%; min-height:180px; max-height:40vh; resize:vertical; border:1px solid var(--border); border-radius:12px; background:var(--bg); color:var(--text); padding:12px 14px; font:inherit; line-height:1.5; }
.request-description:focus { outline:2px solid var(--accent); outline-offset:1px; }
.request-sheet .row { justify-content:flex-end; }
.request-sheet .row .btn { width:auto; margin:0; }
.tab[hidden], [hidden] { display:none !important; }
.request-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.request-controls .btn { width:auto; margin:0; }
.request-controls select { flex:1; min-width:130px; }
.request-list { display:grid; gap:12px; }
.request-card { min-width:0; }
.request-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.5; }
.request-meta { color:var(--accent); font-size:12px; margin:8px 0; }
.request-status-line { margin:6px 0; font-size:13px; }
.request-discussion { margin-top:16px; border-top:1px solid var(--border); padding-top:12px; }
.request-discussion summary, .configuration-group summary { cursor:pointer; padding:6px 0; }
.request-comment { border-left:2px solid var(--border); padding:8px 12px; margin:12px 0; }
.request-heading { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.request-heading > div { min-width:0; }
.request-heading .t1 { overflow-wrap:anywhere; }
.request-app-icon { width:48px; height:48px; border-radius:12px; object-fit:cover; flex-shrink:0; }
.request-badges { display:flex; gap:6px; flex-wrap:wrap; align-items:center; margin:10px 0; }
.request-badge { display:inline-flex; gap:6px; align-items:center; border:1px solid var(--border); border-radius:999px; padding:4px 9px; font-size:12px; font-weight:600; background:var(--bg); }
.request-badge .os-icon { width:15px; height:15px; }
.request-badge.success { color:#16834b; background:rgba(35,170,90,.10); }
.request-badge.warning { color:#b7760a; background:rgba(220,155,30,.10); }
.request-badge.danger { color:#d84646; background:rgba(220,60,60,.10); }
.request-badge.info { color:var(--accent); background:var(--accent-soft, rgba(90,120,220,.10)); }
.request-highlight { outline:2px solid var(--accent); outline-offset:3px; scroll-margin-block:100px; }
.request-reply { margin-top:12px; }
.request-sheet input, .request-reply textarea, .configuration-form textarea, .configuration-form input:not([type=checkbox]), .configuration-form select, .request-controls select, .campaign-offer input, .campaign-offer select {
  box-sizing:border-box; width:100%; min-width:0; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg); color:var(--text); font:inherit;
}
.request-sheet select, .request-controls select, .campaign-offer select { appearance:none; -webkit-appearance:none; padding-right:38px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23888' stroke-width='1.8'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-size:18px; background-position:right 12px center; }
.request-sheet select option, .request-controls select option, .campaign-offer select option { background:var(--card); color:var(--text); }
.request-sheet input:focus, .request-sheet select:focus, .request-sheet textarea:focus, .campaign-offer input:focus, .campaign-offer select:focus { outline:2px solid var(--accent); outline-offset:2px; }
.request-sheet { background:var(--card); color:var(--text); border:1px solid var(--border); }
.notify-users-option { display:flex; align-items:center; gap:10px; padding:12px 0; font-size:13px; }
.notify-users-option input { width:18px; height:18px; accent-color:var(--accent); }
.refresh-button { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:8px; }
.refresh-button svg { width:20px; height:20px; }
.refresh-button.asana-refresh { width:auto; gap:6px; }
.campaign-offer { display:grid; gap:12px; padding:16px; }
.campaign-offer label { display:grid; gap:6px; }
.offer-url-input { width:100%; min-height:130px; resize:vertical; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--card); color:var(--text); font:inherit; overflow-wrap:anywhere; }
.offer-url-input:focus { outline:2px solid var(--accent); outline-offset:2px; }
.campaign-offer input:disabled, .offer-url-input:disabled { opacity:.55; cursor:not-allowed; }
.campaign-offer .offer-current { overflow-wrap:anywhere; font-size:13px; }
.configuration-fields { display:grid; gap:12px; margin-top:14px; }
.configuration-fields .field { display:flex; flex-direction:column; gap:6px; margin:0; }
.configuration-fields input[type=checkbox] { width:18px; height:18px; margin-right:6px; }
.configuration-section { border:1px solid var(--border); border-radius:10px; padding:12px; min-width:0; }
.configuration-status { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; margin-bottom:12px; }
.configuration-translation { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0; }
.configuration-translation code { grid-column:1/-1; overflow-wrap:anywhere; font-size:12px; }
.configuration-translation label { min-width:0; font-size:12px; }
.configuration-toggle { display:flex; align-items:center; font-size:12px; }
/* Keep the configuration's launch state visible while editing. */
.config-status-banner { position: sticky; top: calc(64px + var(--tg-content-safe-area-inset-top, 0px)); z-index: 8; margin-bottom: 8px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.config-status-banner.disabled { border-color: #d99229; }
.config-state-row { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 10px; }
.config-state-label { font-size: 13px; line-height: 1.3; }
.config-state-row .tog { flex: 0 0 42px; width: 42px; height: 24px; margin: 0; cursor: pointer; }
.config-state-row .tog::after { width: 20px; height: 20px; }
.config-state-row .tog:disabled { opacity: .5; cursor: wait; }
.news-builder { display: grid; gap: 14px; padding: 18px; }
.news-builder .field { display: grid; gap: 6px; margin: 0; }
.news-builder input:not([type=checkbox]), .news-builder textarea, .news-builder select { width: 100%; min-width: 0; box-sizing: border-box; }
.news-builder textarea { resize: vertical; min-height: 180px; }
.news-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.news-photo { display: block; max-width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; }
.news-photo[hidden], .news-preview[hidden] { display: none; }
.news-preview { padding: 18px; }
.news-preview .news-photo { margin-top: 14px; }
.news-message { margin: 16px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.news-message blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--bg); border-radius: 4px; }
.news-message code, .news-message pre { white-space: pre-wrap; background: var(--bg); border-radius: 4px; padding: 2px 4px; }
.news-history-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
#help-btn { min-width:32px; min-height:36px; flex-shrink:0; }
.offer-block { display:grid; gap:8px; padding:14px; }
.offer-heading, .postback-help { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.help-info { flex:0 0 32px; width:32px; min-height:32px; padding:4px; }
.offer-block .offer-editor { margin:0; padding:8px 0 0; box-shadow:none; border:0; background:none; }
.offer-block .offer-url-input { min-height:76px; }
.offer-block .postback-input { min-height:54px; font-size:12px; }
.tour-languages { display:flex; gap:8px; margin:12px 0; }
.postback-block { display:grid; gap:8px; padding:14px; }
.postback-block .postback-input { min-height:54px; font-size:12px; }
#help-btn, .help-info { background:transparent; border:0; box-shadow:none; color:var(--muted); }
#help-btn { padding:6px; min-width:30px; width:30px; }
#help-btn svg, .help-info svg { display:block; width:20px; height:20px; margin:auto; }
#help-btn:hover, .help-info:hover { color:var(--text); background:var(--card-2); }
.app-bundle { overflow-wrap:anywhere; }
.account-automation-hint { margin:0 0 12px; }

/* Wide layouts preserve DOM order and collapse to one column on phones. */
main#view, #page-intro { box-sizing: border-box; width: 100%; }
.detail-section, .detail-layout > *, .configuration-fields > *, .setup-integration-forms > * { min-width: 0; }
.detail-section > .section-t:first-child { margin-top: 0; }
.setup-integration-forms, .configuration-form { min-width: 0; }
input, select, textarea { max-width: 100%; box-sizing: border-box; }
.configuration-section { min-width: 0; }
@media (min-width: 960px) {
  main#view { padding-left: 28px; padding-right: 28px; }
  #page-intro { padding-left: 28px; padding-right: 28px; }
  .detail-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
  .detail-wide { grid-column: 1 / -1; }
  .detail-section > .card { margin-bottom: 0; }
  .setup-integration-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .setup-integration-forms > * { margin: 0; }
  .setup-general { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .setup-general > :not(.field) { grid-column: 1 / -1; }
  .setup-general > .field:has(input[placeholder="hl=en-AU&gl=AU"]) { grid-column: 1 / -1; }
  .admin-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
  .admin-menu .tog-row { border-bottom: 1px solid var(--border); min-height: 60px; }
  .configuration-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
  .configuration-form > :not(.configuration-group) { grid-column: 1 / -1; }
  .configuration-form > .configuration-group { margin: 0; }
  .config-actions { display: flex; gap: 12px; }
  .config-actions > .btn { flex: 1; }
}
@media (min-width: 1360px) {
  #apps-list, #configs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-item img { height: 280px; }
}

@media (min-width: 960px) {
  .admin-users-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
  .admin-users-grid > .card { margin:0; }
  .admin-users-grid > :not(.card) { grid-column:1 / -1; }
}

.startup-steps { margin:24px 0 0; padding:18px 18px 18px 38px; border-radius:16px; background:var(--card-2); text-align:left; color:var(--text); font-size:14px; line-height:1.6; }
.startup-steps li + li { margin-top:12px; }
.startup-steps li::marker { color:var(--accent); font-weight:600; }
.startup-steps code { padding:2px 6px; border:1px solid var(--border); border-radius:6px; white-space:nowrap; }
