/* Waterflow More: the extra dialogs, rail buttons, chips and the Linked here list. Icons by Vadivam (MIT). */
.wm-i { width: 17px; height: 17px; flex: none; }
.wm-rail { margin-bottom: 4px; }
.wm-rail .wf-ghost, .wf-railbtns .wf-ghost { min-width: 0; }
.wm-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1.5px solid #18bfe8; background: #d2f7fc; color: #0b3f6a; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden; }
.wm-chip .wm-i { width: 14px; height: 14px; }
.wm-chip i { position: absolute; left: 0; bottom: 0; height: 3px; background: #ff8a1b; border-radius: 0 3px 3px 0; transition: width .4s; }
.wm-chip.done { border-color: #ff8a1b; background: #ffe8cf; color: #7a3a00; }
.wm-chip.wm-quiet { background: transparent; border-color: var(--line); color: var(--mute); font-weight: 500; }
.wm-chip:hover { filter: brightness(.97); }
body[data-theme="night"] .wm-chip { background: rgba(24, 191, 232, .16); color: #bfeeff; }
body[data-theme="night"] .wm-chip.done { background: rgba(255, 138, 27, .2); color: #ffd9b0; }
.wm-plus { display: inline-flex; align-items: center; gap: 4px; }
.wm-plus .wm-i { width: 14px; height: 14px; }
.wm-back { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.wm-back button { text-align: left; border: 0; background: none; color: var(--ink); padding: 4px 6px; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wm-back button:hover { background: rgba(255, 255, 255, .5); }
body[data-theme="night"] .wm-back button:hover { background: rgba(120, 200, 255, .12); }
.wm-back p { margin: 0; color: var(--mute); font-size: 12px; }
.wm-note { color: var(--mute); font-size: 13px; margin: 6px 0 10px; }
.wm-field { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; font-size: 12px; font-weight: 600; color: var(--mute); }
.wm-field input, .wm-field select, .wm-search, #wm-cap { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); width: 100%; box-sizing: border-box; }
body[data-theme="night"] .wm-field input, body[data-theme="night"] .wm-field select, body[data-theme="night"] .wm-search, body[data-theme="night"] #wm-cap { background: rgba(10, 37, 64, .7); }
.wm-check { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.wm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wm-seg { display: flex; gap: 4px; margin-bottom: 10px; }
.wm-seg button { flex: 1; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.wm-seg button.on { border-color: #18bfe8; background: #d2f7fc; color: #0b3f6a; font-weight: 700; }
body[data-theme="night"] .wm-seg button.on { background: rgba(24, 191, 232, .2); color: #bfeeff; }
.wm-add { display: flex; gap: 8px; margin-bottom: 6px; }
.wm-add input { flex: 1; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); color: var(--ink); }
body[data-theme="night"] .wm-add input { background: rgba(10, 37, 64, .7); }
.wm-task { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.wm-task:hover { background: rgba(255, 255, 255, .45); }
.wm-task.done span { text-decoration: line-through; color: var(--mute); }
.wm-task input { margin-top: 3px; accent-color: #18bfe8; }
.wm-link { border: 0; background: none; padding: 2px 0; color: inherit; font: inherit; cursor: pointer; text-align: left; text-decoration: none; }
.wm-link:hover { color: #0284c7; text-decoration: underline; }
.wm-row { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.wm-row i { color: var(--mute); font-style: normal; font-size: 12px; }
.wm-daylist { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.wm-calhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wm-calhead b { flex: 1; text-align: center; font-size: 16px; }
.wm-todaybtn { width: auto !important; padding: 5px 12px !important; }
.wm-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 8px; }
.wm-cal > span { text-align: center; font-size: 11px; font-weight: 700; color: var(--mute); }
.wm-cal > i { display: block; }
.wm-cal button { position: relative; aspect-ratio: 1 / 0.86; border-radius: 12px; border: 1.5px solid transparent; background: rgba(255, 255, 255, .4); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.wm-cal button:hover { border-color: #18bfe8; }
.wm-cal button.today b { color: #ff8a1b; }
.wm-cal button.sel { border-color: #18bfe8; background: #d2f7fc; }
.wm-cal button.jr { background: #e3f7ff; }
body[data-theme="night"] .wm-cal button { background: rgba(120, 200, 255, .08); }
body[data-theme="night"] .wm-cal button.sel { background: rgba(24, 191, 232, .25); }
.wm-cal u { display: flex; gap: 2px; height: 5px; text-decoration: none; }
.wm-cal s { display: block; width: 5px; height: 5px; border-radius: 50%; background: #18bfe8; }
.wm-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.wm-tcard { position: relative; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 2px solid #18bfe8; background: #d2f7fc; color: #0b3f6a; font: inherit; cursor: pointer; }
.wm-tcard:nth-child(even) { border-color: #ff8a1b; background: #ffe8cf; color: #7a3a00; }
.wm-tcard b { font-size: 14px; }
.wm-tcard span { font-size: 12px; opacity: .85; line-height: 1.35; }
.wm-tcard:hover { transform: translateY(-2px); }
.wm-tcard em { position: absolute; top: 6px; right: 6px; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.wm-tcard em .wm-i { width: 13px; height: 13px; }
body[data-theme="night"] .wm-tcard { background: rgba(24, 191, 232, .16); color: #bfeeff; }
body[data-theme="night"] .wm-tcard:nth-child(even) { background: rgba(255, 138, 27, .18); color: #ffd9b0; }
.wm-hist { display: grid; grid-template-columns: 190px 1fr; gap: 12px; }
.wm-hlist { display: flex; flex-direction: column; gap: 4px; max-height: 56vh; overflow: auto; }
.wm-hlist button { text-align: left; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.wm-hlist button b { font-size: 12px; }
.wm-hlist button span { font-size: 11px; color: var(--mute); }
.wm-hlist button.on { border-color: #18bfe8; background: #d2f7fc; }
body[data-theme="night"] .wm-hlist button.on { background: rgba(24, 191, 232, .2); }
.wm-hprev { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wm-hbody { max-height: 46vh; overflow: auto; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); }
@media (max-width: 640px) { .wm-hist { grid-template-columns: 1fr; } .wm-hlist { max-height: 160px; } }
.wm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wm-tile { padding: 12px 8px; border-radius: 14px; border: 2px solid #18bfe8; background: #d2f7fc; color: #0b3f6a; text-align: center; display: flex; flex-direction: column; }
.wm-tile:nth-child(even) { border-color: #ff8a1b; background: #ffe8cf; color: #7a3a00; }
.wm-tile b { font-size: 22px; }
.wm-tile span { font-size: 11px; }
body[data-theme="night"] .wm-tile { background: rgba(24, 191, 232, .16); color: #bfeeff; }
body[data-theme="night"] .wm-tile:nth-child(even) { background: rgba(255, 138, 27, .18); color: #ffd9b0; }
.wm-chart { width: 100%; height: auto; }
.wm-chart rect { fill: #5fd8f7; }
.wm-chart rect.now { fill: #ff8a1b; }
.wm-chart text { font-size: 9px; fill: var(--mute); }
.wm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-tags span { padding: 3px 10px; border-radius: 999px; border: 1.5px solid #18bfe8; background: #d2f7fc; color: #0b3f6a; font-size: 12px; }
.wm-picklist { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: 46vh; overflow: auto; }
.wm-picklist button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.wm-picklist button:hover { background: rgba(24, 191, 232, .16); }
.wm-badgeprev { display: flex; align-items: center; justify-content: center; min-height: 60px; border-radius: 12px; border: 1.5px dashed var(--line); font-size: 20px; margin-bottom: 6px; }
#wm-cap { resize: vertical; min-height: 110px; margin: 6px 0 12px; }
/* typewriter mode: room below the last line so the line you write can sit in the middle */
body.wm-type #wf-visual, body.wm-type #wf-source { padding-bottom: 45vh; }

/* ---------- binders: clear colored folders with papers peeking out ---------- */
.wm-binders { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 6px; }
.wm-none { margin: 0; padding: 2px 8px; font-size: 12px; }
.wm-bbtn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; text-align: left; font: inherit; }
.wm-bbtn:hover .wm-bind { transform: translateY(-2px); }
.wm-bbtn.on .wm-bind { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--bc) 75%, #fff); border-radius: 12px; }
.wm-bind { --bc: #e5484d; position: relative; display: block; height: 100px; margin-top: 12px; transition: transform .18s; }
.wm-bind.big { width: 270px; max-width: 100%; height: 118px; margin: 18px auto 8px; font-size: 1.1em; }
.wm-bk { position: absolute; left: 0; right: 0; top: 0; bottom: 0; border-radius: 4px 12px 10px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 62%, #fff), color-mix(in srgb, var(--bc) 78%, #fff)); border: 1.5px solid var(--bd, var(--bc)); }
.wm-tab { position: absolute; left: -1.5px; top: -14px; width: 48%; height: 15px; padding: 0 10px; box-sizing: border-box; background: var(--bc); clip-path: polygon(0 100%, 7% 0, 93% 0, 100% 100%); display: flex; align-items: center; justify-content: center; font-style: normal; }
.wm-tab span { color: var(--bi, #fff); font-size: 9.5px; font-weight: 800; letter-spacing: .3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.wm-bind.light .wm-tab span { text-shadow: none; }
.wm-bind.light .wm-tab { box-shadow: inset 0 0 0 1.5px var(--bd); }
.wm-papers { position: absolute; inset: 0; }
.wm-paper { position: absolute; width: 84%; height: 62px; display: flex; align-items: flex-start; gap: 6px; padding: 0 8px 0 0; box-sizing: border-box; background: #fdfefe; border: 1px solid rgba(20, 60, 90, .22); border-radius: 4px 4px 0 0; box-shadow: 0 1px 3px rgba(10, 40, 70, .22); overflow: hidden; }
.wm-paper i { flex: none; align-self: stretch; width: 6px; background: var(--pc); margin-right: 1px; }
.wm-paper span { font-size: 9.5px; font-weight: 700; line-height: 12px; color: #123; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.wm-paper.note span { font-weight: 500; }
.wm-fr { position: absolute; left: 0; right: 0; top: 47px; bottom: 0; border-radius: 3px 3px 10px 10px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), color-mix(in srgb, var(--bc) 26%, transparent) 55%, color-mix(in srgb, var(--bc) 40%, transparent)); border: 1.5px solid color-mix(in srgb, var(--bd, var(--bc)) 78%, #fff); backdrop-filter: blur(.6px); -webkit-backdrop-filter: blur(.6px); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 -3px 6px color-mix(in srgb, var(--bc) 30%, transparent), 0 3px 6px rgba(10, 40, 70, .14); overflow: hidden; }
.wm-fr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, .1) 54%, transparent 60%); }
.wm-foot { position: absolute; left: 10px; right: 10px; bottom: 6px; display: flex; justify-content: space-between; }
.wm-foot small { font-size: 10.5px; font-weight: 600; color: color-mix(in srgb, var(--bc) 55%, #0b2a44); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
body[data-theme="night"] .wm-foot small { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.wm-bprev { padding: 4px 0 2px; }
.wm-bcols { display: flex; flex-wrap: wrap; gap: 8px; }
.wm-bcols button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: var(--bc); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); cursor: pointer; padding: 0; }
.wm-bcols button.on { box-shadow: 0 0 0 3px var(--bd, var(--bc)); }
#wm-bpastel button { box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
#wm-bpastel button.on { box-shadow: 0 0 0 3px #7a8da3; }
.wm-bnbs { display: flex; flex-direction: column; gap: 2px; max-height: 170px; overflow: auto; }
.wm-bnbs .wm-check { margin: 0; padding: 4px 2px; font-weight: 500; color: var(--ink); }
.wm-bnbs .wm-check i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.wm-bnbs .wm-check small { color: var(--mute); margin-left: auto; font-size: 11px; }
.wm-bbar { display: flex; gap: 10px; margin-top: 12px; }
.wm-bnbs .wm-check { justify-content: flex-start; }
.wm-bnbs .wm-check input { width: 16px; height: 16px; margin: 0; flex: none; padding: 0; }
.wm-bnbs .wm-check span { flex: 1; text-align: left; }

/* binder styles: clear (the default above), solid, frosted, glossy, manila, leather, ring binder, neon */
.wm-rings { display: none; }
.wm-bstyles { display: flex; flex-wrap: wrap; gap: 6px; }
.wm-bstyles button { padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.wm-bstyles button.on { border-color: #18bfe8; background: #d2f7fc; color: #0b3f6a; font-weight: 700; }
body[data-theme="night"] .wm-bstyles button.on { background: rgba(24, 191, 232, .2); color: #bfeeff; }
.wm-st-solid .wm-bk { background: color-mix(in srgb, var(--bc) 88%, #000); }
.wm-st-solid .wm-fr, .wm-st-glossy .wm-fr, .wm-st-ring .wm-fr { backdrop-filter: none; -webkit-backdrop-filter: none; }
.wm-st-solid .wm-fr { background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 82%, #fff), var(--bc)); border-color: var(--bd, var(--bc)); }
.wm-st-solid .wm-fr::after { opacity: .3; }
.wm-st-solid .wm-foot small, .wm-st-glossy .wm-foot small, .wm-st-ring .wm-foot small { color: var(--bi, #fff); text-shadow: none; }
.wm-st-frosted .wm-bk { background: color-mix(in srgb, var(--bc) 38%, #fff); }
.wm-st-frosted .wm-fr { background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border-color: var(--bd, var(--bc)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 3px 6px rgba(10, 40, 70, .14); }
.wm-st-frosted .wm-foot small { color: #123; }
.wm-st-glossy .wm-fr { background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 50%, #fff) 0%, var(--bc) 50%, color-mix(in srgb, var(--bc) 78%, #000) 100%); border-color: var(--bd, var(--bc)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .85), 0 4px 8px rgba(0, 0, 0, .2); }
.wm-st-glossy .wm-bk { background: color-mix(in srgb, var(--bc) 80%, #000); }
.wm-st-manila .wm-bk { background: color-mix(in srgb, var(--bc) 22%, #e6c785); border-color: color-mix(in srgb, var(--bc) 35%, #a9803a); }
.wm-st-manila .wm-tab { background: color-mix(in srgb, var(--bc) 22%, #e6c785); box-shadow: inset 0 3px 0 var(--bc); }
.wm-st-manila .wm-tab span { color: #4a3512; text-shadow: none; }
.wm-st-manila .wm-fr { background: repeating-linear-gradient(0deg, rgba(120, 80, 20, .06) 0 2px, transparent 2px 4px), linear-gradient(180deg, color-mix(in srgb, var(--bc) 18%, #f1dba5), color-mix(in srgb, var(--bc) 24%, #e3c27c)); border-color: color-mix(in srgb, var(--bc) 35%, #a9803a); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: inset 0 5px 0 var(--bc), 0 3px 6px rgba(80, 50, 10, .2); }
.wm-st-manila .wm-fr::after { opacity: .18; }
.wm-st-manila .wm-foot small { color: #5a4020; text-shadow: none; }
.wm-st-leather .wm-bk, .wm-st-leather .wm-fr { background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .09) 0 1px, transparent 2px) 0 0 / 7px 7px, linear-gradient(180deg, color-mix(in srgb, var(--bc) 62%, #1a1008), color-mix(in srgb, var(--bc) 46%, #120a05)); border-color: color-mix(in srgb, var(--bc) 30%, #000); backdrop-filter: none; -webkit-backdrop-filter: none; }
.wm-st-leather .wm-tab { background: color-mix(in srgb, var(--bc) 52%, #1a1008); }
.wm-st-leather .wm-tab span, .wm-st-neon .wm-tab span { color: #fff; text-shadow: none; }
.wm-st-leather .wm-fr::before { content: ""; position: absolute; inset: 4px; border: 1.5px dashed rgba(255, 255, 255, .5); border-radius: 3px 3px 7px 7px; }
.wm-st-leather .wm-fr::after { opacity: .22; }
.wm-st-leather .wm-foot small { color: rgba(255, 255, 255, .9); text-shadow: none; }
.wm-st-ring .wm-bk { background: color-mix(in srgb, var(--bc) 78%, #000); }
.wm-st-ring .wm-fr { left: 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--bc) 80%, #fff), var(--bc)); border-color: var(--bd, var(--bc)); }
.wm-st-ring .wm-fr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0, 0, 0, .18), transparent); }
.wm-st-ring .wm-rings { display: flex; position: absolute; left: 0; top: 48px; bottom: 7px; width: 30px; flex-direction: column; justify-content: space-around; z-index: 3; }
.wm-rings i { display: block; width: 28px; height: 9px; border-radius: 6px; background: linear-gradient(180deg, #fff, #aeb8c4); border: 1px solid #738190; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.wm-st-neon .wm-bk { background: #0b1626; border-color: var(--bc); box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 60%, transparent); }
.wm-st-neon .wm-tab { background: var(--bc); }
.wm-st-neon .wm-fr { background: linear-gradient(180deg, rgba(10, 22, 40, .45), color-mix(in srgb, var(--bc) 24%, rgba(10, 22, 40, .72))); border-color: var(--bc); box-shadow: 0 0 12px color-mix(in srgb, var(--bc) 70%, transparent), inset 0 0 10px color-mix(in srgb, var(--bc) 45%, transparent); }
.wm-st-neon .wm-fr::after { opacity: .3; }
.wm-st-neon .wm-foot small { color: #fff; text-shadow: 0 0 6px var(--bc); }
