/* ==========================================================================
   DJD Portal — admin and customer dashboards
   ========================================================================== */

:root {
	--navy: #0B1D45;
	--navy-2: #13295C;
	--navy-3: #1C3672;
	--gold: #C5A15F;
	--gold-2: #E1C48A;
	--gold-dark: #9C7A3C;
	--cream: #F7F5F0;
	--cream-2: #EFEADF;
	--line: #E8E2D5;
	--text: #1B2338;
	--muted: #6B7385;
	--soft: #9AA1B0;
	--white: #fff;
	--green: #2E8B57;
	--green-bg: #E6F4EC;
	--red: #C4453A;
	--red-bg: #FBEAE8;
	--amber: #B7791F;
	--amber-bg: #FDF3E1;
	--blue: #2F5FB3;
	--blue-bg: #E8EFFA;
	--violet: #6B4FB8;
	--violet-bg: #EFEAFB;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(11, 29, 69, .04), 0 8px 24px rgba(11, 29, 69, .06);
	--shadow-lg: 0 24px 60px rgba(11, 29, 69, .18);
	--serif: "Cormorant Garamond", Georgia, serif;
	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--side: 264px;
	--safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.djp {
	font-family: var(--sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
.djp a { color: inherit; }
.djp button { font: inherit; color: inherit; }
.djp h1, .djp h2, .djp h3, .djp h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0; line-height: 1.15; }
.djp svg { flex-shrink: 0; }
.djp [hidden] { display: none !important; }
.djp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ----- Boot / spinner ----- */
.djp-boot { min-height: 100vh; display: grid; place-items: center; }
.djp-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--cream-2); border-top-color: var(--gold); animation: djp-spin .8s linear infinite; display: inline-block; }
.djp-spin--sm { width: 16px; height: 16px; border-width: 2px; vertical-align: -3px; }
@keyframes djp-spin { to { transform: rotate(360deg); } }

/* ----- Shell ----- */
.djp-shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.djp-side {
	position: sticky; top: 0; height: 100vh;
	background: linear-gradient(180deg, var(--navy) 0%, #0A1838 100%);
	color: #fff; display: flex; flex-direction: column;
	padding: 22px 16px 18px; overflow-y: auto; z-index: 40;
}
.djp-side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 40% at 0% 0%, rgba(197, 161, 95, .16), transparent 60%); }
.djp-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; text-decoration: none; position: relative; z-index: 1; }
.djp-brand img { width: 46px; height: 46px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: 12px; padding: 4px; }
.djp-brand__mono { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.djp-brand__name { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.1; }
.djp-brand__sub { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.djp-nav { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.djp-nav__label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 16px 12px 6px; }
.djp-nav a {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px;
	text-decoration: none; color: rgba(255,255,255,.72); font-weight: 500; position: relative;
	transition: background .15s, color .15s;
}
.djp-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.djp-nav a.is-active { background: rgba(255,255,255,.1); color: #fff; }
.djp-nav a.is-active::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.djp-nav a.is-active svg { color: var(--gold-2); }
.djp-nav__count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.djp-side__foot { margin-top: auto; padding-top: 18px; position: relative; z-index: 1; }
.djp-me { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.djp-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); flex-shrink: 0; }
.djp-avatar--lg { width: 52px; height: 52px; font-size: 18px; }
.djp-me__name { font-weight: 600; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.djp-me__mail { font-size: 11.5px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.djp-me > div { min-width: 0; flex: 1; }
.djp-me a { color: rgba(255,255,255,.6); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.djp-me a:hover { background: rgba(255,255,255,.08); color: #fff; }
.djp-side__links { display: flex; gap: 6px; margin-top: 10px; }
.djp-side__links a { flex: 1; text-align: center; font-size: 12px; padding: 8px; border-radius: 9px; color: rgba(255,255,255,.65); text-decoration: none; border: 1px solid rgba(255,255,255,.1); }
.djp-side__links a:hover { color: #fff; border-color: rgba(255,255,255,.25); }

.djp-main { min-width: 0; display: flex; flex-direction: column; }
.djp-scrim { display: none; }
.djp-top {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
	padding: 18px 32px; background: rgba(247, 245, 240, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(232, 226, 213, .7);
}
.djp-top__title { min-width: 0; flex: 1; }
.djp-top__title h1 { font-size: 30px; }
.djp-top__title p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.djp-top__actions { display: flex; align-items: center; gap: 10px; }
.djp-icon-btn.djp-menu-btn { display: none; }
.djp-content { padding: 26px 32px 60px; width: 100%; max-width: 1480px; }

/* ----- Buttons ----- */
.djp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
	border-radius: 12px; border: 1px solid transparent; background: var(--navy); color: #fff !important; font-weight: 600; font-size: 13.5px;
	cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .15s, background .15s, opacity .15s;
}
.djp-btn:hover { box-shadow: 0 8px 20px rgba(11, 29, 69, .2); transform: translateY(-1px); }
.djp-btn:active { transform: none; }
.djp-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.djp-btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy) !important; }
.djp-btn--ghost { background: #fff; color: var(--navy) !important; border-color: var(--line); }
.djp-btn--ghost:hover { box-shadow: var(--shadow); }
.djp-btn--danger { background: #fff; color: var(--red) !important; border-color: #F0C9C4; }
.djp-btn--green { background: var(--green); }
.djp-btn--sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.djp-btn--block { width: 100%; }
.djp-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy); position: relative; text-decoration: none; }
.djp-icon-btn:hover { box-shadow: var(--shadow); }
.djp-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.djp .djp-link, .djp-link { color: var(--gold-dark); font-weight: 600; text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.djp-link:hover { text-decoration: underline; }

/* ----- Cards / grid ----- */
.djp-grid { display: grid; gap: 20px; }
.djp-grid--kpi { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.djp-grid--2 { grid-template-columns: 1.6fr 1fr; }
.djp-grid--2e { grid-template-columns: 1fr 1fr; }
.djp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.djp-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.djp-grid > *, .djp-stack > * { min-width: 0; }
.djp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.djp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 0; flex-wrap: wrap; }
.djp-card__head h3 { font-size: 22px; }
.djp-card__head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.djp-card__body { padding: 18px 22px 22px; }
.djp-card__body--flush { padding: 10px 0 6px; }
.djp-eyebrow { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

.djp-kpi { padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.djp-kpi__top { display: flex; align-items: center; justify-content: space-between; }
.djp-kpi__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); }
.djp-kpi--dark { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-3) 100%); border-color: transparent; color: #fff; }
.djp-kpi--dark .djp-kpi__icon { background: rgba(255,255,255,.1); color: var(--gold-2); }
.djp-kpi--dark .djp-kpi__label, .djp-kpi--dark .djp-kpi__sub { color: rgba(255,255,255,.65); }
.djp-kpi--dark .djp-kpi__value { color: #fff; }
.djp-kpi__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.djp-kpi__value { font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--navy); line-height: 1; }
.djp-kpi__sub { font-size: 12px; color: var(--muted); }
.djp-kpi__tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; }
.djp-kpi--alert .djp-kpi__value { color: var(--red); }
.djp-kpi.is-link { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.djp-kpi.is-link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11,29,69,.1); }

/* ----- Badges ----- */
.djp-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--cream); color: var(--muted); }
.djp-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.djp-badge--plain::before { display: none; }
.djp-badge--new { background: var(--blue-bg); color: var(--blue); }
.djp-badge--quoted { background: var(--amber-bg); color: var(--amber); }
.djp-badge--approved { background: #E4F3F1; color: #1F7A6E; }
.djp-badge--design { background: var(--violet-bg); color: var(--violet); }
.djp-badge--printing { background: #E7F0FB; color: #1E5AA8; }
.djp-badge--casting { background: #FBEDE3; color: #B3572A; }
.djp-badge--shipped { background: #E9F1FF; color: #2C55C4; }
.djp-badge--completed, .djp-badge--ok { background: var(--green-bg); color: var(--green); }
.djp-badge--cancelled { background: #F1F1F3; color: #868A96; }
.djp-badge--rush, .djp-badge--bad { background: var(--red-bg); color: var(--red); }
.djp-badge--warn { background: var(--amber-bg); color: var(--amber); }
.djp-badge--gold { background: #F6EEDC; color: var(--gold-dark); }

/* ----- Tables ----- */
.djp-table-wrap { overflow-x: auto; }
.djp-table { width: 100%; border-collapse: collapse; }
.djp-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 600; padding: 10px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.djp-table td { padding: 14px 22px; border-bottom: 1px solid #F2EEE5; vertical-align: middle; }
.djp-table tr:last-child td { border-bottom: 0; }
.djp-table tbody tr.is-link { cursor: pointer; transition: background .12s; }
.djp-table tbody tr.is-link:hover { background: #FCFAF6; }
.djp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.djp-strong { font-weight: 600; color: var(--navy); }
.djp-muted { color: var(--muted); }
.djp-small { font-size: 12px; }
.djp-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); }

/* ----- Toolbar / filters ----- */
.djp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.djp-search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.djp-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--soft); }
.djp-search input { padding-left: 38px !important; }
.djp-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.djp-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.djp-seg button.is-active { background: var(--navy); color: #fff; }
.djp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.djp-chip { border: 1px solid var(--line); background: #fff; padding: 7px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.djp-chip b { font-weight: 700; color: var(--navy); font-size: 11.5px; }
.djp-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.djp-chip.is-active b { color: var(--gold-2); }

/* ----- Forms ----- */
.djp-field { display: flex; flex-direction: column; gap: 6px; }
.djp-field > label, .djp-label { font-size: 12px; font-weight: 600; color: var(--navy); }
.djp-field small { color: var(--muted); font-size: 11.5px; }
.djp input[type="text"], .djp input[type="password"], .djp input[type="email"], .djp input[type="number"], .djp input[type="date"], .djp input[type="search"], .djp input[type="tel"], .djp select, .djp textarea {
	width: 100%; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--line); background: var(--cream);
	font: inherit; font-size: 14px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.djp select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7385' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.djp textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.djp input:focus, .djp select:focus, .djp textarea:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(197, 161, 95, .18); }
.djp-form { display: grid; gap: 14px; }
.djp-form--2 { grid-template-columns: 1fr 1fr; }
.djp-form .full { grid-column: 1 / -1; }
.djp-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; }
.djp-check input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 1px; flex-shrink: 0; }
.djp-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #F2EEE5; }
.djp-switch:last-child { border-bottom: 0; }
.djp-switch strong { display: block; color: var(--navy); font-size: 13.5px; }
.djp-switch span { color: var(--muted); font-size: 12.5px; }
.djp-toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.djp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.djp-toggle i { position: absolute; inset: 0; border-radius: 20px; background: #D9D4C8; cursor: pointer; transition: background .2s; }
.djp-toggle i::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.djp-toggle input:checked + i { background: var(--navy); }
.djp-toggle input:checked + i::after { transform: translateX(18px); }

/* ----- Drop zone ----- */
.djp .djp-drop, .djp-drop { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; box-sizing: border-box; margin: 0; border: 1.5px dashed #D8C7A3; border-radius: 14px; background: #FCFAF5; padding: 22px 18px; text-align: center; cursor: pointer; font-weight: 400; line-height: 1.45; transition: background .15s, border-color .15s; }
.djp-drop:hover, .djp-drop.is-over { background: #F8F1E2; border-color: var(--gold); }
.djp .djp-drop strong { display: block; color: var(--navy); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.djp .djp-drop span { display: block; max-width: 100%; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.djp-drop svg { color: var(--gold-dark); flex-shrink: 0; }
.djp-drop input[type=file] { display: none !important; }

/* ----- Board ----- */
.djp-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.djp-col { background: var(--cream-2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; scroll-snap-align: start; transition: background .15s, box-shadow .15s; }
.djp-col.is-over { background: #E9DFC9; box-shadow: inset 0 0 0 2px var(--gold); }
.djp-col__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.djp-col__head b { font-size: 13px; color: var(--navy); }
.djp-col__count { background: #fff; color: var(--muted); font-size: 11.5px; font-weight: 700; border-radius: 10px; padding: 2px 8px; }
.djp-tile { background: #fff; border-radius: 13px; padding: 13px 14px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11,29,69,.04); cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: transform .12s, box-shadow .15s; }
.djp-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11,29,69,.09); }
.djp-tile.is-dragging { opacity: .5; }
.djp-tile__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.djp-tile__name { font-weight: 600; color: var(--navy); font-size: 13.5px; line-height: 1.3; }
.djp-tile__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.djp-tile__foot { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); border-top: 1px solid #F2EEE5; padding-top: 8px; }
.djp-tile--rush { border-left: 3px solid var(--red); }
.djp-col__empty { text-align: center; color: var(--soft); font-size: 12px; padding: 24px 8px; border: 1.5px dashed #DCD3C0; border-radius: 12px; }

/* ----- Lists ----- */
.djp-list { display: flex; flex-direction: column; }
.djp-row { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: 1px solid #F2EEE5; }
.djp-row:last-child { border-bottom: 0; }
.djp-row.is-link { cursor: pointer; }
.djp-row.is-link:hover { background: #FCFAF6; }
.djp-row__main { flex: 1; min-width: 0; }
.djp-row__title { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.djp-row__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.djp-row__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); flex-shrink: 0; }
.djp-row__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; max-width: 55%; }
.djp-feed__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 0 4px #F6EEDC; }
.djp-feed__dot--customer { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }

/* ----- Empty state ----- */
.djp-empty { text-align: center; padding: 38px 24px; color: var(--muted); }
.djp-empty__icon { width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--cream); color: var(--gold-dark); }
.djp-empty h4 { font-size: 20px; margin-bottom: 4px; }
.djp-empty p { margin: 0 auto 14px; max-width: 360px; font-size: 13px; }

/* ----- Drawer ----- */
.djp-overlay { position: fixed; inset: 0; background: rgba(11, 29, 69, .38); backdrop-filter: blur(3px); z-index: 80; opacity: 0; transition: opacity .2s; }
.djp-overlay.is-open { opacity: 1; }
.djp-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--cream); z-index: 90; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.djp-drawer.is-open { transform: none; }
.djp-drawer__head { padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.djp-drawer__head h2 { font-size: 26px; }
.djp-drawer__head .djp-ref { display: block; margin-bottom: 4px; }
.djp-drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px; -webkit-overflow-scrolling: touch; }
.djp-drawer__tabs { display: flex; gap: 4px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.djp-drawer__tabs button { border: 0; background: none; padding: 12px 12px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.djp-drawer__tabs button.is-active { color: var(--navy); border-bottom-color: var(--gold); }
.djp-section { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.djp-section h4 { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.djp-dl { display: grid; grid-template-columns: 150px 1fr; gap: 9px 14px; font-size: 13px; margin: 0; }
.djp-dl dt { color: var(--muted); }
.djp-dl dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }

/* ----- Stepper ----- */
.djp-steps { position: relative; display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 4px 2px 2px; }
.djp-step { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; text-align: center; font-size: 11.5px; color: var(--soft); font-weight: 500; }
.djp-step::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--line); }
.djp-step:first-child::before { display: none; }
.djp-step i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; position: relative; z-index: 1; font-style: normal; font-size: 11px; font-weight: 700; }
.djp-step.is-done { color: var(--navy); }
.djp-step.is-done i { background: var(--navy); border-color: var(--navy); color: var(--gold-2); }
.djp-step.is-done::before, .djp-step.is-current::before { background: var(--navy); }
.djp-step.is-current { color: var(--navy); font-weight: 700; }
.djp-step.is-current i { border-color: var(--gold); background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 0 0 5px rgba(197,161,95,.2); }
.djp-progress { height: 6px; background: var(--cream-2); border-radius: 6px; overflow: hidden; }
.djp-progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* ----- Files ----- */
.djp-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #FDFCF9; }
.djp-file + .djp-file { margin-top: 8px; }
.djp-file__ext { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-size: 10px; font-weight: 700; letter-spacing: .04em; flex-shrink: 0; }
.djp-file__ext--final { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); }
.djp-file__name { font-weight: 600; color: var(--navy); font-size: 13px; word-break: break-all; }
.djp-file__meta { font-size: 11.5px; color: var(--muted); }
.djp-file > div { flex: 1; min-width: 0; }

/* ----- Quote card ----- */
.djp-quote { border-radius: 16px; padding: 20px; background: linear-gradient(140deg, var(--navy), var(--navy-3)); color: #fff; position: relative; overflow: hidden; }
.djp-quote::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(225,196,138,.35), transparent 70%); }
.djp-quote h4 { color: #fff; }
.djp-quote__amount { font-family: var(--serif); font-size: 42px; font-weight: 600; color: var(--gold-2); line-height: 1; margin: 6px 0 8px; }
.djp-quote__note { color: rgba(255,255,255,.78); font-size: 13px; white-space: pre-line; }
.djp-quote__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; position: relative; z-index: 1; }
.djp-quote .djp-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.3); }

/* ----- Messages ----- */
.djp-thread { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px 10px; }
.djp-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.5; white-space: pre-line; word-break: break-word; }
.djp-msg small { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; }
.djp-msg--them { background: var(--cream); border-bottom-left-radius: 5px; align-self: flex-start; }
.djp-msg--me { background: var(--navy); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.djp-compose { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.djp-compose textarea { min-height: 46px !important; height: 46px; }

/* ----- Timeline ----- */
.djp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.djp-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.djp-timeline li { position: relative; padding: 0 0 14px 26px; font-size: 13px; }
.djp-timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); }
.djp-timeline li.by-customer::before { border-color: var(--blue); }
.djp-timeline small { display: block; color: var(--muted); font-size: 11.5px; }

/* ----- Charts ----- */
.djp-chart { width: 100%; height: auto; display: block; overflow: visible; }
.djp-chart text { font-family: var(--sans); font-size: 10.5px; fill: var(--soft); }
.djp-chart .grid { stroke: #F0EBE0; }
.djp-chart-tip { position: fixed; pointer-events: none; z-index: 100; background: var(--navy); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 9px; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; }
.djp-chart-tip b { color: var(--gold-2); }
.djp-hbars { display: flex; flex-direction: column; gap: 12px; }
.djp-hbar__top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; gap: 10px; }
.djp-hbar__top span:first-child { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.djp-hbar__top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.djp-hbar__track { height: 8px; border-radius: 8px; background: var(--cream-2); overflow: hidden; }
.djp-hbar__fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--navy), var(--navy-3)); transition: width .6s ease; }
.djp-hbar:nth-child(2n) .djp-hbar__fill { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.djp-funnel { display: flex; flex-direction: column; gap: 8px; }
.djp-funnel__row { display: grid; grid-template-columns: 110px 1fr 70px; gap: 12px; align-items: center; font-size: 12.5px; }
.djp-funnel__bar { height: 34px; border-radius: 9px; background: linear-gradient(90deg, var(--navy), var(--navy-3)); color: #fff; display: flex; align-items: center; padding: 0 12px; font-weight: 700; min-width: 34px; transition: width .6s ease; }
.djp-funnel__row:nth-child(n+3) .djp-funnel__bar { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); color: var(--navy); }
.djp-funnel__pct { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.djp-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.djp-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; flex: 1; min-width: 140px; }
.djp-legend span { display: flex; align-items: center; gap: 8px; }
.djp-legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.djp-legend b { margin-left: auto; color: var(--navy); }
.djp-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.djp-stat { background: var(--cream); border-radius: 14px; padding: 14px; }
.djp-stat b { display: block; font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1.1; }
.djp-stat span { font-size: 12px; color: var(--muted); }

/* ----- Toast / modal ----- */
.djp-toasts { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.djp-toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: djp-in .25s ease; pointer-events: auto; max-width: 92vw; }
.djp-toast--error { background: var(--red); }
.djp-toast svg { color: var(--gold-2); }
@keyframes djp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.djp-modal-wrap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(11, 29, 69, .45); backdrop-filter: blur(3px); animation: djp-fade .2s; }
@keyframes djp-fade { from { opacity: 0; } }
.djp-modal { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: djp-in .25s ease; }
.djp-modal__head { padding: 22px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.djp-modal__head h3 { font-size: 26px; }
.djp-modal__body { padding: 18px 24px; }
.djp-modal__foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ----- Auth screens ----- */
.djp-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.djp-auth__art { background: linear-gradient(150deg, var(--navy) 0%, #0A1838 55%, var(--navy-3) 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.djp-auth__art::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(225, 196, 138, .32), transparent 65%); }
.djp-auth__art h1 { color: #fff; font-size: 52px; max-width: 520px; position: relative; }
.djp-auth__art h1 em { color: var(--gold-2); font-style: italic; }
.djp-auth__art p { color: rgba(255,255,255,.7); max-width: 440px; font-size: 15px; position: relative; }
.djp-auth__points { display: grid; gap: 12px; margin-top: 26px; position: relative; }
.djp-auth__points span { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.85); }
.djp-auth__points svg { color: var(--gold-2); }
.djp-auth__panel { display: grid; place-items: center; padding: 40px 24px; }
.djp-auth__box { width: min(400px, 100%); text-align: center; }
.djp-auth__box h2 { font-size: 36px; margin: 16px 0 6px; }
.djp-auth__box p { color: var(--muted); margin: 0 0 24px; }
.djp-auth__box .djp-btn { width: 100%; height: 50px; font-size: 15px; }
.djp-auth__box .djp-btn + .djp-btn { margin-top: 10px; }
.djp-auth__logo img { max-width: 120px; max-height: 80px; }
.djp-auth__form { text-align: left; }
.djp-auth__team { margin: 34px 0 0 !important; font-size: 11.5px; color: var(--soft) !important; }
.djp-auth__team a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.djp-auth__team a:hover { color: var(--navy); }
.djp-auth__box .djp-auth__form .djp-btn { margin-top: 4px; }
.djp-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.djp-auth__msg { padding: 12px 14px; border-radius: 11px; font-size: 13px; line-height: 1.45; }
.djp-auth__msg--error { background: var(--red-bg); color: var(--red); }
.djp-auth__msg--ok { background: var(--green-bg); color: var(--green); }
.djp-pw { position: relative; }
.djp-pw input { padding-right: 46px !important; }
.djp-pw__eye { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.djp-pw__eye:hover { color: var(--navy); background: var(--cream-2); }
.djp-test-bar { margin: 18px 32px 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F0DBAE; color: #6D5420; font-size: 13px; }
.djp-test-bar svg { color: var(--gold-dark); }
.djp-test-bar a { margin-left: auto; white-space: nowrap; }

/* ----- Customer home ----- */
.djp-hero { border-radius: 22px; padding: 30px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.djp-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(225,196,138,.3), transparent 70%); }
.djp-hero h2 { color: #fff; font-size: 36px; }
.djp-hero h2 em { color: var(--gold-2); }
.djp-hero p { margin: 6px 0 0; color: rgba(255,255,255,.72); max-width: 520px; }
.djp-hero > * { position: relative; z-index: 1; }
.djp-project { padding: 18px 20px; cursor: pointer; display: flex; flex-direction: column; gap: 12px; transition: transform .15s, box-shadow .15s; }
.djp-project:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11,29,69,.1); }
.djp-project__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.djp-project h3 { font-size: 22px; }
.djp-callout { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #FFF8EA; border: 1px solid #F1DFB8; color: #6D5420; font-size: 13px; }
.djp-callout svg { color: var(--gold-dark); }
.djp-callout--blue { background: var(--blue-bg); border-color: #CFDCF3; color: #24467F; }
.djp-callout--blue svg { color: var(--blue); }
.djp-callout .djp-btn { margin-left: auto; }

/* ----- Bottom nav (mobile) ----- */
.djp-tabbar { display: none; }

/* ----- Responsive ----- */
@media (max-width: 1180px) {
	.djp-grid--2 { grid-template-columns: 1fr; }
	.djp-grid--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.djp-shell { grid-template-columns: 1fr; }
	.djp-side { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
	.djp-shell.nav-open .djp-side { transform: none; }
	.djp-shell.nav-open .djp-scrim { display: block; position: fixed; inset: 0; background: rgba(11,29,69,.4); z-index: 35; }
	.djp-icon-btn.djp-menu-btn { display: grid; }
	.djp-top { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
	.djp-top__title h1 { font-size: 24px; }
	.djp-top__title p { display: none; }
	.djp-top__actions .djp-btn span.lbl { display: none; }
	.djp-top__actions .djp-btn { width: 42px; padding: 0; }
	.djp-content { padding: 18px 16px calc(96px + var(--safe-b)); }
	.djp-test-bar { margin: 12px 16px 0; }
	.djp-grid--2e, .djp-grid--3 { grid-template-columns: 1fr; }
	.djp-grid--kpi { grid-template-columns: 1fr 1fr; gap: 12px; }
	.djp-grid { gap: 14px; }
	.djp-kpi { padding: 15px; }
	.djp-kpi__value { font-size: 28px; }
	.djp-kpi__icon { width: 34px; height: 34px; }
	.djp-card__head { padding: 16px 16px 0; }
	.djp-card__body { padding: 14px 16px 16px; }
	.djp-row { padding: 12px 16px; flex-wrap: wrap; }
	.djp-row__tags { max-width: none; flex-basis: 100%; justify-content: flex-start; padding-left: 52px; margin-top: -4px; }
	.djp-table th, .djp-table td { padding: 11px 14px; }
	.djp-table--cards thead { display: none; }
	.djp-table--cards, .djp-table--cards tbody, .djp-table--cards tr, .djp-table--cards td { display: block; width: 100%; }
	.djp-table--cards tr { padding: 12px 16px; border-bottom: 1px solid #F2EEE5; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
	.djp-table--cards td { padding: 0; border: 0; }
	.djp-table--cards td.hide-m { display: none; }
	.djp-table--cards td.num { text-align: right; }
	.djp-form--2 { grid-template-columns: 1fr; }
	.djp-dl { grid-template-columns: 120px 1fr; }
	.djp-drawer__head { padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
	.djp-drawer__head h2 { font-size: 22px; }
	.djp-drawer__body { padding: 16px 14px calc(40px + var(--safe-b)); }
	.djp-drawer__tabs { padding: 0 10px; }
	.djp-search { max-width: none; min-width: 100%; }
	.djp-board { grid-auto-columns: 84%; }
	.djp-auth { grid-template-columns: 1fr; }
	.djp-auth__art { padding: 34px 24px; min-height: auto; }
	.djp-auth__art h1 { font-size: 36px; }
	.djp-auth__points { display: none; }
	.djp-auth__logo { margin-bottom: 18px; }
	.djp-hero { padding: 22px; }
	.djp-hero h2 { font-size: 28px; }
	.djp-modal-wrap { align-items: end; padding: 0; }
	.djp-modal { border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: var(--safe-b); }
	.djp-tabbar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
		border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b));
	}
	.djp-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: 10.5px; font-weight: 600; color: var(--soft); text-decoration: none; position: relative; }
	.djp-tabbar a.is-active { color: var(--navy); }
	.djp-tabbar a.is-active svg { color: var(--gold-dark); }
	.djp-tabbar .djp-nav__count { position: absolute; top: 0; left: 55%; min-width: 17px; height: 17px; font-size: 10px; }
	.djp-funnel__row { grid-template-columns: 84px 1fr 48px; }
}
@media (max-width: 420px) {
	.djp-grid--kpi { grid-template-columns: 1fr 1fr; }
	.djp-kpi__value { font-size: 24px; }
	.djp-dl { grid-template-columns: 1fr; gap: 2px; }
	.djp-dl dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.djp * { animation: none !important; transition: none !important; }
}

/* ---------- v1.1: bell, Today, next step, inbox ---------- */
.djp { --orange: #C9761E; --orange-bg: #FCF1E3; }
.djp-toast--warn { background: #8A4B0F; }
.djp-bell { position: relative; margin-left: 10px; }
.djp-bell__btn.has-urgent svg { color: var(--red); animation: djp-ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes djp-ring { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 96% { transform: rotate(7deg); } }
.djp-bell__count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.djp-bell__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(11, 29, 69, .35); z-index: 60; overflow: hidden; animation: djp-in .18s ease; }
.djp-bell__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.djp-bell__head b { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.djp-bell__body { overflow: auto; padding-bottom: 6px; }
.djp-bell__label { padding: 12px 16px 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.djp-bell__label--red { color: var(--red); }
.djp-bell__label--orange { color: var(--orange); }
.djp-bell__label--blue { color: var(--blue); }
.djp-feed-item { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 10px 16px; cursor: pointer; font: inherit; color: var(--ink, #1B2236); }
.djp-feed-item:hover { background: var(--cream); }
.djp-feed-item__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.djp-feed-item--red .djp-feed-item__dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); }
.djp-feed-item--orange .djp-feed-item__dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-bg); }
.djp-feed-item--blue .djp-feed-item__dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
.djp-feed-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.djp-feed-item__main b { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.djp-feed-item__main small, .djp-feed-item time { font-size: 12px; color: var(--muted); }
.djp-feed-item time { white-space: nowrap; margin-top: 2px; }

.djp-today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.djp-today__col { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.djp-today__col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.djp-today__col--red::before { background: linear-gradient(90deg, var(--red), #E57C70); }
.djp-today__col--orange::before { background: linear-gradient(90deg, var(--orange), #E8A75E); }
.djp-today__col--blue::before { background: linear-gradient(90deg, var(--blue), #6E95DA); }
.djp-today__head { display: flex; gap: 12px; align-items: center; padding: 20px 20px 12px; }
.djp-today__head h3 { font-size: 21px; }
.djp-today__head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.djp-today__badge { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.djp-today__col--red .djp-today__badge { background: var(--red-bg); color: var(--red); }
.djp-today__col--orange .djp-today__badge { background: var(--orange-bg); color: var(--orange); }
.djp-today__col--blue .djp-today__badge { background: var(--blue-bg); color: var(--blue); }
.djp-today__n { margin-left: auto; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; color: var(--navy); }
.djp-today__col--red .djp-today__n { color: var(--red); }
.djp-today__list { padding: 0 8px 12px; max-height: 420px; overflow: auto; }
.djp-today__sub { padding: 10px 12px 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--orange); }
.djp-today__item { display: flex; align-items: center; border-radius: 12px; transition: background .15s; }
.djp-today__item:hover { background: var(--cream); }
.djp-today__go { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; background: none; border: 0; padding: 10px 12px; text-align: left; font: inherit; cursor: pointer; }
.djp-today__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.djp-today__item--red .djp-today__dot { background: var(--red); box-shadow: 0 0 0 4px var(--red-bg); animation: djp-pulse 1.8s ease-in-out infinite; }
.djp-today__item--orange .djp-today__dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-bg); }
.djp-today__item--blue .djp-today__dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-bg); }
@keyframes djp-pulse { 50% { box-shadow: 0 0 0 7px rgba(196, 69, 58, .08); } }
.djp-today__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.djp-today__txt b { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.djp-today__txt small, .djp-today__go time { font-size: 12px; color: var(--muted); }
.djp-today__go time { white-space: nowrap; margin-top: 2px; }
.djp-today__snooze { width: 34px; height: 34px; margin-right: 6px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.djp-today__snooze:hover { border-color: var(--line); background: #fff; color: var(--navy); }
.djp-today__empty { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 30px 12px; color: var(--muted); font-size: 13px; }
.djp-today__empty svg { color: var(--line); }
.djp-today__col--red .djp-today__empty svg { color: #6BAF8D; }

.djp-nextstep { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 18px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; }
.djp-nextstep__icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .12); color: var(--gold-2); display: grid; place-items: center; flex-shrink: 0; }
.djp-nextstep__main { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.djp-nextstep__main small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.djp-nextstep__main b { font-size: 14px; font-weight: 600; color: #fff; }
.djp-nextstep .djp-btn:not(.djp-btn--gold) { background: #fff; color: var(--navy) !important; }
.djp-lead.is-new .djp-row__title { font-weight: 700; }
.djp-lead.is-new { box-shadow: inset 3px 0 0 var(--blue); }
.djp code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--cream); padding: 2px 6px; border-radius: 6px; color: var(--navy); }
@media (max-width: 1180px) { .djp-today { grid-template-columns: 1fr 1fr; } .djp-today__col--blue { grid-column: 1 / -1; } }
@media (max-width: 760px) { .djp-today { grid-template-columns: 1fr; } .djp-bell { margin-left: 6px; } .djp-bell__panel { position: fixed; left: 12px; right: 12px; top: 70px; width: auto; } }
.djp-hero__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; position: relative; z-index: 1; }
.djp-hero__alt { color: var(--gold-2) !important; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.djp-hero__alt:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 760px) { .djp-hero__actions { align-items: stretch; } .djp-hero__alt { justify-content: center; } }
