/* Front-end dashboard: sign-in screen, app shell, and the wp-admin classes the shared tab templates use. */

:root {
	--srt-primary: #0a1f3d;
	--srt-accent: #c8102e;
	--srt-bg: #f4f6f9;
	--srt-card: #fff;
	--srt-line: #e2e7ee;
	--srt-text: #16202e;
	--srt-muted: #5f6b7a;
	--srt-radius: 10px;
	--srt-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.srt-front {
	margin: 0;
	background: var(--srt-bg);
	color: var(--srt-text);
	font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
.srt-front a { color: var(--srt-primary); }
.srt-front img { max-width: 100%; }

/* ---------- Buttons (own) ---------- */
.srt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.srt-btn-primary { background: var(--srt-primary); color: #fff !important; }
.srt-btn-primary:hover { filter: brightness(1.15); }
.srt-btn-ghost { background: #fff; border-color: var(--srt-line); color: var(--srt-text) !important; }
.srt-btn-block { width: 100%; }
.srt-btn .srt-ico { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sign-in ---------- */
.srt-login { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.srt-login-brand {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
	padding: 48px 56px; color: #fff;
	background: radial-gradient(1200px 600px at 110% 110%, color-mix(in srgb, var(--srt-accent) 35%, transparent), transparent 60%), linear-gradient(160deg, var(--srt-primary), color-mix(in srgb, var(--srt-primary) 70%, #000));
}
.srt-login-brand::after { /* A faint rising chart line. */
	content: ""; position: absolute; inset: auto -10% 12% 30%; height: 38%; opacity: .12; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 160' preserveAspectRatio='none'%3E%3Cpolyline fill='none' stroke='white' stroke-width='3' points='0,150 60,128 110,136 170,96 220,104 280,58 330,66 400,12'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.srt-login-logo { max-height: 56px; max-width: 260px; align-self: flex-start; }
.srt-login-pitch { max-width: 520px; position: relative; z-index: 1; }
.srt-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; opacity: .75; margin: 0 0 12px; }
.srt-login-pitch h1 { font-size: 38px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 28px; font-weight: 700; }
.srt-login-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.srt-login-pitch li { position: relative; padding-left: 30px; font-size: 15px; opacity: .92; }
.srt-login-pitch li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, #fff 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.srt-login-foot { font-size: 12px; opacity: .6; margin: 0; }

.srt-login-main, .srt-center { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.srt-center { min-height: 100vh; }
.srt-login-card { width: 100%; max-width: 400px; background: var(--srt-card); border: 1px solid var(--srt-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(16, 24, 40, .08); padding: 36px; }
.srt-login-card h1, .srt-login-card h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.01em; }
.srt-muted { color: var(--srt-muted); margin: 0 0 24px; }
.srt-login-card label { display: block; font-weight: 600; font-size: 13px; margin: 16px 0 6px; }
.srt-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.srt-label-row a { font-size: 13px; text-decoration: none; }
.srt-login-card input[type=text], .srt-login-card input[type=password] {
	width: 100%; padding: 11px 12px; font: inherit; font-size: 15px; color: var(--srt-text);
	border: 1px solid #cfd6df; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.srt-login-card input:focus { outline: none; border-color: var(--srt-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--srt-primary) 18%, transparent); }
.srt-password { position: relative; }
.srt-password input { padding-right: 46px !important; }
.srt-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--srt-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; }
.srt .srt-icon-btn.srt-show { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; box-shadow: none; color: var(--srt-muted); }
.srt .srt-icon-btn.srt-show:hover, .srt .srt-icon-btn.srt-show:focus-visible { background: #f2f5f8; color: var(--srt-text); }
.srt-login-card .srt-check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 16px 0 22px; }
.srt-alert { background: #fdecea; color: #8c1d18; border: 1px solid #f5c2bd; border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; font-size: 13px; }

@media (max-width: 860px) {
	.srt-login { grid-template-columns: 1fr; }
	.srt-login-brand { padding: 28px 24px; gap: 20px; }
	.srt-login-brand::after, .srt-login-pitch ul, .srt-login-foot { display: none; }
	.srt-login-pitch h1 { font-size: 24px; margin: 0; }
	.srt-login-main { padding: 28px 16px 48px; }
	.srt-login-card { padding: 24px; }
}

/* ---------- App shell ---------- */
.srt-topbar { background: var(--srt-primary); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0, 0, 0, .1); }
.srt-topbar-inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.srt-topbar > .srt-topbar-inner { min-height: 64px; }
.srt-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.srt-brand-logo img { display: block; max-height: 34px; max-width: 160px; }
.srt-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.srt-brand-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt-brand-text span { font-size: 12px; opacity: .7; }
.srt-brand-logo + .srt-brand-text { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 14px; }
.srt-user { display: flex; align-items: center; gap: 16px; font-size: 13px; white-space: nowrap; }
.srt-user a { color: #fff; opacity: .85; text-decoration: none; }
.srt-user a:hover { opacity: 1; text-decoration: underline; }
.srt-user .srt-icon-btn { opacity: 1; color: #fff; background: rgba( 255, 255, 255, .1 ); border-color: rgba( 255, 255, 255, .28 ); box-shadow: none; }
.srt-user .srt-icon-btn:hover, .srt-user .srt-icon-btn:focus-visible { color: #fff; background: rgba( 255, 255, 255, .2 ); border-color: rgba( 255, 255, 255, .6 ); text-decoration: none; }
.srt-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11px; font-weight: 600; }
.srt-tabs { background: #fff; border-bottom: 1px solid var(--srt-line); }
.srt-tabs .srt-topbar-inner { justify-content: flex-start; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.srt-tabs a { display: block; padding: 14px 14px 12px; color: var(--srt-muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.srt-tabs a:hover { color: var(--srt-text); }
.srt-tabs a.is-active { color: var(--srt-primary); border-bottom-color: var(--srt-accent); }
.srt-footer { text-align: center; color: var(--srt-muted); font-size: 12px; padding: 24px 16px 40px; }

@media (max-width: 640px) {
	.srt-topbar-inner { padding: 0 16px; }
	.srt-brand-logo, .srt-user-name, .srt-long { display: none; }
	.srt-brand-logo + .srt-brand-text { border: 0; padding: 0; }
}

/* ---------- Shared tab templates (wp-admin markup, restyled) ---------- */
.srt-app { max-width: 1320px; margin: 0 auto; padding: 8px 24px 24px; }
@media (max-width: 640px) { .srt-app { padding: 4px 16px 16px; } }
.srt-app h2 { font-size: 18px; letter-spacing: -.01em; margin: 32px 0 8px; }
.srt-app h3 { font-size: 15px; margin: 16px 0 6px; }
.srt-app code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.srt-app .description, .srt-app p.description { color: var(--srt-muted); font-size: 13px; }
.srt-app .ul-disc { list-style: disc; padding-left: 20px; }
.srt-app hr { border: 0; border-top: 1px solid var(--srt-line); margin: 24px 0; }

.srt-app .srt-card, .srt-app .srt-stat, .srt-app .srt-page { background: var(--srt-card); border: 1px solid var(--srt-line); border-radius: var(--srt-radius); box-shadow: var(--srt-shadow); }
.srt-app .srt-card { padding: 6px 22px 18px; max-width: none; }
.srt-app .srt-stat { border-top: 3px solid var(--srt-accent); padding: 14px 20px; flex: 1 1 180px; }
.srt-app .srt-stat-value { font-size: 28px; font-weight: 700; color: var(--srt-primary); }
.srt-app .srt-page { overflow: hidden; margin-bottom: 8px; }
.srt-app .srt-brief { border-left-color: var(--srt-primary); border-radius: 0 8px 8px 0; }
.srt-app .srt-bar span { background: var(--srt-primary); }

.srt-app .notice { background: #fff; border: 1px solid var(--srt-line); border-left: 4px solid #1a7f37; border-radius: 8px; padding: 2px 16px; margin: 16px 0; box-shadow: var(--srt-shadow); }
.srt-app .notice-error { border-left-color: #b32d2e; }
.srt-app .notice p { margin: 10px 0; }

/* Buttons */
.srt-app .button, .srt-app input[type=submit], .srt-app button:not(.srt-show):not(.srt-icon-btn) {
	display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; min-height: 34px;
	font: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--srt-text); text-decoration: none;
	background: #fff; border: 1px solid #cfd6df; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s;
}
.srt-app .button:hover, .srt-app button:not(.srt-show):not(.srt-icon-btn):hover { background: #f5f7fa; border-color: #b8c1cc; }
.srt-app .button.button-primary, .srt-app button.button-primary:not(.srt-show), .srt-app input[type=submit].button-primary { background: var(--srt-primary); border-color: var(--srt-primary); color: #fff; }
.srt-app .button.button-primary:hover, .srt-app button.button-primary:not(.srt-show):hover { background: var(--srt-primary); border-color: var(--srt-primary); filter: brightness(1.15); }
.srt-app .button-small { padding: 4px 10px; min-height: 28px; font-size: 12px; }
.srt-app .srt-btn { gap: 7px; border-radius: 9px; }
.srt-app .srt-btn.button-hero { min-height: 46px; padding: 0 22px; font-size: 14px; }
.srt-app .button-link, .srt-app button.button-link { background: none !important; border: 0 !important; padding: 0 4px; min-height: 0; color: var(--srt-primary); font-weight: 500; text-decoration: underline; }
.srt-app .button-link.srt-delete, .srt-app .srt-delete { color: #b32d2e; }
.srt-app .button[disabled], .srt-app button[disabled] { opacity: .5; cursor: default; }
.srt-app .button.srt-planned { color: #1a7f37; background: #e6f4ea; border-color: #9fd3ad; }
.srt-app p.submit { margin: 20px 0; }

/* Forms */
.srt-app input[type=text], .srt-app input[type=email], .srt-app input[type=url], .srt-app input[type=number], .srt-app input[type=date], .srt-app input[type=password], .srt-app select, .srt-app textarea {
	font: inherit; color: var(--srt-text); background: #fff; border: 1px solid #cfd6df; border-radius: 8px; padding: 7px 10px; min-height: 34px; max-width: 100%;
}
.srt-app input:focus, .srt-app select:focus, .srt-app textarea:focus { outline: none; border-color: var(--srt-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--srt-primary) 15%, transparent); }
.srt-app .regular-text { width: 25em; }
.srt-app .large-text { width: 100%; }
.srt-app .small-text { width: 6em; }
.srt-app .form-table { width: 100%; border-collapse: collapse; background: var(--srt-card); border: 1px solid var(--srt-line); border-radius: var(--srt-radius); box-shadow: var(--srt-shadow); overflow: hidden; }
.srt-app .form-table th { width: 220px; text-align: left; vertical-align: top; padding: 18px 20px; font-weight: 600; }
.srt-app .form-table td { padding: 14px 20px; }
.srt-app .form-table tr + tr > * { border-top: 1px solid var(--srt-line); }
@media (max-width: 782px) {
	.srt-app .form-table th, .srt-app .form-table td { display: block; width: auto; }
	.srt-app .form-table th { padding-bottom: 0; }
	.srt-app .form-table tr + tr > td { border-top: 0; }
	.srt-app .regular-text { width: 100%; }
}

/* Tables */
.srt-app .widefat { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--srt-card); border: 1px solid var(--srt-line); border-radius: var(--srt-radius); box-shadow: var(--srt-shadow); overflow: hidden; }
.srt-app .widefat th, .srt-app .widefat td { padding: 10px 12px; text-align: left; vertical-align: top; }
.srt-app .widefat thead th, .srt-app .widefat thead td { background: #f8fafc; color: var(--srt-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--srt-line); }
.srt-app .widefat tbody tr + tr > * { border-top: 1px solid #eef1f5; }
.srt-app .widefat.striped > tbody > tr:nth-child(odd) { background: #fbfcfd; }
.srt-app .srt-group th { background: color-mix(in srgb, var(--srt-primary) 6%, #fff); color: var(--srt-primary); }
.srt-app .srt-grid .srt-sticky { background: #fff; }
.srt-app .srt-scroll, .srt-app .srt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 782px) {
	.srt-app .widefat { display: block; overflow-x: auto; }
	.srt-app .srt-url { max-width: 200px; }
}

/* Location search (jQuery UI autocomplete) */
.ui-autocomplete { position: absolute; z-index: 1000; list-style: none; margin: 4px 0 0; padding: 4px; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid var(--srt-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.ui-autocomplete .ui-menu-item-wrapper { display: block; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.ui-autocomplete .ui-state-active { background: #eef3fb; }
.ui-helper-hidden-accessible { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* AI draft panel */
.srt-app .srt-draft-row > td { background: #f8fafc !important; }
