/*
 * board.css — page rules for board.html (extracted Oct 22, 2026).
 * Loads after theme.css; declarations here override the shared theme.
 */
:root {
  --green:#31a24c;
  --shadow:0 1px 3px rgba(0,0,0,.45);
  --shadow-lg:0 6px 18px rgba(0,0,0,.5);
  --col-bg:#20242e;
}

body {
  font-family:"Public Sans", system-ui, sans-serif;
  font-size:15.5px;
}

.wrap {
  max-width:1240px;
}

.daybanner .inner {
  max-width:1240px;
}

.daybanner a{color:#fff; font-size:14px; opacity:.88}

h1{font-family:"Public Sans", system-ui, sans-serif; font-size:30px; margin:26px 0 4px}

.sub{color:var(--ink-soft); margin:0 0 8px}

.toolbar{display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:16px 0 6px}

.toolbar input[type=search]{flex:1 1 200px; background:var(--surface); border:1px solid var(--line);
    border-radius:8px; color:var(--ink); font:inherit; font-size:14px; padding:8px 12px}

.chipbtn{font:inherit; font-size:12.5px; font-weight:600; cursor:pointer;
    background:var(--surface); border:1px solid var(--line); color:var(--ink-soft);
    border-radius:999px; padding:5px 12px}

.chipbtn.on{border-color:var(--gold); color:var(--gold)}

.chipbtn .dot{display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:1px}

.board{display:grid; grid-template-columns:repeat(4, minmax(230px, 1fr)); gap:14px; margin-top:14px;
    overflow-x:auto; padding-bottom:8px}

.col{background:var(--col-bg); border:1px solid var(--line); border-radius:14px; padding:14px;
    min-height:300px; display:flex; flex-direction:column}

.col.dragover{border-color:var(--gold); background:rgba(217,168,60,.05);
    box-shadow:inset 0 0 0 1px var(--gold)}

.col h2{font-family:"Public Sans", system-ui, sans-serif; font-size:13px; font-weight:700;
    letter-spacing:.06em; text-transform:uppercase; color:var(--ink-soft);
    margin:0 0 12px; display:flex; justify-content:space-between; align-items:center}

.col h2 .count{font-family:"Public Sans", sans-serif; font-size:12px; color:var(--ink-soft); font-weight:600;
    background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:1px 8px;
    letter-spacing:0; text-transform:none}

.quickadd{display:flex; gap:6px; margin-bottom:10px; position:relative}

.tagpick{position:absolute; left:0; right:0; top:calc(100% + 4px); z-index:30; background:var(--surface-2);
    border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow); overflow:hidden}

.tagpick button{display:flex; gap:8px; align-items:center; width:100%; text-align:left; background:none;
    border:0; border-bottom:1px solid var(--line); color:var(--ink); font:inherit; font-size:13.5px;
    padding:9px 10px; cursor:pointer; min-height:40px}

.tagpick button:last-child{border-bottom:0}

.tagpick button.on{background:var(--bg)}

.tagpick .dot{width:8px; height:8px; border-radius:50%; flex:none}

.qahint{display:flex; gap:6px; flex-wrap:wrap; margin:-4px 0 8px}

.qahint:empty{display:none}

.quickadd input{flex:1; min-width:0; background:var(--bg); border:1px solid var(--line); border-radius:8px;
    color:var(--ink); font:inherit; font-size:13.5px; padding:6px 8px}

.quickadd button{font:inherit; font-size:13.5px; font-weight:700; cursor:pointer; background:var(--surface-2);
    border:1px solid var(--line); color:var(--ink); border-radius:8px; padding:6px 11px}

.cards{display:flex; flex-direction:column; gap:10px; flex:1}

.card{background:var(--surface-2); border:1px solid var(--line);
    border-radius:12px; padding:12px 14px; cursor:pointer; box-shadow:var(--shadow);
    transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease}

.card:hover{border-color:var(--ink-faint); transform:translateY(-1px); box-shadow:var(--shadow-lg)}

.card.dragging{opacity:.45}

.card .ttl{font-weight:700; font-size:15px; margin-bottom:2px; display:flex; align-items:center; gap:8px}

.card.p1 .ttl::before, .card.p5 .ttl::before{content:""; flex:none; width:8px; height:8px; border-radius:50%}

.card.p1 .ttl::before{background:var(--accent)}

.card.p5 .ttl::before{background:var(--gold)}

.card .notes{color:var(--ink-soft); font-size:13px; white-space:pre-wrap;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}

.notebox{margin-top:7px}

.inline-notes{width:100%; background:rgba(0,0,0,.18); border:1px solid transparent; border-radius:6px;
    color:var(--ink-soft); font:inherit; font-size:13px; line-height:1.45; padding:5px 7px;
    resize:none; overflow:hidden; min-height:30px; cursor:text}

.inline-notes::placeholder{color:var(--ink-faint)}

.inline-notes:focus{border-color:var(--gold); background:var(--bg); color:var(--ink); outline:none}

.placewrap{position:relative}

.suggest{margin-top:6px; background:var(--surface-2);
    border:1px solid var(--line); border-radius:8px; overflow:hidden; box-shadow:var(--shadow)}

.suggest button{display:block; width:100%; text-align:left; background:none; border:0; cursor:pointer;
    border-bottom:1px solid var(--line); color:var(--ink); font:inherit; font-size:13.5px; padding:8px 10px}

.suggest button:last-child{border-bottom:0}

.suggest button:hover{background:var(--bg)}

.suggest .addr{display:block; color:var(--ink-faint); font-size:12.5px}






.card .chips{display:flex; flex-wrap:wrap; gap:6px; margin-top:9px}

.tag{font-size:11px; font-weight:700; letter-spacing:.03em; padding:2px 8px; border-radius:999px;
    border:1px solid var(--line); color:var(--ink-soft)}

.tag.cat{color:#14171c; border:none}

.tag.due-over{background:rgba(224,86,95,.16); color:#ff8f96; border-color:var(--accent)}

.tag.due-today{background:rgba(217,168,60,.15); color:var(--gold); border-color:var(--gold)}

.empty {
  border:1px solid var(--line);
  border-radius:8px;
  padding:22px;
  text-align:center;
  margin-top:26px;
}

.empty a{color:#7ab3ff}

.catpanel{background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-top:12px}

.catpanel h3{margin:0 0 10px; font-size:15px}

.catrow{display:flex; gap:8px; align-items:center; margin-bottom:8px; flex-wrap:wrap}

.catrow .swatch{width:14px; height:14px; border-radius:4px; border:1px solid var(--line)}

.catrow input[type=text]{background:var(--bg); border:1px solid var(--line); border-radius:6px; color:var(--ink);
    font:inherit; font-size:13.5px; padding:5px 8px; width:150px}

.smallbtn{font:inherit; font-size:12.5px; font-weight:600; cursor:pointer; background:none;
    border:1px solid var(--line); color:var(--ink-faint); border-radius:6px; padding:4px 10px}

.smallbtn:hover{border-color:var(--gold); color:var(--gold)}

.smallbtn.danger:hover{border-color:var(--accent); color:var(--accent)}

.smallbtn[disabled]{opacity:.4; cursor:default}

.hint{font-size:12.5px; color:var(--ink-faint)}

dialog{background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:14px;
    padding:20px; width:min(560px, calc(100vw - 24px)); box-shadow:var(--shadow);
    max-height:calc(100dvh - 24px); overflow-y:auto; -webkit-overflow-scrolling:touch}

dialog::backdrop{background:rgba(0,0,0,.6)}

dialog h2, dialog h3{margin:0 0 12px; font-family:"Public Sans", system-ui, sans-serif; font-size:21px}

.frow{margin-bottom:12px}

.frow label{display:block; font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
    color:var(--ink-faint); margin-bottom:4px}

.frow input[type=text], .frow textarea, .frow select, .frow input[type=date], .frow input[type=time], .frow input[type=number]{
    width:100%; background:var(--bg); border:1px solid var(--line); border-radius:8px; color:var(--ink);
    font:inherit; font-size:14.5px; padding:7px 9px}

.frow textarea{min-height:74px; resize:vertical}

.fgrid{display:grid; grid-template-columns:1fr 1fr; gap:10px}

.fgrid .frow{min-width:0}

.frow input, .frow select, .frow textarea{max-width:100%; min-width:0}

@media (max-width: 560px){
    .fgrid{grid-template-columns:1fr}
    .frow input[type=text], .frow textarea, .frow select, .frow input[type=date],
    .frow input[type=time], .frow input[type=number]{font-size:16px}
  }

.dialogbtns{display:flex; gap:8px; justify-content:flex-end; margin-top:16px; flex-wrap:wrap}

.btn{font:inherit; font-size:14px; font-weight:600; cursor:pointer; border-radius:8px; padding:8px 16px;
    border:1px solid var(--line); background:var(--surface-2); color:var(--ink)}

.btn.primary{background:var(--gold); border-color:var(--gold); color:#14171c}

.btn.danger{background:none; color:var(--accent); border-color:var(--accent); margin-right:auto}

#toast{position:fixed; left:50%; bottom:22px; transform:translateX(-50%); background:var(--surface-2);
    border:1px solid var(--gold); color:var(--ink); border-radius:8px; padding:9px 16px; font-size:14px;
    display:none; z-index:50; box-shadow:var(--shadow)}

.navgroup{display:inline-flex; border:1px solid rgba(255,255,255,.45); border-radius:999px; overflow:hidden; align-self:center}

.navgroup a{color:#fff; text-decoration:none; font-size:12.5px; font-weight:700; padding:8px 12px}

.navgroup a + a{border-left:1px solid rgba(255,255,255,.45)}

.navgroup a:hover{background:rgba(255,255,255,.14)}

.navgroup a.on{background:rgba(255,255,255,.25)}

.seg{display:inline-flex; border:1px solid var(--line); border-radius:999px; overflow:hidden}

.seg button{font:inherit; font-size:12.5px; font-weight:600; background:var(--surface); color:var(--ink-soft);
    border:0; padding:4px 11px; cursor:pointer}

.seg button + button{border-left:1px solid var(--line)}

.seg button.on{background:var(--surface-2); color:var(--gold)}

body.view-compact .notebox{display:none}


.coltabs{display:none}

.fab{display:none}

.cardnav{display:none}

.col-empty{display:none}

@media (max-width: 760px){
    .board{grid-template-columns:1fr; overflow-x:visible}
    .col{display:none}
    .col.active{display:flex}
    .coltabs{display:flex; gap:2px; overflow-x:auto; margin-top:12px; border-bottom:1px solid var(--line)}
    .coltabs button{flex:1 0 auto; background:none; border:0; border-bottom:2px solid transparent;
      color:var(--ink-soft); font:inherit; font-size:14.5px; font-weight:600; padding:8px 10px; cursor:pointer; min-height:44px}
    .coltabs button.on{color:var(--ink); border-bottom-color:var(--gold)}
    .fab{display:flex; position:fixed; right:18px; bottom:calc(18px + env(safe-area-inset-bottom));
      width:56px; height:56px; border-radius:50%; background:var(--gold); color:#14171c; font-size:28px;
      font-weight:700; border:0; box-shadow:var(--shadow); z-index:40; align-items:center; justify-content:center; cursor:pointer}
    .cardnav{display:flex; gap:8px; margin-top:9px}
    .cardnav button{flex:1; min-height:44px; font:inherit; font-size:13.5px; font-weight:600; background:var(--bg);
      color:var(--ink-soft); border:1px solid var(--line); border-radius:8px; cursor:pointer}
    .cardnav button[disabled]{opacity:.35; cursor:default}
    .col-empty{display:block; color:var(--ink-faint); font-size:13.5px; text-align:center; padding:14px 6px}
    dialog{width:100vw; max-width:100vw; border-radius:14px 14px 0 0; margin:auto 0 0; max-height:92dvh}
  }

footer {
  font-size:13px;
  margin-top:30px;
}

/* WhatsApp reminder toggle + dialog (restored Oct 22, 2026) */
.tag.wabtn{cursor:pointer; background:none; font:inherit; font-size:11px; font-weight:700; letter-spacing:.03em}
.tag.wabtn:hover{border-color:var(--gold); color:var(--gold)}
.tag.wabtn.on{border-color:var(--green); color:var(--green)}
.tag.wabtn.off{opacity:.55}
.warow{display:flex; gap:9px; align-items:center; padding:7px 2px; font-size:14.5px; cursor:pointer}
.warow input{accent-color:var(--gold); width:17px; height:17px}
