:root{font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#252631;background:#f1f3f8;--edge:#d4dae5;--ink:#222934;--muted:#515b6e;--focus:#235da5;--card-size:170px}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(125deg,#edf3fc,#f7f4f7 60%,#eef4f0)}button,select,input,textarea{font:inherit;color:inherit}a{color:inherit}button,select,input:not([type=color]),textarea{border:1px solid var(--edge);border-radius:8px;padding:7px 11px;background:#fff}button,select{cursor:pointer}button:hover{border-color:#76839a}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}button[aria-pressed=true]{background:#e5effe;border-color:#8aa9d5;color:#183d70}button.primary{background:#244e89;color:#fff;border-color:#244e89}
.shell{width:min(1120px,calc(100% - 32px));margin-inline:auto}.toolbar{margin-block:16px 12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;background:#ffffffbd;border:1px solid #fff;border-radius:14px;backdrop-filter:blur(14px);box-shadow:0 6px 24px #233c5d0e}.brand{display:flex;align-items:center;gap:7px;font-size:20px;font-weight:780;text-decoration:none}.brand img{width:38px;height:38px}.toolbar nav,.tools,.actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.toolbar nav button,#count{font-weight:650}#count{font-size:13px;background:#eef0f6;padding:2px 5px;border-radius:4px}.tools select{max-width:185px}.icon{width:39px;height:39px;min-width:39px;padding:0;font-size:19px;display:inline-grid;place-items:center}
main{padding-bottom:48px}.status{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;margin-bottom:16px}.status output{color:var(--muted);font-size:14px}.status .icon{height:34px;width:34px;min-width:34px}
.board{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--edge)}.board:last-child{border:0}.section-head,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-head h1,.section-head h2,.dialog-head h2{margin:0;font-size:23px;line-height:1.2}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--card-size),1fr));gap:10px;min-height:14px}.drop-zone{padding-bottom:6px}.drop-active{outline:2px solid #446da9;outline-offset:3px}
.card{min-width:0;padding:9px}.card.done textarea{text-decoration:line-through}.card textarea{width:100%;resize:none;background:transparent;border:0;overflow:auto}.meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.chip{max-width:100%;overflow-wrap:anywhere;border:1px solid transparent;border-radius:4px;background:#ffffff70;font-size:12px;padding:0 4px;font-weight:550}.card-foot{display:flex;align-items:center}.card-foot button{padding:2px 6px}.grab{touch-action:none;cursor:grab;user-select:none}.grab:active{cursor:grabbing}.done-label{font-size:14px;color:var(--muted);margin:10px 0 7px}.draft{margin-bottom:10px}.draft input{width:min(100%,400px)}
.review-list{display:grid;gap:8px;margin-top:12px}.review-card,.conflict{border:1px solid var(--edge);border-radius:8px;background:#fff;padding:11px 13px}.review-card{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.review-card h3{margin:0 0 5px;overflow-wrap:anywhere;font-size:1rem}.review-card .actions button{font-size:14px}.review-copy{min-width:0}.empty{color:var(--muted)}dialog{width:min(490px,calc(100% - 24px));max-height:calc(100% - 24px);border:1px solid #aebbd0;border-radius:12px;padding:15px;background:#f9fbff;color:var(--ink)}dialog::backdrop{background:#27334970}.fields,.projects{display:grid;gap:9px}.fields label{display:grid;gap:3px}.projects{margin-top:15px}.project-row{display:grid;grid-template-columns:minmax(0,1fr) 43px auto auto;gap:5px;align-items:center}.project-row input{min-width:0;width:100%}.project-row input[type=color]{height:39px}.conflict{margin-bottom:10px}.conflict p{overflow-wrap:anywhere}
@media(prefers-reduced-transparency:reduce){.toolbar{background:white;backdrop-filter:none}}
@media(max-width:650px){.shell{width:calc(100% - 20px)}.toolbar{padding:8px;gap:6px}.toolbar nav{order:3;width:100%}.toolbar nav button{flex:1}.tools select{max-width:125px;font-size:14px}.brand{font-size:16px}.brand img{height:30px;width:30px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.card{padding:7px}.card textarea{font-size:15px}.status output{font-size:13px}.status .actions{flex-wrap:nowrap}.status .icon{width:30px;min-width:30px}.review-card .actions{width:100%}.project-row button{padding-inline:5px}.toolbar .icon{width:35px;min-width:35px}}
.shell{width:min(1480px,calc(100% - 32px))}
.toolbar{margin-block:12px 5px}
.status{margin-bottom:9px}
.board{padding-bottom:17px;margin-bottom:18px}
.board-count{font-size:13px;font-weight:600;color:var(--muted);padding-left:4px}
.grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--card-size)),1fr))}
.card textarea:focus{background:#ffffff55}
.card-foot{position:relative;justify-content:flex-end;flex-wrap:nowrap;gap:3px}
.card-foot button{border-color:transparent;background:transparent;min-width:32px;min-height:32px;font-size:16px}
.card-foot button:hover,.card-foot button:focus-visible{background:#fff9;border-color:var(--edge)}
.card-foot .quick-delete{position:absolute;left:0;opacity:0;pointer-events:none}
.card:hover .quick-delete,.card:focus-within .quick-delete{opacity:1;pointer-events:auto}
.done-label{cursor:pointer;width:max-content;max-width:100%;font-weight:600;padding:5px 0}
#zoom-tools{display:inline-flex;align-items:center;gap:2px}
#zoom-tools[hidden]{display:none}
#zoom-reset{font-size:13px;min-width:50px;padding-inline:3px}
#status[data-mode="offline"],#status[data-mode="error"]{color:#843b27}
#status[data-mode="success"]{color:#345b42}
#status[data-mode="busy"],#status[data-mode="pending"]{color:#285689}
#card-menu{position:fixed;inset:auto;left:var(--menu-x);top:var(--menu-y);margin:0;padding:12px;width:min(300px,calc(100% - 16px));max-height:calc(100dvh - 16px);overflow:auto;background:#fbfcff;border:1px solid #acb7cb;border-radius:8px;color:var(--ink);box-shadow:0 8px 26px #26344e37}
#card-menu .dialog-head{margin:0}
#card-menu small{display:block;margin-bottom:3px;color:var(--muted)}
#card-menu button{min-height:36px}
#card-menu .priority-option{min-width:45px}
#card-menu .priority-option[aria-pressed=true]{outline:2px solid #365e97;outline-offset:-2px}
.review-card .actions button.icon{width:39px;min-width:39px;font-size:18px}
.review-copy>span{display:block;color:var(--muted);font-size:14px}
#panel-body>section+section{margin-top:15px;border-top:1px solid var(--edge)}
#panel-body h3{margin:9px 0;font-size:1rem}
@media(max-width:650px){
  .shell{width:calc(100% - 20px)}
  .grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(var(--card-size),calc((100% - 7px)/2))),1fr))}
  .card-foot button,.review-card .actions button.icon{min-width:44px;min-height:44px}
  .card-foot .quick-delete{display:none}
  #card-menu{inset:auto 7px 7px;width:auto;max-width:none;max-height:78dvh}
  #card-menu button,#card-menu select,.project-row button{min-height:44px}
  .review-card .actions{width:auto}
}
@media(hover:none){.card-foot .quick-delete{display:none}}

:root{--shadow: 0 24px 70px rgba(43, 50, 68, 0.18);--small-shadow: 0 10px 28px rgba(43, 50, 68, 0.16);}
body {
  background:
    radial-gradient(circle at 16% 8%, rgba(115, 191, 255, 0.58), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(255, 132, 205, 0.48), transparent 28%),
    radial-gradient(circle at 34% 82%, rgba(255, 220, 98, 0.56), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #f3f1fa 46%, #fff7ed 100%);
  background-attachment: fixed;
}
body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.16));
}
.toolbar {
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 14px 42px rgba(54, 63, 82, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(26px) saturate(1.45);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
}
#surface .board {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.26));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
}
#surface .board::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.45), transparent 42%);
}
#surface .card {
  position: relative;
  aspect-ratio: 1 / 1.04;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06)),
    var(--card-color, var(--yellow));
  box-shadow: var(--small-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
#surface .card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 20% 4%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.44), transparent 48%);
  opacity: 0.78;
}
#surface .card textarea {
  font-weight: 500;
  line-height: 1.22;
  text-align: center;
}
#surface .card:hover {
  box-shadow: 0 18px 38px rgba(43, 50, 68, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
.card-foot button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 8px 18px rgba(44, 49, 64, 0.1);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.card-foot button:hover {
  background: rgba(255, 255, 255, 0.74);
}
/* OpenPlanner glass surfaces and board-colored paper, from the 1.x design. */
:root {
  --ink: #17181d;
  --muted: #525869;
  --glass-edge: rgb(255 255 255 / 80%);
  --glass-shadow: 0 15px 40px rgb(43 50 68 / 12%), inset 0 1px 0 rgb(255 255 255 / 86%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

body { display: flow-root; }
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
}

.shell { width: min(1240px, calc(100% - 28px)); }
.toolbar {
  margin-block: 20px 7px;
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  padding: 13px 15px;
}
.brand { font-size: 28px; font-weight: 760; }
.brand img { width: 42px; height: 42px; }
.toolbar nav button, .toolbar .tools > *, .status .icon, #zoom-reset {
  border-radius: 999px;
  border-color: rgb(255 255 255 / 90%);
  background: rgb(255 255 255 / 56%);
  box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgb(43 50 68 / 7%);
}
.toolbar nav button[aria-pressed="true"] { background: #e7f1ff; border-color: #9eb9df; color: #153967; }
.toolbar .tools select { padding-inline: 13px; }
.status { margin-bottom: 12px; padding-inline: 8px; }
#zoom-tools:not([hidden]) { border-radius: 999px; padding: 2px; background: rgb(255 255 255 / 30%); }

.board, .board:last-child {
  padding: 17px;
  margin-bottom: 21px;
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
}
.section-head {
  display: grid;
  align-items: center;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  margin-bottom: 13px;
}
.section-head h2 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-size: 29px;
  font-weight: 800;
  line-height: 1.12;
}
.board-count { color: #4d5463; text-transform: none; vertical-align: middle; }
.section-head .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 66%);
  border-color: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgb(43 50 68 / 10%);
}
.grid { gap: 12px; }
#surface .card {
  --card-color: #fff5a6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  gap: 3px;
}
#surface .backlog .card { --card-color: #ffd0ed; }
.card textarea {
  grid-row: 2;
  position: relative;
  height: 100%;
  min-height: 0;
  min-width: 0;
  text-align: center;
  line-height: 1.22;
  scrollbar-width: thin;
  padding: 1px 3px;
}
.card .meta { grid-row: 1; position: relative; justify-content: center; }
.card .chip { border-radius: 5px; background-color: rgb(255 255 255 / 56%); }
.project-chip {
  background-color: var(--project-color);
  background-color: color-mix(in srgb, var(--project-color) 65%, #ffffff 35%);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .project-chip { background-color: color-mix(in srgb, var(--project-color) 65%, #ffffff 35%); }
.card-foot { grid-row: 3; }
.card-foot button { border-radius: 999px; }
.card.done textarea { color: #625b5e; text-decoration-thickness: 3px; }
.priority-dot {
  display: inline-block;
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid #443c34;
  border-radius: 50%;
  vertical-align: middle;
}
.priority-dot.high { background: #d85161; }
.priority-dot.medium { background: #fff3a4; }
.priority-dot.low { background: #499465; }
#card-menu .priority-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
}
#card-menu .priority-option[aria-pressed="true"] { background: #e7f1ff; }
#card-menu .priority-option:not(.neutral)::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #443c34;
  background: var(--lamp);
}
#card-menu .priority-option.high { --lamp: #d85161; }
#card-menu .priority-option.medium { --lamp: #fff3a4; }
#card-menu .priority-option.low { --lamp: #499465; }
.board, .board > * { position: relative; }
#surface .board::before { border-radius: inherit; }
.done-label { color: #4b5060; }
.draft input { background: rgb(255 255 255 / 83%); }
#surface > section:not(.board) {
  padding: 18px;
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  background: rgb(255 255 255 / 48%);
  box-shadow: var(--glass-shadow);
}
#surface > section:not(.board) > h1 { margin: 0 0 12px; font-size: 29px; }
.review-card, .conflict { background: rgb(255 255 255 / 75%); border-color: #ffffffdb; box-shadow: 0 3px 10px #262c4710; }
#panel, #card-menu { background: #f7f9fef7; border-color: #ffffffef; }
.review-card .primary { background: #245895; border-color: #245895; }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .card { transition: box-shadow 130ms ease; }
  .card:hover { box-shadow: 0 8px 19px rgb(43 50 68 / 18%), inset 0 1px 0 #fff; }
}

@media (max-width:650px) {
  .shell { width: calc(100% - 18px); }
  .toolbar { margin-block: 10px 5px; border-radius: 17px; padding: 8px; }
  .brand { font-size: 18px; }
  .brand img { width: 28px; height: 28px; }
  .toolbar .tools select { padding-inline: 6px; max-width: 110px; }
  .status { padding-inline: 2px; }
  .board, .board:last-child { border-radius: 18px; padding: 9px; margin-bottom: 14px; }
  .section-head { margin-bottom: 8px; }
  .section-head h2 { font-size: 18px; }
  .section-head .icon { width: 42px; height: 42px; }
  .grid {
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, max(var(--card-size), calc((100% - 8px) / 2))), 1fr));
  }
  #surface > section:not(.board) { padding: 11px; border-radius: 18px; }
  #surface > section:not(.board) > h1 { font-size: 23px; }
  #surface .card { border-radius: 18px; }
  #card-menu .priority-option { min-height: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  .toolbar, #surface .board, #surface > section:not(.board) { background: #fcfbff; backdrop-filter: none; }
}
