* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #1f2937; background: #f4f6fa; }

.layout { display: flex; height: 100vh; }

/* Sidebar */
.sidebar { width: 232px; background: #1f2937; color: #e5e7eb; display: flex; flex-direction: column; padding: 16px 12px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 18px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; background: #0ea5a4; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.brand-title { font-size: 16px; font-weight: 600; }
.brand-sub { font-size: 11px; color: #9ca3af; }

.menu { display: flex; flex-direction: column; gap: 4px; }
.menu-item { text-align: left; background: transparent; border: 0; color: #d1d5db; padding: 10px 12px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.menu-item:hover { background: #374151; }
.menu-item.active { background: #0ea5a4; color: #fff; }

.shortcuts { margin-top: 18px; padding-top: 14px; border-top: 1px solid #374151; }
.shortcuts .sc-title { font-size: 11px; color: #9ca3af; padding: 0 8px 8px; }
.shortcut-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: #cbd5e1; padding: 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.shortcut-item:hover { background: #374151; }

/* Content */
.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.view { display: none; flex: 1; flex-direction: column; overflow: hidden; padding: 20px 24px; }
.view.active { display: flex; }

.view-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.view-head h2 { font-size: 18px; }

.btn { background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 13px; }
.btn:hover { background: #f3f4f6; }
.btn-primary { background: #0ea5a4; color: #fff; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; font-size: 13px; }
.btn-primary:hover { background: #0c8f8e; }
.select { padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }

.status { font-size: 13px; margin-bottom: 12px; }
.status.err { color: #dc2626; }
.status.ok { color: #059669; }

.cards { display: flex; gap: 16px; margin-bottom: 18px; }
.card { background: #fff; border-radius: 12px; padding: 16px 20px; flex: 1; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card .num { font-size: 26px; font-weight: 700; }
.card .label { font-size: 12px; color: #6b7280; margin-top: 4px; }

.panel { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.panel h3 { font-size: 14px; margin-bottom: 12px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f3; }
th { color: #6b7280; font-weight: 600; }

.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.url { font-size: 12px; color: #6b7280; margin-left: auto; }
#ozon-webview { flex: 1; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }

.placeholder { margin: auto; text-align: center; color: #6b7280; }
.placeholder h2 { color: #1f2937; margin-bottom: 10px; }
.hint { font-size: 12px; color: #9ca3af; margin-top: 8px; }

label { display: block; font-size: 13px; margin: 12px 0; }
label input, label select, label textarea { display: block; width: 100%; max-width: 420px; margin-top: 6px; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 13px; font-family: inherit; }
label textarea { resize: vertical; }
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.form-row label { flex: 1; min-width: 150px; }
.form-row label input, .form-row label select { max-width: none; }

.ops { display: flex; gap: 6px; flex-wrap: wrap; }
.ops .btn { padding: 5px 9px; font-size: 12px; }
.table-wrap { overflow-x: auto; }

.actions { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#pr-result .cards { margin-top: 12px; }

/* Offer 状态标签 */
.status-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #f3f4f6; color: #374151; }
.status-tag.已发布 { background: #ecfdf5; color: #059669; }
.status-tag.待发布 { background: #eff6ff; color: #2563eb; }
.status-tag.处理中 { background: #fffbeb; color: #d97706; }
.status-tag.已翻译 { background: #f0f9ff; color: #0284c7; }
.status-tag.已下架 { background: #f3f4f6; color: #9ca3af; }
.offer-title { font-weight: 600; }
.offer-sub { font-size: 12px; color: #6b7280; margin-top: 3px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 14px; width: 640px; max-width: 92vw; max-height: 88vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eef0f3; }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 8px 20px; }
.modal-foot { padding: 14px 20px 18px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-body label input, .modal-body label select, .modal-body label textarea { max-width: none; }

/* 登录层 */
.login-screen { position: fixed; inset: 0; background: #f4f6fa; display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; border-radius: 16px; padding: 28px 26px; width: 340px; box-shadow: 0 10px 30px rgba(0,0,0,.12); text-align: center; }
.login-card .brand-logo.lg { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px; background: #0ea5a4; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.login-card .brand-title { font-size: 17px; font-weight: 600; }
.login-card .brand-sub { font-size: 12px; color: #9ca3af; margin-bottom: 14px; }
.login-card label { text-align: left; }
.login-card .btn-primary { width: 100%; margin-top: 6px; }
