/* ============ 全局设计系统（清爽透明 · 商务蓝主题） ============ */
:root {
  --primary: #1677ff;
  --primary-dark: #0b5fd9;
  --primary-light: #e8f1ff;
  --success: #16a34a;
  --success-light: #e8f7ee;
  --warning: #d97706;
  --warning-light: #fdf3e3;
  --danger: #dc2626;
  --danger-light: #fdeaea;
  --info: #0891b2;
  --info-light: #e0f6fa;
  --gray-900: #1f2937;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --bg: #eef3fb;
  --card: rgba(255, 255, 255, .82);
  --card-solid: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
  --sidebar-w: 232px;
  --blur: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(22, 119, 255, .16), transparent 60%),
    radial-gradient(800px 420px at -10% 30%, rgba(8, 145, 178, .12), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(22, 119, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}
textarea { resize: vertical; min-height: 72px; }
.password-eye { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:32px; height:32px; padding:5px; border:0; border-radius:8px; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.password-eye:hover,.password-eye.is-active { background:var(--color-primary-lighter); }
.password-eye img { width:20px; height:20px; object-fit:contain; opacity:.68; }
.password-eye.is-active img { opacity:1; }
label { font-size: 13px; color: var(--gray-700); font-weight: 500; display: block; margin-bottom: 6px; }
label .opt { color: var(--gray-400); font-weight: 400; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 8px 16px; font-size: 14px; cursor: pointer;
  transition: all .15s; white-space: nowrap; user-select: none;
  background: var(--gray-100); color: var(--gray-700);
}
.btn:hover { background: var(--gray-200); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fca5a5; }
.btn-danger:hover { background: #a8101a; color: #fff; border-color: #a8101a; }
.btn-ghost { background: transparent; color: var(--gray-500); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }
.btn-sm { padding: 4px 10px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #12863e; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: rgba(15, 26, 46, .82);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: #cbd5e1;
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 30;
}
.sidebar .brand {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 10px 16px;
  color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .2px; text-align: center; line-height: 1.25;
}
.sidebar .brand .logo {
  width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #4f9dff);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; flex-shrink: 0;
}
.sidebar .brand img.logo { background: rgba(255,255,255,.95); object-fit: contain; padding: 4px; }
.sidebar .nav { flex: 1; padding: 8px 10px; overflow-y: auto; }
.sidebar .nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; margin-bottom: 2px; border-radius: 8px;
  color: #cbd5e1; font-size: 14px; transition: all .15s;
}
.sidebar .nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav a.active { background: var(--primary); color: #fff; }
.sidebar .nav a .ico { width: 18px; text-align: center; flex-shrink: 0; display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,.85); }
.sidebar .nav a .ico .ocean-nav-icon { width:24px; height:24px; object-fit:contain; display:block; filter:drop-shadow(0 1px 2px rgba(0,31,75,.18)); }
.sidebar .foot { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #94a3b8; }
.sidebar .foot .user { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sidebar .foot .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.avatar-img { object-fit: cover; border: 1px solid rgba(255,255,255,.35); }
.bind-email-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bind-email-row b { margin-right: auto; word-break: break-all; }
.file-pick span { display: inline-block; }

/* 个人中心：左侧摘要 + 右侧分节（非卡片方块） */
.profile-wrap { display: flex; gap: 28px; align-items: flex-start; }
.profile-side { flex: 0 0 210px; }
.profile-me { background: linear-gradient(160deg, #f6f9ff, #eef3fb); border-radius: 14px; padding: 22px 18px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.me-avatar { position: relative; width: 92px; height: 92px; margin-bottom: 6px; }
.me-avatar img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); background: #e9eef6; display: block; }
.me-avatar .file-pick { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); }
.me-avatar .file-pick span { display: inline-block; background: var(--primary); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 20px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); }
.me-avatar .file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.me-hint { font-size: 10.5px; line-height: 1.4; margin-top: 4px; max-width: 170px; color: var(--gray-400); white-space: nowrap; }
.me-name { font-size: 15px; color: var(--gray-900); }
.me-mail { font-size: 12px; color: var(--gray-500); word-break: break-all; max-width: 180px; }
.me-tier { font-size: 12px; color: var(--primary); background: rgba(59,113,202,.08); padding: 3px 10px; border-radius: 20px; margin-top: 2px; }
.profile-main { flex: 1; min-width: 0; padding: 0 24px; }
.p-sec { padding: 18px 0 20px; border-bottom: 1px dashed var(--gray-200); }
.p-sec:last-child { border-bottom: none; }
.p-sec h3 { font-size: 15px; color: var(--gray-800); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.p-sec h3::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--primary); }
.p-form { max-width: 460px; }
.p-form-wide { max-width: 780px; }
/* 个人中心表单横排（基本信息 4 列 / 修改密码 3 列 / 密保 2 列） */
.p-form-grid { display: grid; gap: 12px 14px; }
.p-form-grid .form-item { min-width: 0; }
.p-form-grid .form-item input, .p-form-grid .form-item select { width: 100%; box-sizing: border-box; }
.p-form-grid-4 { grid-template-columns: repeat(4, 1fr); }
.p-form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.p-form-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .p-form-grid-4, .p-form-grid-3 { grid-template-columns: repeat(2, 1fr); } .p-form-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .p-form-grid-4, .p-form-grid-3, .p-form-grid-2 { grid-template-columns: 1fr; } }
.p-form-sub { background: #f8fafd; border-radius: 12px; padding: 14px; }
.p-form-title { font-size: 13.5px; font-weight: 600; color: var(--gray-800); margin-bottom: 6px; }
/* 绑定表单展开提示：淡蓝高亮闪烁，避免用户没发现下方展开了表单 */
.alt-flash { animation: altFlash 1.4s ease 1; border-radius: 12px; }
@keyframes altFlash { 0% { background: rgba(59, 130, 246, 0.22); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); } 100% { background: transparent; box-shadow: none; } }
.info-list { max-width: 640px; }
@media (max-width: 767px) { .profile-wrap { flex-direction: column; } .profile-side { flex: none; width: 100%; } .profile-main { width: 100%; padding: 0 12px; } .profile-me { flex-direction: row; text-align: left; gap: 14px; align-items: center; padding: 16px; } .me-avatar { margin-bottom: 0; flex-shrink: 0; } .me-hint { display: none; } .me-mail { max-width: none; } }
.sidebar .foot .uinfo { min-width: 0; }
.sidebar .foot .uinfo .uname { color: #e5e7eb; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .foot .uinfo .utier { color: #94a3b8; font-size: 11px; }
.sidebar .foot .actions { display: flex; gap: 6px; }
.sidebar .foot .actions .btn { background: rgba(255,255,255,.08); color: #cbd5e1; padding: 5px 10px; font-size: 12px; }
.sidebar .foot .actions .btn:hover { background: rgba(255,255,255,.16); color: #fff; }

.main { flex: 1; margin-left: var(--sidebar-w); padding: 24px 28px 48px; min-width: 0; }

/* 页面头部 */
.page-head { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; font-weight: 700; color: var(--gray-900); }
.page-head .sub { color: var(--gray-500); font-size: 13px; margin-top: 2px; }

/* 卡片 */
.card {
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.card + .card { margin-top: 0; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* 统计卡 */

.dash-two-col { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
@media (max-width: 820px){ .dash-two-col { grid-template-columns:1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
}
.stat-card .stat-ic { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; object-fit: contain; pointer-events: none; }
.stat-card .num { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat-card .lbl { color: var(--gray-500); font-size: 13px; margin-top: 4px; white-space:nowrap; }
.stat-card.c-red .num { color: var(--danger); }
.stat-card.c-orange .num { color: var(--warning); }
.stat-card.c-green .num { color: var(--success); }
.stat-card.c-blue .num { color: var(--primary); }
.stat-card.c-cyan .num { color: var(--info); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left; padding: 10px 12px; color: var(--gray-500); font-weight: 600; font-size: 12.5px;
  border-bottom: 1px solid var(--gray-200); white-space: nowrap; background: var(--gray-50);
}
td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:hover td { background: var(--gray-50); }
td .muted { color: var(--gray-400); font-size: 12.5px; }
td .mono { font-variant-numeric: tabular-nums; }

/* 徽章 */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-normal { background: var(--gray-100); color: var(--gray-700); }
.badge-expiring { background: var(--warning-light); color: var(--warning); }
.badge-expired { background: var(--danger-light); color: var(--danger); }
.badge-terminated { background: var(--gray-100); color: var(--gray-500); text-decoration: line-through; }
.badge-settled { background: var(--success-light); color: var(--success); }
.badge-repaying { background: var(--primary-light); color: var(--primary); }
.badge-overdue { background: var(--danger-light); color: var(--danger); }
.badge-pending { background: var(--gray-100); color: var(--gray-500); }
.badge-free { background: var(--gray-100); color: var(--gray-600); }
.badge-pro { background: var(--primary-light); color: var(--primary); }
.badge-team { background: var(--info-light); color: var(--info); }
.badge-active { background: var(--success-light); color: var(--success); }
.badge-frozen { background: var(--danger-light); color: var(--danger); }
.badge-paid { background: var(--success-light); color: var(--success); }
.badge-pending2 { background: var(--warning-light); color: var(--warning); }
.badge-refunded { background: var(--gray-100); color: var(--gray-500); }

/* 工具栏 */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .spacer { flex: 1; }
.toolbar input, .toolbar select { width: auto; min-width: 130px; }
.toolbar .search { width: 220px; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.perm-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.perm-line input[type=checkbox] { width: auto; flex: 0 0 auto; padding: 0; margin: 0; }
.form-item { margin-bottom: 4px; }
.hint { color: var(--gray-400); font-size: 12px; margin-top: 4px; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 300;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto;
}
.modal {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 760px; margin-bottom: 40px; animation: modalIn .18s ease;
}
.modal.sm { max-width: 440px; }
.modal.lg { max-width: 920px; }
@keyframes modalIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--gray-100); }
.modal-head h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--gray-400); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--gray-700); }
.modal-body { padding: 20px 22px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; }
.billing-purchase-note { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--gray-100); border-radius: 8px; background: #f6fbff; color: var(--gray-700); font-size: 13px; line-height: 1.6; }
.billing-term-dialog p { margin: 0; line-height: 1.7; }
.billing-term-dialog-note { margin-top: 12px !important; padding: 12px 14px; border-radius: 8px; background: #f6fbff; color: var(--gray-700); font-size: 13px; }

/* Toast */
#toast-root { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--gray-900); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13.5px;
  box-shadow: var(--shadow-lg); animation: toastIn .2s ease; max-width: 340px;
}
.toast.ok { background: var(--success); }
.toast.err { background: var(--danger); }
.toast.warn { background: var(--warning); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* New in-app messages, available throughout the signed-in Web app. */
#notification-preview-root {
  position: fixed; top: 68px; right: 18px; z-index: 190;
  display: grid; gap: 10px; width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
.notification-preview {
  display: grid; gap: 5px; padding: 13px 16px; border: 1px solid #cce9f4;
  border-left: 4px solid var(--info); border-radius: 12px;
  background: #fff; color: var(--gray-900); box-shadow: var(--shadow-lg);
  text-decoration: none; pointer-events: auto; animation: toastIn .2s ease;
}
.notification-preview:hover, .notification-preview:focus-visible {
  color: var(--gray-900); border-color: var(--primary); outline: none;
}
.notification-preview strong { font-size: 14px; line-height: 1.35; }
.notification-preview span {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; color: var(--gray-700); font-size: 13px; line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 空状态 */
.empty { text-align: center; color: var(--gray-400); padding: 44px 0; font-size: 13.5px; }
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* 分组卡片列表 */
.group-title { font-size: 15px; font-weight: 600; margin: 22px 0 10px; color: var(--gray-700); display: flex; align-items: center; gap: 8px; }
.group-title .cnt { background: var(--primary-light); color: var(--primary); border-radius: 12px; padding: 0 8px; font-size: 12px; }

/* 密保区块 */
.secret-box { background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: 10px; padding: 14px 16px; margin-top: 10px; }
.secret-box .title { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

/* 识别结果 */
.recog-box { background: var(--warning-light); border: 1px solid #fcd9a8; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 13px; color: #92400e; }
.recog-box b { display: block; margin-bottom: 4px; }

/* 文件列表 */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--gray-50);
  border-radius: 8px; border: 1px solid var(--gray-100); font-size: 13px;
}
.file-item .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .fsize { color: var(--gray-400); font-size: 12px; }

/* 计划卡片 */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.plan-card { border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px; text-align: center; position: relative; background: #fff; }
.plan-card.hot { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan-card .pname { font-weight: 700; font-size: 16px; }
.plan-card .pprice { font-size: 30px; font-weight: 700; margin: 8px 0 2px; }
.plan-card .pcurr { color: var(--gray-400); font-size: 13px; margin-bottom: 12px; }
.plan-card ul { list-style: none; text-align: left; margin: 12px 0 16px; font-size: 13px; color: var(--gray-600); }
.plan-card ul li { padding: 4px 0; display: flex; gap: 6px; align-items: flex-start; }
.plan-card ul li::before { content: "✓"; color: var(--success); font-weight: 700; }
.plan-card .current-tag { position: absolute; top: 12px; right: 12px; }

/* 后台 */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--gray-200); margin-bottom: 18px; flex-wrap: wrap; }
.admin-tabs button {
  border: none; background: none; padding: 9px 16px; font-size: 14px; cursor: pointer;
  color: var(--gray-500); border-bottom: 2px solid transparent; font-weight: 500;
}
.admin-tabs button.active { color: #1976d2; border-bottom: 3px solid #1976d2 !important; font-weight: 700; padding-bottom: 8px; }
.mini-bar { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.mini-bar .bar { flex: 1; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.mini-bar .bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--gray-500); }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.bar-row .bl { width: 110px; font-size: 12.5px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bt { flex: 1; background: var(--gray-100); border-radius: 4px; height: 18px; overflow: hidden; }
.bar-row .bt i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }
.bar-row .bv { width: 44px; text-align: right; font-size: 12.5px; color: var(--gray-700); font-variant-numeric: tabular-nums; }

/* 登录页 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f1f3d 0%, #123a63 55%, #1769a0 100%); padding: 20px; }
.auth-card {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 30px 30px;
}
.auth-card .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-card .brand .logo { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), #4f9dff); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; }
.auth-card .brand .bname { font-weight: 700; font-size: 17px; color: var(--gray-900); }
.auth-card .brand .bsub { font-size: 12px; color: var(--gray-400); }
.auth-card .form-item { margin-bottom: 14px; }
.auth-agreement-row { display:flex; align-items:flex-start; gap:8px; margin:10px 0 14px; color:var(--gray-600); font-size:13px; line-height:1.6; cursor:pointer; }
.auth-agreement-row input { flex:0 0 auto; width:16px; height:16px; margin:2px 0 0; accent-color:var(--primary); }
.auth-agreement-row span { display:block; }
.auth-agreement-row a { color:var(--primary); text-decoration:underline; text-underline-offset:2px; }
.auth-card .switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--gray-500); }
.auth-lang { position: fixed; top: 16px; right: 20px; z-index: 10; }
.locale-switch { display:block; width:100%; min-width:0; color:#526174; background:rgba(255,255,255,.72); border:1px solid transparent; border-radius:7px; padding:5px 20px 5px 6px; font-size:12px; line-height:1.4; cursor:pointer; box-shadow:none; }
.locale-switch option { color:#17324a; background:#fff; }
.locale-switch:hover { border-color:#c4d8ed; background:#fff; }
.locale-switch:focus { border-color:#9abfe8; background:#fff; outline:2px solid rgba(22,119,255,.18); }
.auth-lang .locale-switch { width:112px; }
.sidebar .foot .actions .locale-switch { flex:0 0 112px; width:112px; min-width:0; }
.sidebar .foot .actions #logout-btn { flex:0 0 auto; }

/* 杂项 */
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gap-2 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.muted { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; }

/* iPad 宽度（≤1400）收窄侧栏：电脑宽屏保持 232px */
@media (max-width: 1400px) { :root { --sidebar-w: 176px; } }

/* 响应式 */
@media (max-width: 767px) {
  .sidebar { width: 64px; }
  .sidebar .brand .btext, .sidebar .nav a span, .sidebar .foot .uinfo, .sidebar .foot .actions { display: none; }
  .main { margin-left: 64px; padding: 18px 14px 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 新增：个人中心 / 备忘录 / 找回密码 / 首页 Landing ============ */

/* 通用网格（弹窗字段横向排布） */
.grid { display: grid; }

/* 两栏布局 */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.grid-2 .card { margin-bottom: 0; }

/* 信息行 */
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--gray-200); font-size: 13.5px; }
.info-row span { color: var(--gray-500); }
.info-row b { font-weight: 600; word-break: break-all; text-align: right; }

/* 群发富文本工具栏 */
.bc-tb { border: 1px solid #d7dee8; background: #fff; border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; color: var(--gray-700); line-height: 1.4; }
.bc-tb:hover { background: #eef3fb; border-color: #b9c6dc; }
#bc-editor img { max-width: 100%; border-radius: 6px; }

/* 英文界面日期占位（覆盖浏览器中文"年/月/日"） */
.date-ph-wrap { position: relative; }
.date-ph-wrap input[type=date] { position: relative; z-index: 1; }
.date-ph-wrap input[type=date]:not(.has-val) { background: transparent; }
.date-ph-wrap input[type=date]:not(.has-val)::-webkit-datetime-edit { color: transparent; }
.date-ph-wrap input[type=date]:not(.has-val)::-webkit-calendar-picker-indicator { opacity: 1; }
.date-ph { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; pointer-events: none; z-index: 0; }

/* 找回密码 */
.forgot-row { text-align: center; margin-top: 12px; font-size: 13px; }

/* 登录卡片右上角扫码切换入口：二维码与账号登录双向切换。 */
.auth-card { position: relative; overflow: hidden; }
.auth-qr-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #738496;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.auth-qr-corner svg { width: 30px; height: 30px; fill: currentColor; }
.auth-qr-corner:hover { color: #087cc8; background: #e9f7ff; }
.auth-qr-corner:active { transform: scale(.94); }
.auth-qr-corner:focus-visible { outline: 3px solid #79cfff; outline-offset: 2px; }
.auth-card.qr-mode .brand { display: none !important; }
.auth-card.qr-mode #auth-form { padding-top: 30px; }
.qr-tip-scanned { color: #16a34a !important; font-weight: 600; }
.plan-card .plan-feature-off { color: #94a3b8; }
.plan-card ul li.plan-feature-off::before { content: "—"; color: #94a3b8; }
@media (prefers-reduced-motion: reduce) {
  .auth-qr-corner { transition: none; }
}
.radio-row { display: flex; gap: 20px; }
.radio { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--gray-700); cursor: pointer; }
.radio input { width: auto; }

/* 第三方登录 */
.third-login { margin-top: 16px; }
.third-divider { text-align: center; color: var(--gray-400); font-size: 12px; margin-bottom: 10px; position: relative; }
.third-divider::before, .third-divider::after { content: ""; display: inline-block; width: 56px; height: 1px; background: var(--gray-200); vertical-align: middle; margin: 0 10px; }

/* 备忘录 */
.memo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.memo-card {
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .12s, box-shadow .12s;
}
.memo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.memo-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.memo-card-head b { font-size: 14.5px; color: var(--gray-900); word-break: break-all; }
.memo-card-head .muted { font-size: 11.5px; white-space: nowrap; }
.memo-card p { font-size: 13px; color: var(--gray-600); white-space: pre-wrap; word-break: break-word; flex: 1; min-height: 40px; }
.memo-card-ops { display: flex; justify-content: flex-end; gap: 6px; }

/* 首页 Landing */
.home { min-height: 100vh; }
.home-nav {
  position: sticky; top: 0; z-index: 40;
  display: block;
  padding: 6px 26px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.6);
}
@media (max-width: 780px) {
  .home-nav-l b { display: none; }
}
.home-nav-l { display: flex; align-items: center; gap: 10px; color: var(--gray-900); font-size: 16px; }
.home-nav-logo { width: 60px; height: 60px; border-radius: 9px; object-fit: contain;  padding: 3px; border: none; outline: none; box-shadow: none; }
.home-nav a:focus, .home-nav a:active { outline: none; }
.sidebar a:focus, .sidebar a:active { outline: none; }
.home-nav a:focus img { outline: none; }
.home-nav-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.home-nav-link { color: var(--gray-500); font-size: 13.5px; margin-right: 4px; }
.home-nav-link:hover { color: var(--primary); }

.home-hero {
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(22,119,255,.18), transparent 55%),
    linear-gradient(135deg, #0f1f3d 0%, #123a63 60%, #1769a0 100%);
  color: #fff; text-align: center; padding: 64px 20px 72px;
}
.home-hero-logo { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); margin-bottom: 18px; }
.home-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: .5px; margin-bottom: 12px; }
.home-hero-desc { font-size: 16px; color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 26px; line-height: 1.8; }
.home-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.home-hero-cta .btn { border-radius: 24px; }
.home-hero-cta .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.home-hero-cta .btn-ghost:hover { background: rgba(255,255,255,.18); }
.home-hero-sub { font-size: 13px; color: rgba(255,255,255,.65); }

.home-sec { padding: 52px 26px 40px; max-width: 1080px; margin: 0 auto; }
.home-sec h2 { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 28px; color: var(--gray-900); }
.home-sec-alt { background: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.7); border-bottom: 1px solid rgba(255,255,255,.7); }

.home-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.home-feat {
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; font-size: 15px; font-weight: 600; color: var(--gray-800);
  transition: transform .12s, box-shadow .12s;
}
.home-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-feat-ico { font-size: 34px; }

.home-step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.home-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px; box-shadow: var(--shadow); padding: 20px 18px;
}
.home-step-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #4f9dff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px;
}
.home-step-body { display: flex; flex-direction: column; gap: 4px; }
.home-step-body b { font-size: 15px; color: var(--gray-900); }
.home-step-body span { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

.home-env-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.home-env-card {
  background: var(--card);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.home-env-ico { font-size: 30px; }
.home-env-card b { font-size: 15px; color: var(--gray-900); }
.home-env-card span { font-size: 13px; color: var(--gray-500); line-height: 1.6; }

.home-dl { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.home-dl-icon { width: 120px; height: 120px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.home-dl-btns { display: flex; flex-direction: column; gap: 12px; }
.home-dl-btns .btn { min-width: 220px; justify-content: center; }

.home-foot {
  text-align: center; padding: 28px 20px 40px; font-size: 13px; color: var(--gray-500);
  border-top: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.4);
}
.home-foot-links { margin-top: 6px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ===== 凭证缩略图网格（2排4列/8个每页） ===== */
.file-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 4px; }
.file-tile { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.file-thumb { position: relative; height: 96px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#f5f7fb,#eef3fa); cursor: pointer; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-pdf { font-size: 34px; }
.file-thumb-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: rgba(22,60,110,.25); opacity: 0; transition: opacity .15s; }
.file-thumb:hover .file-thumb-mask { opacity: 1; }
.file-tile-meta { padding: 7px 9px 5px; }
.file-tile-name { font-size: 12.5px; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.file-tile-name .fn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.file-rename { flex-shrink: 0; width: 20px; height: 20px; border: none; background: transparent; cursor: pointer; font-size: 12px; opacity: .55; border-radius: 5px; padding: 0; }
.file-rename:hover { opacity: 1; background: var(--gray-100); }
.file-tile-date { font-size: 11.5px; color: var(--gray-400); margin-top: 1px; display: flex; align-items: center; gap: 4px; }
.file-tile-date .file-dl { margin-left: auto; width: 24px; height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; background: var(--gray-50); color: var(--primary); text-decoration: none; flex-shrink: 0; }
.file-tile-date .file-dl:hover { background: var(--primary); color: #fff; }
.file-tile-ops { padding: 0 9px 8px; }
.file-tile-ops .file-del { width: 100%; height: 24px; border: 1px solid rgba(220,60,70,.35); border-radius: 6px; background: rgba(220,60,70,.05); color: var(--danger); font-size: 11.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; }
.file-tile-ops .file-del:hover { background: var(--danger); color: #fff; }
.file-del { width: 26px; height: 26px; border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; background: rgba(255,77,79,.12); color: var(--danger); box-shadow: var(--shadow-sm); }
.file-del:hover { background: var(--danger); color: #fff; }
@media (max-width: 767px) { .file-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 大图查看器（lightbox） ===== */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 20, 40, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 30px; }
.prompt-layer { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; }
.lightbox-inner { max-width: min(1100px, 92vw); max-height: 92vh; display: flex; flex-direction: column; gap: 10px; }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; gap: 20px; }
.lightbox-head .modal-close { color: #fff; background: rgba(255,255,255,.15); }
.lightbox-inner img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: 12px; box-shadow: var(--shadow-lg); object-fit: contain; }

/* ===== 日期分组输入 ===== */
.date-group { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; padding: 3px 8px; }
.date-group input { border: 0; padding: 4px 0; width: 44px; text-align: center; background: transparent; border-radius: 0; }
.date-group input.dg-y { width: 56px; }
.date-group input:focus, .date-group select:focus { box-shadow: none; border-color: transparent; }
.date-group select { border: 0; padding: 4px 0; width: 56px; text-align: center; background: transparent; border-radius: 0; color: #334155; font-size: 13px; }
.date-group select.dg-y { width: 76px; }
.dg-sep { color: var(--gray-400); font-size: 13px; }

/* Keep the schedule date and hour/minute controls together in the dialog. */
.sched-action-time-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.sched-action-time-row .date-group { flex: 0 0 auto; }
.sched-action-time-row > select { flex: 0 0 60px; width: 60px; min-width: 0; padding-left: 8px; padding-right: 4px; }
.sched-time-separator { flex: 0 0 auto; line-height: 34px; }
@media (max-width: 420px) {
  .sched-action-time-row { flex-wrap: wrap; }
  .sched-action-time-row .date-group { width: 100%; box-sizing: border-box; }
}

/* ===== 还款流水/凭证 删除按钮红色 ===== */
.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-sm.btn-danger { color: #fff; padding: 4px 10px; font-size: 13px; }

/* ===== 9 项新需求样式 ===== */
/* 金色皇冠（会员标记） */
.crown { font-size: 14px; margin-right: 2px; display: inline-block; filter: drop-shadow(0 0 2px rgba(255, 190, 40, .8)); }
.utier .crown { font-size: 13px; }

/* 自定义上传按钮（i18n 文件选择） */
.file-pick { cursor: pointer; user-select: none; gap: 6px; display: inline-flex; align-items: center; background: #eef2f8 !important; border: 1px solid #b8c2d6 !important; }
.file-pick .fp-name { font-weight: 400; font-size: 12px; opacity: .75; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 未设提醒 badge */
.badge-nowarn {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px;
  background: rgba(250, 173, 20, .14); color: #b45309; font-size: 11px; font-weight: 500;
  vertical-align: 1px; border: 1px solid rgba(250, 173, 20, .35);
}

/* 首页订阅价格卡 */
.home-price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.home-price-card {
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(2, 48, 100, .08);
}
.home-price-hot { border-color: rgba(250, 173, 20, .55); box-shadow: 0 12px 34px rgba(250, 173, 20, .18); transform: translateY(-6px); }
.home-price-name { font-weight: 700; font-size: 15px; }
.home-price-num { font-size: 26px; font-weight: 800; color: #0e4d9e; }
.home-price-hot .home-price-num { color: #b45309; }
.home-price-list { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 8px; }
.home-price-list li { font-size: 13px; color: #44586e; padding-left: 20px; position: relative; }
.home-price-list li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.home-price-card .btn { margin-top: auto; }

/* 年度统计 */
.stat-expense { background: linear-gradient(135deg, rgba(255, 200, 60, .16), rgba(255, 255, 255, .6)); }
.stat-big { font-size: 34px; font-weight: 800; color: #b45309; margin: 6px 0; }

@media (max-width: 860px) {
  .home-price-row { grid-template-columns: 1fr; }
  .home-price-hot { transform: none; }
}

/* 记住密码行：复选框不受全局 input width:100% 影响，文字与勾选框同行 */
.remember-row { display: flex !important; align-items: center; gap: 6px; margin: 6px 0 8px; cursor: pointer; flex-wrap: nowrap; }
.remember-row input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: 0; accent-color: var(--primary); }
.remember-row span { white-space: nowrap; }
.verify-code-row { display:flex; gap:8px; align-items:stretch; }
.verify-code-row input { flex:1; min-width:0; }
.verify-code-row .btn { flex:0 0 auto; min-width:112px; white-space:nowrap; }

.paid-row .form-item label { white-space: nowrap; font-size: 12px; }
.paid-row .form-item input, .paid-row .form-item select { width: 100%; box-sizing: border-box; }

/* 日程安排紧凑布局 */
.sched-group { margin-bottom: 16px; }
.sched-group-title { font-size: 13px; color: #888; margin: 12px 0 8px; padding-left: 4px; }
.sched-row { display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; border-radius: 10px; margin-bottom: 12px; border: 1px solid #eee; }
.sched-completed { background: #f8fafc; }
.sched-done-label { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: #edf2f7; color: #64748b; font-size: 12px; font-weight: 500; }
.sched-overdue { border-color: #ffcdd2; background: #fff5f5; }
.sched-time { text-align: center; min-width: 86px; flex-shrink: 0; }
.sched-time b { display: block; font-size: 14px; color: #245978; white-space: nowrap; }
.sched-time span { display: block; margin-top: 5px; font-size: 15px; font-weight: 700; color: #087ccb; }
.sched-completed .sched-time b,.sched-completed .sched-time span { color: #75879a; }
.sched-body { flex: 1; min-width: 0; }
.sched-title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-meta { font-size: 12px; margin-top: 2px; }
.sched-ops { display: flex; gap: 4px; flex-shrink: 0; }
.sched-ops .btn { padding: 2px 8px; font-size: 12px; }

/* 标签页下划线加深 */
.profile-tab.active, .admin-tabs button.active {
  border-bottom: 2px solid #1976d2 !important;
  font-weight: 600 !important;
}

/* 标签下划线强制加深 */
.profile-tab.active { border-bottom: 3px solid #1976d2 !important; }
.admin-tabs button.active { border-bottom: 3px solid #1976d2 !important; }

/* =========================================================
 * 2026-10 Ocean theme — mirrors the current App visual system
 * ========================================================= */
body { color: var(--color-text-primary); background:
  radial-gradient(circle at 88% 8%, rgba(0,168,198,.13), transparent 28%),
  linear-gradient(180deg,#eaf7fc 0%,#f5fbfe 52%,#eaf7fc 100%); }
.layout { background: transparent; }
.sidebar { background:
  linear-gradient(rgba(8,63,142,.20),rgba(8,63,142,.34)),
  url('/brand/auth-ocean.webp') center/cover fixed;
  border-right: 1px solid rgba(205,239,255,.45); box-shadow: 8px 0 28px rgba(5,97,168,.12); }
.sidebar .brand, .sidebar .nav a, .sidebar .foot, .sidebar .uname, .sidebar .utier { color:#fff; }
.sidebar .nav a { border-radius: 10px; margin: 3px 10px; }
.sidebar .nav a:hover { background:rgba(255,255,255,.13); }
.sidebar .nav a.active { background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.20); }
.sidebar .foot { border-top-color:rgba(255,255,255,.22); }
.main { position:relative; background:transparent; }
.main::before { content:""; display:block; height:112px; margin:-24px -28px 24px; background:
  linear-gradient(rgba(8,63,142,.20),rgba(8,63,142,.30)),
  url('/brand/auth-ocean.webp') center 42%/cover; box-shadow:0 5px 18px rgba(5,97,168,.15); }
.main.no-ocean-head::before { display:none; }
.main.no-ocean-head > .page-head { margin-top:0; min-height:0; }
.main.no-ocean-head > .page-head h1 { color:var(--gray-900); }
.main.no-ocean-head > .page-head .sub { color:var(--gray-500); }
.main.no-ocean-head > .page-head .page-head-action-label { color:var(--gray-700); text-shadow:none; }
.main.no-ocean-head .admin-page-head { margin-bottom:20px; }
.profile-wrap { display:block; }
.profile-side { width:100%; margin-bottom:0; box-shadow:none; }
.profile-main { width:100%; padding:0 24px 24px; box-sizing:border-box; }
.profile-me { flex-direction:row; flex-wrap:wrap; align-items:center; text-align:left; gap:18px; padding:18px 24px; border-radius:0; border-bottom:1px dashed var(--gray-200); }
.profile-me .me-avatar { flex:0 0 92px; margin-bottom:0; }
.profile-account { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:180px; }
.profile-me .me-mail { max-width:none; }
.profile-avatar-options { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-left:20px; }
.profile-avatar-options .default-avatars { display:flex; gap:7px; flex-wrap:wrap; }
.profile-avatar-options .me-hint { max-width:none; white-space:normal; }
.profile-avatar-options .file-pick span { cursor:pointer; }
.profile-me .file-pick,.profile-avatar-options .file-pick { background:transparent !important; border:0 !important; box-shadow:none !important; padding:0; }
.profile-avatar-options .file-pick span { display:inline-flex; padding:5px 10px; color:var(--color-primary); border:1px solid var(--color-primary); border-radius:7px; background:#fff; }
.profile-danger-zone { border:1px solid #fecaca; border-radius:10px; padding:14px 16px; margin:16px 0 24px; }
@media (max-width:767px) { .profile-me { padding:16px 12px; } .profile-avatar-options { width:100%; margin-left:0; } .profile-avatar-options .me-hint { display:block; } .profile-main { padding:0 12px 20px; } }
.main > .page-head { margin-top:-114px; min-height:88px; position:relative; z-index:1; align-items:center; }
.main > .page-head h1,.main > .page-head .sub { color:#fff; }
.page-head-action-label { font-size:13px; color:#fff; font-weight:600; text-shadow:0 1px 2px rgba(3,38,87,.28); }
.main > .page-head .btn { color:#0B2E4F; }
.main > .page-head .btn-primary { color:#fff; }
.admin-page-head { min-height:88px !important; margin-bottom:30px; align-items:flex-start !important; }
#profile-content { position:relative; z-index:1; }
#profile-content .page-head { margin-top:0; min-height:0; }
#profile-content .page-head h1 { color:var(--gray-900); }
#profile-content .page-head .sub { color:var(--gray-500); }
.customer-page-head { min-height:88px !important; align-items:flex-start !important; }
.customer-head-actions { display:flex; flex:1 1 auto; min-width:0; gap:8px; align-items:center; justify-content:flex-end; flex-wrap:nowrap; }
.customer-head-actions .btn { flex:0 0 auto; }
.customer-head-stats { flex:0 1 auto; min-width:0; color:#fff; font-size:12px; line-height:1.35; text-align:right; white-space:nowrap; text-shadow:0 1px 2px rgba(3,38,87,.3); }
@media (max-width: 1680px) {
  .customer-page-head {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }
  .customer-head-actions {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 9px 10px;
    border: 1px solid rgba(162, 216, 239, .72);
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 14px rgba(5, 97, 168, .09);
    scrollbar-width: thin;
    scrollbar-color: rgba(8, 124, 203, .38) transparent;
  }
  .customer-head-actions::-webkit-scrollbar { height: 5px; }
  .customer-head-actions::-webkit-scrollbar-thumb { background: rgba(8, 124, 203, .38); border-radius: 5px; }
  .customer-head-stats {
    flex: 0 0 auto;
    color: var(--color-text-secondary);
    text-shadow: none;
  }
}
.stat-card { min-width:0; padding-right:72px; overflow:hidden; }
.stat-card .num { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stat-card.stat-money { padding-right:56px; }
.stat-card.stat-money .stat-ic { width:38px; height:38px; right:10px; }
.stat-card.stat-money .num { display:flex; align-items:baseline; font-size:22px; text-overflow:clip; }
.stat-card .money-main { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stat-card .money-unit { flex:none; margin-left:1px; }
/* The dashboard has five KPIs; stretch those five cards across the row. */
.dashboard-kpi-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.dashboard-kpi-grid .stat-card { padding-right:18px; }
.dashboard-kpi-grid .stat-card .num { box-sizing:border-box; padding-right:54px; }
.dashboard-kpi-grid .stat-card.stat-money .num { padding-right:42px; }
.dashboard-kpi-grid .stat-card .lbl { white-space:normal; overflow-wrap:anywhere; line-height:1.35; }
@media (max-width:1100px) { .dashboard-kpi-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) { .dashboard-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.card,.profile-side,.profile-main,.sched-group,.plan-card { background:var(--color-bg-card); border-color:var(--color-border-light); box-shadow:var(--shadow-card); }
.profile-wrap { background:var(--color-bg-card); border-radius:14px; box-shadow:var(--shadow-card); overflow:hidden; }
.profile-wrap .profile-side,.profile-wrap .profile-main { box-shadow:none; }
.profile-wrap .profile-danger-zone:last-child { border:1px solid #fecaca; }
.btn-primary { background:var(--color-primary); border-color:var(--color-primary); color:#fff; }
.btn-primary:hover { background:var(--color-primary-hover); border-color:var(--color-primary-hover); }
input,select,textarea,.inp { border-color:var(--color-border); color:var(--color-text-primary); }
input:focus,select:focus,textarea:focus,.inp:focus { border-color:var(--color-primary); box-shadow:0 0 0 3px rgba(8,124,203,.12); }
.ocean-tools { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.ocean-search { display:flex; gap:10px; padding:16px; background:rgba(255,255,255,.94); border:1px solid var(--color-border); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.ocean-search input { flex:1; min-width:180px; }
.feature-sections { display:grid; gap:18px; }
.feature-section { background:var(--color-bg-card); border:1px solid var(--color-border-light); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow-card); }
.feature-grid { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:12px; margin-top:12px; }
.feature-link { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:112px; padding:14px; text-decoration:none; color:var(--color-text-regular); border-radius:var(--radius-md); }
.feature-link:hover { background:var(--color-primary-lighter); color:var(--color-primary); }
.feature-link .fi { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:var(--color-primary-lighter); color:var(--color-primary); font-size:24px; margin-bottom:9px; }
.feature-link .fi img { width:42px; height:42px; object-fit:contain; display:block; }
.customer-icon-btn { display:inline-flex; align-items:center; gap:6px; }
.customer-icon-btn img { width:22px; height:22px; object-fit:contain; flex:none; }
.ocean-page-title,.ocean-section-title { display:inline-flex; align-items:center; gap:7px; }
.ocean-page-title img { width:34px; height:34px; object-fit:contain; }
.ocean-section-title img { width:24px; height:24px; object-fit:contain; }
.btn.ocean-tab-active { background:var(--color-primary); border-color:var(--color-primary); color:#fff; }
.btn.ocean-tab-active:hover { background:var(--color-primary-hover); border-color:var(--color-primary-hover); color:#fff; }
.dashboard-message-link { position:relative; display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:6px 14px 6px 9px; border-radius:12px; color:#fff; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.24); font-size:14px; font-weight:600; text-decoration:none; }
.dashboard-message-link:hover { color:#fff; background:rgba(255,255,255,.24); }
.dashboard-message-link img { width:32px; height:32px; object-fit:contain; }
.dashboard-message-link .nav-badge { position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:10px; background:#ef4444; color:#fff; font-size:11px; line-height:18px; text-align:center; box-shadow:0 2px 6px rgba(120,20,20,.3); }
.search-result,.product-row,.routine-row { display:flex; align-items:center; gap:14px; padding:16px; margin-top:12px; background:var(--color-bg-card); border:1px solid var(--color-border-light); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.search-result .grow,.product-row .grow,.routine-row .grow { flex:1; min-width:0; }
.routine-day-grid { display:none; grid-template-columns:repeat(7,1fr); gap:8px; margin-top:8px; }
.routine-day { min-height:36px; border:1px solid var(--color-border); border-radius:18px; background:var(--color-bg-subtle); color:var(--color-text-secondary); cursor:pointer; }
.routine-day.on { border-color:var(--color-primary); background:var(--color-primary); color:#fff; font-weight:600; }
.result-kind { color:var(--color-primary); background:var(--color-primary-lighter); padding:3px 8px; border-radius:8px; font-size:12px; }
.result-summary { margin-top:4px; line-height:1.5; }
.admin-tabs { display:flex; gap:8px; overflow-x:auto; overflow-y:hidden; padding:2px 2px 8px; scrollbar-width:thin; }
.admin-tabs button { flex:0 0 auto; min-width:92px; min-height:44px; position:relative; }
.admin-tabs button:focus-visible { outline:2px solid #078ccb; outline-offset:2px; }
.admin-payment-kpis { grid-template-columns:repeat(6,minmax(0,1fr)); }
.admin-payment-kpis .stat-card { padding:16px; }
.admin-payment-kpis .stat-card .num { overflow:visible; text-overflow:clip; font-size:clamp(18px,1.5vw,26px); }
.admin-payment-kpis .stat-card .lbl { white-space:normal; line-height:1.35; }
.admin-category-chart { width:100%; height:350px; }
.admin-category-details { margin-top:12px; border-top:1px solid var(--color-border-light); padding-top:12px; }
.admin-category-details summary { cursor:pointer; color:var(--color-primary); font-weight:600; }
.admin-category-details .inp { margin:12px 0; max-width:320px; }
.admin-category-scroll { max-height:300px; overflow:auto; border:1px solid var(--color-border-light); border-radius:10px; }
.admin-category-row { display:flex; justify-content:space-between; gap:16px; padding:9px 12px; border-bottom:1px solid var(--color-border-light); }
.admin-category-row:last-child { border-bottom:0; }
.admin-category-row span { overflow-wrap:anywhere; }
.admin-category-row[hidden] { display:none; }
@media(max-width:1180px){.admin-payment-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.admin-payment-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.admin-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.admin-chart-grid-inner { margin-top:10px; }
.admin-chart-grid > * { min-width:0; }
.admin-chart { width:100%; min-width:0; max-width:100%; height:280px; overflow:hidden; }
.admin-subtitle { color:var(--color-text-secondary); font-size:13px; font-weight:700; margin-bottom:4px; }
.admin-money-grid,.admin-usage-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin-top:12px; }
.admin-money-item,.admin-usage-grid>div { display:flex; flex-direction:column; gap:5px; padding:13px 14px; border:1px solid var(--color-border-light); border-radius:12px; background:var(--color-bg-subtle); }
.admin-money-item b { color:var(--color-primary); font-size:18px; }
.admin-money-item span,.admin-usage-grid span,.admin-exact-list { color:var(--color-text-secondary); font-size:12px; line-height:1.6; }
.admin-usage-grid b { color:var(--color-text-primary); font-size:22px; }
.admin-exact-list { margin-top:4px; overflow-wrap:anywhere; }
.feedback-bulk { display:flex; align-items:center; gap:12px; margin:14px 0 10px; }
.feedback-bulk label { display:flex; align-items:center; gap:6px; }
.feedback-bulk input,.feedback-month input { width:auto; }
.feedback-month { border:1px solid var(--color-border-light); border-radius:12px; margin-top:10px; overflow:hidden; background:#fff; }
.feedback-month>summary { display:flex; justify-content:space-between; align-items:center; cursor:pointer; padding:13px 15px; background:var(--color-bg-subtle); color:var(--color-text-primary); }
.feedback-month>summary span { color:var(--color-text-secondary); font-size:12px; }
.feedback-month .table-wrap { padding:0 10px 10px; }
.personal-export { padding:22px; }
.export-heading,.feedback-section-head,.feedback-detail-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.export-private { flex:0 0 auto; padding:5px 10px; border-radius:999px; background:#e8f8ff; color:#0787bd; font-size:12px; font-weight:700; }
.export-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
.export-option { min-height:82px; display:flex; align-items:center; gap:12px; padding:14px; border:1px solid #d6e8f4; border-radius:12px; background:#fff; cursor:pointer; transition:border-color .18s,box-shadow .18s,background .18s; }
.export-option:hover { border-color:#78c7eb; box-shadow:0 6px 18px rgba(5,118,177,.08); }
.export-option.selected { border-color:#13a6db; background:#f1fbff; box-shadow:0 0 0 2px rgba(19,166,219,.08); }
.export-option input { position:absolute; opacity:0; pointer-events:none; }
.export-check { width:26px; height:26px; flex:0 0 26px; display:grid; place-items:center; border:1.5px solid #b7ccda; border-radius:8px; color:transparent; background:#fff; font-weight:800; }
.export-option.selected .export-check { color:#fff; border-color:#079bd1; background:#079bd1; }
.export-option strong,.export-option small { display:block; }
.export-option strong { color:var(--color-text-primary); font-size:14px; margin-bottom:4px; }
.export-option small { color:var(--color-text-secondary); font-size:12px; line-height:1.45; }
.export-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:2px; }
.feedback-user-layout { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr); gap:18px; align-items:start; }
.feedback-compose .field-label,.feedback-admin-detail .field-label { display:block; margin:15px 0 7px; }
.feedback-compose .inp,.feedback-admin-detail .inp { width:100%; }
.feedback-textarea { min-height:150px; resize:vertical; line-height:1.65; }
.feedback-submit { width:100%; min-height:44px; margin-top:18px; }
.feedback-user-history { min-width:0; }
.feedback-selection-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--color-border-light); }
.feedback-selection-tools[hidden] { display:none; }
.feedback-user-history.is-selecting .feedback-user-item { position:relative; padding-left:38px; }
.feedback-user-history.is-selecting .feedback-user-item::before { content:''; position:absolute; left:7px; top:50%; width:18px; height:18px; transform:translateY(-50%); border:2px solid #8ca3af; border-radius:5px; background:#fff; }
.feedback-user-history.is-selecting .feedback-user-item.is-selected::before { content:'✓'; display:flex; align-items:center; justify-content:center; color:#fff; background:var(--color-primary,#087ccb); border-color:var(--color-primary,#087ccb); font-size:13px; font-weight:700; }
.feedback-user-item { width:100%; min-height:96px; display:grid; grid-template-columns:minmax(0,1fr) auto 18px; align-items:center; gap:12px; padding:15px 4px; border:0; border-bottom:1px solid var(--color-border-light); background:transparent; text-align:left; cursor:pointer; }
.feedback-user-item:hover { background:#f5fbfe; }
.feedback-item-main { min-width:0; display:flex; flex-direction:column; gap:5px; }
.feedback-item-main strong,.feedback-item-main span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.feedback-item-main strong { color:var(--color-text-primary); font-size:15px; }
.feedback-item-main span,.feedback-item-main small { color:var(--color-text-secondary); }
.feedback-item-main span { font-size:13px; }
.feedback-item-main small { font-size:12px; }
.feedback-status { display:inline-flex; align-items:center; justify-content:center; min-height:28px; padding:4px 10px; border-radius:999px; white-space:nowrap; font-size:12px; font-weight:700; }
.feedback-status.is-pending { color:#9b6500; background:#fff3cc; }
.feedback-status.is-processing { color:#076ca4; background:#dff4ff; }
.feedback-status.is-replied { color:#087941; background:#dcf8e9; }
.feedback-arrow { color:#50a8cd; font-size:24px; line-height:1; }
.feedback-empty { padding:34px 10px; text-align:center; }
.feedback-detail h4 { margin:0 0 6px; font-size:19px; color:var(--color-text-primary); }
.feedback-detail-head>div>span { color:var(--color-text-secondary); font-size:12px; }
.feedback-question { margin:18px 0; padding:16px; border:1px solid #dcecf4; border-radius:12px; background:#f8fcfe; }
.feedback-block-label { margin-bottom:9px; color:#39738f; font-size:13px; font-weight:700; }
.feedback-pre { color:var(--color-text-primary); line-height:1.75; white-space:pre-wrap; overflow-wrap:anywhere; }
.feedback-contact { margin-top:12px; padding-top:10px; border-top:1px dashed #d1e4ee; color:var(--color-text-secondary); font-size:13px; }
.feedback-timeline { margin:4px 0 18px; }
.feedback-reply { display:grid; grid-template-columns:12px minmax(0,1fr); gap:10px; padding:8px 0; }
.feedback-reply>span { width:10px; height:10px; margin-top:6px; border-radius:50%; background:#09a5d9; box-shadow:0 0 0 4px #e1f7ff; }
.feedback-reply small { color:var(--color-text-secondary); }
.feedback-reply p { margin:5px 0 0; padding:12px 14px; border-radius:4px 12px 12px 12px; background:#edf9fe; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
.feedback-admin-list { padding:4px 10px 12px; }
.feedback-admin-item { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:stretch; border-bottom:1px solid var(--color-border-light); }
.feedback-admin-item:last-child { border-bottom:0; }
.feedback-select { display:grid; place-items:center; cursor:pointer; }
.feedback-admin-open { min-height:92px; display:grid; grid-template-columns:minmax(140px,.65fr) minmax(230px,1.5fr) auto minmax(128px,auto) 18px; align-items:center; gap:14px; padding:13px 4px; border:0; background:transparent; text-align:left; cursor:pointer; }
.feedback-admin-open:hover { background:#f5fbfe; }
.app-qr-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.app-qr-admin-card { display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px; border:1px solid var(--color-border-light); border-radius:12px; background:var(--color-bg-subtle); }
.app-qr-admin-card img { width:58px; height:58px; padding:3px; object-fit:cover; border-radius:8px; background:#fff; }
.app-qr-admin-card strong,.app-qr-admin-card small { display:block; }
.app-qr-admin-card small { margin-top:4px; color:var(--color-text-secondary); font-size:12px; }
.feedback-admin-user,.feedback-admin-problem { min-width:0; display:flex; flex-direction:column; gap:5px; }
.feedback-admin-user strong,.feedback-admin-user small,.feedback-admin-problem strong,.feedback-admin-problem small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.feedback-admin-user small,.feedback-admin-problem small,.feedback-admin-open time { color:var(--color-text-secondary); font-size:12px; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.admin-user-toolbar { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:12px 0; }
.admin-user-toolbar input { width:min(280px,100%); }
.admin-pager { display:flex; justify-content:center; align-items:center; gap:12px; padding:14px 0 4px; }
@media(max-width:900px){.feature-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.main::before{margin-left:-18px;margin-right:-18px}}
@media(max-width:760px){.admin-chart-grid{grid-template-columns:minmax(0,1fr)}.admin-chart{height:250px}.admin-tabs button{min-width:104px}.admin-money-grid,.admin-usage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.export-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feedback-user-layout{grid-template-columns:1fr}.feedback-admin-open{grid-template-columns:minmax(120px,.7fr) minmax(180px,1.4fr) auto 18px}.feedback-admin-open time{display:none}}
@media(max-width:620px){.export-grid{grid-template-columns:1fr}.export-actions,.feedback-section-head,.feedback-detail-head{align-items:stretch;flex-direction:column}.export-actions .btn{width:100%;min-height:44px}.feedback-user-item{grid-template-columns:minmax(0,1fr) auto 14px}.feedback-admin-item{grid-template-columns:34px minmax(0,1fr)}.feedback-admin-open{grid-template-columns:minmax(0,1fr) auto 14px;gap:8px}.feedback-admin-user{grid-column:1}.feedback-admin-problem{grid-column:1}.feedback-admin-open .feedback-status{grid-column:2;grid-row:1}.feedback-admin-open .feedback-arrow{grid-column:3;grid-row:1/3}.personal-export{padding:17px}}
@media(max-width:760px){.app-qr-admin-grid{grid-template-columns:1fr}.app-qr-admin-card{grid-template-columns:58px minmax(0,1fr) auto}}
.auth-wrap { background:
  linear-gradient(rgba(8,63,142,.30),rgba(8,63,142,.42)),
  url('/brand/auth-ocean.webp') center/cover fixed !important; }
.auth-wrap .auth-card { background:rgba(255,255,255,.95); border:1px solid rgba(205,239,255,.8); box-shadow:0 18px 48px rgba(5,97,168,.24); }
.seo-language-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px;border-bottom:1px solid #d8e7f2;padding-bottom:10px}
.seo-language-tab{min-height:40px;padding:8px 14px;border:1px solid #cfe3f0;border-radius:8px;background:#fff;color:#315573;font:inherit;cursor:pointer}
.seo-language-tab:hover{border-color:#1684cb;background:#f2f9fe}
.seo-language-tab.active{border-color:#087ccb;background:#e8f5fd;color:#075d96;font-weight:700}
.seo-language-tab:focus-visible{outline:2px solid #087ccb;outline-offset:2px}
.seo-language-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-bottom:18px}
.seo-language-panel[hidden]{display:none}
.seo-language-panel .form-item{min-width:0;margin:0}
.seo-language-panel label{display:block;margin-bottom:6px}
@media(max-width:700px){.seo-language-panel{grid-template-columns:1fr}.seo-language-tab{flex:1 1 auto}}

/* Match the narrow layout's 14px main padding so the decorative header
   does not extend the document by four pixels on either side. */
@media(max-width:767px){.main::before{margin-left:-14px;margin-right:-14px}}

