/* Breakneck Client Portal - standalone design system, deliberately
   independent of the active theme's CSS. Light, clean, app-like UI
   (not a literal copy of the dark marketing site) since this is a
   working tool people use repeatedly, not a first-impression page -
   readability and clarity matter more here than atmosphere. */

:root{
	--bcp-ink:#161B22; --bcp-ink-mid:#4A5568; --bcp-ink-soft:#8B95A0;
	--bcp-bg:#F5F7FA; --bcp-surface:#FFFFFF; --bcp-line:#E4E9ED;
	--bcp-blue:#4FA3C7; --bcp-cyan:#22E0F0; --bcp-navy:#0B0F1A;
	--bcp-green:#2FAE6E; --bcp-amber:#D89A2A; --bcp-red:#D9534F;
	--bcp-radius:12px; --bcp-radius-sm:8px;
	--bcp-shadow:0 1px 2px rgba(20,25,35,.06), 0 1px 12px rgba(20,25,35,.04);
}
.bcp-body{margin:0; background:var(--bcp-bg); color:var(--bcp-ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; font-size:15px; line-height:1.55;}
.bcp-body *{box-sizing:border-box;}
.bcp-body a{color:var(--bcp-blue); text-decoration:none;}
.bcp-body h1{font-size:24px; margin:0 0 4px; font-weight:700;}
.bcp-body h2{font-size:16px; margin:0; font-weight:700;}
.bcp-body h3{font-size:16px; margin:0; font-weight:600;}

/* ---------- Login screen ---------- */
.bcp-login-screen{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px;}
.bcp-login-card{width:100%; max-width:380px; background:var(--bcp-surface); border:1px solid var(--bcp-line); border-radius:var(--bcp-radius); box-shadow:var(--bcp-shadow); padding:36px 32px; text-align:center;}
.bcp-login-card img{max-height:36px; margin-bottom:20px;}
.bcp-login-card h1{font-size:19px; margin-bottom:22px; color:var(--bcp-ink-mid); font-weight:600;}
.bcp-login-card form{display:flex; flex-direction:column; gap:14px; text-align:left;}
.bcp-login-card label{font-size:13px; font-weight:600; color:var(--bcp-ink-mid); display:flex; flex-direction:column; gap:6px;}
.bcp-login-card input{padding:11px 12px; border:1px solid var(--bcp-line); border-radius:var(--bcp-radius-sm); font-size:15px; font-family:inherit;}
.bcp-login-card input:focus{outline:2px solid var(--bcp-blue); outline-offset:1px;}
.bcp-forgot{display:block; margin-top:18px; font-size:13px; color:var(--bcp-ink-soft);}
.bcp-error{background:#FDECEC; color:var(--bcp-red); padding:10px 14px; border-radius:var(--bcp-radius-sm); font-size:13px; margin-bottom:16px;}

/* ---------- Buttons ---------- */
.bcp-btn{display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 18px; border-radius:999px; font-size:14px; font-weight:600; border:none; cursor:pointer; font-family:inherit;}
.bcp-btn-primary{background:var(--bcp-blue); color:#fff;}
.bcp-btn-primary:hover{background:#3E8FB2;}
.bcp-btn-ghost{background:var(--bcp-surface); color:var(--bcp-ink-mid); border:1px solid var(--bcp-line);}

/* ---------- Shell layout ---------- */
.bcp-shell{display:flex; min-height:100vh;}
.bcp-sidebar{width:230px; flex:none; background:var(--bcp-navy); color:#fff; display:flex; flex-direction:column; padding:24px 18px;}
.bcp-brand{padding:0 8px 24px; border-bottom:1px solid rgba(255,255,255,.1); margin-bottom:20px;}
.bcp-brand img{max-height:28px; filter:brightness(0) invert(1);}
.bcp-brand span{font-weight:700; font-size:17px;}
.bcp-nav{display:flex; flex-direction:column; gap:4px; flex:1;}
.bcp-nav a{color:rgba(255,255,255,.65); padding:10px 12px; border-radius:8px; font-size:14px; font-weight:500;}
.bcp-nav a:hover{color:#fff; background:rgba(255,255,255,.06);}
.bcp-nav a.is-active{color:#fff; background:rgba(255,255,255,.1);}
.bcp-sidebar-foot{border-top:1px solid rgba(255,255,255,.1); padding-top:16px; margin-top:16px;}
.bcp-user{font-size:13px; color:rgba(255,255,255,.85); margin-bottom:6px; font-weight:600;}
.bcp-sidebar-foot a{font-size:13px; color:rgba(255,255,255,.5);}

.bcp-main{flex:1; padding:36px 44px; max-width:1080px;}
.bcp-header{display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:28px; flex-wrap:wrap;}
.bcp-sub{color:var(--bcp-ink-soft); font-size:14px; margin:6px 0 0; display:flex; gap:14px; flex-wrap:wrap; align-items:center;}
.bcp-back{font-size:13px; color:var(--bcp-ink-soft); display:inline-block; margin-bottom:8px;}
.bcp-section-title{margin-bottom:14px; color:var(--bcp-ink); text-transform:uppercase; font-size:12px; letter-spacing:.05em; color:var(--bcp-ink-soft);}
.bcp-grid-2{display:grid; grid-template-columns:1.3fr 1fr; gap:28px; align-items:start;}
.bcp-empty{color:var(--bcp-ink-soft); font-size:14px; padding:20px; background:var(--bcp-surface); border:1px dashed var(--bcp-line); border-radius:var(--bcp-radius-sm); text-align:center;}
.bcp-card{background:var(--bcp-surface); border:1px solid var(--bcp-line); border-radius:var(--bcp-radius); padding:22px 24px; margin-bottom:20px; box-shadow:var(--bcp-shadow);}
.bcp-project-desc{color:var(--bcp-ink-mid); margin-bottom:24px; max-width:640px;}

/* ---------- Status badges ---------- */
.bcp-badge{display:inline-block; padding:4px 12px; border-radius:999px; font-size:12px; font-weight:700;}
.bcp-badge-not_started{background:#EEF1F4; color:var(--bcp-ink-soft);}
.bcp-badge-in_progress{background:#E7F3FA; color:var(--bcp-blue);}
.bcp-badge-waiting_on_client{background:#FBF1DE; color:var(--bcp-amber);}
.bcp-badge-under_review{background:#EFE9FB; color:#8259C9;}
.bcp-badge-completed{background:#E6F6ED; color:var(--bcp-green);}

/* ---------- Project cards (dashboard list) ---------- */
.bcp-project-list{display:flex; flex-direction:column; gap:12px;}
.bcp-project-card{display:block; background:var(--bcp-surface); border:1px solid var(--bcp-line); border-radius:var(--bcp-radius); padding:18px 20px; box-shadow:var(--bcp-shadow); color:inherit;}
.bcp-project-card:hover{border-color:var(--bcp-blue);}
.bcp-project-card-top{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px;}
.bcp-progress{height:6px; background:var(--bcp-line); border-radius:999px; overflow:hidden;}
.bcp-progress-fill{height:100%; background:linear-gradient(90deg,var(--bcp-blue),var(--bcp-cyan));}
.bcp-progress-label{font-size:12px; color:var(--bcp-ink-soft); margin-top:6px;}

/* ---------- Notifications ---------- */
.bcp-notif-list{display:flex; flex-direction:column; gap:2px;}
.bcp-notif{display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:var(--bcp-radius-sm); font-size:13px; color:var(--bcp-ink-mid); background:var(--bcp-surface); border:1px solid var(--bcp-line); margin-bottom:8px;}
.bcp-notif time{margin-left:auto; color:var(--bcp-ink-soft); font-size:12px; white-space:nowrap;}
.bcp-notif-dot{width:7px; height:7px; border-radius:50%; background:var(--bcp-line); flex:none;}
.bcp-notif.is-unread .bcp-notif-dot{background:var(--bcp-blue);}
.bcp-notif.is-unread{font-weight:600; color:var(--bcp-ink);}

/* ---------- Milestones / deliverables / team ---------- */
.bcp-milestone-list, .bcp-deliverable-list{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px;}
.bcp-milestone-list li{display:flex; align-items:center; gap:12px; font-size:14px;}
.bcp-milestone-check{width:20px; height:20px; border-radius:50%; border:2px solid var(--bcp-line); flex:none; display:flex; align-items:center; justify-content:center; font-size:11px; color:#fff;}
.bcp-milestone-list li.is-done .bcp-milestone-check{background:var(--bcp-green); border-color:var(--bcp-green);}
.bcp-milestone-title{flex:1;}
.bcp-milestone-list li.is-done .bcp-milestone-title{color:var(--bcp-ink-soft); text-decoration:line-through;}
.bcp-milestone-date{font-size:12px; color:var(--bcp-ink-soft);}
.bcp-deliverable-list li a{font-weight:600; font-size:14px;}
.bcp-team-list{display:flex; flex-wrap:wrap; gap:10px;}
.bcp-team-member{display:flex; align-items:center; gap:8px; font-size:13px; background:var(--bcp-bg); padding:6px 12px 6px 6px; border-radius:999px;}
.bcp-avatar{width:26px; height:26px; border-radius:50%; background:var(--bcp-blue); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700;}

/* ---------- Messages ---------- */
.bcp-messages-card{display:flex; flex-direction:column;}
.bcp-thread{display:flex; flex-direction:column; gap:14px; max-height:420px; overflow-y:auto; margin-bottom:16px; padding-right:4px;}
.bcp-message{background:var(--bcp-bg); border-radius:var(--bcp-radius-sm); padding:12px 14px;}
.bcp-message.is-mine{background:#E7F3FA;}
.bcp-message.is-internal{background:#FBF1DE;}
.bcp-message-meta{display:flex; align-items:center; gap:8px; font-size:12px; color:var(--bcp-ink-soft); margin-bottom:4px;}
.bcp-message-meta time{margin-left:auto;}
.bcp-internal-tag{background:var(--bcp-amber); color:#fff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:999px; text-transform:uppercase;}
.bcp-message-body{font-size:14px; color:var(--bcp-ink);}
.bcp-message-body p{margin:0 0 8px;}
.bcp-message-body p:last-child{margin-bottom:0;}
.bcp-message-form{display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--bcp-line); padding-top:16px;}
.bcp-message-form textarea{width:100%; min-height:80px; padding:12px; border:1px solid var(--bcp-line); border-radius:var(--bcp-radius-sm); font-family:inherit; font-size:14px; resize:vertical;}
.bcp-message-form-foot{display:flex; align-items:center; justify-content:space-between;}
.bcp-checkbox{font-size:13px; color:var(--bcp-ink-mid); display:flex; align-items:center; gap:6px;}

@media (max-width:860px){
	.bcp-shell{flex-direction:column;}
	.bcp-sidebar{width:100%; flex-direction:row; align-items:center; padding:14px 18px;}
	.bcp-brand{border:0; padding:0; margin:0;}
	.bcp-nav{flex-direction:row; flex:none; margin-left:16px;}
	.bcp-sidebar-foot{border:0; padding:0; margin:0 0 0 auto; display:flex; align-items:center; gap:10px;}
	.bcp-user{margin:0;}
	.bcp-main{padding:24px 18px;}
	.bcp-grid-2{grid-template-columns:1fr;}
}

/* ---------- Kanban board (Tasks) ---------- */
.bcp-kanban{display:grid; grid-template-columns:repeat(5,1fr); gap:14px; overflow-x:auto;}
.bcp-kanban-col{background:var(--bcp-bg); border-radius:var(--bcp-radius-sm); padding:12px; min-width:180px;}
.bcp-kanban-col-head{font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--bcp-ink-soft); margin-bottom:10px; display:flex; justify-content:space-between;}
.bcp-kanban-card{background:var(--bcp-surface); border:1px solid var(--bcp-line); border-radius:8px; padding:10px 12px; margin-bottom:8px; box-shadow:var(--bcp-shadow);}
.bcp-kanban-card-title{font-size:13px; font-weight:600; margin-bottom:8px;}
.bcp-kanban-card-meta{display:flex; align-items:center; gap:8px; font-size:11px; color:var(--bcp-ink-soft); margin-bottom:8px;}
.bcp-kanban-status-select{width:100%; font-size:11px; padding:5px 6px; border:1px solid var(--bcp-line); border-radius:6px; background:var(--bcp-bg);}
.bcp-kanban-empty{font-size:12px; color:var(--bcp-ink-soft); text-align:center; padding:10px 0;}
.bcp-priority{padding:2px 8px; border-radius:999px; font-weight:700;}
.bcp-priority-low{background:#EEF1F4; color:var(--bcp-ink-soft);}
.bcp-priority-medium{background:#E7F3FA; color:var(--bcp-blue);}
.bcp-priority-high{background:#FDECEC; color:var(--bcp-red);}

/* ---------- Ticket status badges ---------- */
.bcp-badge-ticket-open{background:#E7F3FA; color:var(--bcp-blue);}
.bcp-badge-ticket-in_progress{background:#EFE9FB; color:#8259C9;}
.bcp-badge-ticket-waiting_on_client{background:#FBF1DE; color:var(--bcp-amber);}
.bcp-badge-ticket-resolved{background:#E6F6ED; color:var(--bcp-green);}
.bcp-badge-ticket-closed{background:#EEF1F4; color:var(--bcp-ink-soft);}

@media (max-width:860px){
	.bcp-kanban{grid-template-columns:1fr; }
}

.bcp-kanban-comments{margin-top:8px; font-size:11px;}
.bcp-kanban-comments summary{cursor:pointer; color:var(--bcp-ink-soft); font-weight:600;}
.bcp-kanban-comment{padding:6px 0; border-top:1px solid var(--bcp-line); color:var(--bcp-ink-mid); margin-top:6px;}
.bcp-kanban-comment-form{display:flex; gap:6px; margin-top:8px;}
.bcp-kanban-comment-form input[type="text"]{flex:1; padding:6px 8px; border:1px solid var(--bcp-line); border-radius:6px; font-size:11px;}
.bcp-kanban-comment-form button{border:none; background:var(--bcp-blue); color:#fff; border-radius:6px; width:26px; cursor:pointer;}

/* ---------- Staff nav / forms polish ---------- */
.bcp-nav-admin-link{opacity:.55; font-size:12px !important; margin-top:6px;}
.bcp-message-form label{display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:600; color:var(--bcp-ink-mid);}
.bcp-message-form label input, .bcp-message-form label select{font-weight:400; font-family:inherit;}
details.bcp-card > summary{list-style:none;}
details.bcp-card > summary::-webkit-details-marker{display:none;}
