/* MyStory Staff: shared surfaces and type based on mystoryrp.com. */
.dashboard-body {
  --wk-bg: #050508;
  --wk-sidebar: #090910;
  --wk-panel: #0d0d16;
  --wk-panel-raised: #111122;
  --wk-line: rgba(255, 255, 255, .07);
  --wk-text: #cbd5e1;
  --wk-muted: #94a3b8;
  --wk-radius: 16px;
  --wk-card-pad: 1.35rem;
  background: var(--wk-bg);
  color: var(--wk-text);
  font-family: 'Rubik', system-ui, sans-serif;
  line-height: 1.5;
}
.dashboard-body .app-shell { background: radial-gradient(ellipse at 78% -18%, rgba(var(--accent-color-rgb), .09), transparent 48%), var(--wk-bg); }
.dashboard-body .app-sidebar {
  width: 292px; padding: 1.4rem 1rem 1.1rem; background: var(--wk-sidebar);
  border-right: 1px solid var(--wk-line); box-shadow: inset -1px 0 rgba(0,0,0,.2);
}
.dashboard-body .app-brand { gap: .8rem; margin: 0 .2rem 1.3rem; padding: .55rem .45rem 1.15rem; border-bottom: 1px solid var(--wk-line); }
.dashboard-body .app-brand-icon { width: 43px; height: 43px; border-radius: 12px; background: transparent; box-shadow: none; }
.dashboard-body .app-brand-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(var(--accent-color-rgb), .4)); }
.dashboard-body .app-brand-text { font-family: 'Rubik', sans-serif; font-size: 1.14rem; letter-spacing: -.035em; }
.dashboard-body .app-brand-copy small { margin-top: .12rem; color: #8e9fb4; font-size: .68rem; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; }
.dashboard-body .app-nav { gap: .85rem; }
.dashboard-body .app-nav-group { padding: 0 0 .05rem; border: 0; gap: .12rem; }
.dashboard-body .app-nav-label { padding: .25rem .85rem .45rem; color: #7789a0; font-size: .65rem; }
.dashboard-body .app-nav-link { position: relative; min-height: 43px; border-radius: 10px; border: 1px solid transparent; color: #aebed0; font-size: .86rem; font-weight: 650; }
.dashboard-body .app-nav-link i { width: 19px; color: #8397ad; font-size: .9rem; }
.dashboard-body .app-nav-link:hover { background: #171726; color: #fff; }
.dashboard-body .app-nav-link.is-active { background: #201b36; border-color: rgba(var(--accent-color-rgb), .3); color: #fff; }
.dashboard-body .app-nav-link.is-active::before { content: ''; position: absolute; left: -1px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-color); }
.dashboard-body .app-nav-link.is-active i { color: var(--accent-color); }
.dashboard-body .app-user { margin-top: auto; padding: 1rem .35rem 0; border-top-color: var(--wk-line); }
.dashboard-body .app-user-avatar { width: 41px; height: 41px; border: 2px solid rgba(var(--accent-color-rgb), .55); }
.dashboard-body .app-user-name { font-size: .87rem; }
.dashboard-body .app-user-role { color: #aebed0; opacity: 1; font-size: .69rem; }
.dashboard-body .app-content { padding: 1.1rem clamp(1.15rem, 3vw, 3.3rem) 3.5rem; }
.dashboard-body .app-content > .glass-card { width: min(100%, 1600px); margin-inline: auto; }
.dashboard-body .app-topbar {
  position: sticky; top: .8rem; z-index: 30; min-height: 66px; margin-bottom: 2rem; padding: .65rem .8rem .65rem 1rem;
  background: rgba(13,13,22,.95); border: 1px solid var(--wk-line); border-radius: var(--wk-radius);
  box-shadow: 0 16px 38px rgba(1,5,11,.22); backdrop-filter: blur(18px);
}
.dashboard-body .app-topbar-location { min-width: 142px; }
.dashboard-body .app-topbar-location span { color: #8f9fb4; font-size: .64rem; }
.dashboard-body .app-topbar-location strong { font-family: 'Rubik', sans-serif; font-size: .96rem; }
.dashboard-body .app-topbar-actions { gap: .55rem; align-items: center; }
.dashboard-body .app-topbar-actions a, .dashboard-body .app-menu-button { background: #1c1c2d; border-color: var(--wk-line); color: #c7d5e5; }
.dashboard-body .app-topbar-actions a:hover, .dashboard-body .app-menu-button:hover { background: #2c2547; color: #fff; }
.work-search-trigger { display: flex; align-items: center; gap: .8rem; flex: 1; max-width: 510px; height: 42px; margin-left: auto; padding: 0 .85rem; background: #0b0b15; border: 1px solid #34304d; border-radius: 10px; color: #91a5ba; text-align: left; cursor: pointer; font: inherit; font-size: .81rem; }
.work-search-trigger:hover, .work-search-trigger:focus-visible { border-color: var(--accent-color); color: #edf3fa; outline: none; }
.work-search-trigger > i { color: var(--accent-color); }
.work-search-trigger kbd { margin-left: auto; padding: .16rem .4rem; border: 1px solid #3a3555; border-radius: 5px; color: #bac9d9; font: 700 .64rem 'Rubik', sans-serif; white-space: nowrap; }
.work-connection { display: inline-flex; align-items: center; gap: .42rem; padding: .3rem .65rem; color: #a8c4b3; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.work-connection i { width: 7px; height: 7px; border-radius: 50%; background: #64d69a; box-shadow: 0 0 0 4px rgba(100,214,154,.12); }
.dashboard-body .app-page-head { padding: .45rem 0 .25rem; margin-bottom: 1.55rem; }
.dashboard-body .app-content > .app-page-head { max-width: 1600px; margin-left: auto; margin-right: auto; padding-bottom: 1.2rem; border-bottom: 1px solid var(--wk-line); }
.dashboard-body .app-page-title { font-family: 'Rubik', sans-serif; font-size: clamp(1.7rem, 2.7vw, 2.3rem); letter-spacing: -.045em; }
.dashboard-body .app-page-sub { color: #a1b2c5; font-size: .9rem; }
.dashboard-body .glass-card { padding: var(--wk-card-pad); background: var(--wk-panel); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); box-shadow: 0 18px 45px rgba(0,0,0,.11); }
.dashboard-body .input, .dashboard-body .textarea, .dashboard-body .select select { background-color: #111122; border-color: #3a3555; color: #f4f7fb; }
.dashboard-body .input:focus, .dashboard-body .textarea:focus, .dashboard-body .select select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), .15); }
.dashboard-body .button.is-primary { background: var(--accent-color); color: #fff; border: 1px solid transparent; }
.dashboard-body .button.is-primary:hover { filter: brightness(1.1); }
.dashboard-body .button.is-link { background: rgba(var(--accent-color-rgb), .2); border: 1px solid rgba(var(--accent-color-rgb), .42); color: #ddd7ff; }
.dashboard-body .button.is-link:hover { background: rgba(var(--accent-color-rgb), .32); color: #fff; }
.dashboard-body .button.is-dark { background: #252538; border: 1px solid #453e63; color: #e3edf8; }
.dashboard-body .button.is-dark:hover { background: #3c345c; color: #fff; }
.dashboard-body .table { background: transparent; color: #dce6f2; }
.dashboard-body .table th { color: #e9f1fa; border-color: var(--wk-line); }
.dashboard-body .table td { color: #c2d0df; border-color: var(--wk-line); }
.dashboard-body .notification.is-info { background: #231d3b; border: 1px solid #433765; color: #d5eafa; }
.dashboard-body :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }

/* The same page frame and card language across every administration module. */
.workspace-route-nav { display: flex; align-items: center; gap: 1rem; max-width: 1600px; margin: -.75rem auto 1.7rem; padding: .35rem 0 .7rem; border-bottom: 1px solid var(--wk-line); }
.workspace-route-label { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; color: #8398ad; font-size: .65rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.workspace-route-label i { color: var(--accent-color); }
.workspace-route-links { display: flex; gap: .3rem; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.workspace-route-links a { display: inline-flex; align-items: center; gap: .42rem; flex: 0 0 auto; padding: .52rem .68rem; border: 1px solid transparent; border-radius: 8px; color: #a7b9cd; font-size: .72rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.workspace-route-links a:hover { background: #1c1c2d; color: #fff; }
.workspace-route-links a.is-active { border-color: rgba(var(--accent-color-rgb), .3); background: #26203f; color: #fff; }
.workspace-route-links a.is-active i { color: var(--accent-color); }
.workspace-page-intro { display: flex; align-items: end; justify-content: space-between; gap: 1rem; max-width: 1600px; margin: .2rem auto 1.4rem; padding: .25rem 0 1.2rem; border-bottom: 1px solid var(--wk-line); }
.workspace-page-intro h1 { margin: .35rem 0 .22rem; color: #f6f9fc; font: 700 clamp(1.75rem, 2.7vw, 2.45rem)/1.12 'Rubik', sans-serif; letter-spacing: -.045em; overflow-wrap: anywhere; }
.workspace-page-intro p { max-width: 800px; margin: 0; color: #a2b4c7; font-size: .86rem; line-height: 1.5; }
.workspace-page-intro > a { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .56rem .78rem; border: 1px solid #433b60; border-radius: 9px; color: #dce8f4; background: #1b1b2b; font-size: .74rem; font-weight: 750; text-decoration: none; }
.workspace-page-intro > a:hover { border-color: var(--accent-color); color: #fff; }
.dashboard-body .app-content > .section { padding: 0; }
.dashboard-body .app-content > .section > .container, .dashboard-body .app-content > .container { width: 100%; max-width: 1600px; }
.dashboard-body .app-content :is(.glass-card, .staff-card, .role-card, .automod-card, .response-card, .command-card, .member-card, .complaint-card, .leaderboard-card, .stat-box, .stat-card, .chart-container, .msg-log-item, .settings-card, .timestamp-box, .notice-box, .action-limits-card, .preview-card, .add-staff-form, .info-banner, .variables-info) { background: var(--wk-panel); border-color: var(--wk-line); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
.dashboard-body .app-content :is(.glass-card, .staff-card, .role-card, .automod-card, .response-card, .command-card, .member-card, .complaint-card, .settings-card, .msg-log-item, .stat-box, .stat-card, .leaderboard-card, .chart-container, .add-staff-form, .info-banner, .variables-info, .action-limits-card, .cc-panel, .cc-metric, .settings-tile, .addon-work-card, .recording-row, .recordings-filter, .recording-runtime, .recording-facts > div, .addon-summary > div, .complaint-summary a) { border-radius: var(--wk-radius); }
.dashboard-body .app-content :is(.staff-card, .role-card, .automod-card, .response-card, .command-card, .member-card, .complaint-card, .msg-log-item) { padding: var(--wk-card-pad); }
.dashboard-body .app-content :is(.staff-card, .role-card, .automod-card, .response-card, .command-card, .member-card, .complaint-card):hover { border-color: rgba(var(--accent-color-rgb), .42); }
.dashboard-body .app-content :is(.staff-card, .role-card, .automod-card, .response-card, .command-card, .member-card, .complaint-card, .settings-tile, .addon-work-card, .recording-row):hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(var(--accent-color-rgb), .08); }
.dashboard-body .app-content :is(.staff-header, .role-header, .automod-header, .response-header, .command-header, .settings-header, .complaint-head) { padding-bottom: .8rem; margin-bottom: .95rem; border-bottom: 1px solid var(--wk-line); }
.dashboard-body .app-content :is(.section-title, .settings-header, .automod-title, .leaderboard-title, .chart-title) { color: #f2f6fb; font-family: 'Rubik', sans-serif; letter-spacing: -.02em; }
.dashboard-body .app-content :is(.section-description, .section-subtitle, .help, .automod-description) { color: #a7b8ca; line-height: 1.55; }
.dashboard-body .app-content :is(.input, .textarea, .form-input, .form-select, .select select, .search-input, .filter-select) { background-color: #111122; border-color: #443d61; color: #f1f6fc; box-shadow: none; }
.dashboard-body .app-content :is(.input, .textarea, .form-input, .form-select, .select select, .search-input, .filter-select):focus { background-color: #151525; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), .15); }
.dashboard-body .app-content :is(.label, .form-label) { color: #c9d7e6; font-weight: 700; }
.dashboard-body .app-content .action-button { border-radius: 9px; font-family: 'Rubik', sans-serif; font-weight: 750; box-shadow: none; }
.dashboard-body .app-content .action-button.edit { background: var(--accent-color); border: 1px solid transparent; color: #fff; }
.dashboard-body .app-content .action-button.edit:hover { filter: brightness(1.1); }
.dashboard-body .app-content .button:not(.is-primary):not(.is-link):not(.is-dark):not(.is-danger):not(.is-success) { background: #252538; border-color: #453e63; color: #e5eef8; }
.dashboard-body .app-content .button:not(.is-primary):not(.is-link):not(.is-dark):not(.is-danger):not(.is-success):hover { background: #3b315c; color: #fff; }
.dashboard-body .app-content :is(.table-container, .table-wrapper) { max-width: 100%; overflow-x: auto; }
.dashboard-body .app-content .table { min-width: 590px; }
.dashboard-body .app-content .table tr:hover { background: #1b1b2b; }
body.page-logs .logs-panel { max-width: 100%; overflow-x: auto; }
.dashboard-body .app-content .modal-card { max-width: min(900px, calc(100vw - 2rem)); border: 1px solid #4d4073; border-radius: 15px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.dashboard-body .app-content :is(.modal-card-head, .modal-card-body, .modal-card-foot) { background: #151525; border-color: var(--wk-line); color: #d8e4f1; }
.dashboard-body .app-content .modal-card-title { color: #f4f8fc; font-family: 'Rubik', sans-serif; }
.dashboard-body .app-content :is(.logs-tab, .time-option, .pagination-link, .pagination-previous, .pagination-next) { border-color: #3b3656; background: #1c1c2d; color: #aebfd1; }
.dashboard-body .app-content :is(.logs-tab.is-active, .time-option.active, .pagination-link.is-current) { border-color: rgba(var(--accent-color-rgb), .45); background: #332857; color: #fff; }
.dashboard-body .app-content .msg-log-item { border-left: 3px solid #4b3d74; }
.dashboard-body .app-content .notice-box { border-left: 3px solid #e8b46d; }
.dashboard-body .app-content .stat-card .stat-value { font-family: 'Rubik', sans-serif; }
body.page-settings .app-content .action-button.back { display: none; }
@media (max-width: 860px) {
  .workspace-route-nav { align-items: stretch; flex-direction: column; gap: .3rem; margin-top: -.35rem; }
  .workspace-page-intro { align-items: flex-start; flex-direction: column; }
  .dashboard-body .app-content .glass-card { padding: 1.2rem; }
  .dashboard-body .app-content .glass-card > .is-flex:first-child { flex-wrap: wrap; gap: .7rem; }
}

/* Member directory uses the same surfaces and controls as the command center. */
body.page-members .member-card { background: var(--wk-panel); border-color: var(--wk-line); border-radius: var(--wk-radius); box-shadow: none; }
body.page-members .member-card:hover { background: #1c1c2d; border-color: rgba(var(--accent-color-rgb), .55); }
body.page-members .member-avatar { border-color: #4a3b72; border-radius: 12px; }
body.page-members .search-input, body.page-members .filter-select { background-color: #111122; border-color: #3a3555; border-radius: 10px; box-shadow: none; }
body.page-members .search-button { background: var(--accent-color); color: #fff; }
body.page-members .staff-badge { background: rgba(var(--accent-color-rgb), .12); border-color: rgba(var(--accent-color-rgb), .28); box-shadow: none; text-shadow: none; animation: none; }
body.page-members .member-count { color: #94a8bc; font: 600 .78rem 'Rubik', sans-serif; }
body.page-members .pagination-link.is-current { background: var(--accent-color); color: #fff; }
body.page-complaints .complaint-card { scroll-margin-top: 7.5rem; background: var(--wk-panel); border-color: var(--wk-line); border-radius: var(--wk-radius); }
.complaint-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; max-width: 1600px; margin: .2rem auto 1.3rem; }
.complaint-summary a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; border: 1px solid var(--wk-line); border-radius: var(--wk-radius); background: var(--wk-panel); text-decoration: none; }
.complaint-summary a:hover { border-color: rgba(var(--accent-color-rgb),.5); color: #fff; }.complaint-summary span { color: #9cafc2; font-size: .65rem; font-weight: 800; letter-spacing: .1em; }.complaint-summary strong { color: #f2f7fb; font: 700 1.7rem 'Rubik',sans-serif; }.complaint-summary small { color: #b8a9ff; font-size: .69rem; }
body.page-complaints .complaint-group-title { scroll-margin-top: 7rem; }
body.page-complaints .complaint-card:target { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), .14); }
body.page-complaints .complaint-group-title { color: #e9f1fa; font: 700 1.1rem 'Rubik', sans-serif; }
body.page-complaints .complaint-party-label, body.page-complaints .complaint-field-label { color: #91a7bc; }
body.page-complaints .complaint-party-meta, body.page-complaints .complaint-date { color: #9aacbe; }
body.page-stats .stat-box, body.page-stats .leaderboard-card, body.page-stats .chart-container { background: var(--wk-panel); border-color: var(--wk-line); border-radius: var(--wk-radius); }

/* New operational homepage. */
.command-center { max-width: 1600px; margin: 0 auto; }
.cc-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; min-height: 270px; padding: clamp(1.5rem, 3vw, 2.7rem); overflow: hidden; border: 1px solid rgba(var(--accent-color-rgb), .26); border-radius: 22px; background: radial-gradient(ellipse at 85% 10%, rgba(var(--accent-color-rgb), .19), transparent 52%), var(--wk-panel); box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.cc-hero::before { content: ''; position: absolute; z-index: -1; width: 430px; height: 430px; top: -245px; right: 7%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 145px rgba(255,255,255,.018); }
.cc-hero::after { content: ''; position: absolute; z-index: -1; width: 280px; height: 280px; right: -80px; bottom: -170px; background: rgba(var(--accent-color-rgb),.25); filter: blur(72px); }
.cc-overline, .cc-section-kicker { display: inline-flex; align-items: center; gap: .5rem; color: #b8a9ff; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.cc-overline-separator { color: #71899c; }
.cc-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-color); box-shadow: 0 0 0 5px rgba(var(--accent-color-rgb),.13); }
.cc-hero h1 { max-width: 750px; margin: .95rem 0 .65rem; color: #f8fbff; font: 700 clamp(2rem, 3.2vw, 3.35rem)/1.07 'Rubik', sans-serif; letter-spacing: -.055em; }
.cc-hero h1 span { color: #b8a9ff; }
.cc-hero p { max-width: 630px; margin: 0; color: #c0cede; font-size: .94rem; line-height: 1.55; }
.cc-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.cc-primary-action, .cc-secondary-action { display: inline-flex; align-items: center; gap: .65rem; min-height: 43px; padding: .6rem .95rem; border-radius: 10px; text-decoration: none; font: 700 .78rem 'Rubik', sans-serif; cursor: pointer; }
.cc-primary-action { border: 1px solid transparent; background: var(--accent-color); color: #fff; }
.cc-primary-action:hover { filter: brightness(1.13); color: #fff; }
.cc-primary-action kbd { margin-left: .5rem; padding: .15rem .35rem; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; color: #fff; font: 700 .61rem 'Rubik', sans-serif; }
.cc-secondary-action { border: 1px solid rgba(255,255,255,.22); color: #e1eaf4; background: rgba(255,255,255,.04); }
.cc-secondary-action:hover { color: #fff; border-color: #fff; }
.cc-hero-aside { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 1.3rem; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(5,5,8,.46); backdrop-filter: blur(12px); }
.cc-hero-aside > span { color: #a9bbce; font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.cc-hero-aside > strong { margin: .35rem 0 0; color: #fff; font: 700 3.45rem/1 'Rubik', sans-serif; letter-spacing: -.08em; }
.cc-hero-aside > small { color: #b7c8d8; font-size: .78rem; }
.cc-server-line { display: flex; align-items: center; gap: .5rem; width: 100%; margin-top: 1.3rem; padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.13); color: #e7eef8; font-size: .77rem; font-weight: 700; }
.cc-server-line img, .cc-server-line > i { width: 23px; height: 23px; border-radius: 6px; object-fit: cover; }
.cc-server-line > i { display: grid; place-items: center; color: var(--accent-color); }
.cc-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; margin: 1.15rem 0 1.5rem; }
.cc-metric { display: grid; grid-template-columns: 34px 1fr; column-gap: .7rem; min-height: 154px; padding: 1.05rem 1.15rem; border: 1px solid var(--wk-line); border-radius: 15px; background: var(--wk-panel); text-decoration: none; transition: transform .18s, border-color .18s, background .18s; }
.cc-metric:hover { transform: translateY(-2px); background: #171726; border-color: rgba(var(--accent-color-rgb), .42); box-shadow: 0 8px 28px rgba(var(--accent-color-rgb), .08); color: #fff; }
.cc-metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.cc-amber { color: #ef9f41; background: rgba(239,159,65,.13); }
.cc-blue { color: #b8a9ff; background: rgba(var(--accent-color-rgb),.14); }
.cc-violet { color: #c5a8ff; background: rgba(180,140,255,.14); }
.cc-green { color: #85e0b1; background: rgba(107,214,164,.12); }
.cc-red { color: #ff9e9c; background: rgba(241,104,103,.13); }
.cc-metric-label { align-self: center; color: #b0bed0; font-size: .74rem; font-weight: 700; }
.cc-metric strong { grid-column: 1 / -1; margin: .65rem 0 .3rem; color: #f7faff; font: 700 2rem/1 'Rubik', sans-serif; }
.cc-metric-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: #899db3; font-size: .69rem; font-weight: 600; }
.cc-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .85fr); gap: 1.1rem; align-items: start; }
.cc-main-column, .cc-side-column { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.cc-panel { padding: var(--wk-card-pad); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); background: var(--wk-panel); box-shadow: 0 18px 45px rgba(0,0,0,.11); }
.cc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.cc-section-kicker { color: #8196b0; font-size: .64rem; }
.cc-panel-head h2 { margin: .2rem 0 .15rem; color: #f7faff; font: 700 1.4rem/1.2 'Rubik', sans-serif; letter-spacing: -.025em; }
.cc-panel-head p { margin: 0; color: #93a7bb; font-size: .78rem; }
.cc-icon-button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #3b3656; border-radius: 9px; background: #1b1b2b; color: #b7c8d9; cursor: pointer; }
.cc-icon-button:hover { color: #fff; border-color: var(--accent-color); }
.cc-work-group + .cc-work-group { margin-top: 1.2rem; }
.cc-group-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 .45rem; }
.cc-group-title > a, .cc-text-link { color: #b8a9ff; font-size: .72rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.cc-group-title > a:hover, .cc-text-link:hover { color: #d1e2ff; }
.cc-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem; border-radius: 6px; font-size: .66rem; font-weight: 800; letter-spacing: .025em; }
.cc-work-item { display: flex; align-items: center; gap: .85rem; min-height: 69px; padding: .6rem .25rem; border-bottom: 1px solid var(--wk-line); text-decoration: none; }
.cc-work-item:last-child { border-bottom: 0; }
.cc-work-item:hover { background: rgba(255,255,255,.025); color: #fff; }
.cc-item-mark, .cc-action-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; }
.cc-item-body, .cc-activity-body { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.cc-item-body strong, .cc-activity-body strong { overflow: hidden; color: #edf3fa; font-size: .8rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.cc-item-body small, .cc-activity-body small { overflow: hidden; color: #91a3b8; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.cc-item-arrow { margin-left: auto; color: #718aa3; font-size: .68rem; }
.cc-live-pill { margin-left: auto; padding: .27rem .48rem; border: 1px solid rgba(113,224,170,.23); border-radius: 999px; color: #94edbf; background: rgba(87,199,148,.1); font-size: .62rem; font-weight: 750; white-space: nowrap; }
.cc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 175px; color: #9aadc2; text-align: center; font-size: .78rem; }
.cc-empty i { margin-bottom: .35rem; color: #82d9ad; font-size: 1.65rem; }
.cc-empty strong { color: #e6eef7; font-size: .88rem; }
.cc-empty-compact { min-height: 95px; }
.cc-activity-row { display: flex; align-items: center; gap: .8rem; min-height: 65px; border-bottom: 1px solid var(--wk-line); }
.cc-activity-row:last-child { border-bottom: 0; }
.cc-activity-row > a { margin-left: auto; color: #8eaaca; }
.cc-activity-row > a:hover { color: #fff; }
.cc-shortcuts { padding-bottom: .65rem; }
.cc-shortcuts .cc-panel-head { margin-bottom: .55rem; }
.cc-shortcuts > a { display: flex; align-items: center; gap: .75rem; padding: .65rem .15rem; border-bottom: 1px solid var(--wk-line); text-decoration: none; }
.cc-shortcuts > a:last-child { border-bottom: 0; }
.cc-shortcuts > a:hover { color: #fff; }
.cc-shortcuts > a > i:first-child { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border: 1px solid rgba(var(--accent-color-rgb),.23); border-radius: 9px; background: rgba(var(--accent-color-rgb),.1); color: var(--accent-color); font-size: .75rem; }
.cc-shortcuts > a > i:last-child { margin-left: auto; color: #718ba6; font-size: .65rem; }
.cc-shortcuts > a span { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.cc-shortcuts > a strong { color: #eaf1f9; font-size: .77rem; }
.cc-shortcuts > a small { color: #90a5bb; font-size: .67rem; }
.cc-availability .cc-panel-head { margin-bottom: .55rem; }
.cc-availability-empty { color: #a5cdb7; font-size: .78rem; }
.cc-availability-empty i { margin-right: .4rem; }
.cc-absence-row { display: flex; align-items: center; gap: .65rem; padding: .45rem 0; }
.cc-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; background: #27233e; color: #d9e6f4; font-size: .72rem; font-weight: 800; }
.cc-absence-row > span:last-child { display: flex; flex-direction: column; }
.cc-absence-row strong { color: #ecf2f9; font-size: .75rem; }
.cc-absence-row small { color: #9aafc2; font-size: .66rem; }
.cc-insight { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem; border: 1px solid rgba(var(--accent-color-rgb),.32); border-radius: 16px; background: var(--wk-panel); text-decoration: none; }
.cc-insight > span { color: #b8a9ff; font-size: .65rem; font-weight: 800; letter-spacing: .09em; }
.cc-insight > strong { color: #f3f8ff; font: 700 1.17rem/1.3 'Rubik', sans-serif; }
.cc-insight > small { display: flex; justify-content: space-between; color: #adc0d5; font-size: .7rem; }
.cc-insight:hover { border-color: var(--accent-color); color: #fff; }

/* Global search / command palette. */
.command-overlay[hidden] { display: none !important; }
.command-overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: start center; padding: min(13vh, 110px) 1rem 1rem; }
.command-backdrop { position: absolute; inset: 0; background: rgba(3,3,7,.78); backdrop-filter: blur(7px); }
.command-dialog { position: relative; z-index: 1; width: min(680px, 100%); max-height: min(75vh, 720px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #4d4073; border-radius: 18px; background: #151525; color: #edf4fb; box-shadow: 0 35px 100px rgba(0,0,0,.48); }
.command-dialog-head { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem .35rem; }
.command-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(var(--accent-color-rgb),.16); color: var(--accent-color); }
.command-dialog-head label { color: #ecf2fa; font-size: .84rem; font-weight: 800; }
.command-close { margin-left: auto; width: 29px; height: 29px; border: 1px solid #3b3656; border-radius: 7px; background: #242139; color: #b5c6d8; cursor: pointer; }
#command-input { width: calc(100% - 2.2rem); margin: .45rem 1.1rem 0; padding: .85rem 1rem; border: 1px solid #4a3e6d; border-radius: 10px; outline: none; background: #090910; color: #fff; font: 600 .95rem 'Rubik', sans-serif; }
#command-input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb),.14); }
#command-input::placeholder { color: #7f94ac; }
.command-dialog-body { min-height: 120px; overflow-y: auto; padding: .55rem 1.1rem 1.1rem; }
.command-hint { margin: .25rem 0 .7rem; color: #8fa4ba; font-size: .69rem; }
.command-results { display: flex; flex-direction: column; gap: .2rem; }
.command-result { display: flex; align-items: center; gap: .75rem; padding: .65rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; }
.command-result:hover, .command-result[aria-selected="true"] { background: #2c2546; border-color: #4a3b72; color: #fff; }
.command-result-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; color: #b8a9ff; background: #302655; }
.command-type-complaint { color: #ef9f41; background: rgba(239,159,65,.13); }
.command-type-recording { color: #a1e2c0; background: rgba(102,211,161,.12); }
.command-type-punishment { color: #e0b2ff; background: rgba(177,124,224,.13); }
.command-result-copy { display: flex; flex-direction: column; min-width: 0; }
.command-result-copy strong, .command-result-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-result-copy strong { color: #f0f5fb; font-size: .79rem; }
.command-result-copy small { color: #9cafc2; font-size: .68rem; }
.command-result > i:last-child { margin-left: auto; color: #7892aa; font-size: .7rem; }
.command-message { padding: .8rem .6rem; color: #a9bed0; font-size: .78rem; }
.command-shortcuts { display: grid; gap: .25rem; }
.command-shortcuts[hidden] { display: none; }
.command-shortcuts > span { margin: .3rem .55rem; color: #8196ad; font-size: .65rem; font-weight: 800; letter-spacing: .09em; }
.command-shortcuts a { display: flex; align-items: center; gap: .7rem; padding: .62rem; border-radius: 8px; color: #dbe7f4; font-size: .8rem; text-decoration: none; }
.command-shortcuts a:hover { color: #fff; background: #2c2546; }
.command-shortcuts a > i:first-child { width: 20px; color: var(--accent-color); text-align: center; }
.command-shortcuts a > i:last-child { margin-left: auto; color: #8096ab; font-size: .68rem; }
.command-dialog-foot { display: flex; gap: 1.2rem; padding: .6rem 1.1rem; border-top: 1px solid var(--wk-line); color: #8399b0; font-size: .64rem; }
.command-dialog-foot kbd { padding: .1rem .25rem; border: 1px solid #4d4073; border-radius: 4px; color: #bdccdc; font: inherit; }
body.palette-open { overflow: hidden; }

/* Settings landing page: short routes grouped by the job they control. */
.settings-center { max-width: 1450px; margin: 0 auto; }
.settings-hero { padding: 2rem clamp(1.4rem,3vw,2.5rem); margin-bottom: 1.8rem; border: 1px solid rgba(var(--accent-color-rgb),.26); border-radius: 20px; background: radial-gradient(ellipse at 85% 10%, rgba(var(--accent-color-rgb),.16), transparent 52%), var(--wk-panel); }
.settings-hero h1 { margin: .55rem 0 .45rem; color: #f7fbff; font: 700 clamp(1.9rem,3vw,2.65rem)/1.15 'Rubik',sans-serif; letter-spacing: -.045em; }
.settings-hero p { max-width: 650px; color: #b7c9da; font-size: .9rem; }
.settings-hero-links { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.3rem; }
.settings-hero-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .75rem; border: 1px solid rgba(255,255,255,.19); border-radius: 8px; color: #e4effa; font-size: .73rem; font-weight: 750; text-decoration: none; }
.settings-hero-links a:hover { color: #fff; border-color: var(--accent-color); }
.settings-section { margin: 1.8rem 0 2.3rem; }
.settings-section-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.settings-section-head > span { display: grid; place-items: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid rgba(var(--accent-color-rgb),.35); border-radius: 9px; color: var(--accent-color); font: 700 .75rem 'Rubik',sans-serif; }
.settings-section-head h2 { margin: 0; color: #f2f6fb; font: 700 1.25rem 'Rubik',sans-serif; }
.settings-section-head p { margin: .15rem 0 0; color: #97a9bc; font-size: .77rem; }
.settings-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.settings-tile { display: flex; flex-direction: column; min-height: 185px; padding: var(--wk-card-pad); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); background: var(--wk-panel); text-decoration: none; transition: border-color .18s, transform .18s, background .18s; }
.settings-tile:hover { transform: translateY(-3px); border-color: rgba(var(--accent-color-rgb),.5); background: #191929; color: #fff; }
.settings-tile-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: .85rem; border-radius: 9px; color: var(--accent-color); background: rgba(var(--accent-color-rgb),.13); }
.settings-tile strong { color: #f0f5fb; font-size: .9rem; }
.settings-tile small { color: #9eb0c2; font-size: .75rem; line-height: 1.45; }
.settings-tile > span:last-child { display: flex; justify-content: space-between; margin-top: auto; padding-top: .85rem; color: #b8a9ff; font-size: .7rem; font-weight: 750; }

.addons-center { max-width: 1600px; margin: 0 auto; }
.addon-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin: 1rem 0; }
.addon-summary > div { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem; border: 1px solid var(--wk-line); border-radius: 13px; background: var(--wk-panel); }
.addon-summary span { color: #8ea3ba; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }.addon-summary strong { color: #f0f6fb; font: 700 1.65rem 'Rubik',sans-serif; }
.addons-center .addon-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.addon-work-card { display: flex; flex-direction: column; min-height: 190px; padding: var(--wk-card-pad); border: 1px solid var(--wk-line); border-radius: var(--wk-radius); background: var(--wk-panel); }
.addon-work-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }.addon-work-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(var(--accent-color-rgb), .14); color: var(--accent-color); }
.addon-work-state { display: inline-flex; align-items: center; gap: .3rem; padding: .27rem .48rem; border-radius: 6px; color: #c4d1df; background: #29253b; font-size: .64rem; font-weight: 800; white-space: nowrap; }.addon-work-state i { font-size: .4rem; }.addon-work-state.is-enabled { color: #94e6b4; background: rgba(87,200,142,.12); }.addon-work-state.is-disabled { color: #ffb0aa; background: rgba(236,106,99,.12); }
.addon-work-card h2 { margin: 1rem 0 .25rem; color: #f3f7fb; font: 700 1.05rem 'Rubik',sans-serif; overflow-wrap: anywhere; }.addon-work-card p { color: #9fb2c5; font-size: .76rem; line-height: 1.5; }.addon-work-foot { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--wk-line); color: #8ba0b6; font-size: .67rem; }
.addon-work-foot i { margin-right: .35rem; }
@media (max-width: 1100px) { .addons-center .addon-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .addons-center .addon-grid { grid-template-columns: 1fr; }.addon-summary { gap: .45rem; }.addon-summary > div { padding: .75rem; }.addon-summary span { font-size: .57rem; }.addon-summary strong { font-size: 1.3rem; } }

/* Recording archive: scannable rows instead of a desktop table on mobile. */
.recordings-center { max-width: 1500px; margin: 0 auto; }
.recordings-center .app-page-head { align-items: center; }
.recordings-center .app-page-title { margin-top: .32rem; }
.recordings-filter { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0 2rem; padding: 1rem; border: 1px solid var(--wk-line); border-radius: 14px; background: var(--wk-panel); }
.recordings-filter > div:first-child { flex: 2 1 260px; }
.recordings-filter > div:nth-child(2) { flex: 1 1 180px; }
.recordings-filter label { display: block; margin-bottom: .4rem; color: #adbed0; font-size: .7rem; font-weight: 800; }
.recordings-filter .button { min-height: 40px; }
.recordings-list-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.recordings-list-head h2 { margin: .22rem 0 0; color: #f4f8fc; font: 700 1.4rem 'Rubik',sans-serif; }
.recordings-list-head h2 span { margin-left: .35rem; padding: .1rem .45rem; border-radius: 6px; background: #252538; color: #d4e3f2; font: 700 .8rem 'Rubik',sans-serif; vertical-align: middle; }
.recordings-list-head small { color: #8ea2b8; font-size: .71rem; }
.recordings-list { display: flex; flex-direction: column; gap: .55rem; }
.recording-row { display: flex; align-items: center; gap: 1rem; min-height: 82px; padding: .85rem 1rem; border: 1px solid var(--wk-line); border-radius: 12px; background: var(--wk-panel); text-decoration: none; transition: background .18s, border-color .18s, transform .18s; }
.recording-row:hover { transform: translateX(3px); border-color: rgba(var(--accent-color-rgb),.55); background: #1b1b2b; color: #fff; }
.recording-row-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; color: #b8a9ff; background: #302655; }
.recording-row-main { display: flex; flex-direction: column; gap: .17rem; flex: 1; min-width: 0; }
.recording-row-main strong, .recording-row-time strong { overflow: hidden; color: #f0f5fc; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.recording-row-main small, .recording-row-time small { overflow: hidden; color: #91a5b9; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.recording-row-time { display: flex; flex: 0 0 142px; flex-direction: column; gap: .2rem; }
.recording-row-status { flex: 0 0 auto; padding: .3rem .55rem; border-radius: 6px; color: #adbed0; background: #252538; font-size: .67rem; font-weight: 800; white-space: nowrap; }
.recording-status-recording, .recording-status-grace { color: #a5edc3; background: rgba(97,211,153,.13); }
.recording-status-ready { color: #b8a9ff; background: rgba(var(--accent-color-rgb),.13); }
.recording-status-partial, .recording-status-finalizing { color: #ffd18b; background: rgba(255,190,95,.12); }
.recording-status-failed { color: #ffafac; background: rgba(241,112,109,.13); }
.recording-row-arrow { color: #8097b0; font-size: .7rem; }
.recordings-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.25rem 0; color: #96a9be; font-size: .78rem; }
.recordings-pagination > div { display: flex; gap: .5rem; }
.recording-detail, .recording-settings { max-width: 1600px; margin: 0 auto; }
.recording-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; margin: 1.2rem 0; }
.recording-facts > div { display: flex; flex-direction: column; gap: .45rem; min-height: 96px; padding: 1rem 1.15rem; border: 1px solid var(--wk-line); border-radius: 13px; background: var(--wk-panel); }
.recording-facts span { color: #91a5b9; font-size: .64rem; font-weight: 800; letter-spacing: .1em; }
.recording-facts strong { align-self: flex-start; color: #f1f7fd; font: 700 1.1rem 'Rubik', sans-serif; }
.recording-facts .recording-row-status { font-size: .72rem; font-family: 'Rubik', sans-serif; }
.recording-detail-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(295px,.85fr); align-items: start; gap: 1rem; }
.recording-detail-main, .recording-detail-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.recording-segment, .recording-person, .recording-log { padding: .85rem 0; border-bottom: 1px solid var(--wk-line); }
.recording-segment:last-child, .recording-person:last-child, .recording-log:last-child { border-bottom: 0; }
.recording-segment-head, .recording-person { display: flex; align-items: center; gap: .7rem; }
.recording-user-avatar { overflow: hidden; }
.recording-user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recording-segment-head > div, .recording-person > div { display: flex; flex-direction: column; min-width: 0; }
.recording-segment-head strong, .recording-person strong, .recording-log strong { color: #edf4fb; font-size: .82rem; }
.recording-segment-head small, .recording-person small, .recording-log span, .recording-log small { color: #98abc0; font-size: .68rem; overflow-wrap: anywhere; }
.recording-segment-controls { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; padding: .8rem 0 0 2.7rem; }
.recording-segment-controls audio { max-width: 100%; width: min(350px,100%); height: 36px; }
.recording-person-role { margin-left: auto; padding: .25rem .5rem; border-radius: 6px; background: #29253f; color: #c5d8e8; font-size: .65rem; font-weight: 750; white-space: nowrap; }
.recording-info-list { margin: 0; }
.recording-info-list > div { display: flex; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--wk-line); font-size: .73rem; }
.recording-info-list dt { color: #9cafc0; }.recording-info-list dd { margin: 0; color: #e8f0f9; text-align: right; }
.recording-complaint { display: flex; flex-direction: column; gap: .18rem; padding: .7rem; border: 1px solid var(--wk-line); border-radius: 9px; background: #1c1c2d; }
.recording-complaint strong { color: #edf4fa; font-size: .78rem; }.recording-complaint span { color: #9cadbf; font-size: .68rem; }
.recording-link-form { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }.recording-link-form .button { align-self: flex-start; }
.recording-hold-form { margin-top: .7rem; }.recording-hold-form .button { white-space: normal; height: auto; min-height: 37px; }
.recording-log { display: flex; flex-direction: column; gap: .12rem; }
.recording-runtime { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; margin: .7rem 0 1rem; border: 1px solid #41365d; border-radius: 12px; background: #1d1a2d; }
.recording-runtime.is-offline { border-color: #795e3e; background: #3a3028; }.recording-runtime-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; background: #302655; color: #b8a9ff; }
.recording-runtime > div { display: flex; flex-direction: column; gap: .13rem; }.recording-runtime strong { color: #f2f7fb; font-size: .82rem; }.recording-runtime small { color: #afc2d3; font-size: .7rem; }
.recording-settings-form { display: flex; flex-direction: column; gap: 1rem; }.recording-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem 1rem; }.recording-form-span { grid-column: 1/-1; }
.recording-toggle { display: flex; align-items: center; gap: .8rem; cursor: pointer; }.recording-toggle input { width: 20px; height: 20px; accent-color: var(--accent-color); }.recording-toggle span { display: flex; flex-direction: column; }.recording-toggle strong { color: #edf4fb; font-size: .82rem; }.recording-toggle small { color: #9eb2c5; font-size: .71rem; }
.recording-form-actions { display: flex; justify-content: flex-end; gap: .6rem; padding-bottom: 2rem; }
@media (max-width: 980px) { .recording-detail-grid { grid-template-columns: 1fr; }.recording-facts { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 620px) { .recording-form-grid { grid-template-columns: 1fr; }.recording-form-span { grid-column: auto; }.recording-person { align-items: flex-start; flex-wrap: wrap; }.recording-person-role { margin-left: 2.7rem; }.recording-segment-controls { padding-left: 0; } }
@media (max-width: 680px) { .recording-row { flex-wrap: wrap; } .recording-row-main { flex-basis: calc(100% - 60px); } .recording-row-time { margin-left: 58px; flex: 1 1 auto; } .recording-row-arrow { display: none; } .recordings-list-head small { display: none; } }
@media (max-width: 470px) { .recordings-filter > .button { flex: 1; } .recordings-pagination { flex-direction: column; align-items: stretch; } .recordings-pagination > div { justify-content: space-between; } }

@media (max-width: 1280px) {
  .cc-layout { grid-template-columns: minmax(0,1.4fr) minmax(270px,.8fr); }
  .cc-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .work-connection { display: none; }
}
@media (max-width: 980px) {
  .cc-layout { grid-template-columns: 1fr; }
  .cc-side-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cc-insight { grid-column: 1/-1; }
  .cc-hero { grid-template-columns: minmax(0,1fr) 205px; }
  .settings-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .dashboard-body .app-sidebar { width: min(86vw, 310px); }
  .dashboard-body .app-content { padding: .75rem 1rem 2rem; }
  .dashboard-body .app-topbar { top: .5rem; margin-bottom: 1.4rem; padding-left: .75rem; }
  .dashboard-body .app-topbar-location { min-width: 0; }
}
@media (max-width: 680px) {
  .cc-hero { grid-template-columns: 1fr; gap: 1rem; }
  .cc-hero-aside { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: center; padding: .9rem; }
  .cc-hero-aside > span { grid-column: 1/-1; }
  .cc-hero-aside > strong { font-size: 2.3rem; }
  .cc-server-line { grid-column: 1/-1; }
  .cc-side-column { display: flex; }
  .work-search-trigger { width: 41px; flex: 0 0 41px; margin-left: auto; justify-content: center; padding: 0; }
  .work-search-trigger span, .work-search-trigger kbd, .app-topbar-actions a:first-of-type { display: none; }
  .dashboard-body .app-topbar-location span { display: none; }
  .settings-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 470px) {
  .cc-metrics { gap: .5rem; }
  .cc-metric { min-height: 136px; padding: .85rem; }
  .cc-metric-label { font-size: .69rem; }
  .cc-hero-actions { flex-direction: column; align-items: stretch; }
  .cc-primary-action, .cc-secondary-action { justify-content: center; }
  .cc-primary-action kbd { display: none; }
  .cc-panel { padding: 1rem; }
  .cc-work-item { gap: .55rem; }
  .cc-item-body small { font-size: .65rem; }
  .command-dialog-foot { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-body *, .dashboard-body *::before, .dashboard-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   2.1.0 — czytelność + szerokie ekrany (9.11.2026)
   ========================================================================== */

/* Nic nie wystaje w poziomie (dekoracje hero, długie nicki) */
.app-shell { overflow-x: clip; }

/* Minimalny rozmiar tekstu ~12 px (było 9,8–11,8 px) */
html body.dashboard-body :is(
  .app-brand-copy small, .app-nav-label, .app-user-role, .app-topbar-location span,
  .work-search-trigger kbd, .cc-primary-action kbd, .work-connection,
  .cc-overline, .cc-hero-aside > span, .cc-metric-label, .cc-metric-foot, .cc-section-kicker,
  .cc-text-link, .cc-activity-body small, .cc-insight > span, .cc-insight > small,
  .workspace-route-label, .workspace-route-links a, .workspace-page-intro > a,
  .member-id, .member-role, .staff-badge, .staff-user-id, .staff-since, .staff-stats .stat-label, .staff-actions .button,
  .punishment-search-label, .punishment-kicker, .punishment-record-type, .punishment-record-top time,
  .punishment-record-person small, .punishment-record-reason > span, .punishment-record-meta dt,
  .punishment-record-bottom span, .punishment-record-bottom a, .punishment-meta .meta-label,
  .type-pill, .settings-hero-links a, .settings-tile > span, .addon-work-state, .addon-work-foot span,
  .complaint-summary span, .complaint-summary small, .hub-heading-note, .hub-priority-card > span:last-child,
  .hub-link small, .addon-card small, .hub-eyebrow
) { font-size: max(.75rem, 12px); }
html body.dashboard-body .app-content :is(small, .help, time) { font-size: max(.75rem, 12px); }
/* strony z własnym CSS (directory.css / punishments.css) mają silniejsze selektory */
.dashboard-body:is(.page-members, .page-staff, .page-punishmentLookup, .page-addons) .app-content :is(
  .member-id, .member-role, .staff-user-id, .staff-since, .staff-stats .stat-label, .staff-actions .button,
  .punishment-search-label, .punishment-kicker, .punishment-record-type, .punishment-record-top time, .punishment-record-person small,
  .punishment-record-reason > span, .punishment-record-meta dt, .punishment-record-bottom span, .punishment-record-bottom a, .addon-summary span
) { font-size: max(.75rem, 12px) !important; }
html body.dashboard-body .punishment-record-meta dd { font-size: max(.8rem, 12.5px); }

/* Telefon: tabele przewijane w karcie zamiast całej strony */
@media (max-width: 860px) {
  .dashboard-body .app-content .glass-card > table.table,
  .dashboard-body .app-content .box > table.table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- Szerokie ekrany: treść na pełną szerokość zamiast 1600 px ---------- */
@media (min-width: 1700px) {
  .dashboard-body .app-content > .app-page-head,
  .workspace-route-nav, .workspace-page-intro,
  .dashboard-body .app-content > .section > .container, .dashboard-body .app-content > .container,
  .complaint-summary, .command-center, .addons-center, .recordings-center,
  .recording-detail, .recording-settings, .settings-center { max-width: none; }
  html body.dashboard-body[class] .app-content > .glass-card { width: 100%; }
  html body.dashboard-body.page-punishmentLookup .app-content .punishment-workspace { width: 100%; }
  .dashboard-body.page-members .app-content .filter-container { flex: 0 0 18rem; }

  .cc-layout { grid-template-columns: minmax(0, 1.9fr) minmax(340px, .8fr); }
  .settings-tiles { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
  .addons-center .addon-grid, .addon-grid { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); }
  .hub-link-grid { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
  html body.dashboard-body.page-members[class] .app-content .members-list { grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr)); }
  html body.dashboard-body.page-staff[class] .app-content .staff-list { grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); }
  .dashboard-body.page-punishmentLookup .app-content .punishment-record-grid { grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); }
}

/* Od 1921 px skalujemy rem — 2560×1440 ≈ 20 px, 3440×1440 ≈ 21,6 px (jak mystoryrp.com) */
@media (min-width: 1921px) {
  html:has(body.dashboard-body) { font-size: clamp(16px, min(.8vw, 1.5vh), 22px); }
  .dashboard-body .app-sidebar { width: 17.5rem; }
  .dashboard-body .app-content { padding: 1.6rem 2.2rem 2.4rem; }
  .work-search-trigger { max-width: 34rem; height: 2.7rem; }
  .dashboard-body .app-nav-link { min-height: 2.7rem; }
  html body.dashboard-body[class] .app-content :is(.filter-select, .select select) { height: auto; min-height: 2.75rem; }
}

/* Stan bota w górnym pasku (10.11.2026) */
.work-connection.is-warn { color: #e8c98a; }
.work-connection.is-warn i { background: #f2b544; box-shadow: 0 0 0 4px rgba(242,181,68,.14); }
.work-connection.is-down { color: #f0a3a3; }
.work-connection.is-down i { background: #ef5a5a; box-shadow: 0 0 0 4px rgba(239,90,90,.16); }
@media (max-width: 1280px) {
  /* Zamiast ukrywać — sama kropka, opis w podpowiedzi. */
  .dashboard-body .work-connection { display: inline-flex; padding: .3rem .35rem; }
  .dashboard-body .work-connection .work-connection-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 680px) {
  /* Pulpit i Wyloguj są w menu bocznym — w pasku na telefonie ich nie dublujemy. */
  .dashboard-body .app-topbar-actions .topbar-home, .dashboard-body .app-topbar-actions .topbar-logout { display: none; }
}
