@font-face {
  font-family: "UKIJ Esliye";
  src: url("/assets/UKIJES.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ws-primary: var(--primary, #3157d5);
  --ws-primary-dark: var(--primary-dark, #2443ad);
  --ws-primary-soft: var(--primary-soft, #eef2ff);
  --ws-bg: var(--bg, #f4f6fa);
  --ws-surface: var(--surface, #ffffff);
  --ws-text: var(--text, #172033);
  --ws-muted: var(--muted, #687387);
  --ws-border: var(--border, #dfe4ec);
  --ws-danger: var(--danger, #c53737);
  --ws-success: var(--success, #16794c);
  --ws-warning: var(--warning, #a15c08);
  --ws-radius: 16px;
  --ws-shadow: 0 12px 36px rgba(24, 39, 75, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.ws-body {
  margin: 0;
  min-width: 320px;
  color: var(--ws-text);
  background: var(--ws-bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}
.ws-body button, .ws-body input, .ws-body select, .ws-body textarea { font: inherit; }
.ws-body button { cursor: pointer; }
.ws-body button:disabled { cursor: not-allowed; opacity: .58; }
.ws-body a { color: var(--ws-primary); }
.ws-body h1, .ws-body h2, .ws-body h3, .ws-body p { margin-top: 0; }
.ws-body h1 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 6px; }
.ws-body h2 { font-size: 20px; margin-bottom: 6px; }
.ws-body h3 { font-size: 16px; margin-bottom: 6px; }
.ws-muted { color: var(--ws-muted); }
.ws-small { font-size: 13px; }
.ws-mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.ws-nowrap { white-space: nowrap; }
.ws-mt { margin-top: 20px; }
.ws-mb { margin-bottom: 20px; }
.ws-full { width: 100%; }
.ws-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ws-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at 12% 16%, rgba(49, 87, 213, .15), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(29, 158, 117, .11), transparent 28%),
    var(--ws-bg);
}
.ws-login-card {
  width: min(460px, 100%);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(223, 228, 236, .9);
  border-radius: 22px;
  background: var(--ws-surface);
  box-shadow: var(--ws-shadow);
}
.ws-login-card .ws-brand { margin-bottom: 28px; }
.ws-login-card .ws-field { margin-bottom: 17px; }
.ws-login-tip {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ws-muted);
  background: var(--ws-bg);
  font-size: 13px;
}
.ws-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  border-radius: 12px; color: #fff; background: var(--ws-primary);
  font-size: 20px; font-weight: 800; letter-spacing: -.04em;
}
.ws-brand-name { display: block; font-size: 17px; font-weight: 750; line-height: 1.25; }
.ws-brand-sub { display: block; margin-top: 3px; color: var(--ws-muted); font-size: 12px; }

.ws-shell { min-height: 100vh; display: flex; }
.ws-sidebar {
  position: sticky; top: 0; align-self: flex-start; width: 244px; height: 100vh; flex: 0 0 244px;
  display: flex; flex-direction: column; padding: 24px 16px 18px;
  color: #e9edff; background: #17223b; overflow-y: auto; z-index: 20;
}
.ws-sidebar .ws-brand { padding: 0 8px 24px; }
.ws-sidebar .ws-brand-sub { color: #aeb9d2; }
.ws-sidebar .ws-brand-mark { background: #5575e4; }
.ws-nav { display: grid; gap: 5px; }
.ws-nav-btn {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 0; border-radius: 10px; color: #bac5dd; background: transparent; text-align: left;
  transition: color .15s, background .15s;
}
.ws-nav-btn:hover { color: #fff; background: rgba(255,255,255,.07); }
.ws-nav-btn.is-active { color: #fff; background: #3157d5; font-weight: 650; }
.ws-nav-icon { width: 21px; flex: 0 0 21px; text-align: center; font-size: 12px; font-weight: 800; }
.ws-sidebar-foot { margin-top: auto; padding: 20px 10px 0; color: #96a4c1; font-size: 12px; }
.ws-workspace { min-width: 0; flex: 1; }
.ws-topbar {
  min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px clamp(18px, 3vw, 36px); border-bottom: 1px solid var(--ws-border);
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 15;
}
.ws-topbar-title { min-width: 0; }
.ws-topbar-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-user { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ws-avatar {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ws-primary); background: var(--ws-primary-soft); font-weight: 750;
}
.ws-mobile-nav { display: none; padding: 12px 18px 0; }
.ws-content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 28px clamp(18px, 3vw, 36px) 50px; }
.ws-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ws-section-head p { margin: 0; color: var(--ws-muted); font-size: 14px; }
.ws-section-actions { display: flex; flex-wrap: wrap; gap: 9px; flex-shrink: 0; }

.ws-card {
  min-width: 0; padding: 22px; border: 1px solid var(--ws-border); border-radius: var(--ws-radius);
  background: var(--ws-surface); box-shadow: 0 2px 6px rgba(24,39,75,.025);
}
.ws-card + .ws-card { margin-top: 18px; }
.ws-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ws-card-head h2, .ws-card-head h3 { margin: 0; }
.ws-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ws-stat { position: relative; overflow: hidden; padding: 19px 20px; }
.ws-stat::after {
  content: ""; position: absolute; right: -20px; top: -28px; width: 80px; height: 80px;
  border-radius: 50%; background: var(--ws-primary-soft); opacity: .75;
}
.ws-stat-label { display: block; position: relative; z-index: 1; color: var(--ws-muted); font-size: 13px; }
.ws-stat-value { display: block; position: relative; z-index: 1; margin-top: 5px; font-size: 27px; font-weight: 780; letter-spacing: -.03em; }
.ws-stat-note { display: block; position: relative; z-index: 1; margin-top: 4px; color: var(--ws-muted); font-size: 12px; }
.ws-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 18px; }
.ws-dashboard-grid .ws-card + .ws-card { margin-top: 0; }
.ws-chart-wrap { position: relative; width: 100%; min-height: 270px; }
.ws-chart { display: block; width: 100%; height: 270px; }
.ws-chart-summary { margin: 10px 0 0; color: var(--ws-muted); font-size: 13px; }

.ws-btn {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 15px; border: 1px solid transparent; border-radius: 9px;
  color: #fff; background: var(--ws-primary); font-weight: 600; font-size: 14px;
  text-decoration: none; transition: background .15s, border-color .15s, transform .15s;
}
.ws-btn:hover:not(:disabled) { background: var(--ws-primary-dark); }
.ws-btn:active:not(:disabled) { transform: translateY(1px); }
.ws-btn-secondary { color: var(--ws-text); border-color: var(--ws-border); background: var(--ws-surface); }
.ws-btn-secondary:hover:not(:disabled) { border-color: #b7c2d4; background: var(--ws-bg); }
.ws-btn-danger { color: #fff; background: var(--ws-danger); }
.ws-btn-danger:hover:not(:disabled) { background: #a82d2d; }
.ws-btn-danger-ghost { color: var(--ws-danger); border-color: #efcccc; background: #fff; }
.ws-btn-danger-ghost:hover:not(:disabled) { background: #fff4f4; }
.ws-btn-sm { min-height: 32px; padding: 5px 10px; border-radius: 7px; font-size: 12px; }
.ws-btn-lg { min-height: 44px; padding: 10px 20px; }
.ws-icon-btn { width: 36px; min-height: 36px; padding: 0; }

.ws-tabs { display: flex; gap: 5px; padding: 5px; margin-bottom: 24px; border: 1px solid var(--ws-border); border-radius: 12px; background: var(--ws-surface); overflow-x: auto; }
.ws-tab { flex: 1; min-width: max-content; padding: 9px 17px; border: 0; border-radius: 8px; color: var(--ws-muted); background: transparent; font-weight: 600; }
.ws-tab:hover { color: var(--ws-text); background: var(--ws-bg); }
.ws-tab.is-active { color: var(--ws-primary); background: var(--ws-primary-soft); }
.ws-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 17px; }
.ws-toolbar .ws-field { min-width: 150px; margin: 0; }
.ws-toolbar .ws-field-grow { flex: 1; min-width: 210px; }
.ws-toolbar-note { margin-left: auto; align-self: center; color: var(--ws-muted); font-size: 13px; }

.ws-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ws-form-grid.ws-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 15px; }
.ws-form-grid .ws-field { margin-bottom: 0; }
.ws-field > label, .ws-field-label { color: #3a4559; font-size: 13px; font-weight: 650; }
.ws-field input:not([type="checkbox"]):not([type="radio"]), .ws-field select, .ws-field textarea,
.ws-input {
  width: 100%; min-height: 41px; padding: 9px 11px; border: 1px solid var(--ws-border); border-radius: 9px;
  outline: none; color: var(--ws-text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.ws-field textarea { min-height: 105px; resize: vertical; line-height: 1.65; }
.ws-field input:focus, .ws-field select:focus, .ws-field textarea:focus, .ws-input:focus {
  border-color: var(--ws-primary); box-shadow: 0 0 0 3px rgba(49,87,213,.11);
}
.ws-field input:disabled, .ws-field select:disabled, .ws-field textarea:disabled { color: var(--ws-muted); background: #f1f3f7; }
.ws-field-hint { color: var(--ws-muted); font-size: 12px; }
.ws-translate-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px; padding: 10px 14px; border: 1px dashed #c7d3ea; border-radius: 10px;
  background: #f7f9ff;
}
.ws-translate-bar .ws-btn { flex-shrink: 0; }
.ws-span-full { grid-column: 1 / -1; }
.ws-cover-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px; }
.ws-cover-preview {
  width: 220px; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--ws-border); border-radius: 10px; background: #eef1f6;
}
.ws-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--ws-border); }
.ws-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: #3a4559; font-size: 14px; }
.ws-check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ws-primary); }
.ws-switch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
input[dir="rtl"], textarea[dir="rtl"] {
  direction: rtl; text-align: right; font-family: "UKIJ Esliye", "Microsoft YaHei", serif;
}
.ws-translation { direction: rtl; text-align: right; font-family: "UKIJ Esliye", serif; white-space: pre-wrap; overflow-wrap: anywhere; }

.ws-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--ws-border); border-radius: 11px; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.ws-table th, .ws-table td { padding: 12px 13px; border-bottom: 1px solid var(--ws-border); text-align: left; vertical-align: middle; }
.ws-table th { color: var(--ws-muted); background: #f8f9fc; font-weight: 650; white-space: nowrap; }
.ws-table tbody tr:last-child td { border-bottom: 0; }
.ws-table tbody tr:hover { background: #fbfcff; }
.ws-table td { max-width: 360px; overflow-wrap: anywhere; }
.ws-table-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: max-content; }
.ws-table-title { display: block; color: var(--ws-text); font-weight: 650; }
.ws-table-sub { display: block; margin-top: 3px; color: var(--ws-muted); font-size: 12px; }
.ws-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; color: #4a556a; background: #edf0f5; font-size: 12px; font-weight: 650; white-space: nowrap; }
.ws-badge.is-published, .ws-badge.is-paid, .ws-badge.is-active { color: #116a42; background: #e6f5ed; }
.ws-badge.is-pending { color: #92530b; background: #fff2d9; }
.ws-badge.is-rejected, .ws-badge.is-refunded, .ws-badge.is-disabled, .ws-badge.is-hidden { color: #a93131; background: #fdecec; }
.ws-badge.is-draft, .ws-badge.is-cancelled { color: #566176; background: #edf0f5; }
.ws-badge.is-notice { color: #3157b5; background: #eaf0ff; }
.ws-badge.is-ad { color: #7b3fb0; background: #f2e9fb; }

.ws-resource-list { display: grid; gap: 13px; }
.ws-resource-item { padding: 18px; border: 1px solid var(--ws-border); border-radius: 12px; background: #fff; }
.ws-resource-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ws-resource-title { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.ws-resource-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 9px 0 0; color: var(--ws-muted); font-size: 12px; }
.ws-resource-description { margin: 12px 0 0; color: #4e596c; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-resource-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf0f4; }
.ws-rejection { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--ws-danger); border-radius: 5px; color: #963535; background: #fff3f3; font-size: 13px; white-space: pre-wrap; }
.ws-indent { margin-left: 24px; }
.ws-empty { padding: 36px 18px; border: 1px dashed var(--ws-border); border-radius: 12px; color: var(--ws-muted); background: rgba(255,255,255,.5); text-align: center; }
.ws-loading { display: inline-flex; align-items: center; gap: 8px; color: var(--ws-muted); font-size: 13px; }
.ws-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ws-border); border-top-color: var(--ws-primary); border-radius: 50%; animation: ws-spin .75s linear infinite; }
@keyframes ws-spin { to { transform: rotate(360deg); } }

.ws-alert { margin: 0 0 16px; padding: 11px 13px; border: 1px solid #cbd7f5; border-radius: 9px; color: #31529c; background: #f0f4ff; font-size: 13px; white-space: pre-wrap; }
.ws-alert.is-error { color: #9c3333; border-color: #efcccc; background: #fff2f2; }
.ws-alert.is-success { color: #126b43; border-color: #bde2cf; background: #edf9f2; }
.ws-toast-stack { position: fixed; right: 20px; top: 20px; z-index: 1000; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.ws-toast { padding: 13px 16px; border: 1px solid #cbd7f5; border-radius: 11px; color: #274b9d; background: #fff; box-shadow: 0 12px 35px rgba(21,35,65,.16); font-size: 14px; overflow-wrap: anywhere; animation: ws-toast-in .2s ease-out; }
.ws-toast.is-error { color: #9c3333; border-color: #efcccc; }
.ws-toast.is-success { color: #126b43; border-color: #bde2cf; }
@keyframes ws-toast-in { from { opacity: 0; transform: translateY(-8px); } }

.ws-dialog { width: min(760px, calc(100vw - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 17px; color: var(--ws-text); background: var(--ws-surface); box-shadow: 0 28px 80px rgba(17,28,52,.25); overflow: auto; }
.ws-dialog.ws-dialog-lg { width: min(1040px, calc(100vw - 30px)); }
.ws-dialog::backdrop { background: rgba(15,25,44,.56); backdrop-filter: blur(3px); }
.ws-dialog-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--ws-border); background: rgba(255,255,255,.97); }
.ws-dialog-head h2 { margin: 0; }
.ws-dialog-close { width: 34px; height: 34px; border: 0; border-radius: 8px; color: var(--ws-muted); background: var(--ws-bg); font-size: 22px; line-height: 1; }
.ws-dialog-body { padding: 22px; }
.ws-dialog-body > .ws-form-actions:last-child { margin-bottom: 0; }
.ws-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin-bottom: 20px; }
.ws-detail-item { min-width: 0; }
.ws-detail-item dt { color: var(--ws-muted); font-size: 12px; }
.ws-detail-item dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.ws-translation-block { padding: 13px; border: 1px solid var(--ws-border); border-radius: 9px; background: #fafbfc; }
.ws-translation-block + .ws-translation-block { margin-top: 10px; }
.ws-translation-block p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-lesson-list { display: grid; gap: 9px; margin: 13px 0 22px; }
.ws-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--ws-border); border-radius: 10px; }
.ws-lesson-order { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; color: var(--ws-primary); background: var(--ws-primary-soft); font-weight: 700; }
.ws-lesson-info { min-width: 0; flex: 1; }
.ws-lesson-info strong { display: block; overflow-wrap: anywhere; }
.ws-file-note { margin-top: 7px; color: var(--ws-muted); font-size: 12px; overflow-wrap: anywhere; }
.ws-feedback-list { display: grid; gap: 11px; }
.ws-feedback-item { padding: 16px 18px; border: 1px solid var(--ws-border); border-radius: 11px; background: #fff; }
.ws-feedback-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.ws-feedback-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ws-feedback-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--ws-muted); font-size: 12px; }

.ws-article-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ws-border); border-radius: 12px; overflow: hidden; }
.ws-article-pane { min-width: 0; padding: 20px; background: #fff; }
.ws-article-pane + .ws-article-pane { border-left: 1px solid var(--ws-border); }
.ws-article-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; margin-bottom: 16px; }
.ws-article-pane-head h3 { margin: 0; }
.ws-article-pane textarea { min-height: 340px; }
.ws-language-tabs { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--ws-bg); }
.ws-language-tab { padding: 5px 10px; border: 0; border-radius: 6px; color: var(--ws-muted); background: transparent; font-size: 12px; }
.ws-language-tab.is-active { color: var(--ws-primary); background: #fff; box-shadow: 0 1px 4px rgba(20,35,65,.09); }
.ws-direction-note { color: var(--ws-muted); font-size: 12px; }
.ws-article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ws-article-card { padding: 16px; border: 1px solid var(--ws-border); border-radius: 11px; background: #fff; }
.ws-article-card p { display: -webkit-box; margin: 8px 0 12px; overflow: hidden; color: var(--ws-muted); font-size: 13px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-line; }
.ws-settings-group { padding: 20px 0; border-bottom: 1px solid var(--ws-border); }
.ws-settings-group:first-child { padding-top: 0; }
.ws-settings-group:last-child { border-bottom: 0; }
.ws-settings-group > h3 { margin-bottom: 5px; }
.ws-settings-group > p { margin-bottom: 17px; color: var(--ws-muted); font-size: 13px; }
.ws-integration-panel { margin-bottom: 18px; }
.ws-integration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.ws-integration-item { padding: 13px; border: 1px solid var(--ws-border); border-radius: 10px; background: #fafbfc; }
.ws-integration-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-integration-missing { margin: 8px 0 0; color: var(--ws-muted); font-size: 12px; overflow-wrap: anywhere; }
.ws-integration-note { margin: 15px 0 0; color: var(--ws-muted); font-size: 12px; }
.ws-badge.is-ready { color: #116a42; background: #e6f5ed; }
.ws-badge.is-missing, .ws-badge.is-failed { color: #a93131; background: #fdecec; }
.ws-badge.is-processing { color: #92530b; background: #fff2d9; }

@media (max-width: 1100px) {
  .ws-stats { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
  .ws-dashboard-grid { grid-template-columns: 1fr; }
  .ws-form-grid.ws-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ws-sidebar { display: none; }
  .ws-mobile-nav { display: block; }
  .ws-mobile-nav select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--ws-border); border-radius: 9px; color: var(--ws-text); background: #fff; }
  .ws-content { padding-top: 20px; }
}
@media (max-width: 720px) {
  .ws-topbar { min-height: 62px; }
  .ws-user .ws-user-name { display: none; }
  .ws-section-head { flex-direction: column; }
  .ws-section-actions { width: 100%; }
  .ws-form-grid, .ws-form-grid.ws-three { grid-template-columns: 1fr; }
  .ws-switch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-article-editor { grid-template-columns: 1fr; }
  .ws-article-pane + .ws-article-pane { border-left: 0; border-top: 1px solid var(--ws-border); }
  .ws-article-pane textarea { min-height: 240px; }
  .ws-detail-grid { grid-template-columns: 1fr; }
  .ws-resource-top { flex-direction: column; }
  .ws-dialog-body, .ws-dialog-head { padding-left: 17px; padding-right: 17px; }
  .ws-toolbar-note { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  .ws-content { padding-left: 13px; padding-right: 13px; }
  .ws-card { padding: 17px; }
  .ws-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ws-stat { padding: 15px; }
  .ws-stat-value { font-size: 23px; }
  .ws-topbar { padding-left: 14px; padding-right: 14px; }
  .ws-brand-sub { display: none; }
  .ws-btn { padding-left: 12px; padding-right: 12px; }
  .ws-switch-grid { grid-template-columns: 1fr; }
  .ws-toast-stack { right: 12px; top: 12px; width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-body *, .ws-body *::before, .ws-body *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
