.search-panel{display:grid;grid-template-columns:minmax(280px,1fr) auto auto auto;gap:12px;align-items:end;margin-bottom:14px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.mobile-search-card,.mobile-filter-card{display:contents}.mobile-instructions-promo,.mobile-recommendation-head,#mobileRecommendedCard,.mobile-only-icon{display:none}.search-panel svg,.mobile-bottom-nav svg,.mobile-instructions-dialog svg,.mobile-action-dialog svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
fieldset{margin:0;padding:0;border:0}legend{margin-bottom:6px;font-size:13px;font-weight:650}.segment{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f5f5f3}.segment label{display:block}.segment input{position:absolute;opacity:0;pointer-events:none}.segment span{display:grid;place-items:center;min-width:52px;min-height:34px;padding:0 9px;border-radius:6px;cursor:pointer}.segment input:checked+span{background:#18181b;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}.segment input:focus-visible+span{outline:3px solid rgba(24,24,27,.2)}
.suggestion-anchor{position:relative;display:block}.suggestion-anchor>input{width:100%}.suggestion-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;max-height:320px;overflow:auto;padding:5px;background:#fff;border:1px solid #c9c9c5;border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.13)}.suggestion-option{display:block;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:7px;background:#fff;text-align:left;color:#222;cursor:pointer}.suggestion-art{display:none}.suggestion-option:hover,.suggestion-option.active{background:#ededeb}.suggestion-option mark{background:transparent;color:#111;font-weight:800}.suggestion-empty{padding:10px;color:var(--muted);font-size:13px}
.price-guide{grid-column:1/-1;display:grid;grid-template-columns:minmax(265px,1fr) repeat(3,minmax(110px,auto));align-items:stretch;gap:7px;padding:8px;border:1px solid #d8d9d5;border-radius:12px;background:#f6f7f5;font-variant-numeric:tabular-nums}.price-guide[hidden]{display:none}.price-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 6px}.price-guide-title{display:flex;min-width:0;flex-direction:column}.price-guide-title strong{font-size:13px}.price-guide-title small{margin-top:2px;color:#6b6b70;font-size:10px}.price-guide-exact{display:flex;align-items:center;gap:6px;min-height:36px;padding:4px 8px;border:1px solid #d5d6d2;border-radius:9px;background:#fff;color:#45454a;font-size:11px;font-weight:700;cursor:pointer}.price-guide-exact input{width:17px;height:17px;margin:0;accent-color:#18181b}.price-guide-item{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;padding:7px 9px;border:1px solid #dedfdb;border-radius:9px;background:#fff}.price-guide-item span{color:#68686d;font-size:11px}.price-guide-item strong{white-space:nowrap;font-size:14px}.price-guide-topup{border-color:#c9ddd2;background:#f1f8f4}.price-guide-topup strong{color:#126d3d}.slot-add-button{font-size:24px;line-height:1}
.workspace-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}.workspace-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.workspace-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:12px 14px;cursor:pointer;list-style:none}.workspace-disclosure>summary::-webkit-details-marker{display:none}.workspace-disclosure>summary strong{display:block;font-size:15px}.workspace-disclosure>summary small{display:block;margin-top:2px;color:var(--muted);font-size:12px}.disclosure-icon{font-size:22px;transition:transform .18s}.workspace-disclosure[open] .disclosure-icon{transform:rotate(180deg)}.disclosure-body{padding:0 14px 14px;border-top:1px solid var(--line)}.disclosure-body>.row-actions{justify-content:flex-end;margin:12px 0 8px}.inline-form{display:grid;grid-template-columns:1fr auto;align-items:end;gap:7px;margin-bottom:10px}.chip-row{display:flex;flex-wrap:wrap;gap:7px}.fav-chip,.instruction-chip{min-height:36px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#303035;font-size:13px;font-weight:650;cursor:pointer}.fav-chip:hover,.instruction-chip:hover{border-color:#888883;background:#f2f2f0}.fav-remove{margin-left:7px;color:var(--danger);font-weight:800}.instruction-group{padding-top:12px}.instruction-group+.instruction-group{margin-top:11px;border-top:1px solid var(--line)}.instruction-group>strong{display:block;margin-bottom:7px;color:#717177;font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.recommendation{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(520px,1.2fr);align-items:center;gap:14px;margin-bottom:14px;padding:14px;border:1px solid #9e9e99;border-left:4px solid #18181b;border-radius:var(--radius);background:#fff}.eyebrow{display:block;margin-bottom:4px;color:#515157;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.recommended-row{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.account-row{cursor:pointer;transition:background-color .12s ease,box-shadow .12s ease}.account-row:hover{background:#f1f2ef}.account-row.recommended{background:#f5fbf7;box-shadow:inset 3px 0 #16824b}.account-row.row--selected{background:#e5e6e2;box-shadow:inset 3px 0 #18181b,inset 0 0 0 1px #a5a69f}.account-row.marked{opacity:.72}
.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line);font-size:12px}.slot-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.slot-legend>span{display:inline-flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%}.legend-dot.free{background:#169b54}.legend-dot.busy{background:#dc3d36}.accounts-card .table-scroll{max-height:72vh}.accounts-card table{min-width:1030px}.accounts-card th,.accounts-card td{padding:7px 8px}.accounts-card th:first-child,.accounts-card td:first-child{width:62px;text-align:right}.accounts-card th:nth-child(2),.accounts-card td:nth-child(2){width:300px}.accounts-card th:nth-child(3),.accounts-card td:nth-child(3){width:86px}.history-heading,.history-cell{text-align:center}.accounts-card th.account-action-heading,.accounts-card td.account-action-cell{width:146px}.accounts-card th.account-codes-heading,.accounts-card td.account-codes-cell{width:50px;text-align:right}.game-cell{max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-email{display:block;max-width:100%;overflow:hidden;color:#737379;font-size:10px;font-weight:500;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.recommended-email{display:inline-block;max-width:220px;margin-right:4px;vertical-align:middle}.issuance-dot{display:inline-block;width:9px;height:9px;flex:0 0 9px;margin-right:5px;border-radius:50%;vertical-align:middle;box-shadow:0 0 0 2px rgba(255,255,255,.78)}.issuance-red{background:#dc3d36}.issuance-yellow{background:#d99a00}.issuance-green{background:#169b54}.issuance-gray{background:#9ca3af}.account-history-inline{display:block;overflow:hidden;color:#75757b;font-size:10px;font-weight:500;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.account-history-inline .issuance-dot{width:7px;height:7px;flex-basis:7px;margin-right:4px;box-shadow:none}.slot .issuance-dot{width:8px;height:8px;flex-basis:8px;margin-right:2px;box-shadow:none}.mobile-account-history{display:flex;min-width:0;align-items:center;margin-top:4px;overflow:hidden;color:#68686d;font-size:11px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.mobile-account-history span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-account-history.is-loading{color:#8a6a00}.mobile-account-history.is-loading .issuance-dot{background:#d99a00}.row-number{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}.purple-dot{width:8px;height:8px;border-radius:50%;background:#8b5cf6}.marked-symbol{color:#a05a00}.slot{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:62px;min-height:30px;padding:4px 7px;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;cursor:pointer}.slot small{font-size:9px;opacity:.78}.slot.free{background:#e6f7ed;border-color:#79ca9c;color:#126d3d}.slot.busy{background:#fee9e7;border-color:#ec938c;color:#a4211b}.slot:hover{box-shadow:0 0 0 2px rgba(24,24,27,.12)}.row-actions{display:flex;gap:5px}.slot-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.sale-preview{min-height:20px;padding:2px 0;color:#45454a;font-size:13px;font-variant-numeric:tabular-nums}
.orders-filter-panel{display:grid;grid-template-columns:180px minmax(260px,1fr) auto auto auto;align-items:end;gap:8px;margin-bottom:12px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.orders-search{display:block}.orders-meta{grid-column:1/-1;color:var(--muted);font-size:12px}.orders-card .table-scroll{max-height:72vh}.orders-table{min-width:1120px}.orders-table th:nth-child(2),.orders-table td:nth-child(2){max-width:330px}.orders-table td:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status.blocked{background:#fee9e7;color:#9f201a}
#orderDialog{width:min(720px,calc(100vw - 32px))}.wide-dialog{width:100%}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.full-field{grid-column:1/-1}.mobile-accounts,.mobile-bottom-nav{display:none}
@media(min-width:761px){
  .quick-games-card{position:relative;grid-column:1/-1}.quick-games-card>summary{min-height:66px;padding-right:218px}.quick-games-card .disclosure-body{padding-top:10px}.quick-games-actions{position:absolute;top:10px;right:42px;display:flex;gap:6px}.icon-action{display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #d7d8d4;border-radius:10px;background:#fff;color:#353539;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.icon-action:hover,.icon-action[aria-pressed="true"]{border-color:#8d8e89;background:#eeeeeb;color:#111}.icon-action:focus-visible{outline:3px solid rgba(24,24,27,.2);outline-offset:1px}.icon-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-action.danger-icon:hover{border-color:#e6aaa6;background:#fff0ef;color:#aa241e}.quick-add-form{grid-template-columns:minmax(220px,420px) auto;justify-content:start;margin:0 0 9px}.quick-add-form[hidden]{display:none}.quick-add-form input{min-height:36px}.quick-add-form .button{min-height:36px}.quick-games-list{gap:6px}.quick-games-list:empty::before{content:'Добавьте часто используемые игры кнопкой «+»';color:var(--muted);font-size:12px}.quick-games-list .fav-chip{min-height:32px;padding:5px 11px;border-color:#d9dad6;background:#f6f7f5;font-size:13px}.quick-games-list .fav-chip:hover{border-color:#8d8e89;background:#eceeeb}.quick-games-card .fav-remove{display:inline-grid;place-items:center;width:17px;height:17px;margin-left:6px;border-radius:50%;background:#f4d9d7;color:#9d211c}
  .accounts-card .table-toolbar{min-height:34px;padding:5px 8px}.accounts-card table{width:1100px;min-width:1100px;max-width:1100px;table-layout:fixed}.accounts-card th,.accounts-card td{height:31px;padding:2px 4px;font-size:11px;line-height:1.15}.accounts-card thead th{height:31px;padding-top:3px;padding-bottom:3px;font-size:10px;white-space:nowrap}.accounts-card th:first-child,.accounts-card td:first-child{width:46px;padding-left:5px;padding-right:5px}.accounts-card th:nth-child(2),.accounts-card td:nth-child(2){width:500px}.accounts-card th:nth-child(3),.accounts-card td:nth-child(3){width:90px}.accounts-card .slot-heading,.accounts-card .slot-cell{width:49px;padding-left:2px;padding-right:2px;text-align:center}.accounts-card th.account-codes-heading,.accounts-card td.account-codes-cell{width:42px;text-align:center}.accounts-card th.account-action-heading,.accounts-card td.account-action-cell{width:116px}.accounts-card .game-cell{max-width:590px;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}.accounts-card .slot{width:45px;min-width:45px;min-height:23px;padding:1px 3px;border-radius:6px;font-size:10px;line-height:1}.accounts-card .slot small{font-size:8px}.accounts-card .slot.free{border-color:#15803d;background:#16a34a;color:#fff}.accounts-card .slot.busy{border-color:#b91c1c;background:#dc2626;color:#fff}.accounts-card .slot:hover{filter:brightness(.94);box-shadow:0 0 0 2px rgba(24,24,27,.18)}.accounts-card .small-button{min-height:24px;padding:3px 6px;border-radius:6px;font-size:9px}.accounts-card .purple-dot{width:6px;height:6px}.accounts-card .row-actions{justify-content:flex-end;gap:3px;flex-wrap:nowrap}.accounts-card .row-number{gap:4px}
}

.drafts-panel{margin:12px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.drafts-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.drafts-panel h2{margin:0;font-size:1rem}.drafts-panel p{margin:3px 0 0}
.drafts-list{display:grid;gap:7px}.draft-card{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.draft-card strong,.draft-card small{display:block}.draft-card small{color:var(--muted);margin-top:2px}.draft-card .draft-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.draft-card .status{white-space:nowrap}
@media(max-width:760px){.drafts-panel{padding:10px;margin:8px 0}.drafts-panel>header{align-items:flex-start}.drafts-panel>header p{display:none}.draft-card{grid-template-columns:1fr auto}.draft-card .draft-actions{grid-column:1/-1;justify-content:stretch}.draft-card .draft-actions .button{flex:1;min-height:44px}}
@media(max-width:1100px){.workspace-grid{grid-template-columns:1fr}.recommendation{grid-template-columns:1fr}.recommended-row{justify-content:flex-start}.search-panel{grid-template-columns:1fr 1fr}.search-field{grid-column:1/-1}.search-panel>.button{width:100%}.orders-filter-panel{grid-template-columns:180px 1fr auto auto}.orders-filter-panel #ordersRefresh{grid-column:auto}.orders-meta{grid-column:1/-1}}
@media(max-width:760px){
  #loginView:not([hidden]) ~ .mobile-bottom-nav{display:none!important}
  body{font-size:16px;padding-bottom:calc(82px + env(safe-area-inset-bottom));background:#f2f3f1;overscroll-behavior-y:contain}.sidebar{display:none}.main{padding:12px}.page-header{display:none}input,select,textarea{font-size:16px}.toast{bottom:calc(88px + env(safe-area-inset-bottom))}
  .search-panel{grid-template-columns:minmax(0,1fr) 86px;padding:12px;border-radius:18px;gap:10px}.search-field{grid-column:1}.search-field{min-width:0;font-size:0}.search-field input{width:100%;height:54px;border-radius:13px;font-size:17px}.search-panel>#searchSubmit{grid-column:2;grid-row:1;width:58px;height:54px;justify-self:end;padding:0;border-radius:13px;font-size:0}.search-panel>#searchSubmit::before{content:'↻';font-size:28px}.search-panel fieldset{grid-column:auto;min-width:0}.search-panel fieldset:nth-of-type(1){grid-column:1}.search-panel fieldset:nth-of-type(2){grid-column:2}.search-panel fieldset legend{font-size:11px}.segment{width:100%;min-width:0;gap:4px;background:#f2f2f0}.segment label{flex:1;min-width:0}.segment span{min-height:46px;min-width:0;padding-inline:5px;font-size:14px}
  .suggestion-menu{position:fixed;left:12px;right:12px;top:80px;max-height:min(62vh,520px);font-size:16px}.suggestion-option{min-height:48px}
  .workspace-grid{gap:8px;margin-bottom:10px}.workspace-card{border-radius:16px}.workspace-disclosure>summary{min-height:64px;padding:12px 16px}.workspace-disclosure>summary strong{font-size:16px}.workspace-disclosure>summary small{font-size:12px}.disclosure-body{padding:0 12px 12px}.disclosure-body>.row-actions{justify-content:flex-start;overflow:auto;flex-wrap:nowrap}.inline-form{grid-template-columns:1fr}.inline-form .button{width:100%}.fav-chip,.instruction-chip{min-height:44px;font-size:14px}
  .recommendation{display:block;margin-bottom:10px;padding:12px;border-radius:16px}.recommendation-copy h2{font-size:17px}.recommended-row{display:none}
  .accounts-card{display:none!important}.mobile-accounts:not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr);min-width:0;gap:8px}.mobile-accounts[hidden]{display:none!important}.mobile-account-card{position:relative;min-width:0;max-width:100%;padding:10px 10px 8px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.035);content-visibility:auto;contain-intrinsic-size:auto 116px}.mobile-account-card.recommended{border:3px solid #16824b;padding:8px}.mobile-account-card.marked{opacity:.72}.mobile-account-card header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.mobile-account-card header>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.mobile-account-card header>span{display:flex;flex:0 0 auto;gap:5px}.mobile-account-card header b{padding:2px 7px;border-radius:999px;background:#eeeeec;color:#555;font-size:11px;font-variant-numeric:tabular-nums}.mobile-slot-grid{display:grid;min-width:0;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.mobile-slot-grid .slot{width:100%;min-width:0;min-height:44px;padding:3px;font-size:14px}.mobile-slot-grid .slot small{display:inline-flex;align-items:center;justify-content:center;min-width:18px;padding:1px 4px;border-radius:999px;background:#b91c1c;color:#fff;font-size:9px;line-height:1;font-weight:800;opacity:1}.mobile-account-email{min-width:0;margin-top:5px;overflow:hidden;color:#68686d;font-size:11px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.mobile-card-actions{width:100%;min-height:34px;margin-top:5px;border:0;background:transparent;color:#626268;font-size:12px;font-weight:700;cursor:pointer}
  .mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:80;min-height:66px;padding:6px;background:rgba(255,255,255,.94);border:1px solid #d8d8d4;border-radius:22px;box-shadow:0 12px 40px rgba(0,0,0,.16);backdrop-filter:blur(14px)}.mobile-bottom-nav button{display:grid;place-items:center;gap:1px;min-width:0;border:0;border-radius:16px;background:transparent;color:#54545a;font-weight:700;cursor:pointer}.mobile-bottom-nav button.active{background:#18181b;color:#fff}.mobile-bottom-nav span{font-size:22px;line-height:1}.mobile-bottom-nav small{font-size:10px}
  dialog.mobile-sheet{width:100%;max-width:none;margin:auto 0 0;border:0;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom)}dialog.mobile-sheet::backdrop{background:rgba(10,10,12,.52)}.mobile-sheet .dialog-form{padding:22px 18px 20px}.mobile-sheet input{min-height:56px;font-size:18px}.slot-presets{grid-template-columns:repeat(4,1fr)}.slot-presets .button{min-height:48px;padding:6px}.mobile-action-list{display:grid;gap:10px}.mobile-action-list .button{min-height:52px;font-size:16px}
  .orders-filter-panel{grid-template-columns:1fr 1fr;gap:8px;padding:10px;border-radius:16px}.orders-filter-panel>label:first-child,.orders-search,.orders-meta{grid-column:1/-1}.orders-search{display:grid}.orders-search input{width:100%;min-width:0}.orders-filter-panel .button{width:100%;padding:7px}.orders-card{border:0;background:transparent}.orders-card .table-scroll{overflow:visible;max-height:none}.orders-table,.orders-table tbody,.orders-table tr,.orders-table td{display:block;min-width:0;width:100%}.orders-table thead{display:none}.orders-table tr{margin-bottom:8px;padding:11px;background:#fff;border:1px solid var(--line);border-radius:15px}.orders-table td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:4px 0;border:0;overflow-wrap:anywhere;white-space:normal!important;max-width:none!important}.orders-table td>*{min-width:0}.orders-table td::before{color:var(--muted);font-size:12px;font-weight:700}.orders-table td:nth-child(1)::before{content:'№'}.orders-table td:nth-child(2)::before{content:'Товар'}.orders-table td:nth-child(3)::before{content:'Маржа'}.orders-table td:nth-child(4)::before{content:'Приход'}.orders-table td:nth-child(5)::before{content:'Оплата'}.orders-table td:nth-child(6)::before{content:'Дата'}.orders-table td:nth-child(7)::before{content:'Клиент'}.orders-table td:nth-child(8)::before{content:'Чек'}.orders-table td:nth-child(9){display:block;padding-top:8px}.orders-table td:nth-child(9) .button{width:100%;min-height:44px}.form-grid{grid-template-columns:1fr}.full-field{grid-column:auto}
}

@media(max-width:760px){
  .mobile-account-card.account-color-marked{border-color:#8b5cf6;background:linear-gradient(90deg,#f5f0ff 0,#fff 34%);box-shadow:inset 4px 0 #8b5cf6,0 3px 13px rgba(20,20,20,.045)}
  .mobile-account-card.row--selected{outline:2px solid #18181b;outline-offset:1px}
  .mobile-account-card header .purple-badge{background:#ede9fe;color:#6d28d9}
}

.audit-toolbar{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap}.audit-list{display:grid;gap:7px}.audit-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#fff}.audit-item>div{display:grid;gap:3px}.audit-item>div:last-child{text-align:right}.audit-item span,.audit-item time{color:var(--muted);font-size:12px}.audit-item b{font-size:12px}.status:not(.active):not(.blocked):not(.archived){background:#eee;color:#555}#securityDialog{width:min(620px,calc(100vw - 24px))}#securityDialog .dialog-form>div,#securityDialog form{display:grid;gap:12px}#securityDialog textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:13px}.security-explainer{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafafa}.security-explainer ol{margin:8px 0 0;padding-left:20px;color:#555;line-height:1.55}.security-good{display:grid;gap:2px;padding:12px;border:1px solid #9ed8b8;border-radius:12px;background:#ecf9f1;color:#126d3d}.security-good span{font-size:12px}.admin-reset-hint{line-height:1.45}
.order-details-dialog{width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}.order-details-dialog .dialog-form{max-height:calc(100dvh - 40px);overflow:auto}.order-details-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.order-details-grid .full-field{grid-column:1/-1}.receipt-section{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fafafa}.receipt-section>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.receipt-section h3{margin:0}.receipt-actions,.order-management-actions{display:flex;gap:8px;flex-wrap:wrap}.order-management-actions{justify-content:flex-end}.order-management-actions .danger{margin-right:auto}
.manager-profile-dialog{width:min(680px,calc(100vw - 24px))}.manager-profile-dialog .profile-fieldset{display:grid;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fafafa}.manager-profile-dialog .profile-fieldset legend{padding:0 6px;font-size:12px;font-weight:800;color:#555}.profile-security-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-security-row>div{display:grid;gap:2px}.profile-security-row .muted{font-size:12px}.manager-profile-dialog select:disabled{background:#eeeeec;color:#777}.manager-profile-dialog footer{position:sticky;bottom:-22px;padding:12px 0 0;background:#fff}
@media(max-width:760px){.audit-toolbar{display:grid;grid-template-columns:1fr}.audit-toolbar .button{min-height:44px}.audit-item{grid-template-columns:1fr;padding:10px}.audit-item>div:last-child{display:flex;justify-content:space-between;text-align:left}.audit-list{padding-bottom:90px}#securityDialog{width:100%;max-width:none;margin:auto 0 0;border-radius:22px 22px 0 0}.two-factor-login-dialog input,#twoFactorLoginCode{font-size:20px;letter-spacing:.12em}}
@media(max-width:760px){.order-details-dialog{width:100%;max-width:none;max-height:94dvh;margin:auto 0 0;border-radius:22px 22px 0 0}.order-details-dialog .dialog-form{max-height:92dvh;padding:14px}.order-details-grid{grid-template-columns:1fr}.order-details-grid .full-field{grid-column:auto}.receipt-actions,.order-management-actions{display:grid;grid-template-columns:1fr}.receipt-actions .button,.order-management-actions .button{min-height:46px;width:100%;margin:0}.receipt-section{padding:11px}}
@media(max-width:760px){.manager-profile-dialog{width:100%;max-width:none;max-height:94dvh;margin:auto 0 0;border-radius:22px 22px 0 0}.manager-profile-dialog .dialog-form{max-height:92dvh;overflow:auto;padding:16px}.manager-profile-dialog .form-grid{grid-template-columns:1fr}.profile-security-row{align-items:stretch;flex-direction:column}.profile-security-row .button,.manager-profile-dialog footer .button{min-height:46px;flex:1}}
@media(max-width:390px){.main{padding:8px}.mobile-slot-grid{gap:3px}.mobile-slot-grid .slot{font-size:12px}.slot-presets{grid-template-columns:1fr 1fr}.mobile-bottom-nav{left:6px;right:6px}}

/* Mobile web mirrors the compact native workflow from the supplied references. */
@media(max-width:760px){
  body{padding-bottom:calc(96px + env(safe-area-inset-bottom));background:radial-gradient(circle at 12% 2%,#e8eeec 0,transparent 34%),radial-gradient(circle at 96% 26%,#edf0ec 0,transparent 32%),#f3f4f2;color:#171719}
  .main{width:100%;max-width:520px;margin:0 auto;padding:10px 10px 18px}
  .workspace-grid{display:none}
  .search-panel{display:block;margin:0 0 10px;padding:0;border:0;background:transparent}
  .mobile-search-card,.mobile-filter-card{display:grid;background:rgba(255,255,255,.96);border:1px solid #dcddd9;border-radius:24px;box-shadow:0 5px 20px rgba(20,20,20,.045)}
  .mobile-search-card{grid-template-columns:minmax(0,1fr) 68px;gap:12px;padding:14px}
  .search-field{grid-column:1!important;min-width:0;font-size:0}
  .search-field input{height:62px;padding:0 18px;border:1.5px solid #cfd0cc;border-radius:16px;background:#fff;font-size:19px;font-weight:520;box-shadow:none}
  .search-panel>#searchSubmit,.mobile-search-card>#searchSubmit{grid-column:2;grid-row:1;width:68px;height:62px;padding:0;border-radius:16px;background:#18181b;color:#fff}
  .search-panel>#searchSubmit::before{content:none}.desktop-search-label{display:none}.mobile-only-icon{display:block;width:28px;height:28px;margin:auto}
  .mobile-instructions-promo{grid-column:1/-1;display:grid;grid-template-columns:48px minmax(0,1fr) 24px;align-items:center;gap:12px;min-height:100px;padding:16px;border:0;border-radius:18px;background:#f0f1ef;color:#202024;text-align:left;cursor:pointer}
  .promo-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#fff}.promo-icon svg{width:25px}.mobile-instructions-promo strong{display:block;font-size:17px}.mobile-instructions-promo small{display:block;margin-top:3px;color:#68686d;font-size:12px;line-height:1.35}.promo-chevron{width:22px}
  .mobile-filter-card{grid-template-columns:1fr 1fr;gap:12px;margin-top:10px;padding:14px}
  .mobile-filter-card fieldset{min-width:0}.mobile-filter-card legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .mobile-filter-card .segment{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0;border:0;background:transparent}
  .mobile-filter-card .segment span{min-height:56px;border:1px solid #d7d8d4;border-radius:15px;background:#f1f2f0;font-size:15px;font-weight:800}
  .mobile-filter-card .segment input:checked+span{background:#18181b;color:#fff;box-shadow:none}
  .price-guide{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:5px;padding:6px;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 2px 9px rgba(20,20,20,.035)}.price-guide-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding:0 2px}.price-guide-title strong{font-size:12px}.price-guide-title small{margin-top:1px;font-size:8px}.price-guide-exact{min-height:44px;padding:3px 6px;font-size:9px}.price-guide-exact input{width:16px;height:16px}.price-guide-item{display:grid;justify-items:start;gap:2px;padding:7px;border-radius:11px}.price-guide-item span{overflow:hidden;max-width:100%;font-size:9px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}.price-guide-item strong{font-size:14px}.price-guide-topup span{white-space:normal}
  .suggestion-menu{position:fixed;top:88px;left:12px;right:12px;z-index:100;display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:calc(100dvh - 190px);padding:12px;border:1px solid #d5d6d2;border-radius:22px;background:#fff;box-shadow:0 22px 55px rgba(0,0,0,.2)}
  .suggestion-menu[hidden]{display:none}.suggestion-option{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:10px;height:70px;min-height:70px;overflow:hidden;padding:9px;border:1px solid #ecece9;border-radius:16px;background:#fafaf9;color:#1e1e21;font-size:15px;font-weight:750}.suggestion-option:hover,.suggestion-option.active{background:#eceeeb}.suggestion-art{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#18181b;color:#fff;font-size:12px;letter-spacing:.03em}.suggestion-label{display:-webkit-box;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left;-webkit-box-orient:vertical;-webkit-line-clamp:2}.suggestion-empty{grid-column:1/-1}
  .recommendation{display:block;margin:0 0 8px;padding:12px;border:1px solid #d9dad6;border-left:1px solid #d9dad6;border-radius:22px;background:#fff;box-shadow:0 5px 18px rgba(20,20,20,.04)}
  .recommendation-copy,.recommended-row{display:none}.mobile-recommendation-head{display:grid;grid-template-columns:42px minmax(0,1fr) 50px;align-items:center;gap:9px;margin-bottom:10px}.recommendation-pin{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e7f5eb;color:#16824b}.recommendation-pin svg{width:22px;height:22px}.mobile-recommendation-head>span:nth-child(2){min-width:0}.mobile-recommendation-head strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:17px}.mobile-recommendation-head small{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#66666b;font-size:11px}.mobile-recommendation-head button{display:grid;place-items:center;width:50px;height:50px;border:0;border-radius:15px;background:#18181b;color:#fff;cursor:pointer}.mobile-recommendation-head button svg{width:24px;height:24px}#mobileRecommendedCard{display:block}
  #accountsState{margin:8px 0;border-radius:18px;background:#fff}
  .mobile-accounts:not([hidden]){gap:8px}.mobile-account-card{padding:9px 9px 10px;border:1px solid #dfe0dc;border-radius:18px;box-shadow:0 3px 13px rgba(20,20,20,.045);cursor:pointer;outline:none}.mobile-account-card:focus-visible{box-shadow:0 0 0 3px rgba(24,24,27,.18)}.mobile-account-card.recommended{padding:7px;border:2px solid #16824b}.mobile-account-card header{margin-bottom:7px}.mobile-account-card header>strong{font-size:16px;line-height:1.2}.mobile-account-card header b{padding:3px 7px;background:#eceeeb;color:#4e4e53;font-size:11px}.mobile-account-card header .code-badge{background:#e5f4e9;color:#17683d}.mobile-slot-grid{gap:4px}.mobile-slot-grid .slot{min-height:43px;border-radius:12px;font-size:13px}.mobile-slot-grid .slot.free{background:#e9f7ed;border-color:#7fc99b;color:#167442}.mobile-slot-grid .slot.busy{background:#fee9e8;border-color:#ee9690;color:#a6211c}.mobile-card-actions{display:none}
  .mobile-bottom-nav{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));min-height:72px;padding:7px;border-color:rgba(210,211,207,.9);border-radius:27px;background:rgba(255,255,255,.9);box-shadow:0 14px 42px rgba(0,0,0,.18)}.mobile-bottom-nav button{gap:3px;min-height:56px;border-radius:20px;color:#2f3033}.mobile-bottom-nav button.active{background:#18181b;color:#fff}.mobile-bottom-nav svg{width:25px;height:25px}.mobile-bottom-nav button:first-child svg rect{fill:currentColor;stroke:none}.mobile-bottom-nav small{font-size:10px;font-weight:750}
  dialog.mobile-action-dialog{width:min(330px,calc(100vw - 40px));padding:0;border:0;border-radius:27px;background:rgba(255,255,255,.96);box-shadow:0 24px 70px rgba(0,0,0,.28)}dialog.mobile-action-dialog::backdrop{background:rgba(18,18,20,.52);backdrop-filter:blur(2px)}.mobile-action-dialog .dialog-form{gap:0;padding:8px}.mobile-action-dialog header{padding:7px 8px 9px}.mobile-action-dialog header h2{font-size:16px}.mobile-action-dialog header p{font-size:11px}.mobile-action-list{gap:0}.mobile-action-button{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:8px;min-height:62px;padding:8px 12px;border:0;border-top:1px solid #e1e2de;background:transparent;color:#171719;text-align:left;font-size:17px;cursor:pointer}.mobile-action-button svg{width:26px;color:#18181b}.mobile-action-button.danger-action{color:#a6211c}.mobile-action-button.danger-action svg{color:#a6211c}
  dialog.mobile-sheet{position:fixed;width:100%;max-height:92dvh}.mobile-sheet::before{content:'';position:absolute;top:9px;left:50%;width:48px;height:5px;border-radius:99px;background:#c3c4c0;transform:translateX(-50%)}.mobile-sheet .dialog-form{padding-top:30px}
  dialog.mobile-instructions-dialog{width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#f2f3f1}.mobile-instructions-dialog::backdrop{background:#f2f3f1}.mobile-instructions-view{min-height:100%;padding:calc(14px + env(safe-area-inset-top)) 14px calc(28px + env(safe-area-inset-bottom));background:radial-gradient(circle at 90% 12%,#e7ece9 0,transparent 32%),#f2f3f1}.mobile-instructions-view>header{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin-bottom:14px}.mobile-instructions-view>header h2{grid-column:2;margin:0;text-align:center;font-size:24px}.mobile-back-button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:#fff;color:#18181b}.mobile-back-button svg{width:24px}.instructions-hero{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:start;padding:20px;border:1px solid #dedfdb;border-radius:24px;background:#fff}.instructions-hero>span{display:grid;place-items:center;width:50px;height:50px;border-radius:15px;background:#f0f1ef}.instructions-hero svg{width:27px}.instructions-hero h3{margin:0 0 5px;font-size:22px}.instructions-hero p{margin:0;color:#66666b;line-height:1.4}.instruction-tile-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px;padding:12px;border:1px solid #dedfdb;border-radius:24px;background:#fff}.instruction-tile-grid button{min-height:110px;padding:15px;border:0;border-radius:18px;background:#eff0ee;color:#232326;text-align:left;cursor:pointer}.instruction-tile-grid button:first-child{background:#18181b;color:#fff}.instruction-tile-grid strong{display:block;font-size:18px}.instruction-tile-grid small{display:block;margin-top:6px;color:inherit;opacity:.72;font-size:12px;line-height:1.35}
  .mobile-instructions-view{display:flex;height:100dvh;min-height:0;overflow-y:auto;flex-direction:column;padding:calc(8px + env(safe-area-inset-top)) 8px calc(12px + env(safe-area-inset-bottom))}.mobile-instructions-view>header{flex:0 0 auto;margin-bottom:8px}.mobile-instructions-view>header h2{font-size:20px}.instruction-selector{flex:0 0 auto;padding:10px;border:1px solid #dedfdb;border-radius:20px;background:#fff}.instruction-type-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.instruction-mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.instruction-selector button{min-width:0;min-height:92px;padding:12px;border:0;border-radius:16px;background:#eceeeb;color:#33343a;text-align:left;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}.instruction-selector button:active{transform:scale(.98)}.instruction-selector button[aria-pressed="true"]{background:#18181b;color:#fff}.instruction-selector strong{display:block;font-size:17px;line-height:1.1}.instruction-selector small{display:block;margin-top:7px;color:inherit;opacity:.72;font-size:12px;line-height:1.25}.instruction-mode-grid button{min-height:106px}.instruction-mode-grid strong{font-size:16px}.mobile-instruction-preview{flex:1 1 auto;min-height:150px;max-height:260px;overflow:auto;margin-top:9px;padding:14px;border:1px solid #d8d9d5;border-radius:20px;background:#fff}.mobile-instruction-preview h3{margin:0 0 9px;font-size:17px;line-height:1.2}.mobile-instruction-preview div{color:#555a63;font-size:13px;line-height:1.42;white-space:pre-line}.mobile-instruction-copy{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:0 0 auto;padding-top:9px;background:linear-gradient(transparent,#f2f3f1 28%)}.mobile-instruction-copy button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;border:1px solid #18181b;border-radius:15px;background:#18181b;color:#fff;font-size:13px;font-weight:800;cursor:pointer}.mobile-instruction-copy button:last-child{background:#fff;color:#18181b}.mobile-instruction-copy svg{width:19px;height:19px}
}
@media(max-width:390px){.main{padding:8px}.mobile-search-card{grid-template-columns:minmax(0,1fr) 62px;padding:11px}.search-field input{height:58px}.search-panel>#searchSubmit,.mobile-search-card>#searchSubmit{width:62px;height:58px}.mobile-filter-card{gap:8px;padding:11px}.mobile-filter-card .segment span{min-height:52px}.mobile-account-card header>strong{font-size:15px}.mobile-slot-grid{gap:3px}.mobile-slot-grid .slot{min-height:41px;font-size:12px}.mobile-bottom-nav{left:6px;right:6px}.suggestion-menu{left:8px;right:8px}}

/* Compact mobile-web density: prioritize accounts over decorative whitespace. */
@media(max-width:760px){
  body{padding-bottom:calc(70px + env(safe-area-inset-bottom));font-size:14px}
  .main{max-width:560px;padding:5px 6px 10px}
  .search-panel{margin-bottom:5px}
  .mobile-search-card{grid-template-columns:minmax(0,1fr) 50px;gap:6px;padding:7px;border-radius:17px;box-shadow:0 2px 9px rgba(20,20,20,.035)}
  .search-field input{height:46px;padding:0 13px;border-radius:12px;font-size:16px}
  .search-panel>#searchSubmit,.mobile-search-card>#searchSubmit{width:50px;height:46px;border-radius:12px}
  .mobile-only-icon{width:22px;height:22px}
  .mobile-instructions-promo{grid-template-columns:34px minmax(0,1fr) 18px;gap:8px;min-height:50px;padding:7px 9px;border-radius:12px}
  .promo-icon{width:34px;height:34px;border-radius:10px}.promo-icon svg{width:19px;height:19px}.mobile-instructions-promo strong{font-size:14px;line-height:1.1}.mobile-instructions-promo small{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.promo-chevron{width:17px;height:17px}
  .mobile-filter-card{gap:7px;margin-top:5px;padding:6px;border-radius:16px;box-shadow:0 2px 9px rgba(20,20,20,.035)}
  .mobile-filter-card .segment{gap:5px}.mobile-filter-card .segment span{min-height:42px;border-radius:11px;font-size:13px}
  .recommendation{margin-bottom:5px;padding:6px;border-radius:16px;box-shadow:0 2px 9px rgba(20,20,20,.035)}
  .mobile-recommendation-head{grid-template-columns:34px minmax(0,1fr) 38px;gap:7px;margin-bottom:5px}.recommendation-pin{width:34px;height:34px;border-radius:10px}.recommendation-pin svg{width:17px;height:17px}.mobile-recommendation-head strong{font-size:15px;line-height:1.1}.mobile-recommendation-head small{margin-top:1px;font-size:9px}.mobile-recommendation-head button{width:38px;height:34px;border-radius:10px}.mobile-recommendation-head button svg{width:18px;height:18px}
  #accountsState{margin:5px 0;padding:8px;border-radius:13px;font-size:12px}
  .mobile-accounts:not([hidden]){gap:5px}
  .mobile-account-card{padding:6px;border-radius:13px;box-shadow:0 1px 6px rgba(20,20,20,.035)}.mobile-account-card.recommended{padding:5px;border-width:2px}.mobile-account-card header{margin-bottom:4px}.mobile-account-card header>strong{font-size:14px;line-height:1.05}.mobile-account-card header>span{gap:3px}.mobile-account-card header b{padding:2px 6px;font-size:9px}.mobile-slot-grid{gap:3px}.mobile-slot-grid .slot{min-height:34px;padding:2px;border-radius:9px;font-size:11px}
  .mobile-bottom-nav{left:6px;right:6px;bottom:calc(5px + env(safe-area-inset-bottom));min-height:58px;padding:4px;border-radius:20px}.mobile-bottom-nav button{gap:1px;min-height:48px;border-radius:15px}.mobile-bottom-nav svg{width:21px;height:21px}.mobile-bottom-nav small{font-size:9px}
  .toast{bottom:calc(72px + env(safe-area-inset-bottom))}
  .suggestion-menu{top:60px;max-height:calc(100dvh - 132px);gap:5px;padding:7px;border-radius:16px}.suggestion-menu.quick-mode{align-content:start}.suggestion-option{grid-template-columns:36px minmax(0,1fr);gap:7px;height:56px;min-height:56px;padding:6px;border-radius:11px;font-size:13px}.suggestion-menu.quick-mode .suggestion-option{background:#fafaf9}.suggestion-art{width:36px;height:36px;border-radius:9px;font-size:10px}
}
@media(max-width:390px){.main{padding:4px}.mobile-search-card{grid-template-columns:minmax(0,1fr) 48px;padding:6px}.search-field input{height:44px}.search-panel>#searchSubmit,.mobile-search-card>#searchSubmit{width:48px;height:44px}.mobile-instructions-promo{min-height:48px}.mobile-filter-card .segment span{min-height:40px}.mobile-account-card header>strong{font-size:13px}.mobile-slot-grid .slot{min-height:32px;font-size:10px}.mobile-bottom-nav{left:4px;right:4px}}

@media(max-width:760px){
  dialog.mobile-favs-dialog{max-height:min(88dvh,720px);overflow:hidden}
  .mobile-favs-dialog .dialog-form{max-height:min(88dvh,720px);padding:30px 14px calc(16px + env(safe-area-inset-bottom));overflow:hidden}
  .mobile-favs-dialog header{flex:0 0 auto}.mobile-favs-dialog header h2{font-size:20px}.mobile-favs-dialog header p{margin-top:3px;font-size:12px}
  .mobile-fav-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}.mobile-fav-form label{min-width:0}.mobile-fav-form input{width:100%;min-width:0;min-height:48px}.mobile-fav-form .button{min-height:48px}
  .mobile-fav-list{display:grid;gap:7px;min-height:80px;overflow-y:auto;overscroll-behavior:contain}.mobile-fav-item{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:7px;align-items:stretch}
  .mobile-fav-item>button{min-height:48px;border:1px solid #d9dad6;border-radius:13px;background:#fff;color:#202024;cursor:pointer}.mobile-fav-item>button:first-child{min-width:0;padding:8px 11px;text-align:left}.mobile-fav-item span,.mobile-fav-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-fav-item span{font-size:14px;font-weight:750}.mobile-fav-item small{margin-top:2px;color:#717177;font-size:10px}.mobile-fav-item>button:last-child{display:grid;place-items:center;color:#a6211c}.mobile-fav-item svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-fav-empty{margin:0;padding:18px 12px;border:1px dashed #cfd0cc;border-radius:13px;color:#68686d;text-align:center;font-size:12px;line-height:1.45}.mobile-favs-dialog>.dialog-form>.danger{flex:0 0 auto;min-height:46px}
}

/* Mobile admin and instruction ergonomics. */
@media(max-width:760px){
  .mobile-instruction-preview{flex:0 0 auto;max-height:none;overflow:visible}
  #usersPage .page-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:8px 10px;border:1px solid #dedfdb;border-radius:15px;background:#fff}
  #usersPage .page-header h1{margin:0;font-size:18px}
  #usersPage .page-header p{display:none}
  #usersPage .page-header .button{min-height:42px;padding:8px 12px;font-size:12px}
  #usersPage .table-card{overflow:visible;border:0;background:transparent}
  #usersPage .table-scroll{overflow:visible}
  #usersPage table,#usersPage tbody,#usersPage tr,#usersPage td{display:block;width:100%;min-width:0}
  #usersPage thead{display:none}
  #usersPage tbody{display:grid;gap:7px}
  #usersPage tbody tr{padding:10px;border:1px solid #dedfdb;border-radius:15px;background:#fff;box-shadow:0 2px 8px rgba(20,20,20,.035)}
  #usersPage tbody td{display:grid;grid-template-columns:94px minmax(0,1fr);gap:7px;padding:4px 0;border:0;overflow-wrap:anywhere}
  #usersPage tbody td::before{color:#717177;font-size:11px;font-weight:750}
  #usersPage tbody td:nth-child(1)::before{content:'Сотрудник'}
  #usersPage tbody td:nth-child(2)::before{content:'Роль'}
  #usersPage tbody td:nth-child(3)::before{content:'Статус'}
  #usersPage tbody td:nth-child(4)::before{content:'Последний вход'}
  #usersPage tbody td:nth-child(5)::before{content:'Активность'}
  #usersPage tbody td:nth-child(6){display:block;padding-top:8px}
  #usersPage tbody td:nth-child(6)::before{content:none}
  #usersPage .row-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  #usersPage .row-actions .button{width:100%;min-height:40px;padding:6px;font-size:11px}
  #usersPage .row-actions .muted{grid-column:1/-1;padding:6px 0}
}

.admin-sessions-panel{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.admin-sessions-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.sessions-list{display:grid;gap:8px}.session-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #e1e1de;border-radius:11px;background:#fafaf9}.session-card.current{border-color:#9fcbb3;background:#f5fbf7}.session-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#ececea;color:#34343a}.session-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.session-main{min-width:0}.session-main>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.session-main>span{display:block;margin-top:2px;color:var(--muted);font-size:12px}.session-main dl{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0 0}.session-main dl div{display:flex;gap:5px;font-size:12px}.session-main dt{color:var(--muted)}.session-main dd{margin:0;font-variant-numeric:tabular-nums}.session-actions{display:flex;align-items:center;gap:8px}.session-actions .button{white-space:nowrap}
@media(max-width:760px){.admin-sessions-panel{padding:12px}.admin-sessions-panel>header{align-items:stretch;flex-direction:column}.admin-sessions-panel>header .row-actions{display:grid;grid-template-columns:1fr 1fr}.session-card{grid-template-columns:38px minmax(0,1fr);padding:10px}.session-icon{width:38px;height:38px}.session-main dl{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.session-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.session-actions .button{min-height:44px}}

/* Compact issuance history: one status below the game on desktop and below slots on mobile. */
.account-email,.mobile-account-email{display:none!important}
.account-history-inline,.mobile-account-history{display:flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin:0;color:#5f6066;font-size:11px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.history-cell .account-history-inline{margin:0 auto}
.account-history-inline .issuance-dot,.mobile-account-history .issuance-dot{width:8px;height:8px;flex:0 0 8px;margin:0;box-shadow:none}
.issuance-numbers{letter-spacing:.01em}
.slot .issuance-dot{display:none!important}

/* Recent accounts: align identity and activity in separate columns. */
.recent-hint{font-size:13px;line-height:1.5;margin:0 0 14px}
.recent-game-title{font-size:13px;font-weight:600;line-height:1.4}
.recent-account-email{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
.recent-row-change{color:var(--text);font-size:12px;font-weight:400;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.recent-row-activity{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4;white-space:normal}
.recent-row-meta{margin-top:3px;color:var(--muted);font-size:11px;font-weight:400;line-height:1.4;white-space:normal;font-variant-numeric:tabular-nums}
#recentTable table{width:100%;min-width:1000px;max-width:none;table-layout:fixed}
#recentTable th,#recentTable td{padding:10px 8px}
#recentTable th{font-size:10px;font-weight:600}
#recentTable th:first-child,#recentTable td:first-child{width:36px;padding-left:8px;color:var(--muted)}
#recentTable th:nth-child(2),#recentTable td:nth-child(2){width:auto}
#recentTable .game-cell{min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
#recentTable .recent-work-heading,#recentTable .recent-work-cell{width:168px}
#recentTable .history-heading,#recentTable .history-cell{width:44px}
#recentTable .slot-heading,#recentTable .slot-cell{width:43px;padding-left:2px;padding-right:2px;text-align:center}
#recentTable th.account-codes-heading,#recentTable td.account-codes-cell{width:28px;text-align:center}
#recentTable th.account-action-heading,#recentTable td.account-action-cell{width:112px;padding-right:10px}
#recentTable .slot-heading{white-space:normal;line-height:1.25}
#recentTable .row-actions{flex-wrap:nowrap}
#recentTable .small-button{min-height:28px;padding:4px 6px;font-size:10px;font-weight:600}
#recentPage .mobile-account-card{cursor:pointer}
@media(max-width:760px){
  #recentPage .page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}
  #recentPage .page-header h1{font-size:22px;margin:0 0 4px}
  #recentPage .page-header p{font-size:12px;line-height:1.4;margin:0}
  #recentRefresh{min-height:44px;flex-shrink:0}
  #recentPage .recent-hint{font-size:12px}
  #recentPage .mobile-account-card{padding:12px}
  #recentPage .mobile-account-card header{margin-bottom:3px}
  #recentPage .mobile-account-card header>strong{font-size:14px;font-weight:600;line-height:1.4}
  #recentPage .recent-account-email{font-size:12px;margin:0 0 10px}
  #recentPage .mobile-slot-grid .slot{min-height:44px}
  #recentPage .recent-row-change{margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
  #recentPage .recent-row-meta{font-size:11px;margin-top:3px}
}

/* Authy fallback for accounts with no recovery codes. */
.accounts-card th.account-token-heading,.accounts-card td.account-token-cell{width:136px;text-align:left}.account-token-cell .token-row-button{min-height:30px;font-size:11px;padding:5px 8px}.token-not-needed{color:var(--muted)}
#recentTable th.account-token-heading,#recentTable td.account-token-cell{width:124px;padding-right:8px}
.token-row-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#126d3d;border-color:#b7d8c4;background:#f1f8f4;white-space:nowrap;transition:background-color .18s,border-color .18s}
.token-row-button:hover{background:#e4f3e9;border-color:#79b694}.token-row-button svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.token-app-store{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f7f7f5;color:#18181b;font-size:13px;font-weight:650;text-decoration:none;transition:background-color .18s,border-color .18s}.token-app-store:hover{background:#efefec;border-color:#aaa}.token-app-store>span{flex:1}.token-app-store small{display:block;margin-top:4px;color:#606068;font-size:11px;font-weight:400;line-height:1.4}.token-app-store svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.token-app-store:focus-visible{outline:3px solid #16824b;outline-offset:3px}
.mobile-token-action{margin-top:12px}.mobile-token-action .token-row-button{width:100%;min-height:44px;font-size:13px}
.account-token-dialog{width:min(600px,calc(100vw - 32px));max-width:600px;padding:0;border:1px solid var(--line);border-radius:18px;color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.22)}
.account-token-dialog .dialog-form{padding:24px;gap:16px}.account-token-dialog h2{margin:4px 0 0;font-size:24px;letter-spacing:-.025em}
.token-eyebrow{color:#126d3d;font-size:11px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.token-account-meta{margin:0;color:#53535a;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.account-token-dialog #accountTokenIntro{margin:0;line-height:1.6;font-size:14px}
.token-key-card{display:grid;gap:12px;padding:18px;border:1px solid #b7d8c4;border-radius:12px;background:#f1f8f4}.token-field-label{color:#3f5f4b;font-size:12px;font-weight:650}.token-key-card code{display:block;padding:12px;border:1px solid #d0e3d7;border-radius:8px;background:#fff;color:#18181b;font-size:16px;line-height:1.5;letter-spacing:.05em;overflow-wrap:anywhere;user-select:all}.token-key-card .button{min-height:44px}.token-copy-status{color:#126d3d;font-size:12px;line-height:1.5}.token-copy-status:empty{display:none}
.token-steps{display:grid;gap:18px;padding:0;margin:22px 0;list-style:none;counter-reset:token-step}.token-steps li{display:flex;align-items:flex-start;gap:12px;counter-increment:token-step}.token-steps li::before{content:counter(token-step);display:grid;place-items:center;flex:0 0 28px;height:28px;border:1px solid var(--line);border-radius:50%;background:#f6f6f4;font-size:12px;font-weight:750}.token-steps strong{display:block;margin:3px 0 5px;font-size:14px}.token-steps p{margin:0;color:#53535a;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.token-note{margin:0;padding:12px 14px;border-radius:8px;background:#f5f5f3;color:#53535a;font-size:12px;line-height:1.6}.token-loading{padding:20px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:14px}.token-error{margin:0;line-height:1.6}
#accountTokenReady[hidden],#accountTokenLoading[hidden],#accountTokenRetry[hidden],#accountTokenError[hidden],#mobileToken[hidden]{display:none}.account-token-dialog button:focus-visible,.token-key-card code:focus-visible,.token-row-button:focus-visible{outline:3px solid #16824b;outline-offset:3px}
@media(max-width:760px){.account-token-dialog .dialog-form{padding:20px}.account-token-dialog h2{font-size:22px}.token-key-card{padding:14px}.token-steps{gap:16px}.token-row-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.token-row-button{transition:none}}

.token-steps .token-expiry{display:block;margin:8px 0;color:#126d3d;font-size:13px;font-weight:650}
#recentTable .slot{width:100%;min-width:0;padding-left:3px;padding-right:3px}

@media(min-width:761px){#accountsTable th.account-token-heading,#accountsTable td.account-token-cell{width:120px}#accountsTable .account-token-cell .token-row-button{min-height:24px;padding:3px 6px;border-radius:6px;font-size:9px}#accountsTable .token-row-button svg{width:12px;height:12px}}
