/* Keep the entire workspace inside a single browser frame. */
.feature-list .feature-card.is-maintenance .feature-card-status { display: none; }
.feature-maintenance-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: rgb(255 255 255 / 70%); border-radius: inherit; pointer-events: none; }
.feature-maintenance-overlay strong { color: #a96c17; font-size: clamp(26px, 2.2vw, 36px); font-weight: 750; letter-spacing: 4px; opacity: .7; }
:root {
  --frame-gap: clamp(10px, 1vw, 18px);
  --frame-radius: 14px;
  --frame-sidebar: 238px;
  --frame-height: calc(100dvh - 2 * var(--frame-gap));
}
body:has(.sidebar) { display: flow-root; min-height: 100dvh; background: #e9eef5; }
.sidebar {
  inset: var(--frame-gap) auto var(--frame-gap) var(--frame-gap);
  width: var(--frame-sidebar);
  border: 1px solid #dce3ee;
  border-radius: var(--frame-radius) 0 0 var(--frame-radius);
}
.shell {
  margin: var(--frame-gap) var(--frame-gap) var(--frame-gap) calc(var(--frame-gap) + var(--frame-sidebar));
  min-height: var(--frame-height);
  background: #f5f7fb;
  border: 1px solid #dce3ee;
  border-left: 0;
  border-radius: 0 var(--frame-radius) var(--frame-radius) 0;
  box-shadow: 5px 6px 24px #35476c0a;
}
.shell > .topbar { border-top-right-radius: calc(var(--frame-radius) - 1px); }
.shell.feature-shell {
  inset: var(--frame-gap);
  margin: 0 0 0 var(--frame-sidebar);
  height: var(--frame-height);
  min-height: 0;
}
@media (min-width: 1151px) { :root { --frame-sidebar: 236px; } }
@media (max-width: 1150px) { :root { --frame-sidebar: 220px; } }
@media (max-width: 800px) { :root { --frame-sidebar: 205px; } }
@media (min-width: 1100px) and (min-height: 620px) {
  .shell:has(.feature-list) { height: var(--frame-height); min-height: 0; }
}
@media (max-width: 600px) {
  :root { --frame-gap: 7px; --frame-sidebar: 0px; --frame-radius: 11px; }
  .shell { border-left: 1px solid #dce3ee; border-radius: var(--frame-radius); }
  .shell > .topbar { border-top-left-radius: calc(var(--frame-radius) - 1px); }
  .sidebar { width: min(230px, calc(100vw - 2 * var(--frame-gap))); border-radius: var(--frame-radius); }
}

/* A steady navigation rhythm; short windows scroll menus, never shrink them. */
.sidebar { display: flex; flex-direction: column; overflow: hidden; padding: 12px; }
.sidebar .brand { flex: none; gap: 9px; padding: 0 4px 10px; margin: 0; min-height: 44px; font-size: 18px; white-space: nowrap; border-bottom: 1px solid #edf0f6; }
.sidebar .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.sidebar-nav-area { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cdd6e6 transparent; padding: 8px 0; }
.sidebar .nav-label { margin: 10px 10px 5px; padding: 0; color: #8493ac; font-size: 11px; letter-spacing: .5px; line-height: 16px; }
.sidebar .nav-label:first-child { margin-top: 0; }
.sidebar .nav { gap: 2px; }
.sidebar .nav a { min-height: 36px; padding: 6px 10px; gap: 11px; color: #5d6e87; font-size: 14px; line-height: 22px; border-radius: 8px; }
.sidebar .nav a.active { color: var(--primary); }
.sidebar .nav .icon { width: 20px; height: 20px; }
.sidebar .sidebar-account { display: grid; gap: 5px; flex: none; margin: 0; padding-top: 8px; border-top: 1px solid #edf0f6; }
.sidebar-balance,.sidebar-profile,.sidebar-logout { border: 1px solid #dfe6f1; border-radius: 8px; background: #f8faff; }
.sidebar-balance { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px; color: #495c7c; font-size: 13px; }
.sidebar-balance .icon { width: 16px; height: 16px; }
.sidebar-balance strong { margin-left: auto; color: #375bf2; font-size: 18px; font-variant-numeric: tabular-nums; }
.sidebar-profile { display: grid; gap: 2px; padding: 5px 10px; min-width: 0; }
.sidebar-profile strong { color: #2b3a55; font-size: 12px; line-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile span { color: #7c8ca6; font-size: 11px; line-height: 16px; }
.sidebar-logout { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 4px 10px; color: #465875; font-size: 14px; line-height: 22px; background: #fff; }
.sidebar-logout .icon { width: 17px; height: 17px; }
.sidebar-balance:hover,.sidebar-profile:hover,.sidebar-logout:hover { border-color: #bbcafa; background: #f0f4ff; }
@media (max-width: 1150px) and (min-width: 801px) {
  .sidebar { padding-inline: 10px; }
  .sidebar .brand { gap: 7px; font-size: 15px; padding-inline: 2px; }
}
@media (max-width: 800px) and (min-width: 601px) {
  .sidebar { padding-inline: 9px; }
  .sidebar .brand { gap: 6px; font-size: 14px; padding-inline: 0; }
  .sidebar .brand-logo { width: 27px; height: 27px; }
}

/* Increase text and controls one step without scaling the browser itself. */
.shell .breadcrumb { font-size: 13px; }
.shell .page-heading h1 { font-size: 29px; }
.shell .muted { font-size: 14px; }
.shell .panel-heading h2 { font-size: 16px; }
.shell .button { font-size: 13px; }
.shell label,.shell input,.shell select,.shell textarea { font-size: 13px; }
.shell .table-wrap table { font-size: 12px; }
.shell .table-wrap th { font-size: 12px; }
.feature-list .section-heading h2 { font-size: 19px; line-height: 28px; }
.feature-list .feature-card h3 { font-size: 18px; }
.feature-list .feature-card p { font-size: 14px; line-height: 1.5; }
.feature-list .feature-footer,.feature-list .feature-price { font-size: 13px; }
.feature-list .feature-price strong { font-size: 22px; }
.feature-list .feature-icon { width: 34px; height: 34px; }
.feature-list .feature-icon .icon { width: 21px; height: 21px; }
.feature-shell .wb-console .wb-title-row h1 { font-size: 22px; }
.feature-shell .wb-console .button { font-size: 13px; min-height: 34px; }
.feature-shell .wb-console-guide p,.feature-shell .wb-settings-summary p { font-size: 13px; }
.feature-shell .wb-table th,.feature-shell .wb-table td { font-size: 12px; }
@media (min-width: 1100px) and (min-height: 620px) and (max-height: 800px) {
  .feature-list .feature-card { grid-template-columns: 34px minmax(0,1fr); }
  .feature-list .feature-card h3 { font-size: 17px; }
  .feature-list .feature-card p { font-size: 13px; }
}
@media (min-width: 1100px) and (max-width: 1250px) and (min-height: 620px) and (max-height: 800px) {
  .feature-list .feature-card { grid-template-columns: minmax(0,1fr); }
  .feature-list .feature-card-top { display: none; }
}
@media (max-width: 600px) {
  .sidebar .brand { font-size: 17px; }
  .feature-list .feature-card h3 { font-size: 17px; }
  .feature-list .feature-card p { font-size: 13px; }
  .feature-list .feature-footer,.feature-list .feature-price { font-size: 12px; }
  .feature-shell .wb-console .button { font-size: 12px; }
}

/* Give the five-item user navigation its own comfortable proportions. */
.sidebar.sidebar-user { padding: 16px 12px; }
.sidebar-user .brand { min-height: 52px; padding-bottom: 18px; font-size: 17px; }
.sidebar-user .sidebar-nav-area { padding: 16px 0; }
.sidebar-user .nav-label { margin: 0 12px 10px; font-size: 11px; }
.sidebar-user .nav { gap: 6px; }
.sidebar-user .nav a { min-height: 46px; padding: 11px 12px; gap: 12px; font-size: 15px; }
.sidebar-user .nav .icon { width: 21px; height: 21px; }
.sidebar-user .user-account-panel { flex: none; display: block; margin: 0; padding: 14px; border: 1px solid #e0e7f2; border-radius: 12px; background: #fff; box-shadow: 0 3px 14px #334b7710; }
.user-panel-credit { padding: 0 0 14px; }
.user-panel-credit > span { color: #76859e; font-size: 12px; }
.user-panel-credit strong { display: block; margin-top: 5px; color: #2e4cc9; font-size: 28px; line-height: 34px; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.user-panel-credit strong small { margin-left: 6px; color: #8996ad; font-size: 11px; font-weight: 400; }
.user-panel-credit p { margin-top: 5px; color: #8795ac; font-size: 11px; }
.user-panel-actions { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.user-panel-actions a,.user-panel-actions button { display: flex; justify-content: center; align-items: center; gap: 5px; min-height: 36px; padding: 7px 9px; border: 1px solid #e2e8f2; border-radius: 7px; background: #fff; color: #6c7a93; font-size: 12px; line-height: 20px; }
.user-panel-actions a { border-color: #dde5ff; background: #eef2ff; color: #4059d6; font-weight: 600; }
.user-panel-actions .icon { width: 15px; height: 15px; }
.user-panel-actions a:hover { background: #e3eaff; }
.user-panel-actions button:hover { background: #f4f6fa; color: #374865; }
@media (max-width: 600px) {
  .sidebar.sidebar-user { width: min(260px,calc(100vw - 2 * var(--frame-gap))); }
  .sidebar-user .brand { font-size: 16px; padding-right: 24px; }
}

.task-billing { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8edf5; }
.task-billing > h3 { font-size: 14px; color: #334866; }
.billing-flow { list-style: none; padding: 0; margin: 12px 0 0; }
.billing-flow li { padding: 11px 13px; border: 1px solid #e5ebf5; border-radius: 8px; background: #f8faff; margin-top: 8px; }
.billing-flow li > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.billing-flow strong { color: #4a5e80; font-size: 12px; font-weight: 600; }
.billing-flow time { color: #8b98af; font-size: 11px; }
.billing-flow p { margin-top: 6px; color: #445d89; font-size: 13px; line-height: 1.6; }
.billing-flow small { display: block; margin-top: 5px; color: #8593a9; font-size: 11px; overflow-wrap: anywhere; }

.user-panel-actions [data-action="recharge-dialog"] { border-color: #dde5ff; background: #eef2ff; color: #4059d6; font-weight: 600; }
.user-panel-actions [data-action="recharge-dialog"]:hover { background: #e3eaff; color: #4059d6; }
#modal.recharge-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; border-radius: 14px; }
.recharge-dialog h2 { font-size: 20px; margin-bottom: 0; }
.recharge-dialog > .hint { margin-top: 10px; }
.recharge-dialog label,.recharge-dialog input { font-size: 13px; }
.recharge-dialog .dialog-actions { margin-top: 20px; padding-top: 16px; }

/* Keep task controls on one line and reserve the frame for the list. */
.shell.tasks-shell { position: fixed; inset: var(--frame-gap); margin: 0 0 0 var(--frame-sidebar); height: var(--frame-height); min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.tasks-shell > .topbar { flex: none; height: 50px; min-height: 50px; padding: 0 16px; gap: 14px; }
.task-page-title { display: flex; align-items: center; gap: 8px; flex: none; }
.task-page-title h1 { font-size: 18px; line-height: 28px; letter-spacing: 0; white-space: nowrap; }
.tasks-shell .task-filter-bar { flex: 1; min-width: 0; max-width: none; width: auto; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; padding: 3px; border: 0; border-radius: 0; background: transparent; overflow-x: auto; scrollbar-width: thin; }
.tasks-shell .task-filter { flex: none; min-height: 32px; padding: 6px 10px; gap: 6px; font-size: 12px; white-space: nowrap; }
.tasks-shell .task-page-refresh { flex: none; min-height: 32px; padding: 6px 10px; font-size: 12px; }
.tasks-shell .tasks-main { display: flex; flex-direction: column; flex: 1; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 10px; overflow: hidden; }
.tasks-main > .banner { flex: none; margin-bottom: 10px; }
.tasks-main > #page-content,.tasks-main .task-list-page { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.tasks-main .task-list-page .task-list-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; border-radius: 10px; }
.tasks-main .task-list-panel > .table-wrap { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.tasks-main .task-list-panel th { position: sticky; top: 0; z-index: 1; padding: 10px 14px; box-shadow: 0 1px #e8edf5; }
.tasks-main .task-list-panel td { padding: 12px 14px; }
.tasks-main .task-list-panel > .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; min-height: 0; overflow: auto; }
@media (max-width: 700px) {
  .tasks-shell > .topbar { height: 48px; min-height: 48px; gap: 8px; padding-inline: 10px; }
  .task-page-title { gap: 5px; }
  .task-page-title h1 { font-size: 16px; }
  .tasks-shell .task-filter { padding: 5px 8px; gap: 4px; font-size: 11px; }
  .tasks-shell .task-page-refresh { padding: 6px 8px; }
  .tasks-shell .task-page-refresh span { display: none; }
  .tasks-shell .tasks-main { padding: 7px; }
  .tasks-main .task-list-panel td { padding: 0; }
}

/* Independent groups keep their natural height when other groups collapse. */
.feature-list.feature-list-grouped { display: flex; flex-direction: column; align-items: stretch; gap: 16px; width: 100%; }
.feature-list-grouped .feature-category { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-category-heading { margin: 0; flex: none; }
.feature-category-toggle { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 32px; padding: 2px 0; border: 0; border-radius: 6px; background: transparent; color: #263856; font-size: 18px; font-weight: 700; text-align: left; }
.feature-category-toggle:hover { color: #21865f; }
.feature-category-count { border-radius: 5px; padding: 2px 7px; color: #586e9f; background: #e8eefb; font-size: 11px; font-weight: 600; white-space: nowrap; }
.feature-category-action { margin-left: auto; color: #71829f; font-size: 12px; font-weight: 500; }
.feature-category-toggle > .icon { width: 16px; height: 16px; color: #71829f; transform: rotate(90deg); transition: transform .15s; }
.feature-category-toggle[aria-expanded="false"] > .icon { transform: rotate(0deg); }
.feature-category-content { min-width: 0; }
.feature-category-content[hidden] { display: none; }
.feature-list-grouped .feature-grid { margin: 0; width: 100%; }
.feature-list-grouped .feature-category.is-collapsed { gap: 0; }
@media (min-width: 1100px) and (min-height: 620px) {
  .main:has(.feature-list-grouped) { overflow-y: auto; }
  .main:has(.feature-list-grouped) > #page-content { display: block; flex: 0 0 auto; }
  .feature-list.feature-list-grouped { flex: none; gap: 12px; height: auto; min-height: 0; }
  .feature-list-grouped .feature-category { flex: none; min-height: 0; gap: 6px; }
  .feature-list-grouped .feature-category.is-collapsed { flex: none; }
  .feature-category-content { display: block; flex: none; min-height: 0; }
  .feature-list-grouped .feature-grid { flex: none; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 164px; align-content: start; gap: 10px; }
  .feature-list-grouped .feature-card { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; gap: 7px 10px; padding: clamp(10px, 1.5dvh, 16px) 14px; }
  .feature-list-grouped .feature-card-top { margin: 0; align-items: flex-start; }
  .feature-list-grouped .feature-icon { width: 30px; height: 30px; }
  .feature-list-grouped .feature-card-top .feature-arrow { display: none; }
  .feature-list-grouped .feature-card:has(.feature-card-status:not(:empty)) .feature-card-copy { padding-top: 0; }
  .feature-list-grouped .feature-card h3 { font-size: 18px; line-height: 1.35; margin-bottom: 5px; }
  .feature-list-grouped .feature-card p { font-size: 13px; min-height: 0; }
  .feature-list-grouped .feature-footer { grid-column: 1 / -1; width: 100%; margin: 0; padding-top: 7px; font-size: 12px; }
}
@media (min-width: 1100px) and (min-height: 620px) and (max-height: 800px) {
  .feature-list-grouped .feature-grid { grid-auto-rows: 148px; }
  .feature-list-grouped .feature-card h3 { font-size: 17px; }
  .feature-list-grouped .feature-card p { -webkit-line-clamp: 1; font-size: 12px; }
}
@media (min-width: 1100px) and (max-width: 1250px) and (min-height: 620px) {
  .feature-list-grouped .feature-card { grid-template-columns: minmax(0, 1fr); }
  .feature-list-grouped .feature-card-top { display: none; }
  .feature-list-grouped .feature-card h3 { font-size: 16px; }
}
@media (max-width: 600px) {
  .feature-list.feature-list-grouped { gap: 14px; }
  .feature-category-toggle { min-height: 38px; font-size: 17px; }
}

/* Compact controls across feature pages; reserve the workspace for the list. */
.feature-shell .workbench.wb-console{gap:6px}
.feature-shell .workbench.wb-console .wb-console-actions{gap:5px 8px}
.feature-shell .workbench.wb-console .wb-action-group{gap:4px}
.feature-shell .workbench.wb-console .wb-console-actions .button{min-height:28px;padding:4px 7px;font-size:11px;line-height:1.5;border-radius:7px}
.feature-shell .workbench.wb-console .wb-primary-options{gap:7px;min-height:29px;padding-top:4px}
.feature-shell .wb-primary-options>strong,.feature-shell .wb-primary-form .wb-field,.feature-shell .wb-primary-form .wb-check{font-size:11px}
.feature-shell .wb-primary-form>.wb-fields{gap:5px 10px}
.feature-shell .wb-primary-form .wb-field input,.feature-shell .wb-primary-form .wb-field select{min-height:25px;height:25px;padding:3px 6px;font-size:11px}
.feature-shell .wb-primary-form .wb-check{min-height:25px;gap:5px}
.feature-shell .wb-primary-options>.button{min-height:25px;padding:3px 6px;font-size:11px}
.feature-shell .workbench.wb-profile-console>.wb-console-top{grid-template-columns:300px minmax(0,1fr);gap:6px 10px}
.feature-shell .wb-profile-parameters{padding:5px 8px}
.feature-shell .wb-profile-parameters-title{gap:3px 7px;margin-bottom:3px;line-height:1.4}
.feature-shell .wb-profile-parameters-title strong,.feature-shell .wb-profile-parameters-title small{font-size:10px}
.feature-shell .wb-profile-parameters-title>span{font-size:9px}
.feature-shell .wb-profile-parameters .wb-profile-native{gap:4px}
.feature-shell .wb-profile-parameters .wb-profile-native-row{gap:4px 8px}
.feature-shell .wb-profile-parameters .wb-profile-control-group{gap:4px}
.feature-shell .wb-profile-parameters .wb-field,.feature-shell .wb-profile-parameters .wb-check{min-height:24px;font-size:11px;gap:4px;line-height:1.35}
.feature-shell .wb-profile-parameters .wb-field>span{font-size:10px}
.feature-shell .wb-profile-parameters .wb-field input,.feature-shell .wb-profile-parameters .wb-field select{height:24px;min-height:24px;font-size:11px;padding:2px 5px}
.feature-shell .wb-profile-parameters .wb-check input{width:12px;height:12px}
.feature-shell .wb-profile-parameters [data-field-wrap="options.new_password"] input{width:110px}
.feature-shell .wb-profile-parameters [data-field-wrap="options.new_birthday"] input{width:100px}
.feature-shell .wb-profile-parameters [data-field-wrap="options.preferred_language"] select{width:112px}
.feature-shell .wb-profile-parameters [data-field-wrap="options.new_last_name"] input,.feature-shell .wb-profile-parameters [data-field-wrap="options.new_first_name"] input{width:45px}
.feature-shell .wb-profile-parameters [data-field-wrap="options.name_mode"] select{width:74px}
.feature-shell .wb-profile-parameters [data-field-wrap="code_wait_secs"] input{width:46px}
.feature-shell .wb-profile-parameters .wb-profile-phone-note,.feature-shell .wb-profile-parameters .wb-profile-wait-unit,.feature-shell .wb-profile-parameters .wb-profile-devices-details{font-size:10px}
.feature-shell .wb-profile-parameters .button.wb-text{min-height:22px;padding:1px 3px;font-size:10px}
.feature-shell .wb-profile-parameters .wb-profile-security{gap:4px 7px}
.feature-shell .wb-profile-parameters .wb-profile-question-pair{gap:4px}
.feature-shell .wb-profile-parameters .wb-profile-question-pair input{width:72px}
.feature-shell .workbench .wb-feature-menu{display:none}
@media(max-width:1250px) and (min-width:1001px){
 .feature-shell .workbench.wb-profile-console>.wb-console-top{grid-template-columns:270px minmax(0,1fr)}
 .feature-shell .wb-profile-parameters .wb-profile-security{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;padding-bottom:0}
 .feature-shell .wb-profile-parameters .wb-profile-security>.wb-profile-control-group{grid-column:1/-1}
 .feature-shell .wb-profile-parameters .wb-profile-question-pair select{min-width:0}
}
@media(max-width:1000px){
 .feature-shell .workbench.wb-profile-console>.wb-console-top{display:flex;gap:5px}
 .feature-shell .wb-profile-parameters{max-height:32dvh}
}
@media(max-width:600px){
 .feature-shell .workbench .wb-feature-menu{display:inline-flex}
 body:has(.feature-shell) .sidebar:not(.mobile-open){display:none}
 .feature-shell .wb-profile-parameters{max-height:34dvh}
}
