/* Lawyer dashboard. Uses the theme's tokens when present, with fallbacks. */
.ci-dash {
	--d-navy: var(--navy, #002A42);
	--d-accent: var(--accent, #4139FC);
	--d-mist: var(--mist, #F1F5F9);
	--d-line: var(--line, #E2E8F0);
	--d-muted: var(--muted, #54595F);
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	font-size: 15px;
}
.ci-dash h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.ci-dash h2 { font-size: 1.4rem; margin: 0 0 16px; }
.ci-dash h3 { font-family: inherit; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); margin: 0 0 12px; font-weight: 600; }
.ci-dash input[type=text], .ci-dash input[type=email], .ci-dash input[type=password], .ci-dash textarea, .ci-dash select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--d-line); border-radius: 8px; font: inherit; background: #fff; color: inherit;
}
.ci-dash input:focus, .ci-dash textarea:focus { outline: 2px solid var(--d-accent); outline-offset: 1px; border-color: transparent; }

.ci-dash__side { position: sticky; top: 100px; background: var(--d-navy); color: #fff; border-radius: 16px; padding: 20px; }
.ci-dash__who { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ci-dash__who strong { display: block; line-height: 1.3; }
.ci-dash__who span { font-size: 13px; opacity: .7; }
.ci-dash__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.ci-dash__side ul { list-style: none; margin: 0; padding: 0; }
.ci-dash__side nav a { display: block; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.8); text-decoration: none; }
.ci-dash__side nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ci-dash__side nav a[aria-current] { background: #fff; color: var(--d-navy); font-weight: 600; }
.ci-dash__sidefoot { display: grid; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.ci-dash__sidefoot a { color: rgba(255,255,255,.7); text-decoration: none; }
.ci-dash__sidefoot a:hover { color: #fff; }

.ci-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.ci-dash__muted { color: var(--d-muted); font-size: 14px; margin: 4px 0 0; }
.ci-dash__card { background: #fff; border: 1px solid var(--d-line); border-radius: 16px; padding: 24px; }
.ci-dash__card + .ci-dash__card { margin-top: 16px; }
.ci-dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.ci-dash__stat { background: var(--d-mist); border-radius: 16px; padding: 20px; }
.ci-dash__stat strong { display: block; font-size: 2rem; color: var(--d-navy); line-height: 1; margin-bottom: 6px; }
.ci-dash__stat span { color: var(--d-muted); font-size: 14px; }

.ci-dash__list { list-style: none; margin: 0; padding: 0; }
.ci-dash__list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--d-line); }
.ci-dash__list li:first-child { border-top: 0; }
.ci-dash__title { font-weight: 600; color: var(--d-navy); text-decoration: none; }
.ci-dash__meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--d-muted); margin-top: 4px; }
.ci-dash__actions { display: flex; gap: 14px; align-items: center; font-size: 14px; flex: none; }
.ci-dash__actions form { margin: 0; }
.ci-dash__actions a { color: var(--d-accent); text-decoration: none; }
.ci-dash__empty { color: var(--d-muted); }
.ci-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--d-accent); cursor: pointer; }
.ci-linkbtn--danger { color: #b42318; }

.ci-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--d-mist); color: var(--d-muted); }
.ci-badge--publish { background: #E7F6EC; color: #1B6E3A; }
.ci-badge--pending { background: #FFF4E0; color: #8A5300; }

.ci-dash__write { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ci-dash__label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; }
.ci-dash__editor > .ci-dash__label:first-child { margin-top: 0; }
.ci-dash__titleinput { font-size: 1.25rem !important; padding: 14px !important; }
.ci-dash__panel { display: grid; gap: 16px; position: sticky; top: 100px; }
.ci-dash__panel .ci-dash__card + .ci-dash__card { margin-top: 0; }
.ci-dash__panel .btn--block { width: 100%; justify-content: center; margin-top: 8px; }
.ci-dash__thumb { width: 100%; height: auto; border-radius: 10px; margin-bottom: 10px; aspect-ratio: 16/10; object-fit: cover; }
.ci-dash__thumb--portrait { aspect-ratio: 4/5; object-position: top; }
.ci-dash .ci-checks { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.ci-dash .ci-checks legend { font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); margin-bottom: 10px; }
.ci-dash .ci-checks strong { font-weight: 600; }
.ci-dash .ci-checks label, .ci-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ci-dash input[type=file] { font-size: 13px; max-width: 100%; }
.ci-dash .wp-editor-wrap { border: 1px solid var(--d-line); border-radius: 8px; overflow: hidden; }
.ci-dash .wp-editor-container { border: 0; }
.ci-dash .mce-panel { border-color: var(--d-line) !important; }
.ci-dash .wp-editor-tabs button { font-size: 13px; }
.ci-dash__narrow { max-width: 480px; }
.ci-dash__narrow .btn { margin-top: 20px; }
.ci-opt { font-weight: 400; color: var(--d-muted); }

.ci-dash__login { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; width: 100%; }
.ci-dash__login form p { margin: 0 0 14px; }
.ci-dash__login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.ci-dash__login .login-remember label { display: flex; gap: 8px; font-weight: 400; }
.ci-dash__login input[type=submit] { width: 100%; padding: 12px; border: 0; border-radius: 999px; background: var(--d-navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ci-dash__login input[type=submit]:hover { background: var(--d-accent); }

@media (max-width: 960px) {
	.ci-dash, .ci-dash__write { grid-template-columns: 1fr; }
	.ci-dash__side, .ci-dash__panel { position: static; }
}
@media (max-width: 560px) {
	.ci-dash__stats { grid-template-columns: 1fr; }
	.ci-dash__list li { flex-direction: column; align-items: flex-start; }
	.ci-dash__card { padding: 18px; }
}
