/* Belvedere Tareas · estilos básicos (provisionales, antes de aplicar la marca) */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1d1d1f;background:#f5f5f3}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
input,select,textarea{border:1px solid #cfcfcb;border-radius:6px;padding:6px 8px;background:#fff;max-width:100%}
textarea{width:100%;resize:vertical}
h1{font-size:24px;margin:0}
h2{font-size:16px;margin:0}
h3{font-size:14px;margin:18px 0 8px}
code{background:#eee;padding:1px 4px;border-radius:4px;font-size:12px}
.bt-muted{color:#6e6e73}
.bt-small{font-size:12px}
.bt-loading{padding:40px;text-align:center;color:#6e6e73}

/* botones */
.bt-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid #1d1d1f;background:#1d1d1f;color:#fff;border-radius:6px;padding:7px 12px;cursor:pointer;text-decoration:none;white-space:nowrap}
.bt-btn:hover{opacity:.88}
.bt-btn-ghost{background:#fff;color:#1d1d1f}
.bt-btn-danger{background:#fff;color:#b3261e;border-color:#b3261e}
.bt-x{border:0;background:none;font-size:22px;line-height:1;cursor:pointer;padding:2px 6px}

/* login */
.bt-login{display:grid;place-items:center;min-height:100vh}
.bt-login-box{background:#fff;padding:40px;border-radius:12px;max-width:380px;width:92%;box-shadow:0 2px 20px rgba(0,0,0,.06);text-align:center}
.bt-login-box h1{font-size:32px;margin-bottom:8px}
.bt-brand{text-transform:uppercase;letter-spacing:.15em;font-size:12px;color:#6e6e73;margin:0}
.bt-btn-google{background:#fff;color:#1d1d1f;border-color:#cfcfcb;padding:10px 18px;margin-top:12px}
.bt-alert{background:#fdecea;color:#8a1c14;padding:10px;border-radius:6px}

/* layout */
.bt-layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}
.bt-nav{background:#fff;border-right:1px solid #e5e5e2;padding:18px 12px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh;overflow:auto}
.bt-logo{padding:4px 10px 16px;display:flex;gap:6px;align-items:baseline}
.bt-logo span{color:#6e6e73}
.bt-nav>a,.bt-nav-projects a{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:6px;text-decoration:none}
.bt-nav>a:hover,.bt-nav-projects a:hover{background:#f0f0ed}
.bt-nav a.is-on{background:#ececea;font-weight:600}
.bt-nav-projects{margin:0 0 6px 10px;border-left:1px solid #e5e5e2;padding-left:4px}
.bt-nav-projects a{font-size:13px;padding:5px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bt-me{margin-top:auto;display:grid;grid-template-columns:auto 1fr;gap:4px 8px;align-items:center;padding:12px 10px 0;border-top:1px solid #e5e5e2}
.bt-me strong{display:block;font-size:13px}
.bt-me small{color:#6e6e73}
.bt-me-links{grid-column:1/-1;display:flex;gap:12px;font-size:12px}
.bt-main{padding:24px 32px 80px;min-width:0}
.bt-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.bt-head p{margin:4px 0 0}
.bt-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bt-check{display:inline-flex;gap:4px;align-items:center;cursor:pointer}
.bt-seg{display:inline-flex;border:1px solid #cfcfcb;border-radius:6px;overflow:hidden;background:#fff}
.bt-seg a{padding:6px 10px;text-decoration:none;border-left:1px solid #cfcfcb}
.bt-seg a:first-child{border-left:0}
.bt-seg a.is-on{background:#1d1d1f;color:#fff}
.bt-desc{max-width:70ch;white-space:pre-wrap}
.bt-empty{padding:30px;text-align:center;color:#6e6e73;background:#fff;border-radius:8px}
.bt-panel{background:#fff;border-radius:8px;padding:18px;margin-top:24px;max-width:640px}

/* listas de tareas */
.bt-quick{width:100%;padding:10px 12px;margin:4px 0 16px;border-style:dashed}
.bt-group{margin-bottom:18px}
.bt-group-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6e6e73;margin:0 0 6px}
.bt-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e5e5e2;border-radius:6px;padding:8px 10px;margin-bottom:4px;cursor:pointer}
.bt-row:hover{border-color:#b9b9b4}
.bt-row-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bt-row-date{color:#6e6e73;font-size:12px;min-width:56px;text-align:right}
.bt-row.is-done .bt-row-title{text-decoration:line-through;color:#8e8e93}
.bt-row.is-late .bt-row-date,.bt-late{color:#b3261e;font-weight:600}
.bt-chip{font-size:12px;border:1px solid #ccc;border-left-width:4px;border-radius:4px;padding:1px 6px;white-space:nowrap;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.bt-tag{font-size:11px;background:#eee;border-radius:4px;padding:1px 6px;white-space:nowrap}
.bt-tag-high{background:#fdecea;color:#b3261e}
.bt-av{width:22px;height:22px;border-radius:50%;object-fit:cover;vertical-align:middle;flex:none}
.bt-av-empty{display:inline-grid;place-items:center;background:#e5e5e2;color:#8e8e93;font-size:11px}
.bt-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;flex:none}

/* tablas */
.bt-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden}
.bt-table th{text-align:left;font-weight:600;font-size:12px;color:#6e6e73;padding:10px;border-bottom:1px solid #e5e5e2}
.bt-table td{padding:10px;border-bottom:1px solid #f0f0ed;vertical-align:middle}
.bt-table tbody tr{cursor:pointer}
.bt-table tbody tr:hover{background:#fafaf8}
.bt-table tr.is-arch{opacity:.55}
.bt-bar{height:6px;background:#eee;border-radius:3px;overflow:hidden;margin-bottom:3px;max-width:160px}
.bt-bar i{display:block;height:100%;background:#1d1d1f}
.bt-load td{text-align:center}
.bt-load td:first-child{text-align:left}
.bt-heat-0{color:#b9b9b4}
.bt-heat-1{background:#eef6ee}
.bt-heat-2{background:#d7ecd7}
.bt-heat-3{background:#fff1c9}
.bt-heat-4{background:#fbd5d0;color:#8a1c14;font-weight:600}

/* tablero */
.bt-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;overflow-x:auto;align-items:start}
.bt-col{background:#ececea;border-radius:8px;padding:10px;min-height:200px}
.bt-col.is-over{outline:2px dashed #1d1d1f}
.bt-card{background:#fff;border-radius:6px;padding:10px;margin-bottom:8px;cursor:grab;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.bt-card p{margin:0 0 8px}
.bt-card.is-drag{opacity:.4}
.bt-card.is-late .bt-card-meta span:first-of-type{color:#b3261e;font-weight:600}
.bt-card-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:#6e6e73}

/* calendario */
.bt-cal-title{font-size:18px;margin:0 0 10px}
.bt-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#e5e5e2;border:1px solid #e5e5e2;border-radius:8px;overflow:hidden}
.bt-cal-dow{background:#fafaf8;padding:6px 8px;font-size:12px;color:#6e6e73;text-transform:uppercase}
.bt-cal-day{background:#fff;min-height:112px;padding:6px;display:flex;flex-direction:column;gap:3px;min-width:0}
.bt-cal-day.is-out{background:#fafaf8;color:#b9b9b4}
.bt-cal-day.is-we{background:#fcfcfa}
.bt-cal-day.is-today .bt-cal-num span{background:#1d1d1f;color:#fff;border-radius:50%;width:22px;height:22px;display:inline-grid;place-items:center}
.bt-cal-num{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.bt-cal-add{border:0;background:none;cursor:pointer;opacity:0;font-size:16px;line-height:1}
.bt-cal-day:hover .bt-cal-add{opacity:.6}
.bt-cal-task{font-size:12px;background:#f5f5f3;border-left:3px solid #999;border-radius:3px;padding:2px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;display:flex;align-items:center;gap:2px}
.bt-cal-task .bt-av{width:16px;height:16px}
.bt-cal-task.is-done{text-decoration:line-through;color:#8e8e93}
.bt-cal-more{border:0;background:none;font-size:12px;color:#6e6e73;text-align:left;cursor:pointer;padding:0}

/* panel lateral de tarea */
.bt-drawer{position:fixed;top:0;right:0;width:min(480px,100%);height:100vh;background:#fff;box-shadow:-8px 0 30px rgba(0,0,0,.12);padding:18px 22px 40px;overflow:auto;z-index:20}
.bt-drawer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.bt-drawer-title{width:100%;font-size:20px;font-weight:600;border:1px solid transparent;padding:6px}
.bt-drawer-title:hover,.bt-drawer-title:focus{border-color:#cfcfcb}
.bt-props{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.bt-prop span,.bt-field span{display:block;font-size:12px;color:#6e6e73;margin-bottom:3px}
.bt-prop select,.bt-prop input{width:100%}
.bt-comment{display:flex;gap:8px;margin-bottom:10px}
.bt-comment p{margin:0;white-space:pre-wrap}
.bt-comment-form{display:flex;gap:8px;align-items:flex-start;margin-bottom:14px}

/* modal y formularios */
.bt-modal{position:fixed;inset:0;background:rgba(0,0,0,.3);display:grid;place-items:center;z-index:30;padding:20px}
.bt-modal-box{background:#fff;border-radius:10px;padding:20px;width:min(560px,100%);max-height:90vh;overflow:auto}
.bt-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.bt-form{display:flex;flex-direction:column;gap:12px}
.bt-field input,.bt-field select,.bt-field textarea{width:100%}
.bt-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bt-form-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.bt-toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#1d1d1f;color:#fff;padding:10px 16px;border-radius:8px;z-index:40}
.bt-toast.is-bad{background:#b3261e}

@media (max-width:860px){
	.bt-layout{grid-template-columns:1fr}
	.bt-nav{position:static;height:auto;flex-direction:row;flex-wrap:wrap;gap:4px}
	.bt-nav-projects,.bt-me{display:none}
	.bt-main{padding:16px}
	.bt-props,.bt-2col{grid-template-columns:1fr}
	.bt-cal-day{min-height:70px}
}
