@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0400-052F,U+2DE0-2DFF,U+A640-A69F,U+1C80-1C8A,U+20B4; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-latin-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-cyrillic-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0400-052F,U+2DE0-2DFF,U+A640-A69F,U+1C80-1C8A,U+20B4; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-latin-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-cyrillic-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0400-052F,U+2DE0-2DFF,U+A640-A69F,U+1C80-1C8A,U+20B4; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-latin-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-cyrillic-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0400-052F,U+2DE0-2DFF,U+A640-A69F,U+1C80-1C8A,U+20B4; }
@font-face { font-family: Manrope; src: url('/vendor/manrope/manrope-latin-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --canvas: #dadae0;
  --shell: #f4f6f3;
  --card: #fffefa;
  --soft: #f1f3f0;
  --soft-strong: #e9eeea;
  --ink: #101510;
  --muted: #757d77;
  --muted-light: #959b96;
  --line: #e1e6e1;
  --green: #07945f;
  --green-dark: #06784e;
  --mint: #9fd4bf;
  --pale-green: #e3f4ec;
  --blue: #4e91d5;
  --amber: #d99c39;
  --rose: #df6b91;
  --danger: #dc5848;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-shell: 0 30px 90px rgba(28, 35, 30, .10);
  --shadow-card: 0 16px 44px rgba(29, 40, 33, .055);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--canvas); font-family: Manrope, sans-serif; font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(7, 148, 95, .28); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .58; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.nav-tooltip { position: fixed; z-index: 200; max-width: calc(100vw - 16px); overflow: hidden; padding: 7px 9px; pointer-events: none; color: #fff; background: rgba(16, 21, 16, .94); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; box-shadow: 0 8px 24px rgba(20, 27, 22, .18); font-size: 10px; line-height: 1.2; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 70% 18%, rgba(159,212,191,.25), transparent 26%), linear-gradient(155deg, #edf2ee, #dadae0); }
.auth-card { width: min(520px, 100%); padding: 44px; background: rgba(255,254,250,.96); border: 1px solid rgba(25,38,29,.07); border-radius: 32px; box-shadow: 0 30px 90px rgba(28,35,30,.14); }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 56px; }
.auth-card h1 { max-width: 420px; font-size: clamp(42px, 7vw, 64px); }
.auth-copy { max-width: 410px; margin: 24px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.telegram-login { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; color: #fff; background: linear-gradient(135deg, #08a268, var(--green-dark)); border: 0; border-radius: 17px; box-shadow: 0 13px 27px rgba(7,148,95,.2); font-weight: 700; }
.telegram-login i { font-size: 21px; }
.telegram-login:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 31px rgba(7,148,95,.25); }
.auth-message { min-height: 40px; margin: 16px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.auth-message.is-error { color: var(--danger); }

.app-frame { position: relative; width: min(1460px, calc(100% - 48px)); min-height: calc(100vh - 48px); margin: 24px auto; overflow: hidden; background: radial-gradient(circle at 78% 0, rgba(176, 215, 196, .16), transparent 28%), linear-gradient(180deg, #f7f8f6 0, var(--shell) 100%); border: 1px solid #d1d6d1; border-radius: 22px; box-shadow: var(--shadow-shell); }

.topbar { position: relative; z-index: 20; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 22px 0; padding: 0 20px; background: rgba(255,255,255,.96); border: 1px solid rgba(22, 39, 29, .04); border-radius: 38px; box-shadow: 0 10px 34px rgba(27, 36, 30, .045); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; padding: 0; color: var(--ink); background: transparent; border: 0; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; box-shadow: 0 8px 18px rgba(7, 148, 95, .2); font-size: 20px; }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: .015em; }
.brand-name span { color: var(--green); }
.icon-button, .round-action { width: 39px; height: 39px; display: inline-grid; place-items: center; padding: 0; color: var(--ink); background: #f5f6f4; border: 1px solid rgba(25, 38, 29, .035); border-radius: 50%; font-size: 18px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.updates-notification-wrap { position: relative; }
.updates-notification-button { position: relative; width: 50px; height: 50px; display: grid; place-items: center; padding: 0; color: #47514a; background: #f5f6f4; border: 1px solid rgba(25,38,29,.05); border-radius: 50%; font-size: 20px; transition: color .18s ease, background .18s ease, transform .18s ease; }
.updates-notification-button:hover, .updates-notification-button[aria-expanded="true"] { color: var(--green-dark); background: var(--pale-green); transform: translateY(-1px); }
.updates-notification-button.has-unread { color: var(--green-dark); }
.updates-unread-badge { position: absolute; min-width: 18px; height: 18px; top: -2px; right: -1px; display: grid; place-items: center; padding: 0 5px; color: #fff; background: var(--green); border: 3px solid #fff; border-radius: 10px; box-shadow: 0 4px 10px rgba(7,148,95,.25); font-size: 8px; line-height: 1; font-weight: 700; }
.updates-notification-button.has-unread > i { animation: notification-pop .38s ease both; }
.updates-popover { position: absolute; z-index: 90; width: min(380px, calc(100vw - 40px)); top: calc(100% + 11px); right: 0; overflow: hidden; background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 65px rgba(24,35,28,.17); backdrop-filter: blur(18px); animation: popover-in .2s ease both; }
.updates-popover-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.updates-popover-header span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .13em; }
.updates-popover-header h2 { font-size: 18px; font-weight: 650; }
.updates-popover-close { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; color: var(--muted); background: var(--soft); border: 0; border-radius: 50%; font-size: 16px; }
.updates-popover-close:hover { color: var(--ink); background: var(--soft-strong); }
.updates-popover-list { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.updates-popover-items { margin: 0; padding: 7px; list-style: none; }
.updates-popover-items li + li { border-top: 1px solid var(--line); }
.updates-popover-item { width: 100%; min-height: 82px; display: grid; grid-template-columns: 37px minmax(0, 1fr) 14px; align-items: center; gap: 11px; padding: 10px 9px; color: var(--ink); background: transparent; border: 0; border-radius: 14px; text-align: left; }
.updates-popover-item:hover { background: var(--soft); }
.updates-popover-item.is-unread { background: #f0f8f4; }
.updates-popover-item.is-unread:hover { background: #e7f4ed; }
.updates-popover-item-icon { width: 37px; height: 37px; display: grid; place-items: center; color: var(--green-dark); background: var(--pale-green); border-radius: 12px; font-size: 17px; }
.updates-popover-item-copy { min-width: 0; display: grid; gap: 4px; }
.updates-popover-item-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.updates-popover-item-meta em { padding: 3px 6px; color: #fff; background: var(--green); border-radius: 8px; font-size: 7px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.updates-popover-item b, .updates-popover-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.updates-popover-item b { font-size: 10.5px; }
.updates-popover-item small { color: var(--muted); font-size: 8.5px; }
.updates-popover-item > i { color: #9aa29c; font-size: 12px; }
.updates-popover-state { min-height: 126px; display: flex; align-items: center; gap: 12px; padding: 22px 20px; color: var(--muted); }
.updates-popover-state-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green-dark); background: var(--pale-green); border-radius: 50%; font-size: 18px; }
.updates-popover-state b, .updates-popover-state small { display: block; }
.updates-popover-state b { margin-bottom: 4px; color: var(--ink); font-size: 11px; }
.updates-popover-state small { font-size: 9px; line-height: 1.45; }
.updates-popover-state.is-loading .updates-popover-state-icon i { animation: updates-spin .9s linear infinite; }
.updates-popover-state.is-error { flex-wrap: wrap; }
.updates-popover-state.is-error .updates-popover-state-icon { color: var(--danger); background: #fae9e4; }
.updates-popover-retry { min-height: 34px; margin-left: auto; padding: 0 11px; color: var(--green-dark); background: var(--pale-green); border: 0; border-radius: 11px; font-size: 9px; font-weight: 700; }
.updates-read-note { margin: 0 14px 8px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.updates-popover-all { width: calc(100% - 14px); min-height: 43px; display: flex; align-items: center; justify-content: space-between; margin: 0 7px 7px; padding: 0 13px; color: var(--green-dark); background: var(--pale-green); border: 0; border-radius: 14px; font-size: 10px; font-weight: 700; }
.updates-popover-all:hover { color: #fff; background: var(--green); }
.profile-badge { width: 37px; height: 37px; display: grid; place-items: center; color: #fff; background: #252925; border-radius: 50%; font-size: 11px; font-weight: 700; }
.profile-menu-wrap { position: relative; }
.profile-button { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 6px 9px 6px 7px; color: var(--ink); background: #f5f6f4; border: 1px solid rgba(25,38,29,.05); border-radius: 26px; }
.profile-button:hover { background: #eef2ee; }
.profile-copy { min-width: 92px; display: grid; gap: 1px; text-align: left; }
.profile-copy b { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.profile-copy small { color: var(--muted); font-size: 8px; }
.profile-button > i { color: var(--muted); font-size: 12px; }
.profile-menu { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: 218px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 45px rgba(28,37,31,.14); }
.profile-identity { display: grid; gap: 3px; padding: 10px 11px 12px; border-bottom: 1px solid var(--line); }
.profile-identity b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.profile-identity span { color: var(--muted); font-size: 9px; }
.profile-menu button { width: 100%; min-height: 39px; display: flex; align-items: center; gap: 9px; margin-top: 4px; padding: 0 11px; color: #354039; background: transparent; border: 0; border-radius: 11px; text-align: left; font-size: 10px; }
.profile-menu button:hover { background: var(--soft); }

.side-rail { position: absolute; z-index: 12; top: 122px; bottom: 24px; left: 24px; width: 60px; display: flex; flex-direction: column; align-items: center; }
.rail-group { display: grid; gap: 5px; padding: 8px; background: #fff; border: 1px solid rgba(25, 38, 29, .035); border-radius: 30px; box-shadow: 0 12px 30px rgba(28, 37, 31, .06); }
.rail-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; color: #4d5750; background: transparent; border: 0; border-radius: 50%; font-size: 19px; transition: .18s ease; }
.rail-button:hover, .rail-button.is-active { color: #fff; background: var(--green); box-shadow: 0 8px 17px rgba(7, 148, 95, .22); transform: translateY(-1px); }

.workspace { min-height: calc(100vh - 169px); margin-left: 101px; padding: 31px 28px 42px 0; }
.context-banner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 20px; padding: 9px 10px 9px 15px; color: #29513f; background: #e5f4ec; border: 1px solid #cfe7dc; border-radius: 18px; }
.context-banner > div { display: flex; align-items: center; gap: 10px; }
.context-banner > div > i { font-size: 19px; }
.context-banner span { display: grid; gap: 2px; }
.context-banner b { font-size: 10px; }
.context-banner small { color: #5f796c; font-size: 8px; }
.context-banner button { min-height: 37px; padding: 0 13px; color: #285441; background: #fff; border: 0; border-radius: 12px; font-size: 9px; font-weight: 700; }
.view { animation: view-in .26s ease both; }
.page-heading { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 7px 16px; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -.055em; }
h1 span { color: #979c98; font-weight: 400; }
h2 { margin-bottom: 0; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.date-chip { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 17px; color: #404841; background: #fff; border: 1px solid rgba(25, 38, 29, .045); border-radius: 23px; box-shadow: 0 6px 17px rgba(28, 37, 31, .035); font-size: 10px; }
.primary-action { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; color: #fff; background: linear-gradient(135deg, #08a268, var(--green-dark)); border: 0; border-radius: 15px; box-shadow: 0 10px 20px rgba(7, 148, 95, .17); font-size: 11px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.primary-action:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(7, 148, 95, .24); }
.secondary-action { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; color: #4e5851; background: var(--soft); border: 0; border-radius: 15px; font-size: 11px; font-weight: 700; }
.secondary-action:hover:not(:disabled) { color: var(--green-dark); background: var(--pale-green); }

.card { position: relative; overflow: hidden; background: var(--card); border: 1px solid rgba(25, 38, 29, .055); border-radius: var(--radius-xl); box-shadow: inset 0 1px 0 rgba(255,255,255,.86), var(--shadow-card); }
.card-heading { display: flex; align-items: flex-start; gap: 10px; }
.card-heading > div { min-width: 0; }
.card-heading h2 { margin-bottom: 4px; }
.card-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.card-heading > i { margin-left: auto; color: #667168; font-size: 18px; }
.card-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #435048; background: #f0f3f0; border-radius: 50%; font-size: 17px; }
.card-icon.warning { color: #b44335; background: #fae9e4; }
.signals-card.is-clear .card-icon.warning { color: var(--green); background: var(--pale-green); }
.signals-card.is-clear .signal-count span { color: var(--green-dark); background: var(--pale-green); }
.round-action { margin-left: auto; flex: 0 0 auto; transition: .18s ease; }
.round-action:hover { color: #fff; background: var(--green); transform: translateY(-1px); }
.progress-track { height: 6px; overflow: hidden; background: rgba(255,255,255,.24); border-radius: 999px; }
.progress-track i { display: block; width: 0; height: 100%; background: currentColor; border-radius: inherit; transition: width .5s ease; }
.segmented-control { display: flex; gap: 2px; margin-left: auto; padding: 3px; background: #f3f4f2; border-radius: 18px; }
.segmented-control button { min-height: 31px; padding: 0 12px; color: var(--muted); background: transparent; border: 0; border-radius: 16px; font-size: 9px; }
.segmented-control button.is-selected { color: #fff; background: var(--green); box-shadow: 0 5px 13px rgba(7, 148, 95, .18); }

.overview-layout { display: grid; grid-template-columns: 280px minmax(440px, 1fr) 300px; grid-template-rows: 325px minmax(300px, auto); gap: 15px; }
.overview-left, .overview-right { display: grid; gap: 15px; }
.overview-left { grid-column: 1; grid-row: 1; grid-template-rows: 1fr 84px; }
.overview-right { grid-column: 3; grid-row: 1 / 3; grid-template-rows: 276px minmax(300px, 1fr); }
.visibility-card { padding: 18px; }
.visibility-surface { position: relative; min-height: 190px; margin-top: 15px; overflow: hidden; padding: 17px; color: #fff; background: radial-gradient(circle at 110% -10%, rgba(255,255,255,.24), transparent 36%), linear-gradient(145deg, #0aa169, #078353 76%); border-radius: 18px; }
.visibility-surface::after { position: absolute; width: 160px; height: 160px; right: -78px; bottom: -105px; content: ''; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.visibility-surface > span { font-size: 10px; font-weight: 600; }
.visibility-surface strong { display: block; margin-top: 26px; font-size: 46px; line-height: 1; font-weight: 500; letter-spacing: -.055em; }
.visibility-surface strong small { color: rgba(255,255,255,.68); font-size: 17px; }
.visibility-surface p { margin: 7px 0 18px; color: rgba(255,255,255,.82); font-size: 10px; }
.visibility-surface .progress-track i { color: #fff; }
.compact-metric { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.compact-metric span { color: var(--muted); font-size: 10px; }
.compact-metric strong { display: block; margin-top: 3px; font-size: 29px; font-weight: 500; letter-spacing: -.04em; }
.compact-metric em { padding: 7px 10px; color: var(--green-dark); background: var(--pale-green); border-radius: 13px; font-size: 9px; font-style: normal; font-weight: 700; }
.visibility-chart-card { grid-column: 2; grid-row: 1; padding: 19px; background: linear-gradient(155deg, var(--card) 55%, #fbfdfb); }
.chart-heading { align-items: center; }
.chart-heading > div:not(.segmented-control) { flex: 1; }
.bar-chart { min-height: 238px; display: flex; align-items: end; justify-content: space-around; gap: 13px; margin-top: 17px; padding: 25px 22px 24px 36px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #edf0ec 50px, #edf0ec 51px); border-radius: 15px; }
.chart-column { position: relative; width: min(52px, 11%); min-height: 14px; height: var(--height); background: repeating-linear-gradient(135deg, rgba(7,148,95,.46) 0, rgba(7,148,95,.46) 3px, rgba(7,148,95,.21) 3px, rgba(7,148,95,.21) 6px); border-radius: 25px 25px 14px 14px; box-shadow: inset 0 0 0 1px rgba(7,148,95,.08); transition: height .45s ease; }
.chart-column.is-latest { background: repeating-linear-gradient(135deg, var(--green) 0, var(--green) 3px, #078254 3px, #078254 6px); box-shadow: 0 12px 25px rgba(7,148,95,.16); }
.chart-column span { position: absolute; bottom: -23px; left: 50%; transform: translateX(-50%); color: var(--muted); white-space: nowrap; font-size: 9px; }
.chart-empty { align-self: center; margin: auto; color: var(--muted); font-size: 11px; text-align: center; }
.best-position-card { padding: 19px; background: linear-gradient(180deg, var(--card), #fbfdfb); }
.metric-label { display: block; margin-top: 19px; color: var(--muted); text-align: center; font-size: 10px; }
.best-position-card > strong { display: block; margin-top: 4px; text-align: center; font-size: 50px; line-height: 1; font-weight: 500; letter-spacing: -.055em; }
.spark-bars { height: 67px; display: flex; align-items: end; justify-content: center; gap: 5px; margin: 13px 10px 0; }
.spark-bars i { width: 14px; min-height: 7px; height: var(--height); background: var(--mint); border-radius: 7px 7px 3px 3px; }
.spark-bars i:last-child { background: var(--green); }
.metric-link { min-height: 37px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 5px auto 0; padding: 0 13px; color: #fff; background: var(--green); border: 0; border-radius: 16px; font-size: 10px; }
.signals-card { padding: 19px; background: linear-gradient(155deg, var(--card) 70%, #f4fbf7); }
.signal-count { display: flex; align-items: center; gap: 10px; margin: 20px 0 11px; }
.signal-count strong { font-size: 47px; line-height: 1; font-weight: 500; }
.signal-count span { padding: 6px 8px; color: var(--danger); background: #fae9e4; border-radius: 12px; font-size: 8px; }
.signal-list { display: grid; }
.signal-item { min-height: 56px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; border-top: 1px solid var(--line); }
.signal-item > i { width: 28px; height: 28px; display: grid; place-items: center; color: var(--danger); background: #fae9e4; border-radius: 9px; font-size: 14px; }
.signal-item.is-good > i { color: var(--green); background: var(--pale-green); }
.signal-item b, .signal-item small { display: block; }
.signal-item b { font-size: 11px; }
.signal-item small { margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.signal-item em { font-size: 9px; font-style: normal; font-weight: 700; }
.recent-card { grid-column: 1 / 3; grid-row: 2; min-height: 320px; padding: 19px; }

.data-table { margin-top: 13px; }
.data-row { display: grid; align-items: center; gap: 12px; min-width: 0; border-top: 1px solid var(--line); }
.data-head { min-height: 39px; color: var(--muted-light); border-top: 0; font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.overview-table .data-row { grid-template-columns: 1.45fr .7fr .6fr .8fr .65fr; }
.history-table .data-row { grid-template-columns: 1.35fr .62fr .72fr 1fr .72fr; }
.data-body-row { min-height: 67px; padding: 0 8px; font-size: 10.5px; }
.data-body-row:nth-child(even) { background: #f6f7f5; border-color: transparent; border-radius: 13px; }
.data-entity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.data-entity b, .data-entity small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-entity b { font-size: 11px; }
.data-entity small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.data-status { display: inline-flex; align-items: center; gap: 6px; }
.data-status::before { width: 7px; height: 7px; content: ''; background: #57dc84; border-radius: 50%; }
.data-status.is-error::before { background: var(--danger); }
.data-empty { min-height: 180px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 11px; }

.search-hero { display: grid; grid-template-columns: 320px minmax(360px, 1fr) 280px; gap: 15px; }
.search-form, .search-summary-card, .entity-mix-card { min-height: 282px; padding: 19px; }
.field-label { display: block; margin: 15px 0 -7px; color: #59625c; font-size: 10px; font-weight: 700; }
.search-form textarea { width: 100%; min-height: 126px; margin-top: 15px; padding: 14px 15px; resize: vertical; color: var(--ink); background: #f4f5f3; border: 1px solid var(--line); border-radius: 15px; font-size: 12px; line-height: 1.65; outline: 0; }
.search-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7,148,95,.1); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.form-footer > span { color: var(--muted); font-size: 9px; }
.form-footer .primary-action { min-width: 164px; padding-inline: 12px; white-space: nowrap; }
.button-label { white-space: nowrap; }
.search-summary-card { background: radial-gradient(circle at 100% 0, rgba(159,212,191,.24), transparent 39%), var(--card); }
.search-total { display: flex; align-items: end; gap: 12px; margin-top: 25px; }
.search-total strong { font-size: 58px; line-height: .9; font-weight: 500; letter-spacing: -.055em; }
.search-total span { max-width: 150px; padding-bottom: 5px; color: var(--muted); font-size: 9px; }
.summary-dots { display: flex; gap: 5px; margin-top: 22px; }
.summary-dots i { width: 25px; height: 7px; background: var(--mint); border-radius: 999px; }
.summary-dots i.is-strong { background: var(--green); }
.summary-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.summary-breakdown span { padding: 12px 10px; color: var(--muted); background: #f1f3f0; border-radius: 14px; font-size: 9px; }
.summary-breakdown b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 18px; }
.entity-mix-card { background: linear-gradient(155deg, var(--card), #f6faf7); }
.entity-donut { width: 116px; height: 116px; display: grid; place-items: center; margin: 15px auto; background: conic-gradient(var(--green) 0 0, var(--mint) 0 0, #dce1dd 0 100%); border-radius: 50%; box-shadow: inset 0 0 0 29px var(--card); }
.entity-donut span { font-size: 13px; font-weight: 700; }
.mix-legend { display: grid; gap: 8px; }
.mix-legend span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.mix-legend i { width: 7px; height: 7px; border-radius: 50%; }
.legend-bot { background: var(--green); }.legend-channel { background: var(--mint); }.legend-chat { background: #dce1dd; }
.mix-legend b { color: var(--ink); }
.result-deck { margin-top: 16px; padding: 19px; background: var(--card); border: 1px solid rgba(25, 38, 29, .055); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 2px 14px; }
.section-heading h2 { font-size: 19px; }
.section-meta { margin: 0; color: var(--muted); font-size: 10px; text-align: right; }
.query-panels { display: grid; gap: 14px; }
.query-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; animation: row-in .3s ease both; }
.panel-header { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 8px 13px; border-bottom: 1px solid var(--line); }
.panel-index { font-size: 16px; font-weight: 500; }
.panel-query-input { min-height: 38px !important; padding: 4px 7px !important; background: transparent !important; border-color: transparent !important; font-weight: 700 !important; font-size: 12px !important; }
.panel-query-input:focus { border-color: var(--green) !important; box-shadow: none !important; }
.panel-status { padding: 6px 9px; border-radius: 11px; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.status-success, .status-enabled { color: #176b48; background: var(--pale-green); }
.status-loading { color: #2b6284; background: #e4f1f7; }
.status-error { color: #a33e31; background: #fae7e2; }
.status-not_run, .status-disabled { color: #67706a; background: #ecefeb; }
.word-cloud { display: flex; align-items: baseline; gap: 13px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cloud-label { flex: 0 0 190px; margin: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.cloud-tokens { display: flex; flex-wrap: wrap; gap: 6px; }
.token-button { min-height: 30px; padding: 0 9px; color: #53605a; background: #f2f4f1; border: 0; border-radius: 10px; font-size: 9px; transition: .16s ease; }
.token-button:hover:not(:disabled) { color: #fff; background: var(--green); }
.cloud-empty, .panel-note { color: var(--muted); font-size: 10px; }
.panel-note { margin: 0; padding: 24px 14px; }
.panel-error { color: var(--danger); }
.error-state { margin: 0 0 13px; padding: 13px 15px; color: #983b30; background: #fae8e3; border-radius: 13px; font-size: 10px; font-weight: 600; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted-light); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
td { font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-saved-bot { background: linear-gradient(90deg, #edf8f2, #f8fbf9); }
.rank-cell { font-size: 17px; font-weight: 500; }
.entity-cell { min-width: 230px; display: flex; align-items: center; gap: 9px; }
.entity-avatar { position: relative; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--rose); border-radius: 50%; box-shadow: 0 5px 12px rgba(35,40,36,.08); font-size: 8px; font-weight: 700; }
.avatar-initials, .avatar-image { grid-area: 1 / 1; }
.avatar-image { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s ease; }
.entity-avatar.has-image .avatar-image { opacity: 1; }
.avatar-channel { background: var(--blue); }.avatar-chat { background: var(--amber); }
.entity-title, .entity-link { font-size: 11px; font-weight: 700; text-decoration: none; }
.entity-link:hover, .username a:hover { color: var(--green); }
.saved-mark { padding: 4px 6px; color: var(--green-dark); background: var(--pale-green); border-radius: 8px; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.type-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; background: #f2f4f1; border-radius: 9px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.type-badge::before { width: 6px; height: 6px; content: ''; background: var(--green); border-radius: 50%; }.type-channel::before { background: var(--blue); }.type-chat::before { background: var(--amber); }
.audience-cell, .username { color: var(--muted); }
.username a { text-decoration: none; }
.table-action { min-width: 120px; min-height: 34px; padding: 0 9px; color: #445049; background: #fff; border: 1px solid var(--line); border-radius: 11px; font-size: 9px; }
.table-action:hover:not(:disabled) { color: #fff; background: var(--green); border-color: var(--green); }
.empty-state { min-height: 112px; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--muted); text-align: left; }
.empty-state b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }.empty-state p { margin: 0; font-size: 10px; }

.quick-add { display: flex; align-items: center; gap: 9px; }
.quick-add input { width: 220px; min-height: 43px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 15px; outline: 0; font-size: 11px; }
.quick-add input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7,148,95,.09); }
.view-message { min-height: 20px; margin: 0 0 10px; color: var(--green-dark); font-size: 10px; }
.bots-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.portfolio-leader, .bot-coverage-card { min-height: 180px; padding: 19px; }
.portfolio-leader { color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.2), transparent 34%), linear-gradient(145deg, #0aa169, #078353 76%); }
.portfolio-leader .card-heading p { color: rgba(255,255,255,.7); }.portfolio-leader .card-icon { color: var(--green); background: #fff; }
.portfolio-total { display: flex; align-items: end; gap: 13px; margin-top: 27px; }.portfolio-total strong { font-size: 53px; line-height: .9; font-weight: 500; }.portfolio-total span { padding-bottom: 5px; color: rgba(255,255,255,.8); font-size: 10px; }
.bot-coverage-card > strong { display: block; margin-top: 24px; font-size: 42px; line-height: 1; font-weight: 500; }.bot-coverage-card .progress-track { margin: 18px 0 9px; color: var(--green); background: #e7ece8; }.bot-coverage-card > span { color: var(--muted); font-size: 10px; }
.record-list, .checker-list { display: grid; gap: 12px; }
.bot-record { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(320px, 1.4fr) auto; align-items: center; gap: 15px; padding: 16px 18px; background: var(--card); border: 1px solid rgba(25,38,29,.055); border-radius: 19px; box-shadow: var(--shadow-card); }
.record-key { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 11px; }.record-key::before { width: 34px; height: 34px; display: grid; place-items: center; content: '@'; color: #fff; background: var(--green); border-radius: 50%; font-size: 10px; }
.record-edit-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.record-edit-form input, .checker-card input, .checker-card select, .checker-form input, .checker-form select { width: 100%; min-height: 43px; padding: 0 12px; background: #f3f5f2; border: 1px solid var(--line); border-radius: 12px; outline: 0; font-size: 11px; }
.record-edit-form input:focus, .checker-card input:focus, .checker-card select:focus, .checker-form input:focus, .checker-form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7,148,95,.09); }
.record-edit-form button, .bot-record > button, .checker-actions button { min-height: 39px; padding: 0 13px; color: #455048; background: #f3f5f2; border: 0; border-radius: 11px; font-size: 10px; font-weight: 700; }
.record-edit-form button:hover, .checker-actions button:hover { color: #fff; background: var(--green); }
.danger-button { color: #a43e31 !important; background: #fae9e4 !important; }
.danger-button:hover { color: #fff !important; background: var(--danger) !important; }

.history-layout { display: grid; grid-template-columns: 280px minmax(430px, 1fr) 280px; grid-template-rows: 278px minmax(330px, auto); gap: 15px; }
.next-run-card, .history-chart-card, .reliability-card, .history-table-card { padding: 19px; }
.next-run-surface { position: relative; min-height: 185px; margin-top: 15px; overflow: hidden; padding: 17px; color: #fff; background: radial-gradient(circle at 105% 0, rgba(255,255,255,.22), transparent 34%), linear-gradient(145deg, #0aa169, #078353 76%); border-radius: 18px; }
.next-run-surface > span { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.next-run-surface strong { display: block; margin-top: 26px; font-size: 45px; line-height: 1; font-weight: 500; letter-spacing: -.04em; }.next-run-surface small { display: block; margin-top: 9px; color: rgba(255,255,255,.82); font-size: 9px; }
.history-chart-card { background: linear-gradient(155deg, var(--card), #fbfdfb); }
.history-bars { height: 205px; display: flex; align-items: end; gap: 9px; margin-top: 14px; padding: 15px 12px 30px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 41px, #edf0ec 42px, #edf0ec 43px); border-radius: 14px; }
.history-bar { position: relative; flex: 1; min-width: 7px; height: var(--height); background: var(--mint); border-radius: 7px 7px 3px 3px; }.history-bar.is-latest { background: var(--green); }.history-bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 8px; }
.reliability-card { background: radial-gradient(circle at 100% 0, rgba(159,212,191,.22), transparent 38%), var(--card); }.reliability-card > strong { display: block; margin-top: 34px; font-size: 49px; line-height: 1; font-weight: 500; letter-spacing: -.05em; }.reliability-card > span { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.reliability-bars { display: flex; gap: 5px; margin-top: 29px; }.reliability-bars i { flex: 1; height: 16px; background: var(--green); border-radius: 7px; }.reliability-bars i.is-error { background: #e5a65d; }
.history-table-card { grid-column: 1 / 3; grid-row: 2; min-height: 330px; }

.checker-form { display: grid; grid-template-columns: 1.2fr 1fr 210px auto auto; align-items: end; gap: 13px; padding: 19px; }
.form-heading { grid-column: 1 / -1; margin-bottom: 7px; }.form-heading .card-icon { margin-left: auto; }
.checker-form label, .field { margin: 0; }.checker-form label > span:first-child, .field > span { display: block; margin-bottom: 7px; color: #59625c; font-size: 10px; font-weight: 700; }
.interval-control { display: grid !important; grid-template-columns: 1fr 90px; gap: 7px; margin-bottom: 0 !important; }.interval-control select { padding: 0 8px; }
.switch-field { min-height: 41px; display: flex !important; align-items: center; gap: 8px; white-space: nowrap; }.switch-field input, .mini-switch input { position: absolute; opacity: 0; pointer-events: none; }.switch-ui { position: relative; width: 34px; height: 20px; display: inline-block !important; flex: 0 0 auto; margin: 0 !important; background: #dfe4df; border-radius: 999px; }.switch-ui::after { position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; content: ''; background: #fff; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.12); transition: left .18s ease; }.switch-field input:checked + .switch-ui { background: var(--green); }.switch-field input:checked + .switch-ui::after { left: 17px; }
.switch-field input:focus-visible + .switch-ui, .mini-switch input:focus-visible + .switch-ui { outline: 3px solid rgba(7,148,95,.28); outline-offset: 3px; }
.checker-card { padding: 18px; background: var(--card); border: 1px solid rgba(25,38,29,.055); border-radius: 20px; box-shadow: var(--shadow-card); }
.checker-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.checker-id { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; }.checker-title > span:last-child { padding: 6px 9px; border-radius: 11px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.checker-fields { display: grid; grid-template-columns: 1.2fr 1.2fr 210px 118px; align-items: end; gap: 12px; }.mini-switch { min-height: 43px; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 10px; white-space: nowrap; }.mini-switch input:checked + .switch-ui { background: var(--green); }.mini-switch input:checked + .switch-ui::after { left: 17px; }
.checker-meta { margin: 14px 0; color: var(--muted); font-size: 10px; }.checker-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.history-box { margin-top: 15px; }.history-box:empty { display: none; }.history-box h3 { margin-bottom: 9px; font-size: 13px; }.history-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.history-list li { display: grid; gap: 4px; padding: 11px 12px; background: #f4f6f3; border-radius: 11px; font-size: 10px; }.history-list span { color: var(--muted); }.history-limit { margin: 9px 2px 0; color: var(--muted); font-size: 10px; }

.users-intro { max-width: 700px; margin: -4px 7px 20px; color: var(--muted); font-size: 11px; line-height: 1.65; }
#users-title { font-size: clamp(46px, 5vw, 58px); }
.users-add-button.is-active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.32), 0 13px 25px rgba(7,148,95,.24); }
.add-user-panel { display: grid; grid-template-columns: minmax(270px, .9fr) minmax(300px, 1.1fr) auto; align-items: end; gap: 16px; margin-bottom: 16px; padding: 20px; }
.add-user-copy { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding-bottom: 3px; }
.add-user-copy h2 { margin: 0; font-size: 15px; }
.add-user-copy p { max-width: 720px; margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.add-user-field { display: grid; gap: 7px; color: #59625c; font-size: 10px; font-weight: 700; }
.username-input { min-height: 45px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; padding: 0 13px; color: var(--green-dark); background: #f3f5f2; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; }
.username-input:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7,148,95,.09); }
.username-input input { min-width: 0; height: 42px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.username-input input::placeholder { color: var(--muted-light); }
.add-user-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.add-user-actions button { white-space: nowrap; }
.add-user-message { grid-column: 1 / -1; min-height: 16px; margin: -1px 2px 0; color: var(--muted); font-size: 10px; }
.add-user-message.is-success { color: var(--green-dark); }
.add-user-message.is-error { color: var(--danger); }
.users-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.user-card { min-height: 205px; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: 19px; }
.user-card.is-current { border-color: rgba(7,148,95,.3); box-shadow: inset 0 0 0 1px rgba(7,148,95,.08), var(--shadow-card); }
.user-card-heading { display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #0aa169, #078353); border-radius: 50%; font-size: 11px; font-weight: 700; }
.user-card-heading div { min-width: 0; }
.user-card-heading b, .user-card-heading small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-heading b { font-size: 12px; }
.user-card-heading small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.owner-mark { margin-left: auto; padding: 5px 7px; color: var(--green-dark); background: var(--pale-green); border-radius: 9px; font-size: 8px; font-weight: 700; }
.user-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.user-stats span { padding: 10px; color: var(--muted); background: var(--soft); border-radius: 12px; font-size: 8px; }
.user-stats b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 18px; font-weight: 500; }
.open-user-button { min-height: 40px; padding: 0 13px; color: #fff; background: var(--green); border: 0; border-radius: 13px; font-size: 10px; font-weight: 700; }
.open-user-button.is-current { color: var(--green-dark); background: var(--pale-green); }

.updates-heading { border-bottom: 1px solid var(--line); }
.updates-intro { max-width: 650px; margin: 16px 7px 28px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.updates-feed { min-height: 320px; }
.updates-feed[aria-busy="true"] { cursor: progress; }
.updates-list { position: relative; max-width: 920px; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.updates-list::before { position: absolute; width: 1px; top: 26px; bottom: 26px; left: 27px; content: ''; background: linear-gradient(180deg, var(--green), rgba(7,148,95,.1)); }
.updates-list-item { position: relative; display: grid; grid-template-columns: 55px minmax(0, 1fr); align-items: start; gap: 16px; }
.update-marker { position: relative; z-index: 1; width: 55px; height: 55px; display: grid; place-items: center; color: #fff; background: var(--green); border: 7px solid var(--shell); border-radius: 50%; box-shadow: 0 7px 18px rgba(7,148,95,.2); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.update-entry { padding: 25px 27px 27px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,252,250,.96)); }
.update-entry::after { position: absolute; width: 170px; height: 170px; top: -105px; right: -88px; content: ''; border: 1px solid rgba(7,148,95,.1); border-radius: 50%; }
.update-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 9px; }
.update-meta time { color: var(--green-dark); font-weight: 700; }
.update-meta span { padding-left: 9px; border-left: 1px solid var(--line); }
.update-entry h2 { position: relative; z-index: 1; margin-top: 16px; font-size: 23px; font-weight: 600; letter-spacing: -.035em; }
.update-description { position: relative; z-index: 1; max-width: 690px; margin: 10px 0 20px; color: #4d5750; font-size: 11px; line-height: 1.65; }
.update-changes { position: relative; z-index: 1; display: grid; gap: 10px; margin: 0; padding: 17px 18px; background: #f2f6f3; border-radius: 16px; list-style: none; }
.update-changes li { position: relative; padding-left: 19px; color: #354139; font-size: 10px; line-height: 1.55; }
.update-changes li::before { position: absolute; width: 7px; height: 7px; top: .48em; left: 0; content: ''; background: var(--green); border: 2px solid #d8eee3; border-radius: 50%; }
.updates-state { max-width: 920px; min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 28px; color: var(--muted); background: rgba(255,255,255,.68); border: 1px dashed #ced8d1; border-radius: 22px; text-align: left; }
.updates-state-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green-dark); background: var(--pale-green); border-radius: 50%; font-size: 20px; }
.updates-state h2 { margin: 0 0 5px; color: var(--ink); font-size: 15px; }
.updates-state p { margin: 0; font-size: 10px; line-height: 1.55; }
.updates-error { justify-content: flex-start; border-style: solid; border-color: #ecd5cf; }
.updates-error .updates-state-icon { color: var(--danger); background: #fae9e4; }
.updates-error .secondary-action { margin-left: auto; flex: 0 0 auto; }
.updates-loading .updates-state-icon i { animation: updates-spin .9s linear infinite; }

.is-readonly form button[type="submit"], .is-readonly form input, .is-readonly form textarea, .is-readonly form select, .is-readonly .danger-button { cursor: not-allowed; }

@keyframes row-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes updates-spin { to { transform: rotate(1turn); } }
@keyframes notification-pop { 0% { transform: rotate(0); } 35% { transform: rotate(-12deg); } 70% { transform: rotate(9deg); } 100% { transform: rotate(0); } }
@keyframes popover-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }

@media (max-width: 1220px) {
  .overview-layout { grid-template-columns: 245px minmax(390px, 1fr) 260px; }
  .search-hero { grid-template-columns: 285px minmax(330px, 1fr) 250px; }
  .history-layout { grid-template-columns: 245px minmax(390px, 1fr) 250px; }
  .checker-form { grid-template-columns: 1fr 1fr; }.form-heading { grid-column: 1 / -1; }
  .checker-fields { grid-template-columns: 1fr 1fr; }
  .users-list { grid-template-columns: 1fr 1fr; }
	.add-user-panel { grid-template-columns: 1fr auto; }.add-user-copy { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .app-frame { width: calc(100% - 24px); min-height: calc(100vh - 24px); margin: 12px; border-radius: 18px; }
  .topbar { gap: 10px; margin: 12px 12px 0; padding: 10px 13px; border-radius: 25px; }
  .side-rail { position: fixed; z-index: 50; width: auto; top: auto; right: 18px; bottom: 15px; left: 18px; flex-direction: row; justify-content: center; pointer-events: none; }
  .rail-group { display: flex; pointer-events: auto; box-shadow: 0 14px 38px rgba(24,34,27,.16); }
  .workspace { min-height: 0; margin-left: 0; padding: 26px 18px 104px; }
  .overview-layout, .search-hero, .history-layout { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .overview-left, .overview-right, .visibility-chart-card, .recent-card, .history-table-card { grid-column: auto; grid-row: auto; }
  .overview-right { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-column: 1 / -1; }
  .visibility-chart-card, .recent-card { grid-column: 1 / -1; }
  .search-form { grid-column: 1; }.search-summary-card { grid-column: 2; }.entity-mix-card { grid-column: 1 / -1; min-height: 230px; }.entity-donut { float: left; margin: 20px 40px 10px 20px; }
  .history-chart-card { grid-column: 2; }.history-table-card { grid-column: 1 / -1; }
  .checker-fields { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html, body { min-height: 100%; }
  body:has(.app-frame:not([hidden])) { height: 100%; overflow: hidden; }
  .auth-screen { min-height: 100dvh; padding: 14px; }
  .auth-card { padding: 28px 23px; border-radius: 24px; }
  .auth-brand { margin-bottom: 42px; }
  .app-frame { width: 100%; height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) calc(84px + env(safe-area-inset-bottom)); margin: 0; border: 0; border-radius: 0; }
  .topbar { grid-row: 1; margin: 10px 10px 0; }
  .brand-name { font-size: 14px; }
  .topbar-actions { gap: 6px; }
  .updates-notification-button { width: 45px; height: 45px; font-size: 18px; }
  .updates-unread-badge { top: -3px; right: -3px; }
  .updates-popover { position: fixed; width: auto; max-height: calc(100dvh - 88px); top: 70px; right: 10px; left: 10px; }
  .updates-popover-list { max-height: min(52dvh, 340px); }
  .profile-copy { display: none; }
  .profile-button { min-height: 45px; padding: 4px 7px 4px 4px; }
  .workspace { grid-row: 2; min-height: 0; overflow-y: auto; padding: 22px 12px 26px; overscroll-behavior: contain; }
  .side-rail { position: static; grid-row: 3; width: auto; height: auto; min-height: 84px; inset: auto; margin: 0; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 246, 243, .96); }
  .rail-group { max-width: 100%; overflow-x: auto; justify-content: flex-start; }
  .context-banner { align-items: stretch; flex-direction: column; }.context-banner button { width: 100%; }
  .page-heading { min-height: 112px; align-items: flex-start; flex-direction: column; gap: 13px; padding-bottom: 18px; }
  .page-heading h1 { font-size: 38px; }
	#users-title { font-size: 38px; }
  .page-actions { width: 100%; }.page-actions > * { flex: 1; }
  .date-chip { justify-content: center; }
  .overview-layout, .search-hero, .history-layout, .bots-overview { grid-template-columns: 1fr; }
  .overview-left, .overview-right { grid-template-columns: 1fr; grid-template-rows: auto; grid-column: auto; }
  .visibility-chart-card, .recent-card, .search-form, .search-summary-card, .entity-mix-card, .history-chart-card, .history-table-card { grid-column: auto; }
  .bar-chart { min-height: 215px; padding-left: 15px; }.chart-column { width: 34px; }
  .quick-add { width: 100%; align-items: stretch; flex-direction: column; }.quick-add input { width: 100%; }
  .bot-record { grid-template-columns: 1fr; }.record-edit-form { grid-template-columns: 1fr; }
  .checker-form { grid-template-columns: 1fr; }.checker-form .primary-action { width: 100%; }
  .checker-fields { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }.section-meta { text-align: left; }
  .panel-header { grid-template-columns: 34px 1fr; }.panel-status { grid-column: 2; justify-self: start; }
  .word-cloud { align-items: flex-start; flex-direction: column; }.cloud-label { flex-basis: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }.form-footer .primary-action { width: 100%; }
  .entity-mix-card { min-height: 270px; }.entity-donut { float: none; margin: 18px auto; }
  .data-table { overflow-x: auto; }.data-table > * { min-width: 720px; }
  .table-wrap { overflow: visible; padding: 0 14px 14px; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
  .table-wrap tbody { display: grid; gap: 10px; }
  .table-wrap tbody tr { display: grid; gap: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 14px; }
  .table-wrap tbody tr.is-saved-bot { background: linear-gradient(135deg, #edf8f2, #f8fbf9); }
  .table-wrap tbody td { min-height: 33px; display: grid; grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr); align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
  .table-wrap tbody td:last-child { border-bottom: 0; }
  .table-wrap tbody td::before { content: attr(data-label); color: var(--muted-light); font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
  .table-wrap .rank-cell { font-size: 14px; }
  .table-wrap .entity-cell { min-width: 0; grid-template-columns: minmax(88px, .72fr) 34px minmax(0, 1.28fr) auto; }
  .table-wrap .entity-cell::before { grid-column: 1; }
  .table-wrap .entity-avatar { grid-column: 2; }
  .table-wrap .entity-title, .table-wrap .entity-link { min-width: 0; overflow-wrap: anywhere; }
  .table-wrap .saved-mark { justify-self: start; }
  .table-wrap .table-action { width: 100%; }
  .users-list { grid-template-columns: 1fr; }
	.users-add-button { width: 100%; }
	.add-user-panel { grid-template-columns: 1fr; padding: 17px; }.add-user-copy, .add-user-message { grid-column: auto; }
	.add-user-actions { align-items: stretch; flex-direction: column-reverse; }.add-user-actions button { width: 100%; }
	.updates-heading .date-chip { width: 100%; }
	.updates-intro { margin: 5px 4px 22px; }
	.updates-list { gap: 13px; }
	.updates-list::before { left: 18px; }
	.updates-list-item { grid-template-columns: 37px minmax(0, 1fr); gap: 9px; }
	.update-marker { width: 37px; height: 37px; border-width: 5px; font-size: 7px; }
	.update-entry { padding: 20px 18px; border-radius: 19px; }
	.update-entry h2 { margin-top: 13px; font-size: 19px; }
	.update-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
	.update-meta span { padding-left: 0; border-left: 0; }
	.update-description { margin-bottom: 15px; }
	.update-changes { padding: 14px; }
	.updates-state { min-height: 250px; align-items: flex-start; flex-direction: column; padding: 22px; }
	.updates-error .secondary-action { width: 100%; margin: 4px 0 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
