:root { font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #172c31; background: #eef3f2; --ink: #172c31; --muted: #687a7d; --line: #d9e3e1; --surface: #fff; --accent: #d66b4b; --soft: #f8f1ec; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #fff 0 16rem, transparent 38rem), #eef3f2; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.admin-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.panel { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(23,44,49,.08); padding: 24px; }
.login-panel { max-width: 440px; margin: 11vh auto 0; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -.04em; } h2 { margin-bottom: 0; font-size: 1.35rem; }
.login-panel > p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }
.stack-form, .upload-form { display: grid; gap: 14px; } label { display: grid; gap: 7px; color: var(--muted); font-size: .84rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; color: var(--ink); background: #fff; }
.password-input-wrap { position: relative; display: flex; align-items: center; }
.password-input-wrap input { min-height: 46px; padding-right: 52px; }
.password-visibility { position: absolute; right: 3px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #53686b; background: transparent; border: 0; border-radius: 6px; }
.password-visibility:hover { color: var(--ink); background: #eef3f2; }
.password-visibility:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.password-visibility svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-visibility [data-eye-closed] { display: none; }
.password-visibility[aria-pressed="true"] [data-eye-open] { display: none; }
.password-visibility[aria-pressed="true"] [data-eye-closed] { display: block; }
.upload-form input, .upload-form select, .upload-form textarea { min-height: 52px; font-size: .95rem; }
.upload-form input[type="file"] { width: 100%; padding: 10px; font-size: 14px; cursor: pointer; }
.upload-form textarea { min-height: 84px; resize: vertical; }
.primary-button, .ghost-button { border-radius: 7px; padding: 11px 15px; font-weight: 800; } .primary-button { border: 0; color: #fff; background: var(--accent); } .ghost-button { border: 1px solid var(--line); color: var(--ink); background: #fff; } button:disabled { cursor: wait; opacity: .58; }
.form-error, .status-text { min-height: 1.2em; color: #b54838; font-size: .86rem; }
.hidden { display: none !important; }
.dashboard-header, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; } .dashboard-header { margin-bottom: 28px; } .dashboard-language { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .78rem; } .language-button { border: 0; padding: 3px; color: var(--muted); background: transparent; font-size: .75rem; font-weight: 800; } .language-button.active { color: var(--accent); } .header-reset-form { display: grid; grid-template-columns: minmax(150px, 220px) auto; gap: 8px; align-items: end; } .header-reset-form label { font-size: .72rem; } .header-reset-form input { min-height: 40px; padding: 8px 10px; } .header-reset-form .status-text { grid-column: 1 / -1; margin: 0; min-height: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; } .stat-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); } .stat-card span { display: block; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .stat-card strong { display: block; margin-top: 6px; font-size: 1.55rem; } .alert-stat { background: var(--soft); }
.stat-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-heading .small-button { flex: 0 0 auto; padding: 4px 8px; }
.stat-reset-status { min-height: 1.2em; margin: 4px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 20px; } .panel-heading { margin-bottom: 22px; }
.upload-form { width: 100%; max-width: 450px; margin: 0 auto 18px; display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.media-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .section-box { height: 400px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfdfc; } .section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .section-title h3 { margin: 0; font-size: 1rem; } .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .media-item, .message-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fff; } .media-item { display: grid; gap: 10px; min-width: 0; } .image-box { width: 100%; max-width: 350px; margin: auto; } .image-box img, .image-box video { display: block; width: 100%; max-width: 100%; height: auto; max-height: 180px; object-fit: contain; border-radius: 6px; background: #dfe9e8; } .media-item strong, .media-meta, .media-category, .media-description, .message-meta { word-break: break-word; } .media-meta, .message-meta { color: var(--muted); font-size: .78rem; } .media-category, .media-description { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; } .media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; } .small-button { border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; color: var(--ink); background: #fff; font-size: .78rem; } .danger-button { color: #b54838; }
.contact-section { height: 400px; overflow-y: auto; } .message-list { display: block; } .table-wrap { width: 100%; overflow-x: auto; } .message-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .86rem; } .message-table th, .message-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; word-break: break-word; line-height: 1.45; } .message-table th:nth-child(1) { width: 16%; } .message-table th:nth-child(2) { width: 22%; } .message-table th:nth-child(3) { width: 30%; } .message-table th:nth-child(4) { width: 15%; } .message-table th:nth-child(5) { width: 9%; } .message-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #fbfdfc; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; } .message-table tr.unread { background: #fff8f4; } .message-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-table-wrap { max-height: 520px; overflow: auto; } .media-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .86rem; } .media-table th, .media-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; word-break: break-word; line-height: 1.4; } .media-table th { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #fbfdfc; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; } .table-thumbnail { width: 74px; height: 54px; overflow: hidden; border-radius: 6px; background: #dfe9e8; } .table-thumbnail img, .table-thumbnail video { display: block; width: 100%; height: 100%; object-fit: cover; }
.upload-help { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; } .upload-status { margin: 0; } .upload-progress { width: 100%; height: 8px; accent-color: var(--accent); }
.profile-current { display: grid; min-height: 80px; place-items: center; margin-bottom: 16px; } .profile-current img { display: block; width: min(100%, 240px); max-height: 160px; object-fit: cover; border-radius: 8px; background: #dfe9e8; }
.edit-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 12px; color: var(--ink); box-shadow: 0 24px 70px rgba(23,44,49,.24); } .edit-dialog::backdrop { background: rgba(23,44,49,.35); } .edit-form { display: grid; gap: 16px; padding: 24px; } .edit-form .panel-heading { margin-bottom: 4px; } .edit-actions { display: flex; justify-content: flex-end; gap: 10px; }
.badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; color: #fff; background: var(--accent); font-size: .76rem; vertical-align: middle; }
.dashboard-pricing-link { color: var(--ink); text-decoration: none; white-space: nowrap; }
.reset-panel { margin-top: 18px; display: grid; grid-template-columns: 1fr 2fr; gap: 22px; align-items: start; } .reset-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
@media (max-width: 900px) {
  .admin-shell { width: min(100% - 24px, 1180px); }
  .dashboard-header { align-items: stretch; flex-wrap: wrap; }
  .dashboard-header > div:first-child { flex: 1 1 100%; }
  .dashboard-language { margin-left: auto; }
  .header-reset-form { flex: 1 1 320px; }
  .dashboard-header > .ghost-button { align-self: end; }
  .contact-section { height: auto; max-height: 440px; }
}
@media (max-width: 820px) {
  .stats-grid, .reset-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-form, .reset-form { grid-template-columns: 1fr 1fr; }
  .upload-form button, .reset-form button { grid-column: 1 / -1; }
  .panel { padding: 20px; }
  .panel-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .admin-shell { width: min(100% - 16px, 1180px); padding-top: 16px; }
  .panel { padding: 16px; border-radius: 10px; }
  .dashboard-header { gap: 10px; margin-bottom: 18px; }
  .dashboard-header h1 { font-size: 2rem; }
  .dashboard-language, .header-reset-form, .dashboard-header > .ghost-button { width: 100%; margin-left: 0; }
  .header-reset-form { grid-template-columns: 1fr auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card span { white-space: normal; }
  .upload-form, .reset-form { grid-template-columns: 1fr; }
  .upload-form button, .reset-form button { grid-column: auto; }
  .media-table-wrap { max-height: none; }
  .media-table { min-width: 640px; }
  .media-table th, .media-table td { padding: 9px 7px; }
  .table-thumbnail { width: 58px; height: 46px; }
  .edit-form { padding: 18px; }
}
