input,
textarea,
select { font-size: 16px; }
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.is-dpad { outline: 3px solid #7aa2ff !important; outline-offset: 3px; }
.composer-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 100%; width: 100%; box-sizing: border-box; }
.temp-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; margin-left: 8px; padding: 4px 8px; font-size: 14px; box-sizing: border-box; }
.temp-toggle input[type="checkbox"] { width: 22px; height: 22px; margin: 0; }
#temp_for { min-height: 44px; }
#panic_btn { font-weight: 700; }
.panic-fallback {
	position: fixed; z-index: 70; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right));
	min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid #c8c2b4; background: #fff; color: #222; font-weight: 700;
}
.privacy-open { right: 64px; }
.privacy-fallback {
	position: fixed; z-index: 90; inset: max(8px, env(safe-area-inset-top)) 8px 8px 8px;
	overflow: auto; background: #f4f1ea; color: #222; padding: 16px; box-sizing: border-box;
}
.privacy-fallback[hidden] { display: none !important; }
#discreet_screen {
	position: fixed; inset: 0; z-index: 10000; background: #f4f1ea; color: #222;
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
	padding: max(24px, env(safe-area-inset-top)) 32px; gap: 16px;
}
#discreet_screen[hidden] { display: none !important; }
#discreet_screen:not([hidden]) { display: flex !important; }
#discreet_screen h1 { font-size: 32px; font-weight: 600; margin: 0; }
#discreet_screen button, .privacy-panel button, .privacy-modal button, #privacy_fallback_close {
	min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid #c8c2b4; background: #fff; color: #222;
}
.privacy-panel { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px 24px; }
.privacy-panel select, .privacy-panel input { max-width: 100%; }
.privacy-list { margin: 0; padding-left: 18px; }
.privacy-code { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: .08em; overflow-wrap: anywhere; }
.privacy-check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.ui-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; cursor: pointer; }
.ui-switch input { position: absolute; opacity: 0; width: 44px; height: 44px; margin: 0; cursor: pointer; }
.ui-switch-face { width: 44px; height: 26px; border-radius: 999px; background: #2c3544; border: 1px solid #4c5b72; position: relative; flex: 0 0 44px; box-sizing: border-box; }
.ui-switch-face::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #f4f6f8; box-shadow: 0 1px 2px rgba(0, 0, 0, .45); transition: transform .15s ease; }
.ui-switch input:checked + .ui-switch-face { background: var(--accent, #3d6ea8); border-color: var(--accent, #3d6ea8); }
.ui-switch input:checked + .ui-switch-face::after { transform: translateX(18px); background: #f7f9fc; }
.ui-switch input:focus + .ui-switch-face,
.ui-switch input:focus-visible + .ui-switch-face { outline: 3px solid var(--accent, #7aa2ff); outline-offset: 3px; }
.temp-toggle .temp-label { font-size: 14px; }
.ui-seg { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; min-height: 44px; padding: 4px; border-radius: 999px; background: var(--bg-elev, #fff); color: inherit; border: 1px solid var(--line, #c8c2b4); box-sizing: border-box; max-width: 100%; }
.ui-seg button { min-height: 36px; min-width: 44px; border: 0; border-radius: 999px; background: transparent; color: inherit; padding: 6px 12px; }
.ui-seg button[aria-checked="true"] { background: var(--accent, #3d6ea8); color: #fff; }
.ui-seg[data-disabled="1"] { opacity: .45; }
.ui-timer { width: 18px; height: 18px; margin: 0 4px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.temp-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(61, 110, 168, .18); font-size: 13px; }
.temp-pill[hidden] { display: none !important; }
.temp-badge { display: inline-flex; align-items: center; margin-left: 6px; min-width: 28px; padding: 0 6px; border-radius: 999px; background: #3d6ea8; color: #fff; font-size: 12px; line-height: 20px; vertical-align: middle; }
.ui-drop { position: relative; width: 100%; max-width: 100%; margin: 8px 0; box-sizing: border-box; }
select.ui-native { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0 !important; pointer-events: none !important; clip: rect(0 0 0 0); }
.ui-drop-btn, .ui-drop-opt { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: start; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line, #c8c2b4); background: var(--bg-elev, #fff); color: inherit; box-sizing: border-box; }
.ui-drop-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ui-drop-list { position: absolute; z-index: 40; left: 0; right: 0; max-height: 240px; overflow: auto; background: var(--bg-elev, #fff); color: inherit; border: 1px solid var(--line, #c8c2b4); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ui-drop-list[hidden] { display: none !important; }
.ui-drop-opt { border: 0; border-radius: 0; }
.ui-drop-opt[aria-selected="true"] { background: rgba(61, 110, 168, .28); }
.ui-modal-back { position: fixed; inset: 0; z-index: 10050; background: rgba(12, 16, 24, .72); display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; }
.ui-modal { width: min(440px, 100%); background: var(--bg-elev, #f4f1ea); color: var(--text, #222); border-radius: 16px; padding: 16px 16px 20px; box-shadow: 0 16px 48px rgba(0,0,0,.28); box-sizing: border-box; }
.ui-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-modal h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.ui-modal p { margin: 12px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.ui-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.ui-modal button, .ui-btn-ok, .ui-btn-danger { min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line, #c8c2b4); background: var(--bg, #fff); color: inherit; }
.ui-btn-danger, .ui-modal.is-danger .ui-btn-danger { background: #8d2f2f; color: #fff; border-color: #8d2f2f; }
.ui-modal-x, .shell-close, .close_option, #privacy_fallback_close { min-width: 44px; min-height: 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; box-sizing: border-box; }
.ui-modal-x { border: 0; background: transparent; color: inherit; border-radius: 10px; }
.ui-toast { position: fixed; z-index: 10060; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(420px, calc(100% - 32px)); padding: 12px 16px; border-radius: 12px; background: #222; color: #fff; }
.priv-lead { margin: 0 0 8px; line-height: 1.45; }
.priv-sec { margin: 16px 0 8px; }
.priv-sec h3, .priv-sub { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.priv-field { margin: 0 0 12px; }
.priv-label { display: block; font-size: 15px; font-weight: 650; line-height: 1.3; }
.priv-hint { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; opacity: .8; }
.priv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; }
.priv-copy { flex: 1 1 auto; min-width: 0; }
.priv-action { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.priv-action input { flex: 1 1 160px; min-width: 0; min-height: 44px; box-sizing: border-box; }
.privacy-panel button { max-width: 100%; overflow-wrap: anywhere; }
.privacy-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; overflow-wrap: anywhere; }
.shell-drawer, .privacy-panel, .panels, .panel_element, #show_chat ul { scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.close_option img.close_panel, .close_private, .close_panel { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
body.skin-modern .close_option, body.skin-modern .close_option i.fa, body.skin-modern #private_panel .close_private { width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px; }
body.skin-modern .close_option .shell-svg, body.skin-modern .close_private .shell-svg, .shell-close .shell-svg { width: 22px; height: 22px; }
.privacy-modal {
	position: fixed; inset: 0; z-index: 10001; background: rgba(12, 16, 24, .72);
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 32px; gap: 12px; color: #f4f1ea;
}
.visto { margin-left: 6px; font-size: 12px; opacity: .75; }
@media (min-width: 1600px) {
	body.skin-classic { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
