/* SWOT Spark — modern offline SWOT board
   No external assets, fonts, or frameworks. */

:root{
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --r: 16px;
  --r2: 22px;

  --s1: 6px;
  --s2: 10px;
  --s3: 14px;
  --s4: 18px;
  --s5: 24px;

  --shadow: 0 10px 30px rgba(0,0,0,.14);
  --shadow2: 0 8px 18px rgba(0,0,0,.18);
  --outline: 0 0 0 3px rgba(124, 92, 255, .35);

  /* Light theme defaults */
  --c-bg: #0b0f18;
  --c-surface: rgba(255,255,255,.08);
  --c-surface2: rgba(255,255,255,.11);
  --c-fg: rgba(255,255,255,.92);
  --c-muted: rgba(255,255,255,.68);
  --c-muted2: rgba(255,255,255,.52);
  --c-border: rgba(255,255,255,.16);

  --c-accent: #7c5cff;
  --c-accent2: #00d4ff;

  /* Quadrant colors */
  --c-s: #38f9d7;
  --c-w: #ffcd3c;
  --c-o: #7c5cff;
  --c-t: #ff4d6d;

  --grid-gap: 16px;
}

/* Respect system preference; user toggle overrides via [data-theme] */
@media (prefers-color-scheme: light) {
  :root{
    --c-bg: #f6f7fb;
    --c-surface: rgba(10,15,24,.06);
    --c-surface2: rgba(10,15,24,.085);
    --c-fg: rgba(10,15,24,.92);
    --c-muted: rgba(10,15,24,.62);
    --c-muted2: rgba(10,15,24,.48);
    --c-border: rgba(10,15,24,.12);
    --shadow: 0 10px 24px rgba(10,15,24,.10);
    --shadow2: 0 8px 16px rgba(10,15,24,.12);
  }
}

html, body { height: 100%; }
body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 10% 10%, rgba(124,92,255,.35), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(0,212,255,.25), transparent 55%),
    radial-gradient(800px 600px at 10% 90%, rgba(56,249,215,.20), transparent 55%),
    radial-gradient(800px 600px at 95% 85%, rgba(255,77,109,.18), transparent 55%),
    var(--c-bg);
  color: var(--c-fg);
  overflow-x: hidden;
}

body[data-theme="dark"]{
  --c-bg: #0b0f18;
  --c-surface: rgba(255,255,255,.08);
  --c-surface2: rgba(255,255,255,.11);
  --c-fg: rgba(255,255,255,.92);
  --c-muted: rgba(255,255,255,.68);
  --c-muted2: rgba(255,255,255,.52);
  --c-border: rgba(255,255,255,.16);
  --shadow: 0 10px 30px rgba(0,0,0,.14);
  --shadow2: 0 8px 18px rgba(0,0,0,.18);
}
body[data-theme="light"]{
  --c-bg: #f6f7fb;
  --c-surface: rgba(10,15,24,.06);
  --c-surface2: rgba(10,15,24,.085);
  --c-fg: rgba(10,15,24,.92);
  --c-muted: rgba(10,15,24,.62);
  --c-muted2: rgba(10,15,24,.48);
  --c-border: rgba(10,15,24,.12);
  --shadow: 0 10px 24px rgba(10,15,24,.10);
  --shadow2: 0 8px 16px rgba(10,15,24,.12);
}

.skip{
  position:absolute;
  left:-999px;
  top:8px;
  padding:10px 12px;
  background: var(--c-fg);
  color: var(--c-bg);
  border-radius: 10px;
  z-index: 9999;
}
.skip:focus{ left: 10px; outline: none; box-shadow: var(--outline); }

.srOnly{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.06));
  border-bottom: 1px solid var(--c-border);
}
body[data-theme="light"] .topbar{
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.55));
}
.brand{
  display:flex; align-items:center; gap: 12px;
}
.brandText{ display:flex; flex-direction:column; line-height:1.1; }
.brandName{ font-weight: 850; letter-spacing:.2px; }
.brandSub{ font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.topActions{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; justify-content:flex-end; }

.btn{
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  color: var(--c-fg);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn:active{ transform: translateY(0px) scale(.99); }
.btn:focus-visible{ outline:none; box-shadow: var(--outline); }
.btn.secondary{ background: transparent; box-shadow:none; }
.btn.secondary:hover{ background: var(--c-surface); }
.btn.danger{ border-color: rgba(255,77,109,.55); }
.btn.danger:hover{ background: rgba(255,77,109,.12); }

.btn.ghost{ background: transparent; box-shadow:none; }
.btn.ghost:hover{ background: var(--c-surface); }

.iconBtn{
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  color: var(--c-fg);
  cursor:pointer;
  display:grid; place-items:center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.iconBtn:hover{ transform: translateY(-1px); box-shadow: var(--shadow2); }
.iconBtn:active{ transform: translateY(0px) scale(.99); }
.iconBtn:focus-visible{ outline:none; box-shadow: var(--outline); }

.seg{
  display:flex;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow:hidden;
  background: rgba(0,0,0,.10);
}
body[data-theme="light"] .seg{ background: rgba(10,15,24,.04); }
.segBtn{
  border:0;
  padding: 10px 12px;
  background: transparent;
  color: var(--c-muted);
  cursor:pointer;
  font-weight: 750;
}
.segBtn[aria-pressed="true"]{
  color: var(--c-fg);
  background: linear-gradient(180deg, rgba(124,92,255,.22), rgba(0,212,255,.10));
}
.segBtn:focus-visible{ outline:none; box-shadow: inset var(--outline); }

.app{ padding: 14px 16px 20px; max-width: 1300px; margin: 0 auto; }

.toolbar{
  display:flex; align-items:flex-start; justify-content: space-between;
  gap: var(--s3);
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.searchWrap{ position:relative; flex: 1 1 360px; min-width: 240px; }
.search{
  width:100%;
  padding: 12px 44px 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  color: var(--c-fg);
  font-weight: 650;
  outline:none;
  transition: box-shadow .12s ease, transform .12s ease;
}
.search:focus{ box-shadow: var(--outline); transform: translateY(-1px); }
.kbdHint{
  position:absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--c-muted2);
  border: 1px solid var(--c-border);
  border-bottom-color: rgba(0,0,0,.0);
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.08);
}
body[data-theme="light"] .kbdHint{ background: rgba(10,15,24,.03); }

.chips{ display:flex; gap: 8px; flex-wrap:wrap; }
.chip{
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-muted);
  padding: 9px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 750;
  transition: background .12s ease, transform .12s ease, color .12s ease;
}
.chip:hover{ background: var(--c-surface); transform: translateY(-1px); color: var(--c-fg); }
.chip[aria-pressed="true"]{
  color: var(--c-fg);
  background: linear-gradient(180deg, rgba(56,249,215,.16), rgba(124,92,255,.14));
}

.rightTools{ flex: 0 0 auto; }
.mini{
  border: 1px dashed var(--c-border);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(0,0,0,.06);
  max-width: 420px;
}
body[data-theme="light"] .mini{ background: rgba(255,255,255,.55); }
.miniLabel{ font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted2); margin-bottom: 2px; }
.miniText{ font-weight: 650; color: var(--c-muted); }

.board{ position:relative; }
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.quad{
  border-radius: var(--r2);
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: 320px;
  display:flex;
  flex-direction:column;
  position: relative;
}
.quad::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(600px 220px at 20% 10%, rgba(124,92,255,.25), transparent 50%);
  pointer-events:none;
  opacity: .9;
}
.qHead{
  position:relative;
  padding: 14px 14px 10px;
  display:flex; justify-content:space-between; align-items:flex-end; gap: 10px;
  border-bottom: 1px solid var(--c-border);
}
.qTitle{ display:flex; align-items:center; gap: 10px; font-weight: 900; letter-spacing: .2px; }
.qMeta{ color: var(--c-muted); font-size: 12px; font-weight: 650; }

.qBadge{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid; place-items:center;
  font-weight: 950;
  color: rgba(0,0,0,.75);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}
body[data-theme="dark"] .qBadge{ color: rgba(0,0,0,.72); }
.qBadge.s{ background: linear-gradient(135deg, var(--c-s), rgba(255,255,255,.65)); }
.qBadge.w{ background: linear-gradient(135deg, var(--c-w), rgba(255,255,255,.75)); }
.qBadge.o{ background: linear-gradient(135deg, var(--c-o), rgba(255,255,255,.65)); color: rgba(255,255,255,.92); }
.qBadge.t{ background: linear-gradient(135deg, var(--c-t), rgba(255,255,255,.65)); }

.qDrop{
  position:relative;
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-height: 240px;
}
.qDrop:focus-visible{ outline:none; box-shadow: inset var(--outline); border-radius: 16px; }
.qDrop.dragOver{
  animation: glow .6s ease-in-out infinite alternate;
}
@keyframes glow{
  from{ background: rgba(124,92,255,.06); }
  to{ background: rgba(0,212,255,.09); }
}

.card{
  border-radius: 18px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.06));
  padding: 12px 12px 10px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  cursor: grab;
  user-select:none;
  position:relative;
  transform-origin: 20% 20%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, filter .15s ease;
  overflow:hidden;
}
body[data-theme="light"] .card{
  background: linear-gradient(180deg, rgba(10,15,24,.05), rgba(10,15,24,.03));
}
.card::after{
  content:"";
  position:absolute; inset:-40px;
  background: radial-gradient(240px 160px at 0% 0%, rgba(255,255,255,.20), transparent 60%);
  opacity: .6;
  transform: rotate(8deg);
  pointer-events:none;
}
.card:hover{
  transform: translateY(-2px) rotate(-.2deg);
  box-shadow: var(--shadow2);
}
.card:active{ cursor: grabbing; transform: translateY(0px) scale(.99); }
.card:focus-visible{ outline:none; box-shadow: var(--outline); }

.cardHead{
  display:flex; align-items:flex-start; justify-content:space-between; gap: 10px;
}
.cardTitle{
  font-weight: 900;
  letter-spacing: .1px;
  line-height: 1.15;
}
.cardMeta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--c-muted);
  font-size: 12px;
  font-weight: 650;
}
.badge{
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(0,0,0,.06);
}
body[data-theme="light"] .badge{ background: rgba(255,255,255,.55); }
.badge.dot::before{
  content:"";
  display:inline-block;
  width: 8px; height: 8px;
  border-radius: 99px;
  margin-right: 6px;
  transform: translateY(1px);
  background: var(--c-accent);
}
.badge.dot.s::before{ background: var(--c-s); }
.badge.dot.w::before{ background: var(--c-w); }
.badge.dot.o::before{ background: var(--c-o); }
.badge.dot.t::before{ background: var(--c-t); }

.pips{ display:flex; gap: 4px; align-items:center; }
.pip{
  width: 9px; height: 9px; border-radius: 99px;
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,.08);
}
body[data-theme="light"] .pip{ background: rgba(10,15,24,.05); }
.pip.on{ background: linear-gradient(135deg, var(--c-accent), var(--c-accent2)); border-color: transparent; }

.cardFoot{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
}
.tags{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
}
.tag{
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--c-muted);
  background: rgba(0,0,0,.06);
}
body[data-theme="light"] .tag{ background: rgba(255,255,255,.55); }

.cardBtns{ display:flex; gap: 8px; }
.smallBtn{
  width: 34px; height: 34px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: transparent;
  cursor:pointer;
  display:grid; place-items:center;
  transition: background .12s ease, transform .12s ease;
}
.smallBtn:hover{ background: var(--c-surface); transform: translateY(-1px); }
.smallBtn:active{ transform: translateY(0px) scale(.99); }
.smallBtn:focus-visible{ outline:none; box-shadow: var(--outline); }

.statusbar{
  margin-top: var(--s4);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: var(--r2);
  border: 1px solid var(--c-border);
  background: rgba(0,0,0,.06);
}
body[data-theme="light"] .statusbar{ background: rgba(255,255,255,.55); }

.statusLeft{ display:flex; gap: 10px; flex-wrap: wrap; }
.pill{
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  background: rgba(0,0,0,.06);
  color: var(--c-muted);
  font-weight: 750;
}
body[data-theme="light"] .pill{ background: rgba(255,255,255,.55); }

.menu{
  position: absolute;
  right: 16px;
  top: 70px;
  min-width: 200px;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  box-shadow: var(--shadow);
  padding: 8px;
  display:none;
  z-index: 30;
}
.menu.open{ display:block; animation: pop .14s ease-out; }
@keyframes pop{
  from{ transform: translateY(-6px) scale(.98); opacity: .5; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}
.menuItem{
  width:100%;
  text-align:left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--c-fg);
  cursor:pointer;
  font-weight: 750;
}
.menuItem:hover{ background: rgba(124,92,255,.16); }
.menuItem.danger:hover{ background: rgba(255,77,109,.14); }
.menuSep{ height: 1px; background: var(--c-border); margin: 6px 0; }
.fileItem{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.fileItem input{ display:none; }

.list{
  border-radius: var(--r2);
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.listHead{
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px;
  border-bottom: 1px solid var(--c-border);
}
.listTitle{ font-weight: 900; }
.select{
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-fg);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 750;
}
.select:focus-visible{ outline:none; box-shadow: var(--outline); }

.table{ display:block; }
.tr{
  display:grid;
  grid-template-columns: 2.2fr .7fr 1fr .6fr .8fr 1.2fr;
  gap: 10px;
  padding: 12px 14px;
  align-items:center;
}
@media (max-width: 900px){
  .tr{ grid-template-columns: 1.8fr .6fr 1fr .6fr .7fr 1.0fr; }
}
@media (max-width: 720px){
  .tr{ grid-template-columns: 1.6fr .8fr .8fr; }
  .tr .td:nth-child(n+4){ display:none; }
}
.th{
  color: var(--c-muted2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing:.12em;
  text-transform: uppercase;
  background: rgba(0,0,0,.06);
}
body[data-theme="light"] .th{ background: rgba(255,255,255,.55); }
.row{
  border-top: 1px solid var(--c-border);
  cursor:pointer;
  transition: background .12s ease;
}
.row:hover{ background: rgba(124,92,255,.10); }

.modal{
  border:0;
  padding:0;
  background: transparent;
  max-width: min(860px, calc(100vw - 24px));
}
.modal::backdrop{
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.modalCard{
  border-radius: 22px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(15,20,32,.92), rgba(15,20,32,.78));
  box-shadow: var(--shadow);
  overflow:hidden;
}
body[data-theme="light"] .modalCard{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.80));
}
.modalHead{
  padding: 14px 14px 10px;
  display:flex; justify-content:space-between; align-items:flex-start; gap: 10px;
  border-bottom: 1px solid var(--c-border);
}
.modalTitle{ font-weight: 950; font-size: 18px; }
.modalSub{ color: var(--c-muted); margin-top: 2px; font-size: 12px; font-weight: 650; }
.modalBody{ padding: 14px; }
.modalFoot{
  padding: 14px;
  border-top: 1px solid var(--c-border);
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
}
.modalFoot .right{ display:flex; gap: 10px; }

.formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .formGrid{ grid-template-columns: 1fr; }
  .span2{ grid-column: auto; }
}
.span2{ grid-column: span 2; }

.field label{ display:block; font-weight: 850; margin-bottom: 6px; }
.field input[type="text"], .field input[type="date"], .field select, .field textarea{
  width:100%;
  border-radius: 16px;
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,.06);
  color: var(--c-fg);
  padding: 11px 12px;
  font-weight: 650;
  outline:none;
  transition: box-shadow .12s ease, transform .12s ease, border-color .12s ease;
}
body[data-theme="light"] .field input[type="text"],
body[data-theme="light"] .field input[type="date"],
body[data-theme="light"] .field select,
body[data-theme="light"] .field textarea{
  background: rgba(10,15,24,.04);
}
.field textarea{ resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus{
  box-shadow: var(--outline);
  transform: translateY(-1px);
}
.hint{ color: var(--c-muted); font-size: 12px; margin-top: 6px; }
.req{ color: var(--c-t); }

.rangeRow{ display:flex; align-items:center; justify-content:space-between; gap: 10px; margin-top: 6px; }
.rangeMin,.rangeMax{ color: var(--c-muted2); font-size: 12px; font-weight: 750; }
.rangeVal{ font-weight: 950; }
.field input[type="range"]{ width:100%; accent-color: var(--c-accent); }

.miniCallout{
  margin-top: 12px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(124,92,255,.10);
  color: var(--c-muted);
  font-weight: 650;
}
.miniCallout:empty{ display:none; }

.help{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(78vh, 640px);
  border-radius: 22px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  box-shadow: var(--shadow);
  overflow:hidden;
  display:none;
  z-index: 40;
}
.help.open{ display:block; animation: pop .14s ease-out; }
.helpHead{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--c-border);
}
.helpTitle{ font-weight: 950; }
.helpBody{ padding: 12px; overflow:auto; }
.helpCard{
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(0,0,0,.06);
  margin-bottom: 10px;
}
body[data-theme="light"] .helpCard{ background: rgba(255,255,255,.55); }
.helpH{ font-weight: 900; margin-bottom: 6px; }
.help p, .help li{ color: var(--c-muted); line-height: 1.35; }
.note{ margin-top: 10px; }
kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: rgba(0,0,0,.08);
}

.toastWrap{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 50;
  display:flex;
  flex-direction:column;
  gap: 10px;
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  min-width: min(440px, calc(100vw - 24px));
  border-radius: 18px;
  border: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface2), var(--c-surface));
  box-shadow: var(--shadow2);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  animation: toastIn .18s ease-out;
}
@keyframes toastIn{
  from{ transform: translateY(10px) scale(.98); opacity: .0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}
.toast .msg{ font-weight: 750; color: var(--c-fg); }
.toast .sub{ font-size: 12px; color: var(--c-muted); margin-top: 2px; }
.toast .xBtn{
  width: 34px; height: 34px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background: transparent;
  cursor:pointer;
}
.toast .xBtn:hover{ background: rgba(255,255,255,.08); }

/* Icons (inline via CSS masks using SVG data URIs) */
.ico, .plus, .dots, .x, .sunmoon{
  width: 18px; height: 18px;
  display:inline-block;
  background: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.plus{
  width: 16px; height: 16px;
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 5a1 1 0 0 1 2 0v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5Z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11 5a1 1 0 0 1 2 0v6h6a1 1 0 1 1 0 2h-6v6a1 1 0 1 1-2 0v-6H5a1 1 0 1 1 0-2h6V5Z"/></svg>');
}
.dots{
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm5.5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm5.5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm5.5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm5.5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"/></svg>');
}
.x{
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.4 6a1 1 0 0 1 1.4 0L12 9.2 15.2 6a1 1 0 1 1 1.4 1.4L13.4 10.6l3.2 3.2a1 1 0 0 1-1.4 1.4L12 12l-3.2 3.2a1 1 0 0 1-1.4-1.4l3.2-3.2-3.2-3.2a1 1 0 0 1 0-1.4Z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.4 6a1 1 0 0 1 1.4 0L12 9.2 15.2 6a1 1 0 1 1 1.4 1.4L13.4 10.6l3.2 3.2a1 1 0 0 1-1.4 1.4L12 12l-3.2 3.2a1 1 0 0 1-1.4-1.4l3.2-3.2-3.2-3.2a1 1 0 0 1 0-1.4Z"/></svg>');
}
.sunmoon{
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1Zm0 18a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM4 11a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2h1Zm18 0a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM5.6 5.6a1 1 0 0 1 1.4 0l.7.7a1 1 0 1 1-1.4 1.4l-.7-.7a1 1 0 0 1 0-1.4Zm12.7 12.7a1 1 0 0 1 1.4 0l.7.7a1 1 0 1 1-1.4 1.4l-.7-.7a1 1 0 0 1 0-1.4ZM18.4 5.6a1 1 0 0 1 0 1.4l-.7.7a1 1 0 1 1-1.4-1.4l.7-.7a1 1 0 0 1 1.4 0ZM7.7 17.7a1 1 0 0 1 0 1.4l-.7.7a1 1 0 1 1-1.4-1.4l.7-.7a1 1 0 0 1 1.4 0ZM12 6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z"/></svg>');
          mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0V3a1 1 0 0 1 1-1Zm0 18a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM4 11a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2h1Zm18 0a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM5.6 5.6a1 1 0 0 1 1.4 0l.7.7a1 1 0 1 1-1.4 1.4l-.7-.7a1 1 0 0 1 0-1.4Zm12.7 12.7a1 1 0 0 1 1.4 0l.7.7a1 1 0 1 1-1.4 1.4l-.7-.7a1 1 0 0 1 0-1.4ZM18.4 5.6a1 1 0 0 1 0 1.4l-.7.7a1 1 0 1 1-1.4-1.4l.7-.7a1 1 0 0 1 1.4 0ZM7.7 17.7a1 1 0 0 1 0 1.4l-.7.7a1 1 0 1 1-1.4-1.4l.7-.7a1 1 0 0 1 1.4 0ZM12 6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z"/></svg>');
}

/* Focus mode */
body.focus .topbar,
body.focus .toolbar,
body.focus .statusbar{ display:none; }
body.focus .app{ padding-top: 10px; max-width: 1600px; }
body.focus .quad{ min-height: 420px; }
body.focus .grid{ gap: 18px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
