/* RankKeep portal — brand colors come from --rk-brand / --rk-accent set per agency. */
:root {
	--ink: #0A0E1A;
	--text: #141A2E;
	--muted: #5A6378;
	--line: #E4E7EE;
	--bg: #F5F6FA;
	--card: #FFFFFF;
	--green: #16A34A;
	--green-soft: #DCFCE7;
	--red: #E5484D;
	--red-soft: #FDECEC;
	--amber: #B7791F;
	--amber-soft: #FEF3D7;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(10, 14, 26, .04), 0 6px 20px rgba(10, 14, 26, .05);
	--side: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.rk { font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
.rk a { color: var(--rk-brand); text-decoration: none; }
.rk a:hover { text-decoration: underline; }
.rk img { max-width: 100%; }
.rk h1, .rk h2, .rk h3, .rk h4, .rk p, .rk ul, .rk ol { margin: 0; }
.rk-h2 { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.rk-h3 { font-family: 'Inter Tight', 'Inter', sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); line-height: 1.3; }
.rk-h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.rk-muted { color: var(--muted); }
.rk-small { font-size: 13px; }
.rk-center { text-align: center; }
.rk-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rk-pad { padding: 20px 24px; }
.rk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons & inputs */
.rk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.rk-btn:active { transform: translateY(1px); }
.rk-btn-primary { background: var(--rk-brand); color: var(--rk-brand-text) !important; }
.rk-btn-primary:hover { box-shadow: 0 6px 18px rgba(10, 14, 26, .18); filter: brightness(1.05); }
.rk-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.rk-btn-ghost:hover { border-color: #C6CBD6; }
.rk-btn-danger { background: #fff; border-color: #F4C2C4; color: var(--red) !important; }
.rk-btn-danger:hover { background: var(--red-soft); }
.rk-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.rk-btn-block { width: 100%; }
.rk-btn.is-disabled, .rk-btn:disabled { opacity: .55; pointer-events: none; }
.rk-icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.rk-icon-btn:hover { background: var(--red-soft); color: var(--red); }
.rk-form { display: flex; flex-direction: column; gap: 16px; }
.rk-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rk-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 400; color: var(--text); transition: border-color .15s, box-shadow .15s; }
textarea.rk-input { resize: vertical; line-height: 1.5; }
.rk-input:focus { outline: none; border-color: var(--rk-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-brand) 18%, transparent); }
.rk-input-sm { min-height: 36px; padding: 6px 10px; font-size: 14px; width: auto; }
.rk-help { font-size: 13px; font-weight: 400; color: var(--muted); }
.rk-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.rk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rk-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.rk-color { display: flex; gap: 8px; align-items: center; }
.rk-color input[type="color"] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; flex-shrink: 0; }
.rk-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text) !important; background: #fff; }
.rk-chip.is-active { background: var(--rk-brand); border-color: var(--rk-brand); color: var(--rk-brand-text) !important; }

/* Notices */
.rk-notice { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.rk-notice-ok { background: var(--green-soft); border-color: #BBF0CD; color: #14532D; }
.rk-notice-warn { background: var(--amber-soft); border-color: #F6DFA6; color: #7A4E0B; }
.rk-notice-error { background: var(--red-soft); border-color: #F4C2C4; color: #8A1F23; }
.rk-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; background: var(--ink); color: #C9CEDA; font-size: 14px; }
.rk-banner strong { color: #fff; }

/* Auth layout */
.rk-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.rk-auth-brand { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 14vh; padding: 48px; background: var(--rk-brand); color: var(--rk-brand-text); overflow: hidden; }
.rk-auth-logo { display: flex; align-items: center; gap: 10px; }
.rk-auth-logo img { max-height: 44px; max-width: 220px; }
.rk-logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--rk-accent); flex-shrink: 0; }
.rk-logo-text { font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.rk-auth-pitch { position: relative; z-index: 1; max-width: 460px; }
.rk-auth-pitch h1 { font-family: 'Inter Tight', sans-serif; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin-bottom: 16px; color: inherit; }
.rk-auth-pitch p { font-size: 17px; opacity: .78; }
.rk-auth-chart { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30%; color: var(--rk-accent); }
.rk-auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.rk-auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.rk-plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rk-plan-option { position: relative; display: block; cursor: pointer; }
.rk-plan-option input { position: absolute; opacity: 0; }
.rk-plan-option span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.rk-plan-option small { color: var(--muted); font-size: 12px; }
.rk-plan-option input:checked + span { border-color: var(--rk-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-brand) 15%, transparent); }

/* App layout */
.rk-app { min-height: 100vh; }
.rk-side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); z-index: 40; }
.rk-side-logo { display: flex; align-items: center; gap: 10px; height: 72px; padding: 0 22px; border-bottom: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; }
.rk-side-logo img { max-height: 34px; max-width: 190px; }
.rk-side-logo .rk-logo-mark { background: var(--rk-brand); }
.rk-nav { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.rk-nav-label { margin: 18px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A92A6; }
.rk-nav-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--text) !important; text-decoration: none !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-nav-link:hover { background: var(--bg); }
.rk-nav-link.is-active { background: color-mix(in srgb, var(--rk-brand) 10%, #fff); color: var(--rk-brand) !important; font-weight: 600; }
.rk-nav-add { color: var(--muted) !important; }
.rk-nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-nav-icon { width: 18px; height: 18px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.rk-i-grid { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.rk-i-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16h16'/%3E%3Cpath d='M8 15l3.5-3.5 3 2.5L20 8'/%3E%3C/svg%3E"); }
.rk-i-doc { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5M10 13h6M10 17h4'/%3E%3C/svg%3E"); }
.rk-i-list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.5M4 12h.5M4 18h.5'/%3E%3C/svg%3E"); }
.rk-i-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.rk-i-brush { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='9' cy='10' r='1' fill='black'/%3E%3Ccircle cx='14.5' cy='8.5' r='1' fill='black'/%3E%3Ccircle cx='15.5' cy='13.5' r='1' fill='black'/%3E%3C/svg%3E"); }
.rk-i-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M3 19.5c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5M16 4.5a3.5 3.5 0 0 1 0 7M21 19.5c0-2.6-1.6-4.6-4-5.3'/%3E%3C/svg%3E"); }
.rk-i-link { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1'/%3E%3C/svg%3E"); }
.rk-i-card { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.5'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.rk-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: color-mix(in srgb, var(--rk-brand) 12%, #fff); color: var(--rk-brand); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.rk-avatar-lg { width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
.rk-side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.rk-side-user-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-side-user-name small { font-size: 12px; font-weight: 400; color: var(--muted); }
.rk-signout { font-size: 13px; color: var(--muted) !important; }
.rk-shell { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.rk-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 72px; padding: 0 32px; background: rgba(245, 246, 250, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rk-top-title { font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-trial-pill { padding: 6px 12px; border-radius: 999px; background: var(--amber-soft); color: var(--amber) !important; font-size: 13px; font-weight: 600; }
.rk-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.rk-burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.rk-scrim { display: none; }
.rk-main { padding: 28px 32px 64px; max-width: 1320px; width: 100%; }

/* Cards & grids */
.rk-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.rk-card-flush { padding: 0; overflow: hidden; }
.rk-card-tint { background: #FAFBFD; box-shadow: none; }
.rk-card-head { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.rk-card:not(.rk-card-flush) > .rk-card-head { padding: 0 0 14px; margin-bottom: 14px; }
.rk-card-head-inline, .rk-card-flush > .rk-card-head:has(.rk-btn) { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rk-setup { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: color-mix(in srgb, var(--rk-brand) 30%, var(--line)); background: color-mix(in srgb, var(--rk-brand) 5%, #fff); }
.rk-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rk-grid-2 > .rk-card { margin-bottom: 0; }
.rk-grid-2 + .rk-grid-2, .rk-grid-2 + .rk-card, .rk-kpis + .rk-grid-2 { margin-top: 20px; }
.rk-grid-side { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.rk-grid-tight { gap: 12px; }
.rk-stack { display: flex; flex-direction: column; gap: 20px; }
.rk-stack > .rk-card { margin-bottom: 0; }
.rk-sticky { position: sticky; top: 92px; }
.rk-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 24px; }
.rk-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); margin-top: 12px; }

/* Stats & KPIs */
.rk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.rk-stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rk-stat-label { font-size: 13px; color: var(--muted); }
.rk-stat-value { font-family: 'Inter Tight', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.rk-stat-value small { font-size: 16px; color: var(--muted); font-weight: 600; }
.rk-stat-alert { border-color: #F6DFA6; background: #FFFBF0; }
.rk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rk-kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.rk-kpi-label { font-size: 13px; color: var(--muted); }
.rk-kpi-value { font-family: 'Inter Tight', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.rk-kpi-deltas { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rk-delta-up { color: var(--green); }
.rk-delta-down { color: var(--red); }
.rk-delta-flat { color: var(--muted); }
.rk-chart { position: relative; height: 280px; }
.rk-spark { display: block; }
.rk-spark.is-up { color: var(--green); }
.rk-spark.is-down { color: var(--red); }
.rk-spark-empty { color: var(--muted); }

/* Tables & lists */
.rk-table-wrap { width: 100%; overflow-x: auto; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rk-table th { padding: 12px 24px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #FAFBFD; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rk-table td { padding: 14px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rk-table tr:last-child td { border-bottom: none; }
.rk-table tbody tr:hover { background: #FAFBFD; }
.rk-table-compact th, .rk-table-compact td { padding: 10px 20px; }
.rk-table .rk-num, .rk-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-truncate { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-client-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink) !important; }
.rk-score { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.rk-score-green { background: var(--green-soft); color: var(--green); }
.rk-score-amber { background: var(--amber-soft); color: var(--amber); }
.rk-score-red { background: var(--red-soft); color: var(--red); }
.rk-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-flag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--muted) !important; white-space: nowrap; text-decoration: none !important; vertical-align: middle; }
.rk-flag-green { background: var(--green-soft); color: var(--green) !important; }
.rk-flag-amber { background: var(--amber-soft); color: var(--amber) !important; }
.rk-flag-red { background: var(--red-soft); color: var(--red) !important; }
.rk-flag-new { background: color-mix(in srgb, var(--rk-brand) 10%, #fff); color: var(--rk-brand) !important; }
.rk-flag-brand { background: color-mix(in srgb, var(--rk-brand) 10%, #fff); color: var(--rk-brand) !important; }
.rk-list { list-style: none; padding: 0; }
.rk-list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.rk-list-item:last-child { border-bottom: none; }
.rk-list-item > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rk-list-title { font-weight: 600; color: var(--ink) !important; }
.rk-log { list-style: none; padding: 0; display: flex; flex-direction: column; }
.rk-log li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rk-log li:last-child { border-bottom: none; }
.rk-log-date { flex-shrink: 0; width: 64px; font-size: 12px; font-weight: 600; color: var(--rk-brand); font-variant-numeric: tabular-nums; }
.rk-log li .rk-log-date + span { flex: 1; }
.rk-timeline { list-style: none; padding: 0; }
.rk-timeline-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.rk-timeline-item:last-child { border-bottom: none; }
.rk-timeline-item .rk-log-date { width: auto; padding-top: 2px; }
.rk-timeline-body { display: flex; flex-direction: column; gap: 4px; }
.rk-bars { display: flex; flex-direction: column; gap: 12px; }
.rk-bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 14px; }
.rk-bar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.rk-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--rk-brand); }
.rk-checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rk-checks li { position: relative; padding-left: 28px; font-size: 14px; }
.rk-checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rk-checks-plain li::before { background: color-mix(in srgb, var(--rk-brand) 12%, #fff); }

/* Tabs & toolbar */
.rk-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.rk-tabs::-webkit-scrollbar { display: none; }
.rk-tab { padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--muted) !important; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.rk-tab:hover { color: var(--ink) !important; }
.rk-tab.is-active { color: var(--ink) !important; border-bottom-color: var(--rk-brand); font-weight: 600; }
.rk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.rk-month-pick { display: flex; align-items: center; gap: 8px; }

/* Branding preview */
.rk-logo-preview { display: inline-flex; padding: 10px 14px; border-radius: 10px; background: var(--rk-brand); align-self: flex-start; }
.rk-logo-preview img { max-height: 32px; }
.rk-preview { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.rk-preview-bar { display: flex; align-items: center; height: 60px; padding: 0 20px; background: var(--p); color: #fff; font-family: 'Inter Tight', sans-serif; font-size: 16px; }
.rk-preview-bar img { max-height: 30px; }
.rk-preview-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.rk-preview-num { font-family: 'Inter Tight', sans-serif; font-size: 30px; font-weight: 700; color: var(--ink); }
.rk-preview-line { height: 60px; margin: 6px 0 10px; border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--p) 22%, transparent), transparent); border-top: 3px solid var(--p); }
.rk-preview-btn { align-self: flex-start; padding: 9px 14px; border-radius: 8px; background: var(--p); color: #fff; font-size: 13px; font-weight: 600; }

/* Billing */
.rk-billing-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.rk-billing-head .rk-h2 { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.rk-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rk-plan { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rk-plan-featured { border-color: var(--rk-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-brand) 12%, transparent), var(--shadow); }
.rk-plan-price { font-family: 'Inter Tight', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.rk-plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rk-plan .rk-checks { flex: 1; }
.rk-link-sm { font-size: 13px; text-align: center; }

/* Report */
.rk-report { max-width: 1040px; }
.rk-report-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rk-report-title { font-family: 'Inter Tight', sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; margin: 2px 0 4px; }
.rk-report-summary { border-left: 4px solid var(--rk-brand); }
.rk-report-summary p { margin-top: 8px; font-size: 16px; line-height: 1.65; }
.rk-report > .rk-kpis { margin-bottom: 20px; }
.rk-print { background: #fff; padding: 32px; }
.rk-print .rk-report { margin: 0 auto; }
.rk-print-bar { display: flex; align-items: center; justify-content: space-between; max-width: 1040px; margin: 0 auto 24px; padding-bottom: 16px; border-bottom: 3px solid var(--rk-brand); }
.rk-print-bar img { max-height: 40px; }
.rk-print-foot { max-width: 1040px; margin: 32px auto 0; font-size: 12px; color: var(--muted); text-align: center; }
.rk-print .rk-card { box-shadow: none; break-inside: avoid; }

@media (max-width: 1100px) {
	.rk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.rk-auth { grid-template-columns: minmax(0, 1fr); }
	.rk-auth-brand { padding: 28px 24px; min-height: 0; }
	.rk-auth-pitch, .rk-auth-chart { display: none; }
	.rk-side { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(10, 14, 26, .2); }
	.rk-menu-open .rk-side { transform: translateX(0); }
	.rk-menu-open .rk-scrim { display: block; position: fixed; inset: 0; background: rgba(10, 14, 26, .4); z-index: 35; }
	.rk-shell { margin-left: 0; }
	.rk-burger { display: inline-flex; }
	.rk-top { padding: 0 16px; height: 64px; }
	.rk-main { padding: 20px 16px 48px; }
	.rk-grid-2, .rk-grid-side, .rk-plans { grid-template-columns: minmax(0, 1fr); }
	.rk-sticky { position: static; }
	.rk-setup, .rk-banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.rk-kpis, .rk-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
	.rk-kpi, .rk-stat { padding: 14px; }
	.rk-kpi-value, .rk-stat-value { font-size: 22px; }
	.rk-plan-pick { grid-template-columns: minmax(0, 1fr); }
	.rk-timeline-item { grid-template-columns: minmax(0, 1fr) auto; }
	.rk-timeline-item .rk-log-date { grid-column: 1 / -1; }
	.rk-bar-row { grid-template-columns: 96px minmax(0, 1fr) 52px; }
	.rk-card { padding: 18px; }
	.rk-table th, .rk-table td { padding: 10px 14px; }
	.rk-chart { height: 220px; }
	.rk-report-title { font-size: 28px; }
}
@media print {
	.rk-no-print, .rk-side, .rk-top, .rk-banner { display: none !important; }
	.rk-shell { margin: 0; }
	.rk-print { padding: 0; }
	body.rk { background: #fff; }
}
