/* Front-end dashboard */
body.wic-dashboard-page { background: #F3F1EC; }
body.wic-dashboard-page .wic-footer, body.wic-dashboard-page .site-footer { display: none; }
body.wic-dashboard-page .site-content, body.wic-dashboard-page #primary, body.wic-dashboard-page .inside-article { padding: 0 !important; margin: 0 !important; max-width: none !important; }

.wd-app { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); font-size: 15px; line-height: 1.5; color: #26302B; text-align: left; }
.wd-app h1, .wd-app h2, .wd-app h3 { font-family: var(--wic-font-heading); margin: 0; }
.wd-side { background: #1F3A30; color: #E8EFEA; padding: 26px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); overflow-y: auto; }
.wd-brand { font: 600 1.25rem/1.2 var(--wic-font-heading); padding: 0 10px; color: #fff; }
.wd-brand small { display: block; font: 500 .72rem/1.4 var(--wic-font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }
.wd-side nav { display: flex; flex-direction: column; gap: 4px; }
.wd-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #E8EFEA; text-decoration: none; font-weight: 500; }
.wd-side nav a:hover { background: rgba(255,255,255,.08); }
.wd-side nav a.on { background: #fff; color: #1F3A30; font-weight: 600; }
.wic-ico { width: 20px; height: 20px; flex: none; }
.wd-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.wd-me img { border-radius: 50%; }
.wd-me small { display: block; color: rgba(255,255,255,.6); }
.wd-main { padding: 34px clamp(18px, 3vw, 44px) 70px; min-width: 0; }
.wd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.wd-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.wd-head p { margin: 6px 0 0; color: #6B7268; }
.wd-actions { display: flex; gap: 10px; }

.wd-card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 18px rgba(38,48,43,.07); margin-bottom: 22px; }
.wd-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.wd-card h3 { font-size: 1rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.wd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 1000px) { .wd-cols { grid-template-columns: 1fr; } }
.wd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.wd-stat { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 18px rgba(38,48,43,.07); }
.wd-stat strong { display: block; font: 600 2rem/1.1 var(--wic-font-heading); color: #34584A; }
.wd-stat span { color: #6B7268; font-size: .9rem; }
.wd-list { list-style: none; margin: 0 0 12px; padding: 0; }
.wd-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EFEBE4; }
.wd-list a { color: #26302B; text-decoration: none; font-weight: 500; }
.wd-list a:hover { color: #4B7C63; }
.wd-link { color: #34584A; font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.wd-link.danger, a.danger, .danger { color: #B0412A !important; }
.wd-small { font-size: .85rem; color: #6B7268; }

/* buttons + forms */
.wd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid #D9D3C8; background: #fff; color: #26302B; font: 600 .92rem/1 var(--wic-font-body); cursor: pointer; text-decoration: none; }
.wd-btn:hover { background: #F7F5F1; }
.wd-btn.primary { background: #4B7C63; border-color: #4B7C63; color: #fff; }
.wd-btn.primary:hover { background: #34584A; }
.wd-btn.wide { width: 100%; justify-content: center; padding: 14px; }
.wd-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.wd-app input[type=text], .wd-app input[type=email], .wd-app input[type=url], .wd-app input[type=search], .wd-app input[type=password], .wd-app input[type=datetime-local], .wd-app select, .wd-app textarea, .wd-login input:not([type=checkbox]), .wd-inline input {
	width: 100%; padding: 11px 13px; border: 1px solid #D9D3C8; border-radius: 10px; background: #FDFCFA; font: inherit; color: #26302B; box-sizing: border-box; }
.wd-app input:focus, .wd-app select:focus, .wd-app textarea:focus, .wd-login input:focus { outline: 3px solid rgba(76,123,150,.35); border-color: #4C7B96; }
.wd-lbl { display: block; font-weight: 600; margin: 16px 0 6px; }
.wd-lbl small, .wd-card small { font-weight: 400; color: #6B7268; }
.wd-lbl small.ok { color: #4B7C63; } .wd-lbl small.over { color: #B0412A; font-weight: 600; }
.wd-big { font-size: 1.35rem !important; font-family: var(--wic-font-heading) !important; }
.wd-check { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-weight: 500; }
.wd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 700px) { .wd-two { grid-template-columns: 1fr; } }
.wd-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wd-inline input { flex: 1 1 180px; width: auto; }

.wd-note { padding: 13px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.wd-note.ok { background: #E7EFE9; color: #34584A; } .wd-note.bad { background: #FBEAE3; color: #8A3B1B; }
.wd-note code { background: #fff; padding: 2px 8px; border-radius: 6px; user-select: all; }

/* tables */
.wd-table-wrap { overflow-x: auto; background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(38,48,43,.07); margin-bottom: 20px; }
.wd-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.wd-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6B7268; padding: 14px 14px; border-bottom: 1px solid #EFEBE4; }
.wd-table td { padding: 12px 14px; border-bottom: 1px solid #F3EFE8; vertical-align: middle; }
.wd-table tr:last-child td { border-bottom: 0; }
.wd-table .th img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; display: block; }
.wd-title { font-weight: 600; color: #26302B; text-decoration: none; display: block; }
.wd-title:hover { color: #4B7C63; }
.wd-table small { display: block; color: #6B7268; }
.wd-row-actions { white-space: nowrap; text-align: right; }
.wd-row-actions a, .wd-row-actions .wd-link { margin-left: 12px; font-size: .88rem; font-weight: 600; text-decoration: none; color: #34584A; }
.wd-empty { text-align: center; color: #6B7268; padding: 30px !important; }
.wd-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #EFEBE4; color: #4a524b; }
.wd-badge.s-publish { background: #E1EFE6; color: #2F6A4B; } .wd-badge.s-draft { background: #EFEBE4; } .wd-badge.s-pending { background: #FCEBD3; color: #8A5A1F; }
.wd-badge.s-future { background: #E2ECF3; color: #365A70; } .wd-badge.s-trash { background: #FBEAE3; color: #8A3B1B; }
.wd-badge.role-administrator { background: #34584A; color: #fff; } .wd-badge.role-editor { background: #4C7B96; color: #fff; }
.wd-score { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.wd-score.good { background: #E1EFE6; color: #2F6A4B; } .wd-score.mid { background: #FCEBD3; color: #8A5A1F; } .wd-score.low { background: #FBEAE3; color: #8A3B1B; }
.wd-score.big { display: flex; flex-direction: column; align-items: flex-start; background: none; padding: 0; margin-bottom: 12px; }
.wd-score.big b { font: 600 3rem/1 var(--wic-font-heading); } .wd-score.big.good b { color: #2F6A4B; } .wd-score.big.mid b { color: #B27A2C; } .wd-score.big.low b { color: #B0412A; }
.wd-score.big span { color: #6B7268; font-weight: 500; }
.wd-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.wd-tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: #4a524b; background: #fff; font-weight: 600; font-size: .88rem; }
.wd-tabs a.on { background: #34584A; color: #fff; } .wd-tabs em { font-style: normal; opacity: .6; margin-left: 4px; }
.wd-filter, .wd-bulk { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.wd-filter input[type=search] { max-width: 280px; } .wd-filter select, .wd-bulk select { width: auto; }
.wd-pages { display: flex; gap: 6px; justify-content: center; } .wd-pages .page-numbers { padding: 8px 14px; background: #fff; border-radius: 8px; text-decoration: none; } .wd-pages .current { background: #4B7C63; color: #fff; }

/* editor */
.wd-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .wd-editor { grid-template-columns: 1fr; } }
.wd-editor-side { position: sticky; top: 92px; }
@media (max-width: 1100px) { .wd-editor-side { position: static; } }
.wd-catlist { max-height: 220px; overflow-y: auto; padding: 4px 2px; }
.wd-thumb img { width: 100%; height: auto; border-radius: 10px; display: block; }
.wd-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.wd-media label { position: relative; cursor: pointer; } .wd-media img { width: 100%; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.wd-media input { position: absolute; top: 4px; left: 4px; }
.wd-pick summary { cursor: pointer; margin-top: 10px; font-weight: 600; color: #34584A; }
.wd-serp { border: 1px solid #E5E0D6; border-radius: 12px; padding: 16px 18px; margin-bottom: 8px; background: #fff; font-family: Arial, sans-serif; }
.wd-serp-url { color: #202124; font-size: .82rem; } .wd-serp-title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin: 3px 0; } .wd-serp-desc { color: #4d5156; font-size: .9rem; line-height: 1.5; }
.wd-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
@media (max-width: 700px) { .wd-checks { grid-template-columns: 1fr; } }
.wd-checks li { padding-left: 26px; position: relative; font-size: .9rem; }
.wd-checks li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; font-size: .7rem; line-height: 18px; text-align: center; color: #fff; }
.wd-checks li.ok::before { content: '\2713'; background: #4B7C63; } .wd-checks li.no::before { content: '!'; background: #C08552; }
.wd-content { min-height: 400px; }
.wd-roles ul { margin: 0; padding-left: 18px; } .wd-roles li { margin-bottom: 6px; }
.wd-user { display: flex; gap: 10px; align-items: center; } .wd-user img { border-radius: 50%; }
.wd-msg { border-top: 1px solid #EFEBE4; padding: 14px 0; } .wd-msg small { margin-left: 8px; } .wd-msg p { margin: 6px 0 0; }

/* login */
.wd-login { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 18px; background: linear-gradient(135deg, #E7EFE9, #F4E9DD); }
.wd-login-card { background: #fff; padding: 38px; border-radius: 22px; box-shadow: 0 20px 50px rgba(38,48,43,.15); width: 100%; max-width: 420px; text-align: left; }
.wd-login-card h1 { font-size: 1.9rem; } .wd-login-card p { color: #6B7268; }
.wd-login-card label { display: block; font-weight: 600; margin: 16px 0 6px; } .wd-login-card .wd-check { font-weight: 500; }
.wd-login-card button { margin-top: 12px; }

/* mobile */
@media (max-width: 900px) {
	.wd-app { grid-template-columns: 1fr; }
	.wd-side { position: static; height: auto; flex-direction: column; padding: 14px; gap: 10px; }
	.wd-side nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
	.wd-side nav a { white-space: nowrap; padding: 9px 12px; } .wd-me { display: none; }
}
.wd-table td.th, .wd-table th:nth-child(2) { width: 68px; }
.wd-table .th img { min-width: 52px; }
.wd-login-card .wd-small { margin-top: 18px; }

/* analytics */
.wd-bars { list-style: none; margin: 0 0 8px; padding: 0; }
.wd-bars li { margin-bottom: 12px; }
.wd-bar-l { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 4px; }
.wd-bar-l b { font-weight: 600; } .wd-bar-l em { font-style: normal; color: #6B7268; font-weight: 400; margin-left: 4px; }
.wd-bar { height: 8px; background: #EFEBE4; border-radius: 8px; overflow: hidden; }
.wd-bar i { display: block; height: 100%; background: #4B7C63; border-radius: 8px; }
.wd-chart { width: 100%; height: 200px; display: block; }
.wd-head .wd-tabs { margin: 0; }
