:root {
  --ink: #182230;
  --muted: #697586;
  --line: #e4e9f0;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --brand: #6c5ce7;
  --brand-dark: #5544d8;
  --green: #20b26b;
  --red: #ef5b5b;
  --orange: #f59e42;
  --shadow: 0 10px 30px rgba(34, 44, 65, .09);
}
* { box-sizing: border-box; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
#bo-app { min-height: 100vh; color: var(--ink); font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.bo-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: var(--soft); }
.bo-sidebar { background: #151928; color: #cbd3e3; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px; }
.bo-brand { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 19px; font-weight: 800; letter-spacing: -.03em; padding: 0 8px; }
.bo-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg,#8c7bff,#5b48dd); font-size: 17px; }
.bo-nav, .bo-projects { display: grid; gap: 5px; }
.bo-nav button, .bo-project-item { width: 100%; border: 0; background: transparent; color: inherit; padding: 10px 12px; border-radius: 10px; text-align: left; display: flex; align-items: center; gap: 10px; }
.bo-nav button:hover, .bo-project-item:hover, .bo-project-item.active { background: rgba(255,255,255,.09); color: #fff; }
.bo-nav button.active { background: #6c5ce7; color: #fff; }
.bo-side-title { padding: 0 10px; display: flex; align-items: center; justify-content: space-between; color: #7f899f; text-transform: uppercase; font-size: 11px; letter-spacing: .09em; font-weight: 800; }
.bo-side-title button { border: 0; color: #fff; background: #2d3348; width: 25px; height: 25px; border-radius: 7px; }
.bo-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.bo-side-foot { margin-top: auto; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: #8e98ac; font-size: 12px; }
.bo-main { min-width: 0; }
.bo-topbar { height: 74px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.bo-heading { min-width: 190px; }
.bo-heading h1 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.bo-heading p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
.bo-search { flex: 1; position: relative; max-width: 520px; }
.bo-search input { width: 100%; border: 1px solid var(--line); background: var(--soft); padding: 10px 12px 10px 36px; border-radius: 11px; outline: none; }
.bo-search input:focus { border-color: #9e91ef; background: #fff; box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.bo-search span { position: absolute; left: 12px; top: 9px; color: var(--muted); }
.bo-actions { margin-left: auto; display: flex; gap: 8px; }
.bo-btn { border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 9px 13px; font-weight: 700; }
.bo-btn:hover { border-color: #cbd2dd; background: #fafbfc; }
.bo-btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.bo-btn.primary:hover { background: var(--brand-dark); }
.bo-btn.danger { color: #d83b3b; }
.bo-content { padding: 24px 28px 34px; }
.bo-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.bo-tabs { display: inline-flex; background: #e9edf3; border-radius: 10px; padding: 3px; }
.bo-tabs button { border: 0; padding: 7px 12px; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; }
.bo-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(20,30,50,.08); }
.bo-filter { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 8px 10px; color: var(--ink); }
.bo-stat { margin-left: auto; color: var(--muted); font-size: 13px; }
.bo-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(285px, 325px); gap: 16px; overflow-x: auto; align-items: start; padding-bottom: 18px; }
.bo-column { background: #edf1f6; border-radius: 14px; min-height: 340px; padding: 11px; border: 1px solid #e1e6ee; }
.bo-column.dragover { outline: 2px dashed var(--brand); outline-offset: 2px; }
.bo-column-head { display: flex; align-items: center; gap: 8px; padding: 3px 4px 12px; font-weight: 800; }
.bo-count { margin-left: auto; min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #dfe5ee; color: var(--muted); font-size: 12px; }
.bo-card-list { display: grid; gap: 9px; min-height: 120px; }
.bo-card { background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; padding: 13px; box-shadow: 0 2px 8px rgba(30,40,60,.04); transition: .16s ease; }
.bo-card:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(30,40,60,.08); }
.bo-card.dragging { opacity: .45; }
.bo-card-title { font-weight: 750; margin: 5px 0 10px; cursor: pointer; }
.bo-card-top, .bo-card-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.bo-priority { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 999px; }
.bo-priority.high { color: #c83737; background: #ffe2e2; }
.bo-priority.medium { color: #b76800; background: #fff0d8; }
.bo-priority.low { color: #267348; background: #dcf7e8; }
.bo-tag { color: #5f4bd5; background: #eeeaff; padding: 3px 7px; border-radius: 7px; font-size: 11px; }
.bo-card-meta { color: var(--muted); font-size: 11px; border-top: 1px solid #f0f2f5; padding-top: 10px; }
.bo-card-meta .overdue { color: #dc3f3f; font-weight: 800; }
.bo-avatar { margin-left: auto; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2f7ed8; font-size: 10px; font-weight: 800; }
.bo-add-card { width: 100%; margin-top: 9px; border: 1px dashed #c8d0dc; background: transparent; color: var(--muted); padding: 9px; border-radius: 9px; }
.bo-add-card:hover { background: #fff; color: var(--brand); }
.bo-empty { padding: 28px; text-align: center; color: var(--muted); }
.bo-list-view { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bo-list-row { display: grid; grid-template-columns: minmax(220px,1.5fr) 130px 110px 140px 110px; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #edf0f4; }
.bo-list-row.head { background: #f7f8fb; color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.bo-list-row:last-child { border-bottom: 0; }
.bo-list-title { font-weight: 750; cursor: pointer; }
.bo-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: 14px; overflow: hidden; }
.bo-day { background: #fff; min-height: 125px; padding: 9px; }
.bo-day.muted { background: #f8f9fb; color: #a3a9b4; }
.bo-day-num { font-size: 12px; font-weight: 800; margin-bottom: 7px; }
.bo-day-task { display: block; border: 0; width: 100%; text-align: left; padding: 5px 7px; margin: 4px 0; border-radius: 7px; background: #eeeaff; color: #5141bd; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bo-modal-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(12,17,29,.55); display: grid; place-items: center; padding: 20px; }
.bo-modal { width: min(720px,100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.bo-modal.small { width: min(440px,100%); }
.bo-modal-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.bo-modal-head h2 { margin: 0; font-size: 18px; }
.bo-close { border: 0; background: #f0f2f6; width: 32px; height: 32px; border-radius: 9px; font-size: 19px; }
.bo-form { padding: 20px; display: grid; gap: 16px; }
.bo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.bo-field { display: grid; gap: 6px; }
.bo-field.full { grid-column: 1/-1; }
.bo-field label { color: var(--muted); font-size: 12px; font-weight: 750; }
.bo-field input, .bo-field textarea, .bo-field select { width: 100%; border: 1px solid var(--line); padding: 10px 11px; border-radius: 9px; outline: none; background: #fff; }
.bo-field textarea { min-height: 90px; resize: vertical; }
.bo-field input:focus, .bo-field textarea:focus, .bo-field select:focus { border-color: #998bec; box-shadow: 0 0 0 3px rgba(108,92,231,.09); }
.bo-modal-foot { padding: 15px 20px; border-top: 1px solid var(--line); display: flex; gap: 9px; justify-content: flex-end; }
.bo-subtasks { display: grid; gap: 7px; }
.bo-subtask { display: flex; align-items: center; gap: 8px; }
.bo-subtask input[type=text] { flex: 1; }
.bo-comment { padding: 9px 11px; border-radius: 9px; background: #f5f7fa; margin-top: 7px; }
.bo-comment small { color: var(--muted); }
.bo-timer { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 10px; background: #f5f3ff; }
.bo-timer strong { font-variant-numeric: tabular-nums; }
.bo-toast { position: fixed; right: 22px; bottom: 22px; z-index: 1100; background: #17202e; color: #fff; padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow); }
.bo-mobile-menu { display: none; }
@media (max-width: 900px) {
  .bo-shell { grid-template-columns: 1fr; }
  .bo-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .bo-sidebar.open { transform: translateX(0); }
  .bo-mobile-menu { display: inline-grid; place-items: center; }
  .bo-topbar { padding: 0 14px; }
  .bo-heading { min-width: 0; }
  .bo-heading p, .bo-search { display: none; }
  .bo-content { padding: 18px 14px; }
  .bo-list-row { grid-template-columns: 1fr 95px; }
  .bo-list-row > *:nth-child(n+3) { display: none; }
  .bo-calendar { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .bo-actions .bo-btn:not(.primary) { display: none; }
  .bo-grid { grid-template-columns: 1fr; }
  .bo-field.full { grid-column: auto; }
  .bo-board { grid-auto-columns: minmax(270px,88vw); }
  .bo-calendar { grid-template-columns: 1fr; }
}

/* Brainoffice 1.4 — modern product interface */
:root { --ink:#171a2b; --muted:#6d7383; --line:#e3e6ee; --soft:#f7f8fc; --brand:#635bff; --brand-dark:#4f47e5; --shadow:0 20px 55px rgba(26,31,53,.14); }
.bo-logo-mark { position:relative; flex:0 0 auto; width:38px; height:38px; overflow:hidden; display:block; border-radius:12px; background:linear-gradient(145deg,#817aff,#5148e7); box-shadow:0 8px 20px rgba(78,69,220,.26),inset 0 1px 0 rgba(255,255,255,.3); }
.bo-logo-mark i { position:absolute; left:10px; width:18px; height:5px; border-radius:99px; background:#fff; transform-origin:left center; }
.bo-logo-mark i:nth-child(1) { top:10px; width:13px; }
.bo-logo-mark i:nth-child(2) { top:17px; width:18px; }
.bo-logo-mark i:nth-child(3) { top:24px; width:10px; opacity:.72; }
.bo-shell { min-height:calc(100vh - 76px); grid-template-columns:270px minmax(0,1fr); background:var(--soft); }
.bo-sidebar { position:relative; overflow:hidden; background:#121522; padding:25px 18px; gap:27px; }
.bo-sidebar::before { content:""; position:absolute; width:230px; height:230px; left:-110px; top:-120px; border-radius:50%; background:#635bff; filter:blur(85px); opacity:.28; pointer-events:none; }
.bo-brand { position:relative; color:#fff; text-decoration:none; font-size:19px; font-weight:820; letter-spacing:-.04em; padding:0 9px; }
.bo-nav button,.bo-project-item { padding:11px 12px; border-radius:11px; transition:.16s ease; }
.bo-nav button.active { background:linear-gradient(135deg,#6b63ff,#554de5); box-shadow:0 8px 18px rgba(57,48,185,.28); }
.bo-side-foot { padding:15px; border-radius:15px; background:rgba(255,255,255,.045); }
.bo-side-foot p { margin:9px 0 0; line-height:1.55; }
.bo-local-status { display:flex; align-items:center; gap:7px; color:#dbe0ea; font-weight:750; }
.bo-local-status i { width:7px; height:7px; border-radius:50%; background:#3bd69f; box-shadow:0 0 0 4px rgba(59,214,159,.11); }
.bo-topbar { height:84px; gap:18px; padding:0 30px; background:rgba(255,255,255,.82); border-bottom-color:rgba(225,228,237,.85); backdrop-filter:blur(18px) saturate(150%); }
.bo-search input { padding:11px 13px 11px 38px; border-radius:13px; background:#f4f5f9; transition:.17s ease; }
.bo-btn { padding:10px 14px; border-radius:11px; font-weight:720; transition:.16s ease; }
.bo-btn.primary { box-shadow:0 7px 16px rgba(99,91,255,.2); }
.bo-btn.primary:hover { transform:translateY(-1px); box-shadow:0 10px 22px rgba(99,91,255,.28); }
.bo-content { padding:28px 30px 42px; }
.bo-board { grid-auto-columns:minmax(292px,324px); gap:17px; padding:2px 2px 22px; scrollbar-color:#c9cddd transparent; }
.bo-column { min-height:350px; padding:12px; border-radius:18px; background:#eff1f6; border-color:#e3e5ed; }
.bo-column-head { padding:5px 5px 14px; letter-spacing:-.01em; }
.bo-card-list { min-height:170px; gap:10px; align-content:start; }
.bo-card { padding:14px; border-radius:14px; border-color:#e3e5ec; box-shadow:0 3px 10px rgba(30,36,58,.045); transition:.17s ease; }
.bo-card:hover { transform:translateY(-2px); border-color:#d4d1ff; box-shadow:0 10px 24px rgba(30,36,58,.09); }
.bo-add-card { margin-top:10px; border:0; padding:10px; border-radius:10px; text-align:left; font-weight:650; }
.bo-add-card span { display:inline-grid; place-items:center; width:22px; height:22px; margin-right:5px; border-radius:7px; background:#fff; color:var(--brand); box-shadow:0 2px 6px rgba(30,36,58,.07); }
.bo-column-empty { min-height:150px; display:grid; place-items:center; border:1px dashed #d4d8e2; border-radius:12px; color:#9ba1af; font-size:12px; }
.bo-welcome { margin:0 0 24px; padding:21px 23px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:18px; border:1px solid #dedcff; border-radius:20px; background:linear-gradient(120deg,#fff 0%,#f3f1ff 100%); box-shadow:0 12px 30px rgba(75,66,190,.07); }
.bo-welcome-icon { width:58px; height:58px; padding:12px; display:grid; align-content:center; gap:5px; border-radius:17px; background:#635bff; box-shadow:0 10px 25px rgba(99,91,255,.25); }
.bo-welcome-icon span { height:5px; border-radius:9px; background:#fff; }
.bo-welcome-icon span:nth-child(1) { width:70%; }.bo-welcome-icon span:nth-child(3) { width:55%; opacity:.7; }
.bo-welcome-kicker { color:#635bff; font-size:10px; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.bo-welcome h2 { margin:2px 0 3px; font-size:20px; letter-spacing:-.025em; }
.bo-welcome p { margin:0; color:var(--muted); font-size:13px; }
.bo-modal-wrap { background:rgba(10,13,24,.58); backdrop-filter:blur(5px); }
.bo-modal { border-radius:22px; }

@media (max-width:900px) {
  .bo-welcome { grid-template-columns:auto 1fr; }
  .bo-welcome .bo-btn { grid-column:1/-1; }
}
@media (max-width:560px) {
  .bo-welcome { padding:18px; grid-template-columns:1fr; }
  .bo-welcome-icon { width:48px; height:48px; }
}
