:root {
  --accent: #14b8a6;
  --accent-dark: #087f76;
  --blue: #2563eb;
  --text: #14345a;
  --muted: #4b6388;
  --border: #bde3dc;
  --soft: #edf9f6;
  --danger: #dc2626;
  --shadow: 0 24px 60px rgba(18, 78, 94, 0.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(210, 255, 240, 0.9), transparent 35%),
    linear-gradient(115deg, #e9fbf3 0%, #edf9fd 100%);
}
.page-shell { width: min(1080px, calc(100% - 80px)); margin: 24px auto 48px; }
.page-shell.wide { width: min(1520px, calc(100% - 96px)); }
.brand-header { text-align: center; margin: 20px 0 34px; }
.brand-header h1 { margin: 0; color: #087f76; font-size: 44px; letter-spacing: 0; font-weight: 900; }
.brand-header p { margin: 10px 0 0; color: #2d4770; font-size: 14px; letter-spacing: .04em; }
.bolt { color: #fb7b2b; margin-right: 18px; }
.card { background: rgba(255,255,255,.92); border: 1px solid rgba(131, 190, 183, .45); border-radius: 7px; box-shadow: var(--shadow); padding: 30px; margin-bottom: 24px; }
h2 { margin: 0 0 12px; color: var(--accent-dark); font-size: 26px; }
.muted { color: var(--muted); margin: 0 0 20px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.admin-login-form { grid-template-columns: 1fr auto auto; }
input, textarea { width: 100%; border: 1px solid #a8d8d1; background: #f8fefd; border-radius: 8px; min-height: 46px; padding: 0 14px; color: #082142; font-size: 15px; }
textarea { min-height: 80px; padding: 12px 14px; margin-bottom: 12px; }
label span { display: block; margin: 0 0 8px; color: #071b37; font-weight: 800; }
button { border: 0; cursor: pointer; font-weight: 800; border-radius: 8px; min-height: 46px; padding: 0 22px; transition: transform .12s ease, opacity .12s ease, background .12s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: .48; transform: none; }
.primary-btn { color: #fff; background: #14b8a6; }
.outline-btn { color: #6b7b96; background: #f8fbfc; border: 1px solid #a8d8d1; }
.outline-btn:not(:disabled) { color: #087f76; }
.ghost-btn { color: #334a6d; background: transparent; border: 1px solid #b8d7d4; min-height: 36px; }
.danger:not(:disabled) { color: var(--danger); border-color: #fecaca; background: #fff7f7; }
.small { min-height: 36px; padding: 0 14px; margin-left: 8px; }
.status-line { color: #304c72; margin: 14px 0 0; }
.hidden { display: none !important; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.task-tools { display: flex; align-items: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid #9ce7c5; color: #059669; background: #ecfdf5; padding: 7px 15px; font-size: 13px; font-weight: 800; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.timer-box { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; background: #f7fbfd; border: 1px solid #d3e7e9; border-radius: 10px; min-height: 74px; padding: 0 28px; font-size: 17px; }
.timer-box strong { font-size: 34px; letter-spacing: .08em; color: #0c1f3d; }
.hint { border: 1px solid #6ee7d0; background: #ecfffb; color: #087f76; border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.sms-record { border: 1px solid #d4e2e6; border-radius: 8px; background: #f8fbfd; padding: 18px; min-height: 92px; }
.sms-code { color: #059669; font-weight: 900; font-size: 30px; margin-bottom: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f766e; color: white; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }
.lang-switch { position: fixed; top: 18px; right: 22px; z-index: 20; display: flex; border: 1px solid #b7dfda; background: rgba(255,255,255,.9); border-radius: 999px; overflow: hidden; box-shadow: 0 12px 30px rgba(15,118,110,.12); }
.lang-btn { min-height: 34px; padding: 0 12px; border-radius: 0; background: transparent; color: #087f76; }
.lang-btn.active { background: #14b8a6; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.stat { background: #f8fefd; border: 1px solid #cde9e5; border-radius: 8px; padding: 16px; }
.stat strong { display: block; font-size: 28px; color: #087f76; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
th, td { border-bottom: 1px solid #d7ebe8; padding: 9px 8px; text-align: left; white-space: nowrap; }
th { color: #0f766e; }
.remember { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #214467; white-space: nowrap; }
.remember input { width: 18px; min-height: 18px; accent-color: #14b8a6; }
@media (max-width: 760px) {
  .page-shell, .page-shell.wide { width: calc(100% - 28px); margin-top: 62px; }
  .brand-header h1 { font-size: 34px; }
  .card { padding: 20px; }
  .inline-form, .admin-login-form, .two-col { grid-template-columns: 1fr; }
  .card-title-row { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
