/* public/css/app.css */
:root{--bg:#07100e;--panel:#0d1916;--panel2:#11221d;--line:#1b332c;--text:#f2f7f5;--muted:#91a59e;--green:#2de39d;--green2:#14b87a;--danger:#ff6b78;--shadow:0 24px 70px #0007}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.6 Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}button,input,select,textarea{font:inherit}.hidden{display:none!important}.ambient{position:fixed;border-radius:50%;filter:blur(110px);opacity:.12;z-index:-1}.ambient-a{width:520px;height:520px;background:#1cff9e;top:-260px;left:-140px}.ambient-b{width:480px;height:480px;background:#00c47e;right:-260px;bottom:-160px}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,72px);border-bottom:1px solid #173029aa;background:#07100ed9;backdrop-filter:blur(18px);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;font-weight:900;letter-spacing:.8px;font-size:18px}.brand strong{color:var(--green)}.brand-mark{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--green),#0ca76e);color:#052117;font-weight:1000;box-shadow:0 0 28px #2de39d38}.public-nav{display:flex;gap:32px}.public-nav a{color:var(--muted);text-decoration:none;font-size:13px}.public-nav a:hover{color:#fff}.top-actions{display:flex;align-items:center;gap:10px}.primary,.ghost{border:0;border-radius:11px;padding:10px 17px;font-weight:800;cursor:pointer;transition:.2s}.primary{background:var(--green);color:#052117;box-shadow:0 8px 24px #2de39d1c}.primary:hover{background:#55efb3;transform:translateY(-1px)}.ghost{background:#12211d;color:#c8d7d2;border:1px solid #203c34}.large{padding:14px 22px;text-decoration:none;display:inline-flex;gap:14px;align-items:center}.balance{border:1px solid #2de39d4d;background:#2de39d12;color:var(--green);padding:8px 13px;border-radius:10px;font-weight:900}.hero{text-align:center;max-width:940px;margin:auto;padding:115px 24px 125px}.eyebrow,.section-label{color:var(--green);font-size:12px;text-transform:uppercase;letter-spacing:2px;font-weight:900}.eyebrow span{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:9px;box-shadow:0 0 14px var(--green)}.hero h1{font-size:clamp(44px,7vw,78px);line-height:1.05;margin:22px 0;letter-spacing:-3px}.hero h1 em{font-style:normal;color:transparent;background:linear-gradient(90deg,#22d995,#82f1c1);background-clip:text}.hero>p{max-width:690px;margin:0 auto;color:var(--muted);font-size:17px}.hero-actions{display:flex;justify-content:center;gap:12px;margin:34px 0}.trust{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;color:#89a198;font-size:12px}.trust span::first-letter{color:var(--green)}.workflow{padding:88px clamp(24px,7vw,110px);border-top:1px solid #173029;background:#091512}.workflow>h2,.safety h2{font-size:38px;margin:8px 0 34px;letter-spacing:-1.5px}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.steps article{position:relative;padding:30px;border:1px solid var(--line);background:linear-gradient(145deg,#10201c,#0a1512);border-radius:20px;min-height:240px}.steps article>b{position:absolute;right:22px;top:16px;color:#315047;font-size:30px}.step-icon{width:46px;height:46px;border-radius:13px;background:#2de39d13;color:var(--green);display:grid;place-items:center;font-size:22px}.steps h3{font-size:18px;margin:24px 0 8px}.steps p,.safety p{color:var(--muted);font-size:14px}.safety{display:grid;grid-template-columns:1.6fr 1fr;align-items:center;gap:50px;padding:90px clamp(24px,10vw,160px)}.shield{margin:auto;width:210px;height:230px;clip-path:polygon(50% 0,94% 18%,88% 74%,50% 100%,12% 74%,6% 18%);background:linear-gradient(145deg,#173f33,#0c211b);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--green);font-size:62px;font-weight:1000}.shield span{font-size:9px;letter-spacing:1px;color:#9dc0b5}.app-shell{min-height:calc(100vh - 72px);display:grid;grid-template-columns:250px 1fr}.sidebar{border-right:1px solid var(--line);background:#091411;padding:24px 15px;display:flex;flex-direction:column}.user-mini{display:flex;gap:11px;align-items:center;padding:8px 8px 22px;border-bottom:1px solid var(--line)}.user-mini>div:first-child{width:40px;height:40px;border-radius:12px;background:var(--green);color:#052117;display:grid;place-items:center;font-weight:1000}.user-mini strong,.user-mini small{display:block}.user-mini small{color:var(--muted);font-size:11px;text-transform:uppercase}#sideNav{padding-top:18px;display:grid;gap:5px}#sideNav button{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 12px;background:transparent;border:1px solid transparent;border-radius:10px;color:#9fb2ab;cursor:pointer;font-weight:700;font-size:13px}#sideNav button span{font-size:17px;color:#5c776e}#sideNav button:hover,#sideNav button.active{background:#173329;color:#fff;border-color:#234b3e}#sideNav button.active span{color:var(--green)}.sidebar-note{margin-top:auto;background:#0e211b;border:1px solid var(--line);padding:14px;border-radius:13px}.sidebar-note strong,.sidebar-note small{display:block}.sidebar-note small{color:var(--muted);font-size:10px;margin-top:4px}.workspace{padding:34px;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.page-head h1{margin:0;font-size:28px}.page-head p{margin:5px 0 0;color:var(--muted)}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,1fr)}.card{background:linear-gradient(145deg,#10201c,#0b1714);border:1px solid var(--line);border-radius:17px;padding:20px}.stat small{color:var(--muted);font-weight:700}.stat strong{display:block;font-size:28px;margin-top:7px}.stat strong.green{color:var(--green)}.two-col{grid-template-columns:1.35fr 1fr}.card h3{margin:0 0 14px}.muted{color:var(--muted)}.empty{padding:35px;text-align:center;color:var(--muted);border:1px dashed #2a493f;border-radius:12px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.form-grid .wide{grid-column:1/-1}label{display:grid;gap:6px;color:#b8cac4;font-size:12px;font-weight:750}input,select,textarea{width:100%;background:#07120f;color:#eef7f3;border:1px solid #244139;border-radius:10px;padding:11px 12px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #2de39d15}textarea{min-height:130px;resize:vertical}.data-list{display:grid;gap:9px}.data-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px;background:#0a1713;border:1px solid #1a332b;border-radius:12px}.data-row strong,.data-row small{display:block}.data-row small{color:var(--muted)}.pill{font-size:10px;text-transform:uppercase;padding:4px 8px;border-radius:20px;background:#26372f;color:#c6d6d0}.pill.active,.pill.approved{background:#1d6d5033;color:#62edb5}.pill.pending{background:#886c2638;color:#ffd66f}.pill.rejected,.pill.paused{background:#77303a45;color:#ff8792}.row-actions{display:flex;gap:7px}.row-actions button{padding:7px 10px;font-size:11px}.danger{color:#ff8a94!important;border-color:#67333a!important}.task-card{display:grid;grid-template-columns:1fr auto;gap:16px}.task-card .comment{padding:11px;border-left:3px solid var(--green);background:#07120f;color:#dbe8e3;margin:10px 0}.copy-box{display:flex;gap:8px}.copy-box input{font-family:ui-monospace,monospace}.admin-metrics{grid-template-columns:repeat(5,1fr)}dialog{width:min(440px,calc(100vw - 28px));border:1px solid #244139;background:#0b1714;color:#fff;border-radius:20px;padding:26px;box-shadow:var(--shadow)}dialog::backdrop{background:#020705d9;backdrop-filter:blur(6px)}.dialog-close{position:absolute;right:15px;top:12px;background:none;border:0;color:#95aaa2;font-size:28px;cursor:pointer}.auth-head{text-align:center}.auth-head .brand-mark{margin:auto}.auth-head h2{margin:15px 0 2px}.auth-head p{margin:0;color:var(--muted)}.tabs{display:grid;grid-template-columns:1fr 1fr;background:#07120f;border-radius:10px;padding:4px;margin:22px 0}.tabs button{border:0;background:transparent;color:#82968f;padding:9px;border-radius:8px;cursor:pointer}.tabs button.active{background:#173329;color:#fff}.auth-form{display:grid;gap:15px}.auth-form .primary{margin-top:5px}.form-error{color:var(--danger);text-align:center;min-height:20px;font-size:12px}#toast{position:fixed;right:22px;bottom:22px;z-index:100;background:#172a24;border:1px solid #315b4d;border-radius:11px;padding:12px 16px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s}#toast.show{opacity:1;transform:none}#toast.error{border-color:#783d45;color:#ffb2b9}@media(max-width:900px){.public-nav{display:none}.steps,.stats,.admin-metrics{grid-template-columns:1fr 1fr}.app-shell{grid-template-columns:76px 1fr}.sidebar{padding:18px 9px}.user-mini>div:not(:first-child),#sideNav button:not(.active){font-size:0}.user-mini{justify-content:center}#sideNav button{justify-content:center}.sidebar-note{display:none}.two-col{grid-template-columns:1fr}}@media(max-width:620px){.topbar{padding:0 14px}.brand span:last-child{display:none}.hero{padding:70px 18px 80px}.hero h1{letter-spacing:-2px}.hero-actions{flex-direction:column}.trust{display:grid}.steps,.stats,.admin-metrics,.form-grid,.safety{grid-template-columns:1fr}.workflow,.safety{padding:60px 18px}.app-shell{display:block}.sidebar{position:sticky;top:72px;z-index:15;padding:8px;overflow:auto}.user-mini,.sidebar-note{display:none}#sideNav{display:flex;padding:0}#sideNav button{min-width:48px;padding:10px}#sideNav button span{font-size:20px}#sideNav button{font-size:0}.workspace{padding:20px 14px}.page-head{align-items:start;gap:12px}.task-card{grid-template-columns:1fr}.public-nav{display:none}}


/* public/css/i18n.css */
#sideNav button i { font-style: normal; }
.eyebrow [data-i18n] { display: inline; width: auto; height: auto; margin: 0; border-radius: 0; background: none; box-shadow: none; }
.language-dialog { width: min(720px, calc(100vw - 28px)); max-width: calc(100vw - 28px); overflow-x: hidden; }
.language-dialog h2 { margin: 0 0 18px; }
.language-search { margin-bottom: 13px; }
.language-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: min(65vh, 620px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.language-grid button { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; text-align: left; border: 1px solid #244139; border-radius: 10px; background: #0a1713; color: #dbe8e3; cursor: pointer; }
.language-grid button[hidden] { display: none; }
.language-grid.has-single-result { grid-template-columns: 1fr; overflow: visible; }
.language-grid.has-single-result button { min-height: 54px; }
.language-grid button:hover, .language-grid button.active { border-color: var(--green); background: #173329; }
.language-grid button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.language-grid b { width: 28px; flex: 0 0 28px; color: var(--green); }
.language-grid span { min-width: 0; overflow-wrap: anywhere; }
.language-grid small { flex: 0 0 auto; }
.language-flag { width: 26px; height: 19px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #ffffff24; }
.current-language-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; vertical-align: -3px; box-shadow: 0 0 0 1px #ffffff24; }
html[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--line); }
html[dir="rtl"] .data-row, html[dir="rtl"] .page-head { text-align: right; }
@media (max-width: 620px) {
  #sideNav button i { font-size: 0; }
  .language-dialog { width: 100vw; max-width: none; flex-direction: column; }
  .language-dialog[open] { display: flex; }
  .language-dialog h2 { flex: 0 0 auto; padding-right: 34px; }
  .language-search { flex: 0 0 auto; }
  .language-grid { flex: 1 1 auto; min-height: 0; max-height: none; grid-template-columns: 1fr; align-content: start; }
  .language-grid button { width: 100%; min-height: 52px; padding: 12px 14px; }
}


/* public/css/responsive.css */
/* Keep every public and authenticated surface inside the device viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  min-width: 0;
}

button,
input,
select,
textarea,
img,
svg,
video,
canvas {
  max-width: 100%;
}

img,
svg,
video,
canvas {
  height: auto;
}

a,
strong,
small,
p,
h1,
h2,
h3,
.comment {
  overflow-wrap: anywhere;
}

.topbar,
#landing,
.hero,
.workflow,
.steps,
.safety,
.app-shell,
.sidebar,
.workspace,
.grid,
.card,
.data-list,
.data-row,
.task-card,
.copy-box {
  min-width: 0;
  max-width: 100%;
}

.ambient {
  pointer-events: none;
}

.app-shell {
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
}

.top-actions,
.data-row > div:first-child,
.task-card > div,
.page-head > div,
.copy-box input {
  min-width: 0;
}

.top-actions > * {
  flex: 0 0 auto;
}

.row-actions {
  flex-wrap: wrap;
}

.workspace {
  width: 100%;
}

@media (max-width: 1100px) {
  .workspace {
    padding: 28px 22px;
  }

  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps article {
    padding: 25px;
  }

  .safety {
    padding-inline: clamp(24px, 6vw, 70px);
  }
}

@media (min-width: 821px) and (max-width: 900px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .sidebar {
    padding: 22px 14px;
  }

  .user-mini {
    justify-content: flex-start;
  }

  .user-mini > div:not(:first-child),
  #sideNav button,
  #sideNav button:not(.active) {
    font-size: 13px;
  }

  #sideNav button {
    justify-content: flex-start;
  }

  #sideNav button i {
    display: block;
    font-size: 13px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  #sideNav button i {
    display: none;
  }

  .sidebar {
    padding-inline: 8px;
  }

  .stats,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-head {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  html:has(dialog[open]),
  body:has(dialog[open]) {
    height: 100%;
    overflow: hidden;
  }

  .topbar {
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 0 10px;
    gap: 8px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .top-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .top-actions .primary,
  .top-actions .ghost {
    padding: 8px 10px;
  }

  .balance {
    padding: 7px 9px;
    font-size: 12px;
  }

  .hero {
    width: 100%;
    padding: 58px 16px 68px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.08;
    letter-spacing: -1.8px;
  }

  .hero > p {
    font-size: 15px;
  }

  .hero-actions > * {
    width: 100%;
    justify-content: center;
  }

  .trust {
    gap: 10px;
    text-align: left;
  }

  .workflow,
  .safety {
    width: 100%;
    padding: 52px 16px;
  }

  .workflow > h2,
  .safety h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.15;
  }

  .steps article {
    min-height: 0;
    padding: 22px;
  }

  .safety {
    gap: 32px;
  }

  .shield {
    width: min(190px, 70vw);
    height: 210px;
  }

  .app-shell {
    display: block;
    min-height: calc(100dvh - 64px);
  }

  .sidebar {
    position: sticky;
    top: 64px;
    z-index: 15;
    width: 100%;
    padding: 7px;
    overflow: visible;
    background: #091411f2;
    backdrop-filter: blur(14px);
  }

  #sideNav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: 4px;
    width: 100%;
    padding: 0;
  }

  #sideNav button {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 9px 4px;
    font-size: 0;
  }

  #sideNav button span {
    font-size: 19px;
  }

  .workspace {
    width: 100%;
    padding: 18px 12px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-head > select,
  .page-head > button {
    width: 100%;
  }

  .task-card,
  .stats,
  .admin-metrics,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 16px;
    border-radius: 14px;
  }

  .data-row {
    align-items: flex-start;
  }

  .row-actions {
    width: 100%;
  }

  .row-actions button {
    flex: 1 1 120px;
  }

  .copy-box {
    flex-direction: column;
  }

  .copy-box button {
    width: 100%;
  }

  .empty {
    padding: 26px 12px;
  }

  dialog {
    width: calc(100vw - 20px);
    max-width: 480px;
    height: auto;
    max-height: calc(100dvh - 20px);
    margin: auto;
    border: 1px solid #294b42;
    border-radius: 18px;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .language-dialog {
    height: min(720px, calc(100dvh - 20px));
    overflow-y: hidden;
  }

  #toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }
}

/* Kichik ekranlar: ikonalar qatori o‘rniga chapdan ochiladigan nomli menyu. */
.mobile-menu-toggle,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 820px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .app-authenticated .mobile-menu-toggle {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #274a40;
    border-radius: 11px;
    background: #10211c;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #dcebe6;
    transition: transform .2s, opacity .2s;
  }

  .mobile-menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
  .mobile-menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: min(310px, 88vw);
    padding: 18px 14px;
    overflow-y: auto;
    border-right: 1px solid #29483f;
    background: #081511;
    box-shadow: 22px 0 55px #000a;
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform .23s ease, visibility .23s;
    scrollbar-width: thin;
    scrollbar-color: #31584b #081511;
  }

  .sidebar::-webkit-scrollbar { width: 5px; }
  .sidebar::-webkit-scrollbar-track { background: #081511; }
  .sidebar::-webkit-scrollbar-thumb { border-radius: 5px; background: #31584b; }

  .mobile-menu-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }

  .user-mini {
    display: flex;
    justify-content: flex-start;
  }

  .user-mini > div:not(:first-child) {
    font-size: 14px;
  }

  #sideNav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    padding-top: 16px;
  }

  #sideNav button,
  #sideNav button:not(.active) {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 13px;
  }

  #sideNav button span {
    width: 24px;
    flex: 0 0 24px;
    font-size: 19px;
    text-align: center;
  }

  #sideNav button i {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    font-size: 13px !important;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar-note {
    display: block;
    margin-top: 18px;
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 72px 0 0;
    z-index: 65;
    width: 100%;
    border: 0;
    background: #010705b8;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
  }

  .mobile-menu-open .mobile-menu-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .sidebar { top: 64px; }
  .mobile-menu-backdrop { inset-block-start: 64px; }
}

/* Compact earn-tasks layout: reference ergonomics with an original RepX visual. */
.earn-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: 16px;
  align-items: start;
}

.earn-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #214038;
  border-radius: 18px;
  background: linear-gradient(145deg, #10221d, #0a1714);
  box-shadow: 0 16px 44px #0003;
}

.earn-card-head,
.earn-person,
.earn-actions > a,
.earn-actions > button {
  display: flex;
  align-items: center;
}

.earn-card-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.earn-person { gap: 12px; min-width: 0; }
.earn-avatar { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid #2de39d55; border-radius: 13px; object-fit: cover; background: linear-gradient(145deg,#173f33,#0c211b); color: var(--green); font-size: 18px; font-weight: 1000; }
.earn-person-copy { min-width: 0; }
.earn-steam-level { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; align-self: center; border: 2px solid #f2c52f; border-radius: 50%; color: #f4d55d; background: #111b18; font-size: 12px; font-weight: 900; }
.earn-person h3 { overflow: hidden; margin: 0 0 2px; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.earn-person a { color: #9eb4ac; font-size: 12px; text-underline-offset: 4px; }
.earn-reward { flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; background: #1d6d5033; color: #67edb8; font-size: 12px; font-weight: 900; white-space: nowrap; }
.earn-comment-row { display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid #28473e; border-radius: 12px; overflow: hidden; background: #07120f; }
.earn-comment { min-height: 52px; padding: 14px 15px; border-left: 3px solid var(--green); display: flex; align-items: center; color: #f2f7f5; font-size: 15px; font-weight: 750; overflow-wrap: anywhere; }
.earn-copy { border-width: 0 0 0 1px !important; border-radius: 0 !important; display: flex; align-items: center; gap: 7px; padding-inline: 17px !important; }
.earn-hint { display: block; margin: 8px 2px 15px; color: var(--muted); font-size: 11px; }
.earn-form { display: grid; gap: 13px; }
.earn-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.earn-actions > a,
.earn-actions > button { min-height: 46px; justify-content: center; text-align: center; text-decoration: none; }

@media (max-width: 620px) {
  .earn-list { grid-template-columns: 1fr; }
  .earn-card { padding: 16px; border-radius: 16px; }
  .earn-card-head { gap: 10px; }
  .earn-avatar { width: 42px; height: 42px; flex-basis: 42px; }
  .earn-reward { font-size: 11px; }
  .earn-copy { padding-inline: 13px !important; }
  .earn-actions { grid-template-columns: 1fr 1fr; }
  .earn-actions > a,
  .earn-actions > button { padding: 10px 8px; font-size: 12px; }
  .earn-hint { line-height: 1.45; }
}

@media (max-width: 380px) {
  .earn-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .earn-steam-level { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; }
  .earn-person { gap: 8px; }
  .earn-comment-row { grid-template-columns: 1fr; }
  .earn-copy { border-width: 1px 0 0 !important; justify-content: center; }
  .earn-actions { grid-template-columns: 1fr; }
}

.profile-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 16px; align-items: start; }
.profile-connect { display: grid; gap: 16px; position: sticky; top: 96px; }
.profile-connect h3,.profile-connect p { margin: 0; }
.profile-connect p { color: var(--muted); font-size: 12px; }
.profile-list > h3 { margin-bottom: 16px; }
.steam-profile-list { display: grid; gap: 12px; }
.steam-profile-card { padding: 16px; border: 1px solid #214038; border-radius: 15px; background: #091713; }
.steam-profile-card.is-private { border-color: #793c45; background: linear-gradient(145deg,#211316,#0c1613); }
.steam-profile-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steam-profile-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.steam-profile-main img,.steam-profile-fallback { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 14px; object-fit: cover; background: #16362c; border: 1px solid #2a4d42; }
.steam-profile-fallback { display: grid; place-items: center; color: var(--green); font-size: 24px; font-weight: 1000; }
.steam-profile-main h3 { overflow: hidden; margin: 0 0 3px; text-overflow: ellipsis; white-space: nowrap; }
.steam-level { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 2px solid #f2c52f; border-radius: 50%; color: #f4d55d; background: #111b18; font-size: 12px; font-weight: 900; }
.steam-profile-main a { color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
.profile-alert { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #ff5e6d; color: #fff; font-size: 20px; font-weight: 1000; box-shadow: 0 0 22px #ff5e6d55; }
.profile-status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 15px; }
.profile-status-grid > div { padding: 10px; border: 1px solid #1d352e; border-radius: 11px; background: #07120f; }
.profile-status-grid span,.profile-status-grid b { display: block; }
.profile-status-grid span { color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.profile-status-grid b { font-size: 12px; }
.profile-status-grid .ok { color: #50e9a9; }.profile-status-grid .bad { color: #ff7c89; }.profile-status-grid .unknown { color: #e0bb68; }
.profile-warning { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; padding: 11px; border-radius: 11px; background: #5f222a66; color: #ffb4bb; font-size: 11px; line-height: 1.45; }
.profile-warning > span:first-child { flex: 0 0 auto; color: #ff8d97; line-height: 1.45; }
.profile-delete { width: 100%; margin-top: 13px; }
@media(max-width:900px){.profile-layout{grid-template-columns:1fr}.profile-connect{position:static}.profile-status-grid{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:480px){.profile-layout{gap:12px}.profile-list{padding:12px}.steam-profile-card{padding:13px}.steam-profile-main img,.steam-profile-fallback{width:52px;height:52px;flex-basis:52px}.profile-status-grid{grid-template-columns:1fr}.profile-status-grid>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.profile-status-grid span{margin:0}.steam-profile-main h3{font-size:16px}}

@media (max-width: 460px) {
  .top-actions {
    gap: 4px;
  }

  .top-actions .primary,
  .top-actions .ghost {
    padding: 7px 8px;
    font-size: 12px;
  }

  .hero,
  .workflow,
  .safety {
    padding-inline: 13px;
  }

  .workspace {
    padding-inline: 10px;
  }

  .steps article,
  .card {
    padding: 14px;
  }

  .data-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stats .stat strong {
    font-size: 24px;
  }
}

/* Task creation guidance, filters and coming-soon state. */
.task-create-form > label,
.task-create-form > .feature-soon {
  align-content: start;
  min-width: 0;
}

.field-label {
  display: inline;
  width: fit-content;
  max-width: 100%;
  min-height: 22px;
  color: #b8cac4;
  font-size: 12px;
  font-weight: 800;
}

.field-label-tail {
  display: inline-block;
  white-space: nowrap;
  overflow-wrap: normal;
}

.field-label .field-help {
  display: inline-grid;
  place-items: center;
  position: relative;
  top: -.18em;
  width: 12px;
  height: 12px;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px;
  max-height: 12px;
  flex: 0 0 12px;
  margin: 0 0 0 2px;
  padding: 0 !important;
  border: 1px solid #34715d;
  border-radius: 50%;
  background: #123025;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 8px !important;
  font-weight: 800;
  font-style: italic;
  line-height: 10px !important;
  vertical-align: middle;
  overflow: visible;
  overflow-wrap: normal;
  white-space: nowrap;
  cursor: help;
  touch-action: manipulation;
  box-shadow: 0 0 0 1px #2de39d0a;
  transition: border-color .18s, background .18s, box-shadow .18s;
}

.field-label .field-help > span {
  display: block;
  transform: translateY(-.1px);
  line-height: 1;
}

.field-label .field-help::before {
  content: "";
  position: absolute;
  inset: -6px;
}

.field-label .field-help:hover,
.field-label .field-help:focus-visible,
.field-label .field-help[aria-expanded="true"] {
  border-color: var(--green);
  background: #21513f;
  outline: none;
  box-shadow: 0 0 0 3px #2de39d1c;
}

.info-mark {
  display: inline-grid;
  place-items: center;
  position: relative;
  top: -.18em;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  border: 1px solid #34715d;
  border-radius: 50%;
  background: #123025;
  color: var(--green);
  font-size: 7px;
  font-weight: 1000;
  line-height: 1;
  vertical-align: middle;
}

[dir="rtl"] .field-label .field-help,
[dir="rtl"] .info-mark {
  margin-right: 2px;
  margin-left: 0;
}

.field-tooltip {
  position: fixed;
  z-index: 200;
  width: min(310px, calc(100vw - 24px));
  padding: 11px 13px;
  border: 1px solid #34725d;
  border-radius: 11px;
  background: #10241e;
  color: #e9f6f1;
  box-shadow: 0 14px 34px #0009;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .15s, transform .15s;
}

.field-tooltip.show {
  opacity: 1;
  transform: none;
}

.feature-soon {
  display: grid;
  gap: 6px;
}

.coming-soon-control {
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px;
  border: 1px solid #2de39d66;
  border-radius: 10px;
  background: linear-gradient(135deg, #12392c, #0a211a);
  box-shadow: inset 0 0 24px #2de39d0a, 0 0 18px #2de39d0b;
}

.soon-spark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border-radius: 9px;
  background: #2de39d1c;
  color: var(--green);
  font-size: 15px;
}

.coming-soon-control strong,
.coming-soon-control small {
  display: block;
}

.coming-soon-control strong {
  color: var(--green);
  font-size: 13px;
  letter-spacing: .2px;
}

.coming-soon-control small {
  color: #9cb7ae;
  font-size: 10px;
  font-weight: 650;
}

.cost-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #07120f;
}

@media (max-width: 680px) {
  .field-tooltip {
    width: calc(100vw - 24px);
  }

  .cost-box {
    align-items: flex-start;
    flex-direction: column;
  }
}
 .side-subnav{display:grid;gap:4px;margin:-6px 0 6px 34px}.side-subnav button{padding:9px 12px!important;font-size:12px!important}.side-subnav.hidden{display:none}


/* public/css/comments.css */
.compact-comment-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.compact-comment-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #0a1713;
  border-bottom: 1px solid var(--line);
}

.compact-comment-row:last-child { border-bottom: 0; }

.compact-comment-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}

.compact-comment-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.compact-comment-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #26463c;
  border-radius: 8px;
  background: #10211c;
  color: #72e9bb;
  font-size: 18px;
  cursor: pointer;
}

.compact-comment-actions button:hover { background: #18342b; }
.compact-comment-actions .danger { color: #ff7f8b !important; background: #2b171b; }

.library-browser { display: grid; gap: 16px; }
.library-browser > input { max-width: 720px; }
.library-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.library-categories button { min-width: 0; display: grid; gap: 3px; padding: 14px 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #0c1915; color: var(--text); cursor: pointer; }
.library-categories button:hover,.library-categories button.active { border-color: #2de39d80; background: #143127; box-shadow: inset 0 0 0 1px #2de39d20; }
.library-categories strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-categories small { color: var(--muted); }
.library-result > div { min-width: 0; }
.library-result strong { overflow-wrap: anywhere; }
#libraryMore { justify-self: center; min-width: 180px; }

.admin-category-section,
.admin-category-detail,
.admin-approval-section { margin-top: 16px; }

.admin-category-row > div:first-child { min-width: 0; }
.admin-category-row .row-actions { flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.admin-category-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-category-detail-head small { display: block; color: var(--muted); }
.admin-category-detail-head h3 { margin: 2px 0 0; overflow-wrap: anywhere; }
.admin-library-comments { display: grid; gap: 8px; }
.admin-library-comment { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #081510; }
.library-comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-library-comment > .library-comment-text { min-width: 0; flex: 1 1 auto; }
.admin-library-comment-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.admin-library-comment-actions button { padding: 7px 10px; font-size: 11px; }
.admin-library-comment-form { width: 100%; display: grid; gap: 10px; }
.admin-library-comment-form textarea { min-height: 110px; white-space: pre-wrap; }
.admin-library-comment-form .row-actions { justify-content: flex-end; }
.admin-library-pagination { margin-top: 14px; }

.create-library-picker { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #091713; }
.create-library-picker > p { margin: 0; }
.create-library-summary { display: grid; gap: 10px; }
.create-library-summary > button { width: 100%; min-height: 46px; }
.create-library-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(760px, calc(100dvh - 28px)); padding: 20px; overflow: auto; }
.create-library-dialog[open] { display: grid; align-content: start; gap: 12px; }
.create-library-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-right: 38px; }
.create-library-dialog > header small { display: block; color: var(--green); font-weight: 850; }
.create-library-dialog > header h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.25; }
.create-library-dialog > p { margin: 0; }
.create-library-tools { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.create-library-dialog .ready-comment-list { max-height: min(390px, 48dvh); overflow: auto; overscroll-behavior: contain; padding-right: 3px; }
.create-library-dialog .history-pagination { margin-top: 0; }
.create-library-dialog #createLibraryPager { min-width: 0; }
.create-library-dialog .create-library-pagination { width: 100%; grid-template-columns: minmax(0,1fr) minmax(120px,auto); align-items: end; gap: 10px; overflow: hidden; }
.create-library-dialog .create-library-pagination nav { grid-column: 1 / -1; min-width: 0; justify-content: center; flex-wrap: wrap; }
.ready-comment-list { display: grid; gap: 8px; }
.ready-comment-row { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #07130f; }
.ready-comment-row > span { min-width: 0; flex: 1 1 auto; }
.ready-comment-row > button { flex: 0 0 auto; }
.ready-comment-row > button.selected { color: var(--green); border-color: #2de39d80; background: #17372d; }
.create-library-pagination { margin-top: 2px; }
.selected-ready-comment { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid #2de39d70; border-radius: 12px; background: #123126; box-shadow: inset 3px 0 var(--green); }
.selected-ready-comment small { color: var(--green); font-weight: 850; }

@media (max-width: 620px) {
  .comment-lists-layout { gap: 12px; }
  .compact-comment-row { padding: 9px 10px; }
  .compact-comment-actions button { width: 32px; height: 32px; }
  .library-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-result { align-items: stretch; flex-direction: column; }
  .library-result button { width: 100%; }
  .admin-category-row { align-items: stretch; }
  .admin-category-row .row-actions { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-category-row .row-actions button { width: 100%; }
  .admin-library-comment { padding: 10px 11px; align-items: stretch; flex-direction: column; }
  .admin-library-comment-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .admin-library-comment-actions button { width: 100%; }
  .create-library-picker { padding: 11px; }
  .create-library-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 16px 12px 12px; border-radius: 16px; }
  .create-library-dialog > header { padding-right: 34px; }
  .create-library-dialog > header h2 { font-size: 19px; }
  .create-library-tools { grid-template-columns: 1fr; }
  .create-library-dialog .ready-comment-list { max-height: 42dvh; }
  .create-library-dialog .create-library-pagination { grid-template-columns: 1fr; padding: 10px; }
  .create-library-dialog .create-library-pagination > span { text-align: center; }
  .create-library-dialog .create-library-pagination .history-page-size { width: 100%; min-width: 0; }
  .create-library-dialog .create-library-pagination nav { grid-column: 1; width: 100%; }
  .create-library-dialog .create-library-pagination nav > button { width: 36px; min-width: 36px; height: 36px; }
  .ready-comment-row { align-items: stretch; flex-direction: column; }
  .ready-comment-row > button { width: 100%; }
}

#sideNav .nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  color: #68857b;
}

#sideNav .nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#sideNav button:hover .nav-icon,
#sideNav button.active .nav-icon { color: var(--green); }


/* public/css/history.css */
.history-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.history-toolbar label,
.history-page-size {
  display: grid;
  gap: 7px;
  min-width: 210px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.history-toolbar select,
.history-page-size select { min-height: 42px; }
.history-list { display: grid; gap: 10px; }

.history-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 24px minmax(150px, 1fr) minmax(180px, 1.25fr) minmax(300px, 1.15fr);
  grid-template-areas: "customer arrow worker comment meta";
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #10201c, #0a1613);
}

.history-row small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.history-customer { grid-area: customer; }
.history-worker { grid-area: worker; }
.history-profile > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.history-profile img,
.history-avatar-fallback { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; object-fit: cover; }
.history-avatar-fallback { display: grid; place-items: center; background: #173329; color: var(--green); font-weight: 900; }
.history-profile strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.history-level { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 2px solid #e4c13d; border-radius: 50%; color: #f4df75; font-size: 10px; }
.history-arrow {
  grid-area: arrow;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.history-comment {
  grid-area: comment;
  min-width: 0;
  padding: 9px 11px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #07120f;
}
.history-comment strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

.history-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: .75fr .9fr 1.25fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.history-reward strong { color: var(--green); white-space: nowrap; font-size: 13px; }
.history-status .pill { display: inline-flex; padding: 6px 9px; font-size: 10px; }
.history-date time { color: #c6d6d0; font-size: 11px; white-space: nowrap; }

.history-pagination {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, auto) minmax(180px, 1fr);
  align-items: end;
  gap: 14px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0c1a17;
  color: var(--muted);
  font-size: 13px;
}
.history-pagination > span { align-self: center; }
.history-pagination nav { grid-column: 3; display: flex; justify-content: flex-end; gap: 6px; }
.history-pagination nav > button { width: 38px; min-width: 38px; height: 38px; padding: 0; }
.history-pagination nav > button.active { border-color: var(--green); background: rgba(46,222,164,.14); color: var(--green); }

@media (max-width: 1180px) {
  .history-row {
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
    grid-template-areas:
      "customer arrow worker"
      "comment comment comment"
      "meta meta meta";
  }
  .history-meta { padding-top: 4px; }
}

@media (max-width: 700px) {
  .page-head:has(+ .history-toolbar) { margin-bottom: 11px; }
  .page-head:has(+ .history-toolbar) h1 { font-size: 24px; }
  .page-head:has(+ .history-toolbar) p { margin-top: 2px; font-size: 12px; line-height: 1.35; }
  .history-toolbar { justify-content: stretch; margin-bottom: 10px; }
  .history-toolbar label { width: 100%; min-width: 0; }
  .history-toolbar select { width: 100%; }
  .history-row { gap: 9px 6px; padding: 10px; border-radius: 12px; }
  .history-row small { margin-bottom: 3px; font-size: 8px; }
  .history-profile > div { gap: 5px; }
  .history-profile img,.history-avatar-fallback { width: 31px; height: 31px; flex-basis: 31px; border-radius: 8px; }
  .history-level { width: 23px; height: 23px; flex-basis: 23px; border-width: 1.5px; font-size: 8px; }
  .history-profile strong { font-size: 11px; }
  .history-arrow { font-size: 15px; }
  .history-comment { display: block; width: 100%; min-width: 0; padding: 7px 9px; }
  .history-comment small { margin: 0 0 3px; }
  .history-comment strong { font-size: 12px; }
  #pageContent .history-row > .history-meta {
    grid-column: 1 / -1 !important;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
    padding-top: 1px;
  }
  .history-meta > div { min-width: 0; }
  #pageContent .history-meta .history-reward { text-align: left; }
  #pageContent .history-meta .history-status { text-align: center; }
  .history-reward strong { font-size: 11px; }
  .history-status .pill { padding: 4px 7px; font-size: 8px; }
  #pageContent .history-meta .history-date {
    display: block;
    grid-column: auto;
    width: auto;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }
  #pageContent .history-meta .history-date small { margin: 0 0 3px; }
  .history-date time { font-size: 9px; }
  .history-pagination { grid-template-columns: 1fr auto; gap: 10px; padding: 11px; }
  .history-page-size { min-width: 112px; }
  .history-pagination nav { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .history-profile img,.history-avatar-fallback { width: 28px; height: 28px; flex-basis: 28px; }
  .history-level { width: 21px; height: 21px; flex-basis: 21px; }
  #pageContent .history-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  #pageContent .history-meta .history-status { text-align: center; }
  #pageContent .history-meta .history-status .pill { white-space: nowrap; }
  #pageContent .history-meta .history-date time { font-size: 8px; }
  .history-pagination { grid-template-columns: 1fr; align-items: stretch; }
  .history-page-size { width: 100%; min-width: 0; }
  .history-pagination nav { grid-column: 1; }
}


/* public/css/notice.css */
.earn-notice {
  margin-bottom: 18px;
  padding: 17px 18px;
  border: 1px solid #2f8167;
  border-radius: 15px;
  background: linear-gradient(145deg, #10241e, #0b1916);
  box-shadow: 0 15px 40px #0003;
}

.earn-notice header { display: flex; align-items: flex-start; margin-bottom: 14px; }
.earn-notice header strong,.earn-notice header small { display: block; }
.earn-notice header strong { font-size: 15px; }
.earn-notice header small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.earn-notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.earn-notice-grid section { padding: 14px 18px 14px 0; }
.earn-notice-grid section + section { padding-left: 18px; border-left: 1px solid var(--line); }
.earn-notice-grid h3 { margin: 0 0 4px; font-size: 13px; }
.earn-notice-grid p { margin: 0; color: #b5c7c1; font-size: 12px; }
.earn-notice > button { margin-top: 14px; padding: 8px 13px; font-size: 12px; color: var(--green); }

@media (max-width: 700px) {
  .earn-notice { padding: 15px; }
  .earn-notice-grid { grid-template-columns: 1fr; }
  .earn-notice-grid section { padding: 13px 0; }
  .earn-notice-grid section + section { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .earn-notice > button { width: 100%; }
}


/* public/css/notifications.css */
.notification-wrap { position: relative; }
.notification-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; }
.notification-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-button b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #07100e; border-radius: 12px; background: #ff5968; color: #fff; font-size: 9px; }
.notification-panel { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(360px, calc(100vw - 24px)); max-height: min(480px, 70vh); overflow: auto; border: 1px solid #26463c; border-radius: 14px; background: #0b1815; box-shadow: 0 24px 70px #000a; }
.notification-panel header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #0d1c18f2; backdrop-filter: blur(10px); }
.notification-panel header button { padding: 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 800; cursor: pointer; }
.notification-panel header button:disabled { color: var(--muted); cursor: default; opacity: .65; }
.notification-list-empty { padding: 25px 15px; color: var(--muted); text-align: center; font-size: 12px; }
.notification-item { width: 100%; display: grid; grid-template-columns: 9px 1fr; gap: 10px; padding: 13px 15px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-item:hover { background: #13251f; }
.notification-item:last-child { border-bottom: 0; }
.notification-item > i { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #476158; }
.notification-item.unread > i { background: var(--green); box-shadow: 0 0 12px #2de39d99; }
.notification-item p { margin: 0; color: #d8e5e1; font-size: 12px; line-height: 1.45; }
.notification-item time { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
@media(max-width:620px){.notification-button{width:38px;height:38px}.notification-panel{position:fixed;top:68px;right:10px;left:10px;width:auto}}


/* public/css/admin-review.css */
.admin-review-section { margin-top: 16px; }
.admin-review-list { display: grid; gap: 11px; }
.admin-review-card {
  display: grid;
  grid-template-columns: minmax(170px, .9fr) 28px minmax(170px, .9fr) minmax(230px, 1.35fr) 100px auto;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #1c3a31;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b1916, #10231d);
  box-shadow: 0 12px 34px #0002;
}
.admin-review-card small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.admin-review-profile > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.admin-review-profile img,.admin-review-profile > div > span { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 11px; object-fit: cover; }
.admin-review-profile > div > span { display: grid; place-items: center; background: #19382e; color: var(--green); font-weight: 900; }
.admin-review-profile b { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border: 2px solid #e4c13d; border-radius: 50%; color: #f1db6a; font-size: 10px; }
.admin-review-profile strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-review-arrow { color: var(--green); font-size: 21px; text-align: center; }
.admin-review-comment { min-width: 0; padding: 11px 13px; border-left: 3px solid var(--green); border-radius: 8px; background: #07130f; }
.admin-review-comment strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-review-comment a { display: inline-block; margin-top: 7px; color: #70e8ba; font-size: 11px; text-decoration: none; }
.admin-review-comment a:hover { text-decoration: underline; }
.admin-review-reward strong { color: var(--green); white-space: nowrap; font-size: 16px; }
.admin-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.admin-review-actions button { padding: 9px 12px; font-size: 11px; white-space: nowrap; }
@media(max-width:1250px){.admin-review-card{grid-template-columns:1fr 26px 1fr}.admin-review-comment{grid-column:1/-1}.admin-review-reward{grid-column:1}.admin-review-actions{grid-column:2/-1;justify-self:end}}
@media(max-width:700px){.admin-review-section{padding:14px}.admin-review-card{grid-template-columns:1fr 22px 1fr;gap:12px 8px;padding:13px}.admin-review-profile img,.admin-review-profile>div>span{width:38px;height:38px;flex-basis:38px}.admin-review-profile b{width:27px;height:27px;flex-basis:27px}.admin-review-comment{grid-column:1/-1}.admin-review-reward{grid-column:1}.admin-review-actions{grid-column:2/-1;width:100%;grid-template-columns:1fr 1fr}.admin-review-actions button{padding:9px 8px}}


/* public/css/admin-management.css */
.admin-metrics-actions{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.admin-metrics-actions button{text-align:left;color:var(--text);cursor:pointer}.admin-metrics-actions button:hover{border-color:#2de39d80}.admin-metrics-actions .stat{padding:15px}.admin-metrics-actions .stat strong{margin:3px 0;font-size:24px}.admin-metrics-actions .stat span{color:var(--green);font-size:10px;font-weight:800}.admin-review-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px;padding:15px 18px}.admin-review-launch h3,.admin-review-launch p{margin:0}.admin-review-launch p{color:var(--muted)}.admin-data-dialog{width:min(1050px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:hidden}.admin-data-dialog>header{padding-right:35px}.admin-data-dialog>header h2{margin:0 0 14px}.admin-data-dialog #adminDataBody{max-height:calc(100dvh - 115px);overflow:auto;padding-right:3px}.admin-user-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:12px}.admin-user-list,.admin-record-list{display:grid;gap:8px}.admin-user-row{display:grid;grid-template-columns:minmax(170px,.9fr) minmax(300px,1.3fr) minmax(260px,1fr);align-items:center;gap:12px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#081511}.admin-user-main{display:flex;align-items:center;gap:9px;min-width:0}.admin-user-main img,.admin-user-main>span{width:38px;height:38px;flex:0 0 38px;border-radius:10px;object-fit:cover}.admin-user-main>span{display:grid;place-items:center;background:#173329;color:var(--green);font-weight:900}.admin-user-main strong,.admin-user-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-user-main small{color:var(--muted);font-size:10px}.admin-user-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.admin-user-facts span{color:var(--muted);font-size:9px}.admin-user-facts b{display:block;color:var(--text);font-size:11px}.admin-user-actions{display:grid;grid-template-columns:1fr auto;gap:6px}.admin-user-actions form{display:grid;grid-template-columns:70px 1fr;gap:5px}.admin-user-actions input,.admin-user-actions button{min-height:36px;padding:7px 9px;font-size:10px}.admin-record-list article{display:grid;grid-template-columns:minmax(140px,1fr) auto minmax(150px,1.2fr) auto;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#081511}.admin-record-list p{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-record-list time{color:var(--muted);font-size:10px}.admin-data-pager{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:12px}.admin-data-pager button{padding:7px 11px;font-size:11px}.admin-data-pager span{color:var(--muted)}
@media(max-width:900px){.admin-metrics-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-user-row{grid-template-columns:1fr}.admin-user-actions{grid-template-columns:1fr auto}}
@media(max-width:620px){.admin-metrics-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-metrics-actions .stat{min-height:76px;padding:11px}.admin-metrics-actions .stat strong{font-size:20px}.admin-review-launch{padding:12px}.admin-data-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px 11px}.admin-data-dialog #adminDataBody{max-height:calc(100dvh - 85px)}.admin-user-search{grid-template-columns:1fr}.admin-user-row{padding:9px}.admin-user-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-user-actions{grid-template-columns:1fr}.admin-user-actions form{grid-template-columns:64px 1fr}.admin-record-list article{grid-template-columns:1fr auto}.admin-record-list p,.admin-record-list time{grid-column:1/-1}.admin-review-launch .primary{padding:8px 10px;font-size:11px}}

.admin-review-list{display:grid;gap:12px}.admin-review-record{display:grid;gap:12px;padding:15px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#0b1c17,#07130f)}.admin-review-record>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-review-record>header strong{font-size:14px}.admin-review-parties{display:grid;grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);align-items:center;gap:10px;padding:12px;border:1px solid #24473d;border-radius:13px;background:#06110e}.admin-review-person{min-width:0}.admin-review-person>small,.admin-review-comment>small,.admin-review-meta small{display:block;margin-bottom:6px;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.admin-review-person-line{display:flex;align-items:center;gap:8px;min-width:0}.admin-review-person-line>img,.admin-review-avatar-fallback{width:42px;height:42px;flex:0 0 42px;border-radius:11px;object-fit:cover}.admin-review-avatar-fallback{display:grid;place-items:center;background:#18362d;color:var(--green);font-weight:900}.admin-review-person-line>div{min-width:0}.admin-review-person-line strong,.admin-review-person-line em,.admin-review-person-line a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-review-person-line strong{font-size:12px}.admin-review-person-line em{color:var(--muted);font-size:9px;font-style:normal}.admin-review-person-line a{margin-top:2px;color:var(--green);font-size:9px;font-weight:800}.admin-review-level{flex:0 0 auto}.admin-review-arrow{display:grid;place-items:center;width:32px;height:32px;border:1px solid #2de39d66;border-radius:50%;color:var(--green);font-size:17px}.admin-review-comment{padding:12px 14px;border-left:4px solid var(--green);border-radius:10px;background:#030c09}.admin-review-comment p{margin:0;color:var(--text);font-size:14px;font-weight:800;overflow-wrap:anywhere}.admin-review-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.admin-review-meta span{min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#0b1915}.admin-review-meta b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.admin-review-bot-note{margin:0;padding:9px 11px;border-radius:9px;background:#2a2411;color:#eed979;font-size:10px;overflow-wrap:anywhere}.admin-review-actions{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:8px}.admin-review-actions>*{display:grid;place-items:center;min-height:40px;padding:9px 14px;font-size:10px;text-align:center}.admin-review-actions .danger{border:1px solid #ff6f7d55;border-radius:10px;background:#35171d;color:#ff9aa5;font-weight:900;cursor:pointer}
@media(max-width:620px){.admin-review-record{gap:9px;padding:10px}.admin-review-record>header strong{font-size:11px}.admin-review-parties{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:5px;padding:9px 7px}.admin-review-person-line{gap:4px}.admin-review-person-line>img,.admin-review-avatar-fallback{width:32px;height:32px;flex-basis:32px;border-radius:8px}.admin-review-level{font-size:8px;min-width:25px;height:25px}.admin-review-person-line strong{font-size:9px}.admin-review-person-line em,.admin-review-person-line a{font-size:7px}.admin-review-arrow{width:22px;height:22px;font-size:12px}.admin-review-comment{padding:10px}.admin-review-comment p{font-size:12px}.admin-review-meta{gap:5px}.admin-review-meta span{padding:7px 6px}.admin-review-meta small{font-size:7px}.admin-review-meta b{font-size:8px}.admin-review-actions{grid-template-columns:1fr 1fr}.admin-review-actions>a{grid-column:1/-1}.admin-review-actions>*{min-height:36px;padding:7px;font-size:9px}}

/* Compact six-section dashboard. The doubled selector deliberately outranks adaptive.css. */
.admin-metrics.admin-metrics-actions{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.admin-metrics.admin-metrics-actions .stat{display:flex;min-width:0;min-height:84px;flex-direction:column;justify-content:center;padding:11px 12px}.admin-metrics.admin-metrics-actions .stat small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.admin-metrics.admin-metrics-actions .stat strong{margin:2px 0;font-size:21px}.admin-metrics.admin-metrics-actions .stat span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.admin-metrics.admin-metrics-actions .admin-bot-stat strong{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.admin-bot-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#8ca099;box-shadow:0 0 0 4px #8ca09918}.admin-bot-stat.ok .admin-bot-dot,.admin-bot-detail.ok .admin-bot-dot{background:var(--green);box-shadow:0 0 0 4px #2de39d18}.admin-bot-stat.warn .admin-bot-dot,.admin-bot-detail.warn .admin-bot-dot,.admin-bot-stat.off .admin-bot-dot,.admin-bot-detail.off .admin-bot-dot{background:#ff7b87;box-shadow:0 0 0 4px #ff7b8718}
.admin-task-list,.admin-point-list{display:grid;gap:9px}.admin-task-record{display:grid;grid-template-columns:minmax(190px,1fr) auto minmax(170px,.8fr) minmax(220px,1fr);align-items:center;gap:11px;padding:11px;border:1px solid var(--line);border-radius:13px;background:#081511}.admin-task-profile{display:flex;align-items:center;gap:8px;min-width:0}.admin-task-profile>img,.admin-task-profile>span{width:38px;height:38px;flex:0 0 38px;border-radius:10px;object-fit:cover}.admin-task-profile>span{display:grid;place-items:center;background:#173329;color:var(--green);font-weight:900}.admin-task-profile>div{min-width:0}.admin-task-profile small,.admin-task-profile strong,.admin-task-profile a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-task-profile small{color:var(--muted);font-size:8px}.admin-task-profile strong{font-size:11px}.admin-task-profile a{color:var(--green);font-size:8px}.admin-task-progress small,.admin-task-facts small{display:block;color:var(--muted);font-size:8px}.admin-task-progress b,.admin-task-facts b{font-size:10px}.admin-task-progress i{display:block;height:5px;margin-top:5px;overflow:hidden;border-radius:9px;background:#18362d}.admin-task-progress em{display:block;height:100%;background:var(--green)}.admin-task-facts{display:grid;grid-template-columns:1fr 1.4fr;gap:7px}.admin-point-record{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:12px;background:#081511}.admin-point-record small,.admin-point-record time{color:var(--muted);font-size:9px}.admin-point-record strong,.admin-point-record p{display:block;margin:0}.admin-point-record p{margin-top:2px;color:var(--muted);font-size:9px}.admin-point-record>b{font-size:12px}.admin-point-record>.income{color:var(--green)}.admin-point-record>.expense{color:#ff8e9a}
@media(max-width:900px){.admin-metrics.admin-metrics-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-task-record{grid-template-columns:minmax(180px,1fr) auto minmax(150px,1fr)}.admin-task-facts{grid-column:1/-1}.admin-point-record{grid-template-columns:minmax(0,1fr) auto}.admin-point-record time{grid-column:1/-1}}
@media(max-width:620px){.admin-metrics.admin-metrics-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.admin-metrics.admin-metrics-actions .stat{min-height:68px;padding:8px 9px}.admin-metrics.admin-metrics-actions .stat small{font-size:8px}.admin-metrics.admin-metrics-actions .stat strong{font-size:17px}.admin-metrics.admin-metrics-actions .stat span{font-size:7px}.admin-task-record{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:9px}.admin-task-progress,.admin-task-facts{grid-column:1/-1}.admin-task-facts{grid-template-columns:1fr 1.35fr}.admin-point-record{gap:7px;padding:9px}.admin-point-record time{font-size:8px}}
.admin-bot-detail{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#081511}.admin-bot-detail>header{display:flex;align-items:center;gap:12px}.admin-bot-detail>header .admin-bot-dot{width:13px;height:13px;flex-basis:13px}.admin-bot-detail h3,.admin-bot-detail p{margin:0}.admin-bot-detail header small,.admin-bot-facts small{color:var(--muted);font-size:9px}.admin-bot-facts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.admin-bot-facts span{padding:9px;border:1px solid var(--line);border-radius:10px}.admin-bot-facts b{display:block;font-size:10px;overflow-wrap:anywhere}.admin-bot-detail>p{padding:9px;border-radius:9px;background:#2b1a18;color:#ffadb5;font-size:10px;overflow-wrap:anywhere}.admin-telegram-test{justify-self:start;min-width:min(100%,210px)}
@media(max-width:620px){.admin-metrics.admin-metrics-actions .admin-bot-stat{grid-column:1/-1;min-height:58px}.admin-metrics.admin-metrics-actions .admin-bot-stat strong{font-size:11px}.admin-bot-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-bot-facts span:first-child{grid-column:1/-1}}

/* Stable list numbering across admin user pages. */
.admin-user-row{position:relative;padding-top:30px}.admin-user-sequence{position:absolute;top:9px;left:11px;color:var(--green);font-size:10px;font-weight:900;line-height:1}[dir="rtl"] .admin-user-sequence{right:11px;left:auto}
@media(max-width:620px){.admin-user-row{padding-top:27px}.admin-user-sequence{top:8px;left:9px;font-size:9px}[dir="rtl"] .admin-user-sequence{right:9px;left:auto}}

/* Read-only administrator directory. */
.admin-directory-list{display:grid;gap:9px}.admin-directory-row{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr) minmax(170px,.65fr);align-items:center;gap:11px;padding:24px 12px 12px;border:1px solid var(--line);border-radius:13px;background:#081511}.admin-directory-row>img,.admin-directory-avatar{width:44px;height:44px;border-radius:11px;object-fit:cover}.admin-directory-avatar{display:grid;place-items:center;background:#173329;color:var(--green);font-weight:900}.admin-directory-row strong,.admin-directory-row small{display:block}.admin-directory-row small{color:var(--muted);font-size:9px}.admin-directory-row time{font-style:normal}.admin-directory-row time b{font-size:10px}
@media(max-width:620px){.admin-directory-row{grid-template-columns:42px minmax(0,1fr);padding:22px 10px 10px}.admin-directory-row>img,.admin-directory-avatar{width:40px;height:40px}.admin-directory-row time{grid-column:1/-1;padding-top:7px;border-top:1px solid var(--line)}}


/* public/css/adaptive.css */
/* Final responsive layer: predictable vertical flow and zero horizontal page scroll. */
:root {
  --page-gutter: clamp(14px, 2.2vw, 36px);
  --content-limit: 1560px;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-width: 280px;
}

:where(body *) {
  min-width: 0;
}

:where(img, video, canvas, iframe, svg) {
  max-width: 100%;
}

:where(p, a, strong, small, label, button, .comment, .muted) {
  overflow-wrap: anywhere;
}

.ambient {
  max-width: 100vw;
  overflow: hidden;
}

.topbar,
.app-shell,
.workspace,
#pageContent,
.page-head,
.grid,
.card,
.data-list,
.data-row,
.form-grid,
.task-list,
.task-overview,
.history-list,
.admin-review-list,
.library-browser {
  width: 100%;
  max-width: 100%;
}

.app-shell {
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
}

.workspace {
  justify-self: center;
  width: min(100%, var(--content-limit));
  padding: var(--page-gutter);
}

.sidebar {
  min-height: calc(100dvh - 72px);
}

.page-head {
  gap: 18px;
}

.page-head > div {
  min-width: 0;
}

.page-head h1 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.18;
}

.page-head p {
  max-width: 760px;
}

.two-col {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
}

.stats,
.admin-metrics,
.task-facts,
.task-edit-form,
.profile-status-grid,
.language-grid,
.library-categories {
  grid-auto-flow: row;
}

.top-actions,
.row-actions,
.task-actions,
.task-pagination nav,
.task-edit-actions {
  flex-wrap: wrap;
}

.data-row > *,
.task-overview-head > *,
.task-overview-foot > *,
.earn-card-head > *,
.steam-profile-card header > *,
.notification-panel header > * {
  min-width: 0;
}

.data-row strong,
.data-row small,
.task-fact > strong,
.admin-review-comment strong,
.history-comment strong {
  overflow-wrap: anywhere;
}

.copy-box input,
.row-actions,
.task-actions,
.task-edit-actions {
  max-width: 100%;
}

.task-toolbar {
  flex-wrap: wrap;
}

.task-toolbar label {
  flex: 1 1 190px;
  max-width: 320px;
}

.task-pagination nav {
  max-width: 100%;
}

.task-pagination nav > button {
  flex: 0 0 auto;
}

.history-row,
.admin-review-card {
  max-width: 100%;
}

.history-profile,
.history-comment,
.history-reward,
.history-status,
.history-date,
.admin-review-profile,
.admin-review-comment,
.admin-review-reward,
.admin-review-actions {
  min-width: 0;
}

.history-profile strong,
.admin-review-profile strong,
.steam-profile-main h3,
.earn-person h3 {
  max-width: 100%;
}

.compact-comment-row > span,
.library-categories strong {
  min-width: 0;
}

dialog {
  max-width: calc(100vw - 24px);
}

/* Compact laptops and landscape tablets keep full navigation labels. */
@media (max-width: 1240px) and (min-width: 821px) {
  .app-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 12px;
  }

  .workspace {
    padding: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  }
}

/* Phones and portrait tablets use a labelled off-canvas menu. */
@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .workspace {
    width: 100%;
    padding: clamp(16px, 3.2vw, 24px);
  }

  .stats,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-connect {
    position: static;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid > .wide,
  .form-grid > h3,
  .form-grid > p,
  .form-grid > button[type="submit"] {
    grid-column: 1 / -1;
  }

  .task-toolbar {
    justify-content: stretch;
  }

  .task-toolbar label {
    flex: 1 1 calc(50% - 6px);
    max-width: none;
  }

  .task-pagination {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .language-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: everything important follows one clean top-to-bottom reading order. */
@media (max-width: 680px) {
  :root {
    --page-gutter: 12px;
  }

  .app-authenticated .topbar {
    display: grid;
    grid-template-columns: 42px 36px minmax(0, 1fr);
    gap: 7px;
    padding: 0 10px;
  }

  .app-authenticated .brand {
    width: 36px;
    overflow: hidden;
  }

  .app-authenticated .brand-mark {
    width: 34px;
    height: 34px;
  }

  .app-authenticated .top-actions {
    width: 100%;
    justify-content: flex-end;
    gap: 5px;
  }

  .top-actions > * {
    min-width: 0;
  }

  .app-authenticated #languageBtn,
  .app-authenticated #logoutBtn,
  .app-authenticated .balance {
    min-height: 38px;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .notification-button {
    flex: 0 0 38px;
  }

  .workspace {
    padding: 18px var(--page-gutter) 32px;
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
  }

  .page-head h1 {
    font-size: clamp(24px, 8vw, 30px);
  }

  .page-head > :is(select, button, label) {
    width: 100%;
    max-width: none;
  }

  .card {
    padding: 16px;
    border-radius: 15px;
  }

  .form-grid,
  .task-edit-form {
    grid-template-columns: 1fr;
  }

  .form-grid > *,
  .task-edit-form > * {
    grid-column: 1 !important;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabs button {
    min-height: 44px;
    padding-inline: 8px;
    white-space: normal;
  }

  .stats,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat strong {
    font-size: clamp(22px, 7vw, 28px);
  }

  .data-row {
    align-items: stretch;
    flex-direction: column;
  }

  .data-row > .row-actions,
  .row-actions,
  .task-actions,
  .task-edit-actions {
    width: 100%;
  }

  .row-actions > button,
  .task-actions > button,
  .task-edit-actions > button {
    flex: 1 1 120px;
  }

  .copy-box {
    flex-direction: column;
  }

  .copy-box button {
    width: 100%;
  }

  .task-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .task-toolbar label,
  .task-toolbar label:last-child {
    width: 100%;
    max-width: none;
  }

  .task-overview-head,
  .task-overview-foot {
    align-items: flex-start;
  }

  .task-overview-foot {
    flex-direction: column;
  }

  .task-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-fact > strong {
    white-space: normal;
  }

  .task-pagination {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .task-pagination > span,
  .task-page-size {
    text-align: center;
  }

  .task-page-size {
    order: 3;
    width: 100%;
  }

  .task-pagination nav {
    justify-content: center;
    overflow: visible;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    grid-template-areas:
      "customer arrow worker"
      "comment comment comment"
      "meta meta meta";
    gap: 7px 6px;
    padding: 9px 10px;
  }

  .history-arrow {
    justify-self: center;
    align-self: center;
    display: grid;
    place-items: center;
    width: 16px;
    height: auto;
    line-height: 1;
    transform: none;
  }

  .admin-review-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .admin-review-card > * { grid-column: 1 !important; }

  .admin-review-arrow {
    justify-self: start;
    height: 20px;
    line-height: 20px;
    transform: rotate(90deg);
  }

  .history-comment,
  .admin-review-comment {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 8px 9px;
    border-left: 3px solid var(--green);
    border-radius: 8px;
    background: #07120f;
  }

  .history-comment strong,
  .admin-review-comment strong {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .history-status,
  .history-date,
  .admin-review-actions { width: 100%; }

  .history-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    align-items: center;
  }

  .history-meta small { white-space: nowrap; }

  .history-reward,
  .history-status { width: auto; }

  .history-status { text-align: right; }

  .history-date {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .history-date small { margin: 0; }

  .admin-review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .earn-comment-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .earn-actions {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .steam-profile-card > header {
    align-items: flex-start;
  }

  .steam-profile-main {
    align-items: flex-start;
  }

  .profile-status-grid {
    grid-template-columns: 1fr;
  }

  .profile-status-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .profile-status-grid span {
    margin-bottom: 0;
  }

  .library-result {
    align-items: stretch;
  }

  .library-result button {
    width: 100%;
  }

  .language-dialog[open] {
    display: flex;
    flex-direction: column;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 440px) {
  .app-authenticated .topbar {
    grid-template-columns: 40px 34px minmax(0, 1fr);
    gap: 5px;
    padding-inline: 8px;
  }

  .app-authenticated .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .app-authenticated .top-actions {
    gap: 4px;
  }

  .app-authenticated #languageBtn,
  .app-authenticated #logoutBtn,
  .app-authenticated .balance {
    min-height: 36px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .app-authenticated #languageBtn {
    font-size: 0;
  }

  .app-authenticated #languageBtn img {
    width: 23px;
    height: 17px;
    margin: 0;
  }

  .notification-button {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .stats,
  .admin-metrics,
  .task-facts,
  .library-categories {
    grid-template-columns: 1fr;
  }

  .task-overview-head {
    flex-direction: column;
  }

  .task-overview-head .pill {
    align-self: flex-start;
  }

  .earn-card { padding: 12px; border-radius: 13px; }
  .earn-card-head { flex-direction: row; align-items: center; margin-bottom: 11px; }
  .earn-reward { align-self: center; padding: 5px 8px; }
  .earn-person h3 { font-size: 14px; }
  .earn-comment-row { grid-template-columns: minmax(0, 1fr) auto; }
  .earn-comment { min-height: 44px; padding: 10px 11px; font-size: 13px; }
  .earn-copy { justify-content: center; border-width: 0 0 0 1px !important; padding-inline: 11px !important; }
  .earn-hint { margin: 5px 2px 9px; font-size: 9px; }
  .earn-actions { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 7px; }
  .earn-actions > a,
  .earn-actions > button { min-height: 40px; padding: 7px 6px; font-size: 10px; }

  .admin-review-actions {
    grid-template-columns: 1fr;
  }

  .compact-comment-row {
    align-items: flex-start;
  }

  .compact-comment-row > span {
    white-space: normal;
  }
}

@media (max-width: 330px) {
  .app-authenticated .topbar {
    grid-template-columns: 38px 32px minmax(0, 1fr);
    gap: 3px;
    padding-inline: 6px;
  }

  .app-authenticated .top-actions {
    gap: 3px;
  }

  .app-authenticated #logoutBtn,
  .app-authenticated .balance {
    padding-inline: 6px;
    font-size: 10px;
  }

  .app-authenticated #languageBtn,
  .notification-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    padding: 5px;
  }

  .workspace {
    padding-inline: 9px;
  }

  .card,
  .task-overview-head,
  .task-fact,
  .task-overview-foot {
    padding-inline: 13px;
  }
}

/* Wide displays keep content readable instead of stretching cards indefinitely. */
@media (min-width: 1700px) {
  .workspace {
    padding-inline: 44px;
  }

  .earn-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* public/css/account.css */
/* Fixed global header and account controls. */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
}

#landing,
.app-shell {
  margin-top: 72px;
}

#how,
#safety {
  scroll-margin-top: 88px;
}

.account-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
}

.app-authenticated .top-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.app-authenticated .top-actions > * {
  align-self: center;
}

.app-authenticated .balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.account-menu-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 11px 5px 6px;
}

.account-menu-button > strong {
  max-width: 160px;
  overflow: hidden;
  color: #eef7f3;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-button > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.account-menu-button[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.account-avatar,
.settings-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #35d99c66;
  background: linear-gradient(145deg, #31e6a5, #13a875);
  background-position: center;
  background-size: cover;
  color: #052117;
  font-weight: 1000;
}

.account-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  font-size: 13px;
}

.account-menu-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  padding: 7px;
  border: 1px solid #28483f;
  border-radius: 13px;
  background: #0b1815;
  box-shadow: 0 22px 60px #000b;
}

.account-menu-panel button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #d6e5e0;
  text-align: left;
  cursor: pointer;
}

.account-menu-panel button:hover,
.account-menu-panel button:focus-visible {
  outline: none;
  background: #173329;
}

.account-menu-panel button + button {
  margin-top: 3px;
  border-top: 1px solid #1b332c;
  border-radius: 0 0 9px 9px;
}

.account-menu-panel svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#avatar.has-photo,
.account-avatar.has-photo,
.settings-avatar.has-photo {
  color: transparent;
}

#avatar.has-photo {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Account settings page. */
.settings-layout {
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(360px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.settings-summary {
  position: static;
}

.settings-person {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  font-size: 18px;
}

.settings-person h2,
.settings-person p {
  margin: 0;
}

.settings-person h2 {
  font-size: 18px;
}

.settings-person p {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.settings-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 8px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.settings-info > div {
  display: block;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  background: #0b1815;
}

.settings-info > div:last-child {
  border-bottom: 0;
}

.settings-info dt,
.settings-info dd {
  min-width: 0;
  margin: 0;
}

.settings-info dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.settings-info dd {
  overflow-wrap: anywhere;
  color: #eaf5f1;
  font-weight: 750;
  font-size: 13px;
  line-height: 1.35;
}

.settings-info dd.green {
  color: var(--green);
}

.settings-forms {
  display: grid;
  gap: 14px;
}

.settings-actions {
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.settings-actions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.settings-actions-head h2,
.settings-actions-head p {
  margin: 0;
}

.settings-actions-head h2 {
  font-size: 19px;
}

.settings-actions-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.settings-action {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #091713;
  color: #eaf5f1;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.settings-action:hover,
.settings-action:focus-visible {
  outline: none;
  border-color: #2de39d75;
  background: #10271f;
  transform: translateY(-1px);
}

.settings-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 11px;
  background: #2de39d16;
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.settings-action > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.settings-action strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.settings-action small,
.settings-session small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.settings-action > b {
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
}

.settings-locked-login {
  padding: 11px 12px;
  border-radius: 11px;
  background: #dcae3510;
  color: #cabf9f;
}

.settings-locked-login p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.settings-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.settings-session > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.settings-session .danger {
  flex: 0 0 auto;
  min-width: 108px;
  background: #32181d55;
}

.settings-dialog {
  width: min(510px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 0;
  border: 1px solid #2b5146;
  border-radius: 18px;
  background: #0b1815;
  color: #eaf5f1;
  box-shadow: 0 28px 90px #000d;
}

.settings-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}

.settings-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--line);
}

#settingsDialogTitle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

#settingsDialogTitle h3,
#settingsDialogTitle p {
  margin: 0;
}

#settingsDialogTitle h3 {
  font-size: 17px;
}

#settingsDialogTitle p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

#settingsDialogClose {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a8bbb4;
  font-size: 25px;
  cursor: pointer;
}

#settingsDialogClose:hover,
#settingsDialogClose:focus-visible {
  outline: none;
  background: #173329;
  color: #fff;
}

#settingsDialogBody {
  padding: 18px;
}

.settings-form {
  display: grid;
  gap: 14px;
}

.settings-form > header {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.settings-form > header > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #2de39d16;
  color: var(--green);
  font-size: 17px;
  font-weight: 900;
}

.settings-form h3,
.settings-form p {
  margin: 0;
}

.settings-form p {
  color: var(--muted);
  font-size: 11px;
}

.settings-form .primary,
.settings-form .ghost {
  justify-self: start;
}

.settings-danger {
  border-color: #67333a;
  background: linear-gradient(145deg, #211517, #101613);
}

.settings-danger h3 {
  margin: 0 0 4px;
}

.settings-danger p {
  margin: 0 0 15px;
  color: #b9a2a6;
  font-size: 12px;
}

.settings-danger .danger {
  min-width: 150px;
}

@media (max-width: 1050px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-summary {
    position: static;
  }

  .settings-info {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  #landing,
  .app-shell {
    margin-top: 64px;
  }

  #how,
  #safety {
    scroll-margin-top: 76px;
  }

  .account-menu-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
  }

  .account-menu-wrap {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    justify-content: center;
  }

  .account-menu-button:hover,
  .account-menu-button:focus-visible,
  .account-menu-button[aria-expanded="true"] {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .account-menu-button > strong,
  .account-menu-button > svg {
    display: none;
  }

  .account-avatar {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .app-authenticated .top-actions {
    height: 100%;
    flex-wrap: nowrap;
    align-items: center;
  }

  .app-authenticated .top-actions > * {
    align-self: center;
  }

  .app-authenticated #languageBtn,
  .app-authenticated #logoutBtn,
  .app-authenticated .balance,
  .app-authenticated .notification-button {
    height: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .app-authenticated #languageBtn,
  .app-authenticated #logoutBtn,
  .app-authenticated .balance {
    display: inline-flex;
  }

  .account-menu-panel {
    position: fixed;
    top: 68px;
    right: 8px;
    width: min(230px, calc(100vw - 16px));
  }

  .settings-summary,
  .settings-actions {
    padding: 13px;
  }

  .settings-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-info > div {
    min-height: 58px;
    padding: 8px;
  }

  .settings-form .primary,
  .settings-form .ghost,
  .settings-danger .danger {
    width: 100%;
  }

  .settings-session {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-session .danger {
    width: 100%;
  }

  .settings-action {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-height: 56px;
    padding: 8px;
  }

  .settings-actions {
    gap: 8px;
  }

  .settings-action strong,
  .settings-action small {
    overflow-wrap: anywhere;
  }

  .settings-actions-head {
    padding-bottom: 12px;
  }

  .settings-actions-head h2 {
    font-size: 18px;
  }

  .settings-locked-login {
    padding: 11px;
  }

  .settings-action-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
}

@media (max-width: 440px) {
  .account-menu-wrap,
  .account-menu-button,
  .account-avatar {
    width: 36px;
    height: 36px;
    min-height: 36px;
    flex-basis: 36px;
  }

  .app-authenticated #languageBtn,
  .app-authenticated #logoutBtn,
  .app-authenticated .balance,
  .app-authenticated .notification-button {
    height: 36px;
    min-height: 36px;
  }
}

@media (max-width: 350px) {
  .account-menu-wrap {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .account-menu-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .account-avatar {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .app-authenticated #languageBtn,
  .app-authenticated #logoutBtn,
  .app-authenticated .balance,
  .app-authenticated .notification-button {
    height: 34px;
    min-height: 34px;
  }
}


/* public/css/auth-email.css */
.auth-dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px;
  border-color: #294b42;
  background: linear-gradient(155deg, #0d1d18 0%, #08130f 100%);
}

.auth-dialog .dialog-close {
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  color: #8da39b;
  line-height: 1;
}

.auth-dialog .dialog-close:hover,
.auth-dialog .dialog-close:focus-visible {
  outline: none;
  background: #173027;
  color: #fff;
}

.auth-dialog .auth-head {
  padding: 2px 42px 0;
}

.auth-dialog .auth-head .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.auth-dialog .auth-head h2 {
  margin: 14px 0 2px;
  font-size: 23px;
  letter-spacing: -.35px;
}

.auth-dialog .auth-head p {
  font-size: 13px;
}

.auth-dialog .tabs {
  margin: 22px 0 20px;
  padding: 4px;
  border: 1px solid #142a23;
}

.auth-dialog .tabs button {
  min-height: 42px;
  font-weight: 750;
}

.auth-dialog .tabs button.active {
  background: #183a30;
  color: #f4faf7;
  box-shadow: 0 5px 18px #0004;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form label {
  gap: 7px;
  color: #bfd0ca;
  font-size: 12px;
}

.required-mark {
  position: relative;
  top: -.3em;
  margin-inline-start: 3px;
  color: #ff7f8b;
  font-size: .78em;
  font-weight: 900;
  line-height: 0;
}

.auth-form input {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #06110e;
  color: #f1f8f5;
}

.auth-form input.is-invalid {
  border-color: #ff6b78;
  box-shadow: 0 0 0 3px #ff6b7818;
}

.auth-form .primary {
  width: 100%;
  min-height: 48px;
  margin-top: 3px;
  border-radius: 12px;
}

.auth-link,
.auth-form .auth-link {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid #234039 !important;
  border-radius: 11px;
  background: #0d1d18 !important;
  color: #b8cac4 !important;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.auth-link:hover,
.auth-link:focus-visible {
  outline: none;
  border-color: #2de39d66 !important;
  background: #132a23 !important;
  color: #fff !important;
  text-decoration: none;
}

.auth-hint,
.auth-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.auth-hint {
  margin: -7px 0 0;
}

.optional-label {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.auth-detail {
  gap: 16px;
  padding-top: 4px;
}

.auth-detail > h3 {
  margin: 0;
  padding-right: 38px;
  color: #f2f7f5;
  font-size: 22px;
  letter-spacing: -.3px;
  text-align: left;
}

[dir="rtl"] .auth-detail > h3 {
  padding-right: 0;
  padding-left: 38px;
  text-align: right;
}

.auth-copy {
  max-width: 390px;
  margin: -7px 0 2px;
  text-align: left;
}

[dir="rtl"] .auth-copy {
  text-align: right;
}

.auth-dialog.mode-verify .auth-head,
.auth-dialog.mode-recovery .auth-head,
.auth-dialog.mode-success .auth-head {
  display: none;
}

#verifyRegisterForm input[name="code"] {
  padding-left: 22px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 8px;
  text-align: center;
}

.email-providers {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #886c2660;
  border-radius: 12px;
  background: #886c261b;
  color: #e9f2ef;
}

.email-providers strong,
.email-providers small {
  display: block;
}

.email-providers p {
  margin: 5px 0;
  color: #ffd66f;
  font-size: 12px;
  font-weight: 750;
}

.email-providers small {
  color: var(--muted);
  font-size: 11px;
}

.form-error {
  min-height: 0;
  margin: 12px 0 0;
  color: #ff7f8b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.form-error:empty {
  display: none;
}

.auth-success {
  padding: 5px 0 0;
  text-align: center;
}

.auth-success h3 {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 0 0 9px;
  font-size: 21px;
}

.auth-success h3 > span:first-child {
  color: var(--green);
  font-size: .72em;
  line-height: 1;
  transform: translateY(-3px);
}

.auth-success p {
  max-width: 340px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 13px;
}

.auth-success .primary {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 520px) {
  .auth-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 24px 18px 20px;
    border-radius: 18px;
  }

  .auth-dialog .auth-head {
    padding-inline: 34px;
  }

  .auth-dialog .auth-head h2 {
    font-size: 21px;
  }

  .auth-dialog .tabs {
    margin-block: 19px 17px;
  }

  .auth-detail > h3 {
    font-size: 20px;
  }
}


/* public/css/system-dialog.css */
#toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, calc(100vw - 28px));
  font-weight: 750;
  line-height: 1.4;
}

#toast > span:first-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #2de39d22;
  color: var(--green);
  font-size: 13px;
  font-weight: 1000;
}

#toast.error > span:first-child {
  background: #ff6b7822;
  color: #ff8d97;
}

#toast.info > span:first-child {
  background: #73a8ff22;
  color: #9ac0ff;
}

.system-dialog {
  width: min(440px, calc(100vw - 24px));
  height: auto;
  max-height: calc(100dvh - 24px);
  padding: 26px;
  border: 1px solid #294b42;
  border-radius: 18px;
  background: linear-gradient(155deg, #0d1d18, #08130f);
  text-align: left;
  overflow: auto;
}

.system-dialog[open] {
  display: grid;
  align-content: start;
  gap: 12px;
}

.system-dialog .dialog-close {
  top: 13px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  line-height: 1;
}

.system-dialog .dialog-close:hover,
.system-dialog .dialog-close:focus-visible {
  outline: none;
  background: #173027;
  color: #fff;
}

.system-dialog-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #2d5a4b;
  border-radius: 12px;
  background: #15362c;
  color: var(--green);
  font-size: 18px;
  font-weight: 1000;
}

.system-dialog.is-danger .system-dialog-icon {
  border-color: #75434a;
  background: #3b1d22;
  color: #ff8994;
}

.system-dialog h2 {
  margin: 2px 42px 0 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.25px;
}

.system-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.system-dialog-input {
  margin-top: 2px;
  text-align: left;
}

.system-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 7px;
}

.system-dialog-actions button {
  min-height: 44px;
  border-radius: 11px;
}

.system-dialog[data-mode="alert"] #systemDialogCancel { display: none; }
.system-dialog[data-mode="alert"] .system-dialog-actions { grid-template-columns: 1fr; }

.system-dialog.is-danger #systemDialogConfirm {
  background: #ff6b78;
  color: #2b080c;
  box-shadow: 0 8px 24px #ff6b7824;
}

@media (max-width: 480px) {
  .system-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 22px 18px 18px;
  }

  .system-dialog-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 340px) {
  .system-dialog-actions {
    grid-template-columns: 1fr;
  }
}

[dir="rtl"] .system-dialog {
  text-align: right;
}

[dir="rtl"] .system-dialog h2 {
  margin-right: 0;
  margin-left: 42px;
}

[dir="rtl"] .system-dialog .dialog-close {
  right: auto;
  left: 14px;
}


/* public/css/dashboard.css */
.dashboard-lower {
  margin-top: 12px;
}

#pageContent .dashboard-stats {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

#pageContent .dashboard-stats .stat {
  min-width: 0;
  padding: 14px 15px;
}

#pageContent .dashboard-stats .stat small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pageContent .dashboard-stats .stat strong {
  margin-top: 4px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.2;
}

#pageContent .dashboard-stat-balance,
#pageContent .dashboard-stat-active,
#pageContent .dashboard-stat-approved {
  border-color: #2de39d55;
}

#pageContent .dashboard-stat-pending,
#pageContent .dashboard-stat-paused {
  border-color: #d0a83b55;
}

#pageContent .dashboard-stat-rejected {
  border-color: #ff6b7855;
}

.recent-operations {
  padding: 16px;
}

.recent-operations .data-list {
  gap: 7px;
}

.recent-operations .data-row {
  min-height: 54px;
  padding: 9px 12px;
}

.recent-operations-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.recent-operations-head h3 {
  margin: 0;
}

.recent-operations-head .ghost {
  flex: 0 0 auto;
  padding: 7px 12px;
  font-size: 12px;
}

.transactions-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 26px;
  overflow: hidden;
}

.transactions-dialog > header h2 {
  margin: 0;
  font-size: 24px;
}

.transactions-dialog > header p {
  margin: 4px 38px 0 0;
  color: var(--muted);
}

.transaction-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.transaction-totals > div {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #081511;
}

.transaction-totals small,
.transaction-totals strong {
  display: block;
}

.transaction-totals small {
  color: var(--muted);
}

.transaction-totals strong {
  margin-top: 3px;
  font-size: 21px;
}

.danger-text,
.transaction-amount.expense {
  color: #ff8c96;
}

.transaction-table {
  overflow: auto;
  max-height: min(480px, calc(100dvh - 285px));
  border: 1px solid var(--line);
  border-radius: 13px;
}

.transaction-table-head,
.transaction-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(170px, .8fr) minmax(120px, .5fr);
  align-items: center;
  gap: 16px;
}

.transaction-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 15px;
  background: #13251f;
  color: #a8bbb4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.transaction-table-row {
  padding: 13px 15px;
  background: #091612;
  border-top: 1px solid var(--line);
}

.transaction-table-row:first-child {
  border-top: 0;
}

.transaction-table-row time {
  color: var(--muted);
  font-size: 13px;
}

.transaction-amount {
  text-align: right;
}

.transaction-amount.income {
  color: var(--green);
}

.transaction-loading {
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.referral-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 26px;
}

.referral-link-block,
.referral-rule {
  min-width: 0;
}

.referral-rule {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.referral-rule p:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  #pageContent .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #pageContent .dashboard-stats .stat {
    min-height: 72px;
    padding: 11px 12px;
    border-radius: 13px;
  }

  #pageContent .dashboard-stats .stat small {
    font-size: 10px;
    white-space: normal;
  }

  #pageContent .dashboard-stats .stat strong {
    margin-top: 3px;
    font-size: 18px;
  }

  .dashboard-lower {
    margin-top: 9px;
  }

  .recent-operations {
    padding: 12px;
  }

  .recent-operations .data-row {
    min-height: 48px;
    padding: 8px 10px;
  }

  .recent-operations .data-row strong {
    font-size: 12px;
  }

  .recent-operations .data-row small {
    font-size: 10px;
  }

  .recent-operations-head {
    align-items: flex-start;
    margin-bottom: 9px;
  }

  .transactions-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 20px 14px 16px;
    border-radius: 17px;
  }

  .transactions-dialog > header h2 {
    padding-right: 36px;
    font-size: 21px;
  }

  .transaction-totals {
    gap: 8px;
    margin: 16px 0;
  }

  .transaction-totals > div {
    padding: 12px;
  }

  .transaction-totals strong {
    font-size: 17px;
  }

  .transaction-table {
    max-height: calc(100dvh - 260px);
    border: 0;
    overflow-x: hidden;
  }

  .transaction-table-head {
    display: none;
  }

  .transaction-table-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 12px;
    margin-bottom: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .transaction-table-row > div:first-child {
    grid-column: 1 / -1;
  }

  .transaction-table-row > div::before {
    display: block;
    margin-bottom: 2px;
    color: #7f968d;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .transaction-amount {
    text-align: right;
  }

  .referral-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .referral-card .copy-box {
    display: grid;
    grid-template-columns: 1fr;
  }

  .referral-card .copy-box button {
    width: 100%;
  }

  .referral-rule {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (min-width: 621px) and (max-width: 1100px) {
  #pageContent .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* public/css/landing.css */
#landing {
  color: var(--text);
}

#landing [id] {
  scroll-margin-top: 96px;
}

.landing-main,
.landing-footer {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-main {
  display: grid;
  gap: 88px;
  padding: 72px 0 96px;
}

.landing-hero {
  min-height: min(760px, calc(100vh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.landing-kicker,
.landing-section .section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.landing-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px #2de39d99;
  content: "";
}

.landing-hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  font-size: clamp(48px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -2.7px;
}

.landing-lead,
.landing-section-head > p,
.landing-section.split > div > p,
.landing-final > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.landing-note {
  max-width: 720px;
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--green);
  color: #c8d8d2;
  font-size: 14px;
  line-height: 1.65;
}

.landing-note.centered {
  margin: 26px auto 0;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
}

.landing-actions > * {
  min-height: 48px;
  justify-content: center;
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  color: #a3b5af;
  font-size: 12px;
  list-style: none;
}

.landing-trust li::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
}

.landing-flow {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid #25483d;
  border-radius: 24px;
  background: radial-gradient(circle at 80% 0, #2de39d16, transparent 42%), linear-gradient(145deg, #10211c, #091411);
  box-shadow: 0 28px 80px #0006;
}

.landing-flow::after {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #2de39d18;
  font-size: 100px;
  font-weight: 1000;
  line-height: 1;
  content: "R";
}

.landing-flow > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #08130fda;
}

.landing-flow span,
.landing-steps > li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #2de39d16;
  color: var(--green);
  font-weight: 900;
}

.landing-flow > i {
  padding-left: 21px;
  color: var(--green);
  font-style: normal;
  transform: rotate(90deg);
  transform-origin: 21px center;
}

.landing-section {
  min-width: 0;
}

.landing-section.compact {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0a1713;
}

.landing-section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.landing-section h2,
.landing-final h2 {
  margin: 8px 0 14px;
  font-size: clamp(30px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -1.4px;
}

.landing-grid {
  display: grid;
  gap: 18px;
}

.landing-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-card {
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #10201c, #0a1512);
}

.landing-card.small {
  padding: 23px;
}

.landing-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.landing-card.small h3 {
  margin-top: 0;
}

.landing-card p,
.condition-list p,
.faq-groups p,
.landing-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.landing-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #2de39d15;
  color: var(--green);
  font-size: 21px;
}

.muted-card {
  border-style: dashed;
  background: #0a1412;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-steps > li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b1815;
}

.landing-steps > li:last-child {
  grid-column: 1 / -1;
}

.landing-steps h3,
.landing-steps p {
  margin: 0;
}

.landing-steps h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.landing-steps p {
  color: var(--muted);
  font-size: 14px;
}

.landing-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 15px;
  background: #2de39d0d;
}

.landing-inline-cta p {
  margin: 0;
  color: #b9ccc5;
}

.landing-section.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.landing-facts {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
}

.landing-facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.landing-facts dt {
  color: #e9f3ef;
  font-weight: 800;
}

.calculation-card {
  padding: 32px;
  border: 1px solid #2de39d55;
  border-radius: 23px;
  background: radial-gradient(circle at 100% 0, #2de39d1c, transparent 48%), #0d1d18;
}

.calculation-card > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.calculation-card h3 {
  margin: 12px 0 16px;
  color: var(--green);
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1;
}

.calculation-card h3 small {
  font-size: 14px;
}

.calculation-card p {
  color: #d6e4df;
  line-height: 1.65;
}

.calculation-card > small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.action-card p {
  margin-bottom: 24px;
}

.action-card button {
  min-height: 44px;
  margin-top: auto;
}

.action-card button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.safety-panel {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #244b3f;
  border-radius: 26px;
  background: radial-gradient(circle at 80% 0, #2de39d12, transparent 42%), #091512;
}

.condition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.condition-list article {
  padding: 24px;
  background: #0b1815;
}

.condition-list h3 {
  margin: 0 0 7px;
  font-size: 16px;
}

.policy-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 3px solid #e6b94a;
  border-radius: 0 12px 12px 0;
  background: #e6b94a0c;
  color: #d7cba9;
}

.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.faq-groups > section {
  min-width: 0;
}

.faq-groups > section > h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.faq-groups details {
  border-top: 1px solid var(--line);
  background: #0a1713;
}

.faq-groups details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-groups summary {
  position: relative;
  padding: 17px 42px 17px 16px;
  color: #eaf4f0;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-groups summary::-webkit-details-marker {
  display: none;
}

.faq-groups summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--green);
  font-size: 20px;
  content: "+";
  transform: translateY(-50%);
}

.faq-groups details[open] summary::after {
  content: "−";
}

.faq-groups details p {
  padding: 0 16px 18px;
}

.landing-final {
  display: grid;
  justify-items: center;
  padding: clamp(40px, 7vw, 72px) 24px;
  border: 1px solid #2de39d45;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 0, #2de39d20, transparent 54%), #0b1b16;
  text-align: center;
}

.landing-final > p {
  max-width: 720px;
  margin: 0 0 24px;
}

.landing-final > small {
  margin-top: 14px;
  color: var(--muted);
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
  gap: 48px;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line);
}

.landing-footer p {
  max-width: 520px;
  color: var(--muted);
}

.landing-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  align-content: start;
}

.landing-footer nav a {
  color: #b6c7c1;
  text-decoration: none;
}

.landing-footer nav a:hover,
.landing-footer nav a:focus-visible {
  color: var(--green);
}

@media (max-width: 1050px) {
  .topbar .public-nav {
    gap: 18px;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  }

  .landing-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-authenticated #mobileMenuBtn,
  body:not(.app-authenticated) #mobileMenuBtn {
    display: grid;
    place-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #274a40;
    border-radius: 11px;
    background: #10211c;
    cursor: pointer;
  }

  body:not(.app-authenticated) #mobileMenuBtn span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: #dcebe6;
    transition: transform .2s, opacity .2s;
  }

  body.public-menu-open #mobileMenuBtn span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.public-menu-open #mobileMenuBtn span:nth-child(2) {
    opacity: 0;
  }

  body.public-menu-open #mobileMenuBtn span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body:not(.app-authenticated) .public-nav {
    position: fixed;
    z-index: 110;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid #28483f;
    border-radius: 15px;
    background: #0b1815f7;
    box-shadow: 0 22px 60px #000b;
  }

  body.public-menu-open .public-nav {
    display: flex;
  }

  body:not(.app-authenticated) .public-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 9px;
  }

  body:not(.app-authenticated) .public-nav a:hover,
  body:not(.app-authenticated) .public-nav a:focus-visible {
    background: #173329;
  }

  .landing-main {
    gap: 68px;
  }

  .landing-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .landing-flow {
    width: min(620px, 100%);
  }

  .landing-grid.three,
  .landing-section.split {
    grid-template-columns: 1fr;
  }

  .landing-section.split {
    gap: 28px;
  }
}

@media (max-width: 680px) {
  #landing [id] {
    scroll-margin-top: 78px;
  }

  .landing-main,
  .landing-footer {
    width: min(100% - 32px, 1200px);
  }

  .landing-main {
    gap: 52px;
    padding: 44px 0 68px;
  }

  .landing-hero {
    gap: 34px;
    padding: 0;
  }

  .landing-hero h1 {
    font-size: clamp(34px, 10vw, 42px);
    letter-spacing: -1.8px;
  }

  .landing-lead,
  .landing-section-head > p,
  .landing-section.split > div > p,
  .landing-final > p {
    font-size: 15px;
  }

  .landing-actions {
    display: grid;
  }

  .landing-actions > * {
    width: 100%;
  }

  .landing-flow,
  .landing-section.compact,
  .safety-panel,
  .landing-final {
    padding: 20px;
    border-radius: 20px;
  }

  .landing-section h2,
  .landing-final h2 {
    font-size: clamp(25px, 7.5vw, 30px);
    letter-spacing: -.8px;
  }

  .landing-grid.two,
  .landing-grid.four,
  .landing-steps,
  .condition-list,
  .faq-groups,
  .landing-footer {
    grid-template-columns: 1fr;
  }

  .landing-steps > li:last-child {
    grid-column: auto;
  }

  .landing-inline-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-inline-cta button {
    min-height: 44px;
  }

  .landing-facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .landing-footer {
    gap: 28px;
    padding-bottom: 40px;
  }

  .landing-footer nav {
    grid-template-columns: 1fr;
  }

  body:not(.app-authenticated) .top-actions .public-start {
    display: none !important;
  }

  body:not(.app-authenticated) #loginBtn {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 390px) {
  .landing-main,
  .landing-footer {
    width: calc(100% - 28px);
  }

  .landing-card,
  .landing-card.small,
  .landing-steps > li,
  .condition-list article,
  .calculation-card {
    padding: 18px;
  }

  .landing-steps > li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .landing-steps > li > span {
    width: 40px;
    height: 40px;
  }

  body:not(.app-authenticated) #languageBtn {
    padding-inline: 8px;
  }
}


/* public/css/tasks.css */
.task-list {
  display: grid;
  gap: 14px;
}

.task-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 13px 15px;
  border: 1px solid #1d3b32;
  border-radius: 14px;
  background: #0b1915;
}

.task-toolbar label { min-width: 190px; }
.task-toolbar label:last-child { min-width: 135px; }

.task-overview {
  overflow: hidden;
  border: 1px solid #1d3b32;
  border-radius: 18px;
  background: linear-gradient(145deg, #10211c, #091612);
  box-shadow: 0 14px 35px #0002;
}

.task-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid #1a352c;
  background: #10241e80;
}

.task-overview-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
  letter-spacing: -.25px;
}

.task-overview-head .pill {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .35px;
}

.task-kicker {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.task-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #1a352c;
}

.task-fact {
  min-width: 0;
  padding: 12px 14px;
  background: #0c1a16;
}

.task-fact > span {
  display: block;
  margin-bottom: 5px;
  color: #789188;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.task-fact > strong {
  display: block;
  overflow: hidden;
  color: #eef8f4;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-fact > strong.green { color: var(--green); }
.task-fact > strong.warn { color: #ffd66f; }

.task-progress {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 9px;
  background: #203a32;
}

.task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: hsl(calc(var(--progress) * 1.2) 82% 50%);
  box-shadow: 0 0 10px hsl(calc(var(--progress) * 1.2) 82% 50% / .45);
  transition: width .35s ease, background .35s ease;
}

.task-overview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 12px;
}

.task-overview-foot b { color: #dbeae5; }
.task-overview-foot .ghost { min-width: 130px; }

.task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.task-actions .ghost { min-width: 104px; }

.task-edit-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #1a352c;
  background: #0a1713;
}

.task-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.task-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #1d3b32;
  border-radius: 14px;
  background: #0b1915;
  color: var(--muted);
  font-size: 12px;
}

.task-page-size { min-width: 150px; text-align: center; }
.task-page-size span { display: block; margin-bottom: 5px; }
.task-pagination nav { grid-column: 3; display: flex; justify-content: flex-end; gap: 6px; }
.task-pagination nav > button { min-width: 38px; padding: 7px 10px; }
.task-pagination nav > button.active { border-color: var(--green); background: #1b4939; color: #fff; }
.task-pagination nav > button:disabled { opacity: .38; cursor: not-allowed; transform: none; }

@media (max-width: 1100px) {
  .task-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .task-list { gap: 10px; }

  .task-overview { border-radius: 14px; }

  .task-overview-head,
  .task-overview-foot {
    align-items: center;
    padding: 9px 11px;
  }

  .task-overview-head { gap: 8px; }
  .task-overview-head h3 { margin-top: 1px; font-size: 14px; }
  .task-overview-head .pill { padding: 4px 7px; font-size: 9px; }
  .task-kicker { font-size: 8px; letter-spacing: .8px; }

  .task-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .task-fact { min-height: 58px; padding: 8px 7px; }
  .task-fact > span {
    min-height: 22px;
    margin-bottom: 2px;
    font-size: 7.5px;
    line-height: 1.35;
    letter-spacing: .15px;
    overflow-wrap: anywhere;
  }
  .task-fact > strong { font-size: 10.5px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
  .task-progress { height: 3px; margin-top: 5px; }

  .task-overview-foot { gap: 7px; font-size: 9px; }
  .task-actions { width: auto; flex: 1; flex-wrap: nowrap; justify-content: flex-end; gap: 4px; }
  .task-actions .ghost,
  .task-overview-foot .ghost { min-width: 0; padding: 6px 8px; font-size: 9px; }
  .task-toolbar { align-items: stretch; flex-direction: column; }
  .task-toolbar label, .task-toolbar label:last-child { min-width: 0; }
  .task-edit-form { grid-template-columns: 1fr; padding: 15px; }
  .task-edit-actions { grid-column: auto; }
  .task-edit-actions button { flex: 1; }
  .task-pagination { display: flex; align-items: stretch; flex-direction: column; }
  .task-page-size { order: 3; }
  .task-pagination nav { grid-column: auto; justify-content: center; overflow-x: auto; }
}

@media (max-width: 390px) {
  .task-fact { padding-inline: 5px; }
  .task-fact > span { font-size: 7px; }
  .task-fact > strong { font-size: 10px; }
  .task-actions .ghost,
  .task-overview-foot .ghost { padding-inline: 6px; }
}


/* public/css/header-profile.css */
.app-authenticated > .topbar > .brand {
  display: flex;
}

.app-authenticated > .topbar > .top-actions {
  margin-left: auto;
}

@media (max-width: 680px) {
  .app-authenticated > .topbar {
    grid-template-columns: 42px 36px minmax(0, 1fr);
    column-gap: 9px;
  }

  .app-authenticated > .topbar > .brand > span:last-child {
    display: none;
  }

  .app-authenticated > .topbar > .brand {
    margin-left: 1px;
  }

  .app-authenticated > .topbar > .top-actions {
    grid-column: 3;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-end;
  }

  .app-authenticated > .topbar #accountMenuBtn {
    padding: 0;
  }
}

@media (max-width: 440px) {
  .app-authenticated > .topbar {
    grid-template-columns: 40px 34px minmax(0, 1fr);
    column-gap: 7px;
  }
}

@media (max-width: 330px) {
  .app-authenticated > .topbar {
    grid-template-columns: 38px 32px minmax(0, 1fr);
    column-gap: 5px;
  }
}


/* public/css/steam-level.css */
.steam-level-badge {
  --level-color: #9b9b9b;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid var(--level-color);
  border-radius: 50%;
  color: var(--level-color);
  background: #111816;
  box-shadow: inset 0 0 0 2px #07100e, 0 0 8px color-mix(in srgb, var(--level-color) 24%, transparent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.steam-level-badge i { position: relative; z-index: 1; font-style: normal; }
.steam-level-tone-0 { --level-color: #9b9b9b; }
.steam-level-tone-1 { --level-color: #c02942; }
.steam-level-tone-2 { --level-color: #d95b43; }
.steam-level-tone-3 { --level-color: #f0b933; }
.steam-level-tone-4 { --level-color: #66a33f; }
.steam-level-tone-5 { --level-color: #4c91bf; }
.steam-level-tone-6 { --level-color: #7652c9; }
.steam-level-tone-7 { --level-color: #c252c9; }
.steam-level-tone-8 { --level-color: #c25273; }
.steam-level-tone-9 { --level-color: #9978c9; }
.steam-level-badge.is-prestige {
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 1000%;
  box-shadow: none;
  color: #fff;
  text-shadow: 1px 1px 1px #111;
}
.steam-level-tier-100 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_hexagons.png'); }
.steam-level-tier-200 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_shields.png'); }
.steam-level-tier-300 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_books.png'); }
.steam-level-tier-400 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_chevrons.png'); }
.steam-level-tier-500 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_circle2.png'); }
.steam-level-tier-600 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_angle.png'); }
.steam-level-tier-700 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_flag.png'); }
.steam-level-tier-800 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_wings.png'); }
.steam-level-tier-900 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_arrows.png'); }
.steam-level-tier-1000 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_crystals.png'); }
.steam-level-tier-1100 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_space.png'); }
.steam-level-tier-1200 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_waterelement.png'); }
.steam-level-tier-1300 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_fireelement.png'); }
.steam-level-tier-1400 { background-image:url('https://community.cloudflare.steamstatic.com/public/shared/images/community/levels_earthelement.png'); }
.steam-level-row-0 { background-position:0 0%; }
.steam-level-row-1 { background-position:0 11.111%; }
.steam-level-row-2 { background-position:0 22.222%; }
.steam-level-row-3 { background-position:0 33.333%; }
.steam-level-row-4 { background-position:0 44.444%; }
.steam-level-row-5 { background-position:0 55.555%; }
.steam-level-row-6 { background-position:0 66.666%; }
.steam-level-row-7 { background-position:0 77.777%; }
.steam-level-row-8 { background-position:0 88.888%; }
.steam-level-row-9 { background-position:0 100%; }
.history-level { width: 27px; height: 27px; flex-basis: 27px; font-size: 9px; }
.admin-review-profile .steam-level-badge { width: 28px; height: 28px; flex-basis: 28px; font-size: 9px; }
.earn-refresh { display: flex; justify-content: center; padding: 18px 0 4px; }
.earn-refresh button { min-width: 150px; min-height: 44px; }
@media (max-width:700px) {
  .steam-level-badge { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
  .history-level { width: 23px; height: 23px; flex-basis: 23px; font-size: 8px; }
}
@media (max-width:420px) { .history-level { width: 21px; height: 21px; flex-basis: 21px; } }


/* public/css/support.css */
.nav-count{display:grid;min-width:19px;height:19px;margin-left:auto;padding:0 5px;place-items:center;border-radius:10px;background:#2de39d;color:#052117;font-size:9px;font-style:normal;font-weight:1000;line-height:1}.support-start{max-width:850px;margin:0 auto;padding:22px}.support-start-copy{display:flex;align-items:center;gap:13px;margin-bottom:18px}.support-start-copy h2,.support-start-copy p{margin:0}.support-start-copy h2{font-size:20px}.support-start-copy p{margin-top:4px;color:var(--muted);font-size:12px}.support-start-icon{display:grid;width:46px;height:46px;flex:0 0 46px;place-items:center;border:1px solid #2de39d66;border-radius:14px;background:#12352b;color:var(--green);font-size:22px;font-weight:900}.support-start-form{display:grid;gap:14px}.support-start-form label,.support-reply-form label{display:grid;gap:7px}.support-start-form label>span,.support-reply-form label>span{font-size:11px;font-weight:900}.support-start-form em{color:var(--muted);font-size:9px;font-style:normal;font-weight:700}.support-start-form textarea{min-height:180px;resize:vertical}.support-submit{display:flex;align-items:center;justify-content:space-between;gap:16px}.support-submit small,.support-reply-form small{max-width:560px;color:var(--muted);font-size:10px}.support-chat{display:grid;max-width:950px;height:min(720px,calc(100dvh - 160px));min-height:480px;margin:0 auto;padding:0;grid-template-rows:auto 1fr auto;overflow:hidden}.support-chat-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-bottom:1px solid var(--line);background:#0b1a16}.support-chat-head h2,.support-chat-head p{margin:0}.support-chat-head h2{font-size:16px}.support-chat-head p{margin-top:3px;color:var(--muted);font-size:10px}.support-online{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;font-weight:800}.support-online i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #2de39d18}.support-message-list{display:flex;min-height:0;flex-direction:column;gap:9px;overflow:auto;padding:16px;background:linear-gradient(180deg,#07130f,#06100d)}.support-bubble{width:min(78%,620px);padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#10221c}.support-bubble.from-user{align-self:flex-end;border-bottom-right-radius:4px;background:#12372c}.support-bubble.from-admin{align-self:flex-start;border-bottom-left-radius:4px}.support-bubble small{display:block;margin-bottom:4px;color:var(--green);font-size:8px;font-weight:900;text-transform:uppercase}.support-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.5}.support-bubble time{display:block;margin-top:5px;color:var(--muted);font-size:8px;text-align:right}.support-load-older{align-self:center;padding:7px 12px;font-size:9px}.support-reply-form{padding:12px 15px;border-top:1px solid var(--line);background:#0b1a16}.support-reply-form textarea{min-height:74px;max-height:180px;resize:vertical}.support-reply-form>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.support-reply-form button{min-width:140px}
.admin-support-list{display:grid;gap:8px}.admin-support-row{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(0,1.3fr) auto;align-items:center;gap:12px;width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#081511;color:var(--text);text-align:left;cursor:pointer}.admin-support-row:hover{border-color:#2de39d80}.admin-support-person strong,.admin-support-person small,.admin-support-preview p,.admin-support-preview time{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-support-person small,.admin-support-preview time{color:var(--muted);font-size:9px}.admin-support-preview p{margin:0;font-size:11px}.admin-support-unread{display:grid;min-width:24px;height:24px;padding:0 6px;place-items:center;border-radius:12px;background:var(--green);color:#052117;font-size:10px;font-weight:1000}.admin-support-chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.admin-support-chat-head>div{min-width:0}.admin-support-chat-head h3,.admin-support-chat-head p{margin:0}.admin-support-chat-head h3{font-size:16px}.admin-support-chat-head p{margin-top:3px;color:var(--muted);font-size:10px;overflow-wrap:anywhere}.admin-support-conversation .support-message-list{max-height:calc(100dvh - 330px);min-height:260px;border:1px solid var(--line);border-radius:12px}.admin-support-conversation .support-reply-form{margin-top:10px;border:1px solid var(--line);border-radius:12px}.admin-support-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:10px}
@media(max-width:620px){.nav-count{min-width:17px;height:17px;padding:0 4px;font-size:8px}.support-start{padding:15px}.support-start-copy{align-items:flex-start}.support-start-copy h2{font-size:17px}.support-start-form textarea{min-height:150px}.support-submit{align-items:stretch;flex-direction:column}.support-submit button{width:100%}.support-chat{height:calc(100dvh - 135px);min-height:430px;border-radius:13px}.support-chat-head{padding:11px 12px}.support-message-list{padding:11px}.support-bubble{width:88%;padding:9px 10px}.support-bubble p{font-size:11px}.support-reply-form{padding:10px}.support-reply-form>div{align-items:stretch;flex-direction:column}.support-reply-form button{width:100%}.admin-support-search{grid-template-columns:1fr}.admin-support-row{grid-template-columns:minmax(0,1fr) auto}.admin-support-preview{grid-column:1/-1;grid-row:2}.admin-support-chat-head{align-items:flex-start}.admin-support-conversation .support-message-list{max-height:calc(100dvh - 360px)}}


/* public/css/support-polish.css */
.support-start-icon{font-size:0}
.support-start-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}


/* public/css/localization-layout.css */
/* Language-length safe layout. Keep translated words intact without shrinking controls. */
button,
.primary,
.ghost,
[role="button"] {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: stretch;
}

.copy-box > input {
  min-width: 0;
}

.copy-box > button {
  width: auto;
  min-width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.tabs button,
.system-dialog-actions button,
.admin-data-pager button,
.admin-user-actions button,
.admin-review-actions > *,
.support-submit button,
.support-reply-form button {
  white-space: normal;
  text-wrap: balance;
}

@media (max-width: 680px) {
  .copy-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .copy-box > button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

/* Dashboard groups: short labels remain readable in every supported language. */
#pageContent .dashboard-sections {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
#pageContent .dashboard-group {
  --group-accent: #65c7ac;
  grid-column: span 4;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--group-accent);
  border-radius: 18px;
  background: #10201b;
}
#pageContent .dashboard-group-points { --group-accent: #2de39d; }
#pageContent .dashboard-group-profiles { --group-accent: #68b8ff; }
#pageContent .dashboard-group-referral { --group-accent: #b79cf4; }
#pageContent .dashboard-group-orders { --group-accent: #69cba8; grid-column: span 6; }
#pageContent .dashboard-group-comments { --group-accent: #e9bd70; grid-column: span 6; }
#pageContent .dashboard-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 14px;
  color: #f1faf5;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#pageContent .dashboard-group-icon {
  display: inline-grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: #ffffff10;
  color: var(--group-accent);
  font-size: 19px;
  line-height: 1;
}
#pageContent .dashboard-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#pageContent .dashboard-group-points .dashboard-group-grid,
#pageContent .dashboard-group-profiles .dashboard-group-grid,
#pageContent .dashboard-group-referral .dashboard-group-grid {
  grid-template-columns: minmax(0, 1fr);
}
#pageContent .dashboard-group-grid .stat {
  min-width: 0;
  min-height: 90px;
  padding: 14px 15px;
  border-color: #ffffff17;
  background: #0c1915;
}
#pageContent .dashboard-group-grid .stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
#pageContent .dashboard-group-grid .stat strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
#pageContent .dashboard-group-grid .dashboard-stat-balance,
#pageContent .dashboard-group-grid .dashboard-stat-active,
#pageContent .dashboard-group-grid .dashboard-stat-approved { border-color: #2de39d55; }
#pageContent .dashboard-group-grid .dashboard-stat-paused,
#pageContent .dashboard-group-grid .dashboard-stat-pending { border-color: #e9bd7055; }
#pageContent .dashboard-group-grid .dashboard-stat-rejected { border-color: #ff6b7855; }
#pageContent .dashboard-sections + .dashboard-lower { margin-top: 20px; }
@media (max-width: 1080px) {
  #pageContent .dashboard-group { grid-column: span 6; }
  #pageContent .dashboard-group-referral,
  #pageContent .dashboard-group-orders,
  #pageContent .dashboard-group-comments { grid-column: span 12; }
}
@media (max-width: 620px) {
  #pageContent .dashboard-sections { gap: 16px; margin-top: 18px; }
  #pageContent .dashboard-group { grid-column: span 12; padding: 14px; border-radius: 16px; }
  #pageContent .dashboard-group-title { margin-bottom: 12px; font-size: 15px; }
  #pageContent .dashboard-group-grid { gap: 9px; }
  #pageContent .dashboard-group-grid .stat { min-height: 78px; padding: 12px; }
  #pageContent .dashboard-group-grid .stat strong { font-size: 20px; }
  #pageContent .dashboard-sections + .dashboard-lower { margin-top: 18px; }
}
@media (max-width: 340px) {
  #pageContent .dashboard-group-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep dashboard sections quick to scan on small screens. */
#pageContent .dashboard-sections { gap: 14px; margin-top: 16px; }
#pageContent .dashboard-group { padding: 16px; }
#pageContent .dashboard-group-title { margin-bottom: 10px; }
#pageContent .dashboard-group-grid .stat { min-height: 72px; }
#pageContent .dashboard-sections + .dashboard-lower { margin-top: 16px; }
@media (max-width: 620px) {
  #pageContent .dashboard-sections { gap: 11px; margin-top: 12px; }
  #pageContent .dashboard-group { padding: 11px; border-radius: 14px; }
  #pageContent .dashboard-group-points,
  #pageContent .dashboard-group-orders,
  #pageContent .dashboard-group-comments { grid-column: span 12; }
  #pageContent .dashboard-group-profiles,
  #pageContent .dashboard-group-referral { grid-column: span 6; }
  #pageContent .dashboard-group-title { gap: 7px; margin-bottom: 8px; font-size: 14px; }
  #pageContent .dashboard-group-icon { flex-basis: 26px; width: 26px; height: 26px; font-size: 15px; }
  #pageContent .dashboard-group-profiles .dashboard-group-icon,
  #pageContent .dashboard-group-referral .dashboard-group-icon { display: none; }
  #pageContent .dashboard-group-grid { gap: 6px; }
  #pageContent .dashboard-group-grid .stat { min-height: 56px; padding: 8px 9px; border-radius: 11px; }
  #pageContent .dashboard-group-grid .stat small { font-size: 11px; line-height: 1.3; }
  #pageContent .dashboard-group-grid .stat strong { margin-top: 3px; font-size: 18px; }
  #pageContent .dashboard-sections + .dashboard-lower { margin-top: 14px; }
}
@media (max-width: 340px) {
  #pageContent .dashboard-group-profiles,
  #pageContent .dashboard-group-referral { grid-column: span 12; }
}

