/* T-311: Slip developer portal */
:root {
    --dp-navy: #0b1f3a;
    --dp-navy-2: #12305a;
    --dp-teal: #0f766e;
    --dp-teal-2: #14b8a6;
    --dp-ink: #0f172a;
    --dp-muted: #64748b;
    --dp-line: #e2e8f0;
    --dp-bg: #f5f7fb;
    --dp-card: #ffffff;
    --dp-radius: 14px;
}
html, body { height: 100%; }
body.dp { background: var(--dp-bg); color: var(--dp-ink); font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
.dp a { color: var(--dp-teal); }
.dp a:hover { color: #0b5a54; text-decoration: none; }
.dp .btn-primary, .dp a.btn-primary, .dp a.btn-primary:hover, .dp a.btn-primary:focus { color: #fff !important; }
.dp a.btn-ghost, .dp a.btn-ghost:hover { color: var(--dp-ink); }
.dp code { background: #eef2f7; color: #0b3b66; border-radius: 6px; padding: 2px 6px; }
.dp .btn { border-radius: 10px; font-weight: 600; }
.dp .btn-primary { background: var(--dp-teal); border-color: var(--dp-teal); }
.dp .btn-primary:hover, .dp .btn-primary:focus { background: #0b5a54; border-color: #0b5a54; }
.dp .btn-ghost { background: transparent; border: 1px solid var(--dp-line); color: var(--dp-ink); }
.dp .btn-ghost:hover { background: #fff; border-color: #cbd5e1; }
.dp .form-control { border-radius: 10px; border-color: #d5dde8; height: 44px; box-shadow: none; }
.dp .form-control:focus { border-color: var(--dp-teal-2); box-shadow: 0 0 0 3px rgba(20, 184, 166, .15); }
.dp label { font-weight: 600; font-size: 13px; color: #334155; }
.dp .help-block { font-size: 12px; color: var(--dp-muted); }
.dp-alert { border-radius: 10px; border: 0; padding: 12px 14px; font-size: 13px; }

/* ---------- auth (split screen) ---------- */
.dp-auth { display: flex; min-height: 100vh; }
.dp-auth-brand { flex: 0 0 44%; max-width: 44%; position: relative; overflow: hidden; color: #e2e8f0; padding: 48px 56px; display: flex; flex-direction: column;
    background: radial-gradient(1200px 600px at -10% -20%, rgba(20, 184, 166, .35), transparent 60%), radial-gradient(900px 500px at 120% 120%, rgba(20, 184, 166, .25), transparent 60%), linear-gradient(160deg, var(--dp-navy) 0%, var(--dp-navy-2) 100%); }
.dp-auth-brand:before { content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px); background-size: 28px 28px; }
.dp-logo-white { height: 34px; filter: brightness(0) invert(1); }
.dp-logo { height: 28px; }
.dp-brand-body { margin-top: auto; margin-bottom: auto; position: relative; }
.dp-brand-body h1 { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.5px; }
.dp-brand-body p.lead { color: #cbd5e1; font-size: 15px; margin-bottom: 26px; }
.dp-points { list-style: none; padding: 0; margin: 0 0 28px; }
.dp-points li { display: flex; gap: 12px; margin-bottom: 14px; color: #e2e8f0; }
.dp-points .ic { flex: 0 0 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; color: var(--dp-teal-2); }
.dp-points strong { color: #fff; display: block; }
.dp-points span { color: #b6c2d3; font-size: 13px; }
.dp-code { background: rgba(2, 6, 23, .55); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 14px 16px; font-family: Consolas, Menlo, monospace; font-size: 12px; color: #cbd5e1; line-height: 1.6; white-space: pre; overflow: hidden; }
.dp-code .k { color: #5eead4; } .dp-code .s { color: #fcd34d; } .dp-code .c { color: #64748b; }
.dp-brand-foot { position: relative; color: #94a3b8; font-size: 12px; }
.dp-auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; background: #fff; }
.dp-auth-card { width: 100%; max-width: 440px; margin: 0 auto; }
.dp-auth-card h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.3px; }
.dp-auth-card .sub { color: var(--dp-muted); margin-bottom: 26px; }
.dp-auth-card .form-group { margin-bottom: 16px; }
.dp-pw { position: relative; }
.dp-pw .toggle { position: absolute; right: 10px; top: 0; height: 44px; border: 0; background: none; color: var(--dp-muted); font-size: 12px; font-weight: 600; }
.dp-strength { height: 4px; border-radius: 4px; background: var(--dp-line); margin-top: 6px; overflow: hidden; }
.dp-strength i { display: block; height: 100%; width: 0; background: #ef4444; transition: width .2s, background .2s; }
.dp-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: #475569 !important; }
.dp-check input { margin-top: 3px; }
.dp-divider { text-align: center; color: var(--dp-muted); font-size: 12px; margin: 18px 0; }
.dp-auth-foot { text-align: center; color: var(--dp-muted); font-size: 12px; margin-top: 28px; }
.dp-code-input { letter-spacing: 10px; font-size: 22px !important; text-align: center; font-weight: 700; height: 56px !important; }
.dp-secure { display: flex; gap: 8px; align-items: center; color: var(--dp-muted); font-size: 12px; margin-top: 14px; }

/* ---------- app shell ---------- */
.dp-top { background: #fff; border-bottom: 1px solid var(--dp-line); position: sticky; top: 0; z-index: 30; }
.dp-top .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 28px; }
.dp-top .brand { display: flex; align-items: center; gap: 10px; color: var(--dp-ink); font-weight: 700; }
.dp-top .brand small { color: var(--dp-muted); font-weight: 600; border-left: 1px solid var(--dp-line); padding-left: 10px; }
.dp-nav { display: flex; gap: 4px; height: 100%; }
.dp-nav a { display: flex; align-items: center; padding: 0 12px; color: #475569; font-weight: 600; border-bottom: 2px solid transparent; }
.dp-nav a:hover { color: var(--dp-ink); }
.dp-nav a.active { color: var(--dp-ink); border-bottom-color: var(--dp-teal); }
.dp-top .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dp-env { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.dp-env.live { background: #dcfce7; color: #166534; }
.dp-user { position: relative; }
.dp-user > button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 4px; border-radius: 999px; }
.dp-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--dp-teal), var(--dp-navy-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.dp-menu { display: none; position: absolute; right: 0; top: 46px; width: 250px; background: #fff; border: 1px solid var(--dp-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, .12); padding: 8px; }
.dp-menu.open { display: block; }
.dp-menu .who { padding: 10px 12px; border-bottom: 1px solid var(--dp-line); margin-bottom: 6px; }
.dp-menu .who strong { display: block; }
.dp-menu .who span { color: var(--dp-muted); font-size: 12px; word-break: break-all; }
.dp-menu a, .dp-menu button.item { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: #334155; background: none; border: 0; font-weight: 500; }
.dp-menu a:hover, .dp-menu button.item:hover { background: #f1f5f9; }
.dp-burger { display: none; border: 0; background: none; font-size: 20px; color: var(--dp-ink); }
.dp-main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 10px; }
.dp-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.dp-page-head h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -.3px; }
.dp-page-head p { color: var(--dp-muted); margin: 4px 0 0; }
.dp-card { background: var(--dp-card); border: 1px solid var(--dp-line); border-radius: var(--dp-radius); padding: 22px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.dp-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.dp-card .muted { color: var(--dp-muted); }
.dp-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.dp-stat { background: #fff; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.dp-stat .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dp-stat .v { font-size: 22px; font-weight: 800; line-height: 1; }
.dp-stat .l { color: var(--dp-muted); font-size: 12px; margin-top: 4px; }
.ic-teal { background: #ccfbf1; color: #0f766e; } .ic-blue { background: #dbeafe; color: #1d4ed8; } .ic-amber { background: #fef3c7; color: #b45309; } .ic-rose { background: #ffe4e6; color: #be123c; } .ic-violet { background: #ede9fe; color: #6d28d9; }
.dp-steps { list-style: none; padding: 0; margin: 0; }
.dp-steps li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--dp-line); }
.dp-steps li:last-child { border-bottom: 0; }
.dp-steps .dot { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid #cbd5e1; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.dp-steps li.done .dot { background: var(--dp-teal); border-color: var(--dp-teal); color: #fff; }
.dp-steps li.current .dot { border-color: var(--dp-teal); color: var(--dp-teal); }
.dp-steps strong { display: block; }
.dp-steps span { color: var(--dp-muted); font-size: 13px; }
.dp-progress { height: 8px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.dp-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--dp-teal), var(--dp-teal-2)); }
.dp-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--dp-line); border-radius: 10px; margin-bottom: 8px; }
.dp-kv .k { color: var(--dp-muted); font-size: 12px; font-weight: 600; min-width: 92px; }
.dp-kv .v { font-family: Consolas, Menlo, monospace; font-size: 12.5px; word-break: break-all; flex: 1; }
.dp-copy { border: 1px solid var(--dp-line); background: #fff; border-radius: 8px; font-size: 12px; padding: 4px 9px; color: #334155; font-weight: 600; }
.dp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dp-action { display: block; background: #fff; border: 1px solid var(--dp-line); border-radius: var(--dp-radius); padding: 16px; color: var(--dp-ink) !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.dp-action:hover { border-color: #99f6e4; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, .06); }
.dp-action .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.dp-action strong { display: block; margin-bottom: 2px; }
.dp-action span { color: var(--dp-muted); font-size: 12.5px; }
.dp-table { width: 100%; }
.dp-table th { color: var(--dp-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--dp-line); }
.dp-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.dp-pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dp-pill.ok { background: #dcfce7; color: #166534; } .dp-pill.warn { background: #fef3c7; color: #92400e; } .dp-pill.err { background: #ffe4e6; color: #be123c; } .dp-pill.info { background: #e0f2fe; color: #075985; } .dp-pill.mute { background: #f1f5f9; color: #475569; }
.dp-method { font-family: Consolas, Menlo, monospace; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #eef2f7; color: #334155; margin-right: 6px; }
.dp-empty { text-align: center; padding: 26px 10px; color: var(--dp-muted); }
.dp-footer { max-width: 1200px; margin: 10px auto 0; padding: 22px 20px 30px; color: var(--dp-muted); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--dp-line); }
.dp-footer a { color: var(--dp-muted); margin-left: 16px; }
.dp-terms { max-width: 820px; margin: 0 auto; }
.dp-terms h2 { font-size: 18px; font-weight: 700; margin-top: 26px; }
.dp-terms p, .dp-terms li { color: #334155; line-height: 1.7; }

/* docs inside the portal keep AdminLTE boxes readable */
.dp .box { background: #fff; border-radius: var(--dp-radius); border: 1px solid var(--dp-line); box-shadow: none; }
.dp .content-header h1 { font-size: 24px; font-weight: 800; }

@media (max-width: 991px) {
    .dp-auth { flex-direction: column; }
    .dp-auth-brand { flex: none; max-width: none; padding: 26px 24px; }
    .dp-brand-body { margin: 18px 0 0; }
    .dp-brand-body h1 { font-size: 24px; }
    .dp-points, .dp-code, .dp-brand-foot { display: none; }
    .dp-stats, .dp-actions { grid-template-columns: repeat(2, 1fr); }
    .dp-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--dp-line); flex-direction: column; height: auto; padding: 8px 12px; }
    .dp-nav.open { display: flex; }
    .dp-nav a { padding: 10px 6px; border-bottom: 0; }
    .dp-burger { display: block; }
    .dp-top .brand small, .dp-env { display: none; }
}
@media (max-width: 520px) {
    .dp-stats, .dp-actions { grid-template-columns: 1fr; }
}
.dp-stat .ic i, .dp-action .ic i { font-size: 16px; line-height: 1; display: inline-block; min-width: 16px; text-align: center; }

/* T-372: page transitions between the menu items (browsers that support them; off for less motion) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 140ms ease-in both dp-out; }
::view-transition-new(root) { animation: 200ms ease-out both dp-in; }
@keyframes dp-out { to { opacity: 0; } }
@keyframes dp-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* T-376: menu icons, light pill on the active item */
.dp-nav a i { margin-right: 6px; opacity: .8; }
.dp-nav a.active { background: rgba(20, 184, 166, .12); border-radius: 8px; }
