.applications-table-card { overflow-x: auto; }
.applications-table { width: 100%; min-width: 1100px; border-collapse: collapse; }
.applications-table th { padding: 12px 18px; color: #98a1b1; border-bottom: 1px solid var(--line); background: #fbfcff; text-align: left; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; font-weight: 800; }
.applications-table td { padding: 14px 18px; border-bottom: 1px solid #edf0f5; vertical-align: middle; font-size: 11px; }
.applications-table tbody tr:last-child td { border-bottom: 0; }
.applications-table tbody tr:hover { background: #fbfaff; }
.application-table-row { cursor: pointer; outline: none; }
.application-table-row:focus-visible { box-shadow: inset 0 0 0 2px #a79df2; }
.application-number { display: block; color: #46536a; font-size: 12px; font-weight: 800; }
.application-subtext { display: block; max-width: 270px; overflow: hidden; margin-top: 3px; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.application-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #397fd2; border-radius: 5px; background: #e9f3ff; white-space: nowrap; font-size: 9px; font-weight: 800; }
.application-status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.application-status.opened { color: #148d68; background: #e6f8f1; }
.application-status.closed { color: #c85667; background: #ffecef; }
.application-status.processing { color: #8b6bcb; background: #f1edff; }
.application-status.action { color: #bd741e; background: #fff3e6; }
.application-lead-link { padding: 0; color: #5d4ac9; border: 0; background: transparent; text-align: left; font-weight: 800; }
.application-lead-link:hover { text-decoration: underline; }
.application-available { color: #7b669c; font-size: 10px; font-weight: 800; }
.application-attach { display: flex; gap: 7px; align-items: center; margin-top: 8px; }
.application-attach select { min-width: 0; flex: 1; min-height: 30px; padding: 0 7px; color: #4d5970; border: 1px solid #dfe4ee; border-radius: 6px; background: #fff; font-size: 9px; }
.application-attach-note { margin: 0 0 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.application-drawer .drawer-head { background: linear-gradient(130deg, #43226f, #7541b7); }
.application-drawer .drawer-person .avatar { color: #5f3595; background: #fff; }
.application-detail-grid { padding-top: 0; }
.application-detail-grid .application-detail-full { grid-column: 1 / -1; }
.application-detail-grid strong { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.45; }
.application-drawer-note { margin: 10px 0 0; color: #7b669c; font-size: 10px; line-height: 1.5; }
.application-drawer-lead { margin-top: 10px; padding: 0; color: #5d4ac9; border: 0; background: transparent; font-size: 10px; font-weight: 800; }
.application-drawer-lead:hover { text-decoration: underline; }
@media (max-width: 780px) { .applications-table th, .applications-table td { padding-left: 12px; padding-right: 12px; } }

.partners-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 18px; margin-top: 18px; align-items: start; }
.partner-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.partner-form label, .drawer-form label { display: grid; gap: 5px; color: #566277; font-size: 10px; font-weight: 800; }
.partner-form input, .partner-form textarea { min-width: 0; min-height: 34px; padding: 7px 9px; color: #455166; border: 1px solid #dfe4ee; border-radius: 7px; background: #fff; font-size: 11px; }
.partner-form textarea { resize: vertical; }
.partner-form-wide { grid-column: 1 / -1; }
.partner-list { display: grid; }
.partner-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 18px; color: inherit; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.partner-row:hover { background: #fbfaff; }.partner-row .avatar { width: 32px; height: 32px; color: #5e4acb; background: #eeeafe; font-size: 9px; }.partner-row-copy { min-width: 0; }.partner-row-copy strong, .partner-row-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.partner-row-copy strong { font-size: 11px; }.partner-row-copy span { margin-top: 2px; color: var(--muted); font-size: 9px; }.partner-row-copy span:last-child { color: #658071; }.partner-row b { display: grid; gap: 1px; color: #5b4dc2; text-align: right; font-size: 12px; }.partner-row small { color: var(--muted); font-size: 8px; font-weight: 700; }.partner-drawer-head { background: linear-gradient(130deg, #19455a, #35778a); }.partner-drawer .drawer-person .avatar { color: #286273; background: #fff; }.partner-active { display: flex !important; align-items: center; gap: 7px !important; color: #566277; }.partner-active input { margin: 0; }.partner-leads, .payout-list { display: grid; gap: 7px; }.partner-lead, .payout-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px; border: 1px solid #e8edf3; border-radius: 8px; background: #fbfcff; }.partner-lead { width: 100%; color: #4c586d; text-align: left; }.partner-lead span, .payout-row span { display: block; color: #68748a; font-size: 9px; }.partner-lead strong { color: #5e4acb; font-size: 9px; }.payout-row strong { display: block; color: #4c586d; font-size: 10px; }.payout-row span { margin-top: 3px; }
@media (max-width: 780px) { .partners-layout { grid-template-columns: 1fr; gap: 12px; }.partner-form { grid-template-columns: 1fr; }.partner-form-wide { grid-column: auto; } }

.dashboard-lead-stats, .dashboard-finance { margin-top: 18px; }
.section-inline-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 10px; }
.section-inline-head h3 { margin: 3px 0 0; color: #354158; font-size: 14px; }
.section-inline-head > a { color: #5e4acb; font-size: 10px; font-weight: 800; }
.dashboard-lead-stats-grid, .dashboard-finance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partner-summary-card { margin-top: 12px; }
.partner-payout-summary { display: grid; }
.partner-payout-summary-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px 100px; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); }
.partner-payout-summary-row:hover { background: #fbfaff; }
.partner-payout-summary-row > span { min-width: 0; }
.partner-payout-summary-row strong, .partner-payout-summary-row small, .partner-payout-summary-row b { display: block; }
.partner-payout-summary-row strong { overflow: hidden; color: #455166; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.partner-payout-summary-row b { color: #4c586d; font-size: 11px; }
.partner-payout-summary-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.telegram-status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; margin-top: 17px; padding: 16px 18px; border: 1px solid #f2dfb3; border-radius: 12px; background: #fff9ea; }
.telegram-status.ready { border-color: #c5ecde; background: #edf9f4; }
.telegram-status h3 { margin: 3px 0 4px; color: #4b596c; font-size: 13px; }
.telegram-status p { margin: 0; color: #69748a; font-size: 10px; line-height: 1.5; }
.telegram-checks { display: flex; flex-wrap: wrap; align-content: start; justify-content: end; gap: 6px; }
.telegram-checks span { padding: 4px 7px; color: #88671b; border-radius: 6px; background: #fff3d7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.telegram-checks span.ready { color: #28785e; background: #daf4e8; }
.telegram-status-note { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid rgba(130, 108, 31, .16); }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.guide-card { padding: 20px; }
.guide-card h3 { margin: 5px 0 12px; color: #354158; font-size: 15px; }
.guide-card p, .guide-card li { color: #627088; font-size: 11px; line-height: 1.6; }
.guide-card ol, .guide-card ul { display: grid; gap: 6px; margin: 0; padding-left: 20px; }
.guide-card strong { color: #445169; }
.guide-card code { padding: 1px 4px; color: #5b49c8; border-radius: 4px; background: #f0eeff; font: 700 10px var(--font); }
.guide-note { margin-top: 12px !important; padding: 9px 10px; color: #765d1d !important; border-radius: 7px; background: #fff8e7; }
.guide-card-wide { grid-column: 1 / -1; }
@media (max-width: 1120px) { .dashboard-lead-stats-grid, .dashboard-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 780px) { .section-inline-head { align-items: start; }.partner-payout-summary-row { grid-template-columns: 1fr 75px 75px; padding: 10px 13px; }.telegram-status { grid-template-columns: 1fr; }.telegram-checks { justify-content: start; }.guide-grid { grid-template-columns: 1fr; gap: 10px; }.guide-card-wide { grid-column: auto; }.dashboard-lead-stats-grid, .dashboard-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.simple-dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); }
.stage-count { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; color: #5e4acb; border-radius: 8px; background: #f0eeff; font-size: 11px; font-weight: 800; }
.status-dashboard-layout { grid-template-columns: 1fr; }
.status-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.status-overview-card { min-height: 112px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; align-items: start; gap: 2px 10px; padding: 14px; position: relative; overflow: hidden; color: #46536a; border: 1px solid #e5e9f2; border-radius: 11px; background: #fbfcff; text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
.status-overview-card::before { width: 4px; height: 100%; position: absolute; inset: 0 auto 0 0; background: #7566dd; content: ""; }
.status-overview-card:hover { border-color: #cdc6fa; background: #fff; box-shadow: 0 8px 18px rgba(42, 49, 85, .08); transform: translateY(-1px); }
.status-overview-label { color: #657188; font-size: 10px; font-weight: 800; line-height: 1.35; }
.status-overview-count { align-self: center; color: #3f4b61; font-size: 28px; line-height: 1; letter-spacing: -1.2px; }
.status-overview-description { grid-column: 1 / -1; color: #929bad; font-size: 9px; line-height: 1.35; }
.status-overview-arrow { align-self: center; color: #8c80e7; font-size: 17px; font-weight: 800; }
.status-overview-won::before { background: #25a67b; }.status-overview-won .status-overview-arrow { color: #168d68; }
.status-overview-lost::before { background: #df6676; }.status-overview-lost .status-overview-arrow { color: #cf5869; }
@media (max-width: 1120px) { .status-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chat-contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.chat-contact-card { padding: 17px; }
.chat-contact-head { display: flex; align-items: center; gap: 10px; }
.chat-contact-head .avatar { color: #5e4acb; background: #eeeafe; }
.chat-contact-head h3 { margin: 0; color: #455166; font-size: 12px; }
.chat-contact-head p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.chat-contact-head .soft-label { margin-left: auto; white-space: nowrap; }
.chat-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.chat-contact-actions .secondary-button, .chat-contact-actions .primary-button { min-height: 32px; padding: 0 9px; font-size: 9px; }
.chat-contact-actions .secondary-button { display: inline-flex; align-items: center; gap: 5px; }
.chat-contact-actions svg { width: 14px; }
.payout-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.payout-summary span { padding: 9px; color: #657188; border: 1px solid #e8edf3; border-radius: 8px; background: #fbfcff; font-size: 9px; }
.payout-summary strong { display: block; margin-top: 2px; color: #455166; font-size: 11px; }
.drawer-section .payout-list { margin-top: 12px; }
@media (max-width: 780px) { .simple-dashboard-grid, .status-overview-grid { grid-template-columns: 1fr; }.chat-contact-grid { grid-template-columns: 1fr; }.chat-contact-head { align-items: flex-start; }.chat-contact-head .soft-label { margin-left: 0; }.payout-summary { grid-template-columns: 1fr; } }

.workflow-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.workflow-card { min-width: 0; overflow: hidden; }.workflow-card .card-head { align-items: center; }.workflow-card .card-head > div { min-width: 0; }.workflow-card .section-kicker { display: block; margin-bottom: 3px; }.workflow-card h3 { margin: 0; color: #354158; font-size: 13px; }.workflow-card > p { min-height: 42px; margin: 0; padding: 0 18px 13px; color: #68748a; font-size: 10px; line-height: 1.45; }.workflow-card.alfa-ready { border-color: #f0d7ac; background: #fffdfa; }.workflow-list { display: grid; border-top: 1px solid var(--line); }.workflow-lead { width: 100%; display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 14px; color: inherit; border: 0; border-bottom: 1px solid #edf0f5; background: transparent; text-align: left; }.workflow-lead:last-child { border-bottom: 0; }.workflow-lead:hover { background: #fbfaff; }.workflow-lead .avatar { width: 29px; height: 29px; color: #5e4acb; background: #eeeafe; font-size: 8px; }.workflow-lead span { min-width: 0; }.workflow-lead strong, .workflow-lead small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.workflow-lead strong { color: #46536a; font-size: 10px; }.workflow-lead small { margin-top: 2px; color: #8c96a8; font-size: 8px; }.workflow-arrow { color: #8778dc; font-size: 16px; font-weight: 800; }.workflow-countdown { padding: 4px 6px; color: #795814; border-radius: 5px; background: #fff3d7; font-size: 8px; white-space: nowrap; }.workflow-empty { margin: 0; padding: 20px 14px; color: #8c96a8; font-size: 10px; text-align: center; }
@media (max-width: 1120px) { .workflow-board { grid-template-columns: 1fr; }.workflow-card > p { min-height: 0; } }

.stage-ip-registry-wait { color: #c77920; background: #fff1e0; }

.team-list { display: grid; }.team-member-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, .8fr) auto; gap: 14px; align-items: end; padding: 14px 18px; border-top: 1px solid var(--line); }.team-member-row > div { min-width: 0; display: flex; align-items: center; gap: 10px; }.team-member-row strong, .team-member-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.team-member-row strong { color: #455166; font-size: 11px; }.team-member-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }.team-member-row label { display: grid; gap: 4px; color: #7b8598; font-size: 9px; font-weight: 800; }.team-member-row input { width: 100%; min-height: 33px; padding: 0 9px; color: #455166; border: 1px solid #dfe4ee; border-radius: 7px; background: #fff; font-size: 10px; }.team-member-row .secondary-button { min-height: 33px; padding: 0 10px; font-size: 9px; }.team-note { margin: 0; padding: 12px 18px; color: #7b8598; border-top: 1px solid var(--line); background: #fbfcff; font-size: 9px; line-height: 1.5; }
@media (max-width: 780px) { .team-member-row { grid-template-columns: 1fr; gap: 9px; }.team-member-row .secondary-button { width: 100%; } }

.workflow-card { position: relative; border-color: #e5e9f2; background: linear-gradient(145deg, #fff 0%, #fbfaff 100%); box-shadow: 0 9px 24px rgba(38, 47, 85, .055); }.workflow-card::before { width: 100%; height: 3px; position: absolute; inset: 0 0 auto; background: linear-gradient(90deg, #7768df, #ad9ff5); content: ""; }.workflow-card.alfa-ready::before { background: linear-gradient(90deg, #e69a43, #f0c871); }.workflow-card .card-head { position: relative; }.workflow-countdown { font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px rgba(185, 133, 42, .12); }.stage-count { box-shadow: inset 0 0 0 1px rgba(104, 86, 231, .08); }
