/* Karma – arbetsytan, timern, ljudmixern, andningen och kontot. */

.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

/* ——— Lägesväxlaren ——— */
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 46px; }
.mode {
  position: relative; display: flex; padding: 4px; border-radius: 999px; flex: none;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.mode button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--fg-2);
  transition: color .3s, background .3s;
}
.mode button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mode button[aria-selected="true"] { background: rgba(255, 255, 255, .92); color: #0b0b12; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.mode button:not([aria-selected="true"]):hover { color: var(--fg); }

/* Arbetsläget: hemskärmen viker undan, arbetsytan glider upp. */
.center, .bottom, .dock { transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.mode-work .center { opacity: 0; transform: scale(.96); filter: blur(10px); pointer-events: none; }
.mode-work .center > * { pointer-events: none; }
.mode-work .bottom, .mode-work .dock { opacity: 0; transform: translateY(16px); pointer-events: none; }
.mode-work .sponsor { opacity: 0; transform: translateY(12px); pointer-events: none; }
.mode-work .veil { opacity: .6; }

.work {
  position: fixed; z-index: 4; left: var(--gutter); right: var(--gutter); top: 78px; bottom: var(--gutter);
  display: grid; grid-template-columns: 252px 1fr; border-radius: 28px; overflow: hidden;
  background: rgba(10, 10, 18, .58);
  backdrop-filter: blur(40px) saturate(160%); -webkit-backdrop-filter: blur(40px) saturate(160%);
  opacity: 0; transform: translateY(26px) scale(.985); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.work[hidden] { display: none; }
.mode-work .work { opacity: 1; transform: none; pointer-events: auto; }

/* ——— Sidomenyn ——— */
.work-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.side-scroll { flex: 1; overflow-y: auto; padding: 14px 10px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.side-group { display: flex; flex-direction: column; gap: 1px; margin-bottom: 18px; }
.side-title { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 6px 12px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.side-title button { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--fg-3); transition: background .2s, color .2s; }
.side-title button:hover { background: var(--glass-hover); color: var(--fg); }
.side-title svg { width: 15px; height: 15px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px 8px 12px; border-radius: 11px;
  font-size: 14px; color: var(--fg-2); text-align: left; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }
.nav-item.on { background: rgba(255, 255, 255, .12); color: var(--fg); }
.nav-ic { width: 18px; height: 18px; flex: none; display: grid; place-items: center; color: var(--fg-3); }
.nav-item.on .nav-ic { color: var(--fg); }
.nav-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-ic .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .8; }
.nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.side-empty { padding: 7px 12px; font-size: 13px; color: var(--fg-3); text-align: left; border-radius: 10px; }
.side-empty:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }

.side-foot { padding: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.acct { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; text-align: left; transition: background .2s; min-width: 0; }
.acct:hover { background: rgba(255, 255, 255, .06); }
.acct-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: linear-gradient(135deg, var(--heart), var(--heart-2)); color: #fff; }
.acct:not(.in) .acct-av { background: rgba(255, 255, 255, .1); color: var(--fg-2); }
.acct-av svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.acct-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.acct-text b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-text small { font-size: 12px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct.err small { color: #ffb0a0; }
.acct-spin svg { width: 16px; height: 16px; fill: none; stroke: var(--fg-3); stroke-width: 1.8; stroke-linecap: round; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side-impact { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; color: var(--fg-2); transition: background .2s; }
.side-impact:hover { background: rgba(255, 79, 123, .12); color: var(--fg); }
.side-heart svg { width: 15px; height: 15px; fill: var(--heart); }

/* ——— Rubriken ——— */
.work-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.work-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px 14px 28px; }
.side-toggle { display: none; flex: none; }
.work-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.work-title h2, .work-title-input { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
.work-title-input { width: 100%; padding: 0; border-radius: 8px; }
.work-title-input:focus { background: rgba(255, 255, 255, .05); }
.work-title small { font-size: 13px; color: var(--fg-3); margin-top: 2px; }
.work-title small::first-letter { text-transform: uppercase; }
.work-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-3); }
.work-crumb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.work-tools { display: flex; gap: 6px; flex: none; }
.tool {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--fg-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.tool:hover { background: rgba(255, 255, 255, .11); color: var(--fg); }
.tool svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-icon { width: 36px; padding: 0; justify-content: center; }
.tool.live { color: var(--fg); border-color: rgba(255, 79, 123, .4); background: rgba(255, 79, 123, .12); }
.tool.live span[data-timer-text] { font-variant-numeric: tabular-nums; min-width: 40px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.eq i { width: 2.5px; border-radius: 2px; background: var(--heart); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }

.work-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 28px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.work-body[data-view="board"] { overflow: hidden; padding: 4px 0 0; display: flex; }

/* ——— Uppgifter ——— */
.tasks { max-width: 760px; }
.task-add {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; margin-bottom: 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background .2s, border-color .2s;
}
.task-add:focus-within { background: rgba(255, 255, 255, .1); border-color: var(--line-strong); }
.task-add-plus svg { width: 18px; height: 18px; color: var(--fg-3); }
.task-add input { flex: 1; font-size: 15.5px; min-width: 0; }
.task-add input::placeholder { color: var(--fg-3); }
.task-add kbd { opacity: 0; transition: opacity .2s; }
.task-add:focus-within kbd { opacity: 1; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 13px; min-height: 48px;
  animation: rowIn .35s var(--ease); transition: background .15s;
}
.task:hover { background: rgba(255, 255, 255, .045); }
.task .check { width: 21px; height: 21px; border-radius: 7px; }
.task .check svg { width: 12px; height: 12px; }
.task-text { flex: 1; min-width: 0; font-size: 15px; padding: 3px 6px; margin-left: -6px; border-radius: 7px; transition: opacity .3s, background .2s; text-overflow: ellipsis; }
.task-text:focus { background: rgba(255, 255, 255, .07); }
.task.is-done .task-text { opacity: .45; text-decoration: line-through; }
.task-meta { display: flex; gap: 6px; align-items: center; flex: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; color: var(--fg-2); background: rgba(255, 255, 255, .07); white-space: nowrap; }
button.tag:hover { background: rgba(255, 255, 255, .13); color: var(--fg); }
.tag.due { color: #9fd8ff; background: rgba(90, 168, 255, .12); }
.tag.due.late { color: #f3d29a; background: rgba(232, 197, 138, .12); }
.ghost-tag { background: transparent; opacity: 0; transition: opacity .15s; padding: 0 5px; }
.ghost-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.task:hover .ghost-tag, .ghost-tag:focus-visible { opacity: 1; }
.star, .task .del { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--fg-3); flex: none; transition: color .2s, opacity .2s, transform .3s var(--spring); }
.star svg, .task .del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.star { opacity: 0; }
.task:hover .star, .star[aria-pressed="true"], .star:focus-visible { opacity: 1; }
.star[aria-pressed="true"] { color: #ffc857; }
.star[aria-pressed="true"] svg { fill: #ffc857; }
.star:active { transform: scale(.8); }
.task .del { opacity: 0; }
.task:hover .del, .task .del:focus-visible { opacity: 1; }
.task .del:hover { color: #ff9a9a; }
.done-toggle { display: flex; align-items: center; gap: 6px; margin: 18px 0 6px 10px; font-size: 13px; color: var(--fg-3); }
.done-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.done-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.done-toggle:hover { color: var(--fg); }
.tasks-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 70px 20px; color: var(--fg-3); gap: 6px; }
.empty-art { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); margin-bottom: 10px; animation: bob 6s ease-in-out infinite; }
.empty-art svg { width: 28px; height: 28px; fill: none; stroke: var(--fg-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tasks-empty b { color: var(--fg); font-size: 17px; font-weight: 500; }
.tasks-empty span { font-size: 14px; max-width: 34ch; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Snabblistan på hemskärmen använder samma vy. */
.todo-panel { width: 400px; }
.todo-head button { font-size: 12.5px; color: var(--fg-2); }
.todo-body { overflow-y: auto; padding: 0 10px 10px; flex: 1; min-height: 0; }
.todo-body .task-add { height: 46px; margin: 4px 0 6px; border-radius: 14px; }
.todo-body .task { min-height: 42px; padding: 6px 8px; }
.todo-body .task-text { font-size: 14.5px; }
.todo-body .tasks-empty { padding: 26px 10px 18px; }
.todo-body .empty-art { width: 48px; height: 48px; border-radius: 16px; }

/* ——— Tavlan ——— */
.board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding: 4px 28px 28px; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.col { flex: 0 0 290px; max-height: 100%; display: flex; flex-direction: column; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px 14px; }
.col-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; padding: 3px 6px; margin-left: -6px; border-radius: 7px; }
.col-name:focus { background: rgba(255, 255, 255, .08); }
.col-count { font-size: 12px; color: var(--fg-3); min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.col-more { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--fg-3); }
.col-more:hover { background: rgba(255, 255, 255, .08); color: var(--fg); }
.col-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.cards { display: flex; flex-direction: column; gap: 8px; padding: 2px 10px 6px; overflow-y: auto; min-height: 12px; }
.card {
  position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 12px 13px; border-radius: 14px;
  background: rgba(22, 22, 32, .85); border: 1px solid rgba(255, 255, 255, .07); cursor: grab; user-select: none;
  font-size: 14px; line-height: 1.4; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6);
  transition: transform .25s var(--spring), background .2s, border-color .2s, opacity .2s;
  animation: rowIn .3s var(--ease);
}
.card:hover { background: rgba(30, 30, 44, .95); border-color: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.card-label { position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--label); }
.card-title { flex: 1; word-break: break-word; }
.card-notes svg { width: 14px; height: 14px; fill: none; stroke: var(--fg-3); stroke-width: 1.7; margin-top: 2px; }
.card-lifted { display: none; }
.card-holder { border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .03); }
.card-ghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; cursor: grabbing; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); background: rgba(34, 34, 48, .98); border-color: rgba(255, 255, 255, .2); animation: none; transition: none; }
.is-dragging, .is-dragging * { cursor: grabbing !important; }
.card-add { padding: 4px 10px 10px; }
.card-add input { width: 100%; padding: 9px 10px; border-radius: 11px; font-size: 13.5px; transition: background .2s; }
.card-add input::placeholder { color: var(--fg-3); }
.card-add input:focus { background: rgba(255, 255, 255, .07); }
.col-add { flex: 0 0 220px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 16px; font-size: 14px; color: var(--fg-3); border: 1.5px dashed rgba(255, 255, 255, .14); transition: color .2s, border-color .2s, background .2s; }
.col-add:hover { color: var(--fg); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .03); }
.col-add svg { width: 16px; height: 16px; }

.card-edit-title { width: 100%; font-size: 24px; font-weight: 600; letter-spacing: -.02em; padding: 4px 0 10px; }
.card-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.labels { display: flex; gap: 8px; }
.label-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1.5px solid rgba(255, 255, 255, .25); transition: transform .3s var(--spring), box-shadow .2s; }
.label-dot[data-label=""] { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(255, 255, 255, .25) 5px 6px); }
.label-dot[aria-pressed="true"] { box-shadow: 0 0 0 3px rgba(14, 14, 22, 1), 0 0 0 5px #fff; transform: scale(1.05); }
.card-col { width: auto; min-width: 160px; }
.card-edit-notes { width: 100%; resize: vertical; min-height: 140px; padding: 14px; border-radius: 14px; border: 0; outline: none; background: rgba(255, 255, 255, .06); font: inherit; font-size: 14.5px; line-height: 1.55; color: var(--fg); }
.card-edit-notes:focus { background: rgba(255, 255, 255, .09); }
.card-edit-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 30px; background: rgba(255, 255, 255, .07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.6' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; border: 0; color: var(--fg); font: inherit; font-size: 14px; outline: none; }
select.field option { background: #16161f; }

/* ——— Dokument ——— */
.doc { max-width: 720px; margin: 0 auto; padding: 6px 0 80px; }
.doc-title { width: 100%; font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; padding: 0; }
.doc-title::placeholder { color: var(--fg-4); }
.doc-meta { margin: 8px 0 26px; font-size: 12.5px; color: var(--fg-3); }
.doc-body { outline: none; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .9); min-height: 50vh; user-select: text; caret-color: var(--heart); }
.doc-body { position: relative; }
.doc-body.is-empty::before { content: attr(data-placeholder); position: absolute; left: 0; top: 0; color: var(--fg-4); pointer-events: none; }
.doc-body > :first-child { margin-top: 0; }
.doc-body p { margin: 0 0 .7em; }
.doc-body h1 { font-size: 28px; letter-spacing: -.03em; line-height: 1.2; margin: 1.3em 0 .4em; font-weight: 600; }
.doc-body h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.3; margin: 1.3em 0 .35em; font-weight: 600; }
.doc-body h3 { font-size: 17px; margin: 1.2em 0 .3em; font-weight: 600; text-transform: capitalize; }
.doc-body ul, .doc-body ol { margin: 0 0 .8em; padding-left: 1.4em; }
.doc-body li { margin: .15em 0; }
.doc-body li::marker { color: var(--fg-3); }
.doc-body blockquote { margin: 1em 0; padding: 2px 0 2px 18px; border-left: 2px solid var(--heart); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--fg); }
.doc-body hr { border: 0; height: 1px; background: var(--line-strong); margin: 1.8em 0; }
.doc-body a { color: #9fd8ff; text-decoration: underline; text-decoration-color: rgba(159, 216, 255, .4); text-underline-offset: 3px; }
.doc-body code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.doc-body ul.checklist { list-style: none; padding-left: 0; }
.doc-body ul.checklist > li { position: relative; padding-left: 32px; }
.doc-body ul.checklist > li::before {
  content: ''; position: absolute; left: 2px; top: .38em; width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, .5); cursor: pointer; transition: background .2s, border-color .2s;
}
.doc-body ul.checklist > li[data-done]::before { background: #fff; border-color: #fff; }
.doc-body ul.checklist > li[data-done]::after { content: ''; position: absolute; left: 8.5px; top: calc(.38em + 3px); width: 5px; height: 10px; border: solid #0b0b12; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); pointer-events: none; }
.doc-body ul.checklist > li[data-done] { color: var(--fg-3); text-decoration: line-through; }
.doc-templates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: -40vh; position: relative; padding-top: 70px; color: var(--fg-3); font-size: 13.5px; }
.doc-templates span { margin-right: 4px; }
.fmt-bar {
  position: fixed; z-index: 60; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 14px;
  background: rgba(20, 20, 30, .9); opacity: 0; pointer-events: none; transform: translateY(4px);
  transition: opacity .15s, transform .2s var(--ease);
}
.fmt-bar.show { opacity: 1; pointer-events: auto; transform: none; }
.fmt-bar button { min-width: 32px; height: 32px; padding: 0 7px; border-radius: 9px; font-size: 14px; color: var(--fg-2); display: grid; place-items: center; }
.fmt-bar button:hover { background: rgba(255, 255, 255, .1); color: var(--fg); }
.fmt-bar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fmt-bar .sep { width: 1px; height: 18px; background: var(--line-strong); margin: 0 3px; }

/* ——— Timern på hemskärmen ——— */
.timer-bar { width: min(420px, 60vw); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 14px 0 6px; opacity: 0; height: 0; transition: opacity .5s; }
.timer-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--heart), var(--heart-2)); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.timer-break .timer-bar i { background: linear-gradient(90deg, #5ee6a0, #5aa8ff); }
.timer-ctl { display: none; gap: 10px; margin-top: 18px; }
.timer-on .timer-bar { opacity: 1; height: 3px; }
.timer-on .timer-ctl { display: flex; animation: rowIn .5s var(--ease); }
.timer-on .greeting { display: none; }
.timer-on .date { color: var(--fg); letter-spacing: .2em; }
.timer-on .clock { font-variant-numeric: tabular-nums; }
.tbtn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--fg); background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .3s var(--spring), background .2s; }
.tbtn:hover { background: var(--glass-hover); transform: translateY(-2px); }
.tbtn:active { transform: scale(.92); }
.tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tbtn.main { width: 56px; height: 56px; background: rgba(255, 255, 255, .92); color: #0b0b12; }
.tbtn.main svg { width: 20px; height: 20px; }
.tbtn.main:hover { background: #fff; }
.focus-play { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--fg-3); opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.focus-play svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.focus-row:hover .focus-play { opacity: 1; }
.focus-play:hover { background: var(--glass); color: var(--fg); }
.icon-btn.live { color: var(--fg); border-color: rgba(255, 79, 123, .45); background: rgba(255, 79, 123, .16); }

/* ——— Popovers: timer, mixer, menyer ——— */
.pop-wide { width: 340px; }
.pomo { display: flex; flex-direction: column; gap: 12px; }
.pomo-head { display: flex; justify-content: space-between; align-items: baseline; }
.pomo-head b { font-size: 15px; }
.pomo-head span { font-size: 12px; color: var(--fg-3); }
.pomo-lens { display: flex; gap: 6px; }
.pomo-lens .chip { flex: 1; text-align: center; }
.pomo-go { width: 100%; height: 48px; gap: 8px; }
.pomo-go svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.pomo-btns { display: flex; gap: 6px; }
.pomo-btns .btn { flex: 1; height: 38px; padding: 0 10px; font-size: 13px; }
.pomo-live { display: flex; flex-direction: column; align-items: center; padding: 6px 0; }
.pomo-live-time { font-size: 48px; font-weight: 250; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pomo-live-label { font-size: 12.5px; color: var(--fg-3); }
.pomo-auto { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--fg-2); margin: 0 !important; padding-top: 4px; border-top: 1px solid var(--line); }
.pomo-auto span { padding-top: 8px; }
.pomo-auto .switch { margin-top: 8px; }

.mixer { display: flex; flex-direction: column; gap: 12px; }
.mixer-head { display: flex; justify-content: space-between; align-items: center; }
.mixer-head b { font-size: 15px; }
.mixer-presets { margin: 0; }
.mixer-presets .chip { color: var(--fg-2); }
.mixer-presets .chip:hover { background: rgba(255, 255, 255, .14); color: var(--fg); }
.mixer-rows { display: flex; flex-direction: column; gap: 4px; }
.mix-row { display: grid; grid-template-columns: 34px 70px 1fr; align-items: center; gap: 8px; font-size: 13.5px; color: var(--fg-3); }
.mix-row.on { color: var(--fg); }
.mix-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: inherit; transition: background .2s, color .2s; }
.mix-row.on .mix-ic { background: rgba(255, 79, 123, .18); color: #ffb3c4; }
.mix-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mix-row input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--heart), var(--heart-2)) 0 / var(--p, 0%) 100% no-repeat, rgba(255, 255, 255, .12);
}
.mix-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.mixer-note { margin: 0; font-size: 11.5px; color: var(--fg-3); }

.menu { display: flex; flex-direction: column; gap: 2px; margin: -8px; }
.menu button, .menu-date { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; text-align: left; color: var(--fg-2); }
.menu button:hover, .menu-date:hover { background: rgba(255, 255, 255, .08); color: var(--fg); }
.menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu-date { justify-content: space-between; cursor: pointer; }
.menu-date input { color-scheme: dark; font-size: 13px; color: var(--fg); }
.menu .danger-item { color: #ff9a9a; }
.menu .danger-item:hover { background: rgba(255, 90, 90, .12); color: #ffb3b3; }
.menu-note { padding: 8px 10px 10px; font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-all; }
.menu-note small { color: var(--fg-3); }
.pop:has(.menu) { width: 230px; padding: 12px; }

/* ——— Andas ——— */
.breathe {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(10, 12, 30, .25), rgba(4, 4, 12, .65));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .8s var(--ease);
}
.breathe.leaving { animation: fadeOut .4s var(--ease) forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.breathing .top, .breathing .bottom, .breathing .center, .breathing .work, .breathing .sponsor { opacity: 0 !important; pointer-events: none; transition: opacity .8s; }
.breathe-orb { position: relative; width: min(340px, 60vw); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 18px; }
.orb {
  width: 100%; height: 100%; border-radius: 50%; transform: scale(.55); opacity: .75;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 40%), radial-gradient(circle at 50% 50%, var(--accent), color-mix(in srgb, var(--accent) 30%, #3a2577) 70%);
  box-shadow: 0 0 120px -10px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 0 60px rgba(255, 255, 255, .15);
}
.orb-ring { position: absolute; inset: -4%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.breathe-word { font-family: var(--serif); font-style: italic; font-size: clamp(36px, 4.5vw, 56px); line-height: 1; }
.breathe-count { font-size: 15px; color: var(--fg-3); font-variant-numeric: tabular-nums; height: 20px; }
.breathe-patterns { margin-top: 26px; justify-content: center; }
.breathe-patterns .chip:not([aria-pressed="true"]) { color: var(--fg-2); }
.breathe-done { margin-top: 10px; }

/* ——— Konto ——— */
.sheet-login { width: min(440px, calc(100vw - 32px)); text-align: center; }
.sheet-login .sheet-head { text-align: left; }
.login-art { width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 79, 123, .25), rgba(255, 154, 107, .15)); }
.login-art svg { width: 30px; height: 30px; fill: none; stroke: #ffb3c4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.login-title { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.login-lead { margin: 8px auto 22px; color: var(--fg-2); font-size: 15px; max-width: 34ch; line-height: 1.5; }
.login-form { display: flex; flex-direction: column; gap: 10px; }
.login-form .field { width: 100%; height: 50px; font-size: 16px; text-align: center; }
.login-form .field.code { font-size: 26px; letter-spacing: .5em; padding-left: .5em; font-variant-numeric: tabular-nums; }
.login-form .btn { height: 50px; }
.login-form .err { min-height: 1em; font-size: 13px; color: #ff9a9a; }
.link { font-size: 13px; color: var(--fg-3); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--fg); }
.acct-row .btn-sm, .acct-btns .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.acct-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.acct-who .lbl { word-break: break-all; }
.acct-btns { display: flex; gap: 6px; flex: none; }
.pomo-set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.pomo-set label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--fg-3); }
.pomo-set .field { width: 100%; color: var(--fg); }
.keys { display: flex; gap: 4px; }
.keys kbd { margin: 0; }

/* ——— Små skärmar ——— */
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; }
  .work-side { position: absolute; inset: 0 auto 0 0; width: 260px; z-index: 5; background: rgba(14, 14, 22, .96); transform: translateX(-102%); transition: transform .4s var(--ease); }
  .work-side.peek { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, .5); }
  .side-toggle { display: grid; }
  .work-head { padding-left: 16px; }
  .tool span:not(.eq) { display: none; }
  .tool.live span[data-timer-text] { display: inline; }
  .work-body { padding: 4px 16px 20px; }
  .board { padding: 4px 16px 20px; }
  .todo-panel { width: min(400px, calc(100vw - 32px)); }
}
@media (max-width: 680px) {
  .mode button span { display: none; }
  .mode button { padding: 0 10px; }
  .pomo-set { grid-template-columns: repeat(2, 1fr); }
  .actions .icon-btn#btn-breathe, .actions .icon-btn#btn-zen { display: none; }
}

/* ——— Snabbinmatningens etiketter ——— */
.parse-hints { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; margin: -4px 0 8px 4px; }
.parse-hints:empty { display: none; }
.hint { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12px; color: var(--fg); background: rgba(255, 255, 255, .1); animation: rowIn .25s var(--ease); }
.hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hint.due { color: #9fd8ff; background: rgba(90, 168, 255, .14); }
.hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.star-hint { color: #ffd98a; background: rgba(255, 200, 87, .14); }
.star-hint svg { fill: #ffc857; stroke: #ffc857; }
.tag.rep { padding: 0 6px; }
.tag.rep svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-sep { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.menu-sep:empty { padding: 0; margin: 6px 0; border-top: 1px solid var(--line); }
.menu-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 8px 6px; }
.menu-chips .chip { padding: 5px 10px; font-size: 12px; }
.pop:has(.menu-chips) { width: 270px; }

/* ——— Kort: datum, checklista och vissnande ——— */
.card { flex-wrap: wrap; }
.card-meta { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.cm { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 7px; font-size: 11.5px; color: var(--fg-2); background: rgba(255, 255, 255, .07); }
.cm svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm.late { color: #f3d29a; background: rgba(232, 197, 138, .12); }
.cm.full { color: #8ff0bd; background: rgba(94, 230, 160, .14); }
.card-notes { display: none; }
.card.wilt { filter: saturate(.35); opacity: .62; transform: rotate(-.6deg); }
.card.wilt:hover { filter: none; opacity: 1; transform: translateY(-1px); }
.cm.wilt-tag { color: #e8c58a; background: rgba(232, 197, 138, .12); }
.card-edit-fields { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-due { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--fg-3); }
.card-due svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.card-due input { background: none; width: 140px; padding-left: 4px; color-scheme: dark; }
.card-check { margin-top: 16px; }
.card-check-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.card-check-head b { font-size: 14px; }
.card-check-head span { font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.card-check-list { list-style: none; margin: 0; padding: 0; }
.card-check-list li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; font-size: 14px; }
.card-check-list li:hover { background: rgba(255, 255, 255, .04); }
.card-check-list li span { flex: 1; }
.card-check-list .check { width: 19px; height: 19px; border-radius: 6px; }
.card-check-list .check svg { width: 11px; height: 11px; }
.card-check-list li.is-done span { color: var(--fg-3); text-decoration: line-through; }
.card-check-list .del { width: 24px; height: 24px; display: grid; place-items: center; color: var(--fg-3); opacity: 0; }
.card-check-list li:hover .del { opacity: 1; }
.card-check-list .del svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.card-check-add input { width: 100%; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; }
.card-check-add input:focus { background: rgba(255, 255, 255, .07); }
.card-check-add input::placeholder { color: var(--fg-3); }

/* ——— Planera och avsluta dagen ——— */
.ritual-banner {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; margin-bottom: 12px; border-radius: 18px; text-align: left;
  background: linear-gradient(110deg, rgba(255, 200, 87, .16), rgba(255, 154, 107, .08)); border: 1px solid rgba(255, 200, 87, .25);
  transition: transform .35s var(--spring), border-color .2s; animation: rowIn .5s var(--ease);
}
.ritual-banner.shutdown { background: linear-gradient(110deg, rgba(178, 141, 255, .18), rgba(90, 168, 255, .08)); border-color: rgba(178, 141, 255, .28); }
.ritual-banner:hover { transform: translateY(-2px); }
.rb-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); flex: none; }
.rb-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rb-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.rb-text b { font-size: 15px; }
.rb-text small { font-size: 13px; color: var(--fg-2); }
.rb-go { font-size: 18px; color: var(--fg-2); transition: transform .3s var(--spring); }
.ritual-banner:hover .rb-go { transform: translateX(4px); }

.sheet-ritual { width: min(620px, calc(100vw - 32px)); }
.ritual-title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; }
.ritual-lead { margin: 10px 0 22px; color: var(--fg-2); font-size: 15px; }
.ritual-focus, .ritual-reflect { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 13.5px; color: var(--fg-2); }
.ritual-focus .field, .ritual-reflect .field { width: 100%; height: 46px; font-size: 15.5px; }
.ritual-sec { margin-bottom: 18px; }
.ritual-sec h3, .ritual-week h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.ritual-sec h3 span, .ritual-week h3 span { letter-spacing: 0; text-transform: none; font-weight: 500; }
.ritual-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ritual-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 13px; background: rgba(255, 255, 255, .045); animation: rowIn .3s var(--ease); }
.r-text { flex: 1; min-width: 0; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.r-text small { font-size: 12px; color: var(--fg-3); }
.r-text small.late { color: #f3d29a; }
.r-acts { display: flex; gap: 5px; flex: none; }
.r-acts .chip { padding: 5px 10px; font-size: 12px; color: var(--fg-2); }
.r-acts .chip:hover { background: rgba(255, 255, 255, .15); color: var(--fg); }
.r-acts .chip.add { color: #ffd98a; }
.ritual-empty { margin: 0; font-size: 14px; color: var(--fg-3); }
.ritual-add { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; margin-top: 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); }
.ritual-add svg { width: 17px; height: 17px; color: var(--fg-3); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ritual-add input { flex: 1; font-size: 15px; }
.ritual-add input::placeholder { color: var(--fg-3); }
.ritual-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--fg-3); }
.ritual-foot .btn { height: 46px; padding: 0 22px; display: inline-flex; align-items: center; gap: 8px; }
.ritual-foot .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ritual-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 14px; }
.ritual-stats div { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.ritual-stats b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ritual-stats span { font-size: 12.5px; color: var(--fg-3); }
.ritual-done { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ritual-done li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }
.ritual-done li svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #5ee6a0; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ritual-done li.more { padding-left: 25px; color: var(--fg-3); font-size: 13px; }
.ritual-left { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: 14px; }
.ritual-left.ok { color: #8ff0bd; }
.ritual-left.ok svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; vertical-align: -2px; margin-right: 6px; }
.ritual-week { margin-bottom: 20px; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; height: 120px; align-items: end; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; cursor: default; }
.bar i { display: block; width: min(28px, 70%); border-radius: 4px 4px 0 0; background: rgba(255, 255, 255, .22); transition: height .8s var(--ease), background .2s; }
.bar.today i { background: var(--heart); }
.bar:hover i { background: rgba(255, 255, 255, .4); }
.bar.today:hover i { background: #ff7193; }
.bar span { font-size: 11.5px; color: var(--fg-3); text-transform: capitalize; }
.bar.today span { color: var(--fg); font-weight: 600; }
.bar::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); white-space: nowrap;
  padding: 5px 9px; border-radius: 8px; font-size: 12px; background: rgba(30, 30, 44, .96); border: 1px solid var(--line); color: var(--fg);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .2s var(--ease);
}
.bar:hover::after { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— Snedstrecksmenyn ——— */
.slash { position: fixed; z-index: 70; width: 240px; max-height: 300px; overflow-y: auto; padding: 6px; border-radius: 16px; background: rgba(20, 20, 30, .94); animation: panelIn .25s var(--spring); }
.slash button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px; font-size: 14px; color: var(--fg-2); text-align: left; }
.slash button[aria-selected="true"], .slash button:hover { background: rgba(255, 255, 255, .09); color: var(--fg); }
.slash-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: 12px; flex: none; }
.slash-ic svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slash-empty { padding: 10px; font-size: 13px; color: var(--fg-3); }

/* ——— Arbetstider i inställningarna ——— */
.row-split { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.balance { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 12px; transition: opacity .3s; }
.balance.dim { opacity: .4; }
.balance .chips { margin: 0; gap: 4px; flex-basis: 100%; }
.day-chip { padding: 6px 10px; text-transform: capitalize; }
.balance label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-3); }
.balance .field { width: 80px; color: var(--fg); }

@media (max-width: 680px) {
  .ritual-stats { grid-template-columns: 1fr 1fr; }
  .ritual-list li { flex-wrap: wrap; }
}

/* ——— Hemskärmen: världsklockor, mantra, nästa möte, nedräkningar ——— */
.top-right { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.world-clocks { display: flex; gap: 14px; padding-right: 10px; }
.world-clocks:empty { display: none; }
.wc { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.wc span { font-size: 11px; color: var(--fg-3); letter-spacing: .02em; }
.wc b { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.wc small { font-size: 10px; color: var(--fg-3); font-weight: 400; margin-left: 2px; }
.mode-work .world-clocks { opacity: 0; pointer-events: none; }

.greeting .mantra { display: none; cursor: pointer; }
.greeting.is-mantra .greet { display: none; }
.greeting.is-mantra .mantra { display: inline; }

.next-ev {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 8px 16px 8px 13px; border-radius: 999px; font-size: 14px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  animation: rowIn .6s var(--ease); transition: background .2s, transform .3s var(--spring);
}
.next-ev[hidden] { display: none; }
.next-ev:hover { background: var(--glass-hover); transform: translateY(-1px); }
.ne-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ne-when { color: var(--fg-2); }
.ne-title { font-weight: 600; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ne-until { color: var(--fg-3); font-size: 13px; }

.bottom-left { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.countdowns { display: flex; gap: 8px; flex-wrap: wrap; }
.countdowns:empty { display: none; }
.cd {
  display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 16px; text-align: left;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: background .2s, transform .3s var(--spring);
}
.cd:hover { background: var(--glass-hover); transform: translateY(-2px); }
.cd b { font-size: 22px; font-weight: 300; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cd span { font-size: 12.5px; color: var(--fg-3); }
.cd em { font-style: normal; font-size: 13.5px; font-weight: 500; }
.cd-now { border-color: rgba(255, 200, 87, .4); background: rgba(255, 200, 87, .12); }

/* ——— Väderprognosen ——— */
.fc { display: flex; flex-direction: column; gap: 14px; }
.fc-now { display: flex; align-items: center; gap: 12px; }
.fc-now > .wx { width: 44px; height: 44px; }
.fc-now > div:nth-child(2) { display: flex; flex-direction: column; line-height: 1.1; }
.fc-now > div:nth-child(2) b { font-size: 34px; font-weight: 300; letter-spacing: -.03em; }
.fc-now > div:nth-child(2) span { font-size: 13px; color: var(--fg-2); }
.fc-meta { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--fg-3); line-height: 1.45; text-align: right; }
.fc-meta b { color: var(--fg); font-size: 13.5px; }
.fc-hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 10px 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.fc-h { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--fg-3); }
.fc-h .wx { width: 22px; height: 22px; color: var(--fg); }
.fc-h b { font-size: 13.5px; color: var(--fg); font-weight: 500; }
.fc-h small { font-size: 10.5px; color: #9fd8ff; min-height: 13px; }
.fc-days { display: flex; flex-direction: column; gap: 4px; }
.fc-d { display: grid; grid-template-columns: 48px 24px 32px 1fr 32px; align-items: center; gap: 8px; font-size: 13px; }
.fc-day { color: var(--fg-2); }
.fc-d .wx { width: 20px; height: 20px; }
.fc-lo { color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.fc-hi { font-variant-numeric: tabular-nums; }
.fc-range { position: relative; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.fc-range i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #5aa8ff, #ffc857); }
.fc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--fg-4); padding-top: 4px; border-top: 1px solid var(--line); }
.pop .wx svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ——— Agendan i Idag-vyn ——— */
.agenda { margin-bottom: 14px; padding: 14px 14px 10px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); animation: rowIn .4s var(--ease); }
.agenda-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.agenda-head > span { display: flex; align-items: center; gap: 7px; }
.agenda-head svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.agenda-err { letter-spacing: 0; text-transform: none; font-weight: 500; color: #ffb3a7; }
.agenda-allday { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ad { padding: 4px 10px; border-radius: 8px; font-size: 12.5px; background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 60%, white); }
.agenda-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ev { display: grid; grid-template-columns: 52px 3px 1fr; gap: 12px; align-items: center; padding: 7px 6px; border-radius: 11px; transition: background .2s, opacity .2s; }
.ev-time { display: flex; flex-direction: column; font-size: 13.5px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.ev-time small { font-size: 11.5px; color: var(--fg-3); }
.ev-bar { align-self: stretch; border-radius: 3px; background: var(--c); opacity: .85; }
.ev-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ev-main b { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-main small { font-size: 12.5px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev.past { opacity: .4; }
.ev.now { background: color-mix(in srgb, var(--c) 14%, transparent); }
.ev.now small, .ev.next small { color: var(--fg-2); }
.agenda-empty { margin: 2px 0 4px; font-size: 14px; color: var(--fg-3); }
.agenda-connect { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 2px; font-size: 13px; color: var(--fg-3); }
.agenda-connect:hover { color: var(--fg); }
.agenda-connect svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ritual-meet { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ritual-meet li { display: flex; gap: 12px; align-items: baseline; padding: 6px 12px; border-left: 3px solid var(--c); border-radius: 4px; background: rgba(255, 255, 255, .03); font-size: 14px; }
.ritual-meet span { font-variant-numeric: tabular-nums; color: var(--fg-2); }
.ritual-meet b { font-weight: 500; }

/* ——— Inställningarnas nya delar ——— */
.set-sec { margin: 26px 0 0; padding-bottom: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-3); border-bottom: 1px solid var(--line); }
.cd-set, .wc-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cd-set .chip, .wc-chip { color: var(--fg-2); }
.add-chip { border: 1px dashed var(--line-strong); background: transparent !important; color: var(--fg-3) !important; }
.wc-chip { display: inline-flex; align-items: center; gap: 6px; }
.wc-chip button { font-size: 14px; color: var(--fg-3); line-height: 1; }
.wc-chip button:hover { color: var(--fg); }
.wc-add, .cal-add { display: flex; gap: 8px; margin-top: 10px; }
.wc-add .field, .cal-add .field { flex: 1; width: auto; min-width: 0; }
.own-quotes { width: 100%; margin-top: 10px; resize: vertical; font: inherit; font-size: 14px; color: var(--fg); border: 0; outline: none; line-height: 1.5; }
.cal-set { border-bottom: 1px solid var(--line); padding-top: 0; margin-top: -8px; }
.cal-list { display: flex; flex-direction: column; gap: 4px; }
.cal-list:empty { display: none; }
.cal-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.cal-name { flex: 1; display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.cal-name small { font-size: 12px; color: var(--fg-3); }
.cal-err { min-height: 0; font-size: 12.5px; color: #ff9a9a; margin-top: 6px; }
.cal-err:empty { display: none; }
.cal-help { margin-top: 10px; font-size: 13px; color: var(--fg-2); }
.cal-help summary { cursor: pointer; color: var(--fg-3); }
.cal-help summary:hover { color: var(--fg); }
.cal-help p { margin: 8px 0 0; line-height: 1.5; }
#set-cal { border-bottom: 0; }

/* ——— Arbetsytor ——— */
.side-top { padding: 12px 10px 4px; }
.ws-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px 7px 7px; border-radius: 14px; text-align: left; transition: background .2s; }
.ws-switch:hover { background: rgba(255, 255, 255, .07); }
.ws-ic { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #0b0b12; background: var(--c); }
.ws-ic svg { width: 16px; height: 16px; fill: none; stroke: var(--fg); stroke-width: 1.8; stroke-linecap: round; }
.ws-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-caret { width: 16px; height: 16px; fill: none; stroke: var(--fg-3); stroke-width: 1.8; }
.ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heart); box-shadow: 0 0 8px var(--heart); }
.ws-menu button { gap: 10px; }
.ws-menu button.on { background: rgba(255, 255, 255, .06); color: var(--fg); }
.ws-menu .ws-ic { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.ws-label { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ws-label small { font-size: 11.5px; color: var(--fg-3); }
.pop:has(.ws-menu) { width: 260px; }
.nav-count.unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--heart); color: #fff; font-size: 11px; font-weight: 700; }
.ws-dot-sm { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }

.av { width: var(--s, 24px); height: var(--s, 24px); border-radius: 50%; flex: none; display: inline-grid; place-items: center; background: var(--c); color: #0b0b12; font-size: calc(var(--s, 24px) * .45); font-weight: 700; box-shadow: 0 0 0 2px rgba(14, 14, 22, .9); }
.av-more { background: rgba(255, 255, 255, .15); color: var(--fg); font-size: 11px; }
.av-stack { display: flex; align-items: center; padding: 0 6px 0 10px; height: 36px; border-radius: 999px; transition: background .2s; }
.av-stack:hover { background: rgba(255, 255, 255, .07); }
.av-stack .av { margin-left: -6px; }
.assign { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-3); flex: none; opacity: 0; transition: opacity .2s; }
.assign svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.assign.set, .task:hover .assign, .assign:focus-visible { opacity: 1; }
.card-who { position: absolute; right: 10px; bottom: 10px; }
.card:has(.card-who) .card-meta { padding-right: 30px; }
.doc-lock { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255, 200, 87, .12); color: #ffd98a; font-size: 12.5px; }

.ws-colors { display: flex; gap: 8px; justify-content: center; margin: 4px 0; }
.ws-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); text-align: left; }
.ws-preview span:last-child { display: flex; flex-direction: column; }
.ws-preview small { font-size: 12.5px; color: var(--fg-3); }
.invite-link { display: flex; gap: 8px; }
.invite-link .field { flex: 1; width: auto; font-size: 13px; text-align: left; }

.members { max-width: 680px; }
.team-impact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 24px; border-radius: 20px; background: linear-gradient(110deg, rgba(255, 79, 123, .18), rgba(255, 154, 107, .08)); border: 1px solid rgba(255, 79, 123, .25); }
.ti-heart { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 79, 123, .2); }
.ti-heart svg { width: 22px; height: 22px; fill: var(--heart); }
.team-impact b { display: block; font-size: 28px; font-weight: 300; letter-spacing: -.03em; }
.team-impact span { font-size: 13.5px; color: var(--fg-2); }
.members-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.members-head h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.members-head .btn { display: inline-flex; align-items: center; gap: 6px; }
.members-head .btn svg { width: 15px; height: 15px; }
.member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.member-list li:hover { background: rgba(255, 255, 255, .04); }
.m-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.m-name b { font-size: 14.5px; font-weight: 500; }
.m-name b small, .m-name > small { font-size: 12.5px; color: var(--fg-3); font-weight: 400; }
.m-role { font-size: 12.5px; color: var(--fg-3); }
.members-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ws-rename { display: flex; gap: 8px; }

/* ——— Chatten ——— */
.work-body[data-view="chat"] { padding: 0; overflow: hidden; display: flex; }
.chat { flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0; }
.chat.has-thread { grid-template-columns: 1fr 360px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 28px 12px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.chat-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; color: var(--fg-3); }
.chat-empty b { color: var(--fg); font-size: 17px; font-weight: 500; }
.chat-empty span { font-size: 14px; max-width: 36ch; }
.chat-empty .empty-art svg { fill: var(--heart); stroke: none; }
.chat-older { display: block; margin: 6px auto 14px; }
.day-sep { position: relative; text-align: center; margin: 18px 0 10px; }
.day-sep::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.day-sep span { position: relative; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--fg-2); background: rgba(20, 20, 30, .95); border: 1px solid var(--line); }
.day-sep span::first-letter { text-transform: uppercase; }
.msg { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 6px 10px; margin: 0 -10px; border-radius: 12px; }
.msg:not(.grouped) { margin-top: 8px; }
.msg:hover { background: rgba(255, 255, 255, .035); }
.msg-av { display: flex; justify-content: center; }
.msg-time-side { font-size: 10.5px; color: var(--fg-3); opacity: 0; padding-top: 3px; font-variant-numeric: tabular-nums; }
.msg:hover .msg-time-side { opacity: 1; }
.msg-main { min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.msg-head b { font-size: 14.5px; }
.msg-head span { font-size: 11.5px; color: var(--fg-3); }
.msg-body { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); word-wrap: break-word; user-select: text; }
.msg-body a { color: #9fd8ff; }
.msg-edited { margin-left: 6px; font-size: 11px; color: var(--fg-3); }
.msg.deleted .msg-body { color: var(--fg-3); }
.msg-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.react { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background .2s, transform .25s var(--spring); }
.react span { font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.react:hover { background: rgba(255, 255, 255, .11); }
.react:active { transform: scale(.9); }
.react.mine { border-color: rgba(90, 168, 255, .55); background: rgba(90, 168, 255, .16); }
.msg-thread-link { margin-top: 5px; font-size: 12.5px; font-weight: 600; color: #9fd8ff; }
.msg-thread-link:hover { text-decoration: underline; }
.msg-tools { position: absolute; right: 10px; top: -14px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(24, 24, 34, .96); border: 1px solid var(--line); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .2s var(--ease); }
.msg:hover .msg-tools { opacity: 1; pointer-events: auto; transform: none; }
.msg-tools button { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; color: var(--fg-2); }
.msg-tools button:hover { background: rgba(255, 255, 255, .1); color: var(--fg); }
.msg-tools svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg-tools .armed { color: #ff9a9a; background: rgba(255, 90, 90, .15); }
.emoji-pick { display: flex; gap: 2px; margin: -8px; }
.emoji-pick button { width: 36px; height: 36px; border-radius: 10px; font-size: 19px; transition: transform .25s var(--spring), background .2s; }
.emoji-pick button:hover { background: rgba(255, 255, 255, .1); transform: scale(1.15); }
.pop:has(.emoji-pick) { width: auto; padding: 12px; }
.msg-edit textarea { width: 100%; resize: none; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: var(--fg); font: inherit; font-size: 14.5px; outline: none; }
.msg-edit div { display: flex; gap: 6px; margin-top: 6px; }
.composer { display: flex; align-items: flex-end; gap: 8px; margin: 0 20px 18px; padding: 8px 8px 8px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.composer:focus-within { border-color: var(--line-strong); background: rgba(255, 255, 255, .1); }
.composer textarea { flex: 1; resize: none; border: 0; outline: none; background: none; color: var(--fg); font: inherit; font-size: 15px; line-height: 1.45; padding: 7px 0; max-height: 180px; }
.composer textarea::placeholder { color: var(--fg-3); }
.send { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; color: #0b0b12; transition: transform .25s var(--spring), opacity .2s; }
.send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.send:active { transform: scale(.9); }
.composer:has(textarea:placeholder-shown) .send { opacity: .35; }
.thread { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .02); animation: rowIn .3s var(--ease); }
.thread-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px 20px; }
.thread-head b { font-size: 15px; }
.thread-head .close { width: 30px; height: 30px; }
.thread-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 12px; }
.thread-sep { margin: 10px 0 2px; font-size: 12px; color: var(--fg-3); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.composer.in-thread { margin: 0 12px 14px; }

@media (max-width: 900px) {
  .chat.has-thread { grid-template-columns: 1fr; }
  .chat.has-thread .chat-main { display: none; }
  .chat-list { padding: 8px 16px; }
  .composer { margin: 0 12px 12px; }
}

/* ——— Kommentarer och händelser på kort och uppgifter ——— */
.comments { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.comments-head b { font-size: 13px; font-weight: 600; color: var(--fg-2); }
.cmt-list { list-style: none; margin: 0 0 10px; padding: 0; max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.cmt { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 7px 0; animation: rowIn .3s var(--ease); }
.cmt-head { display: flex; align-items: baseline; gap: 8px; }
.cmt-head b { font-size: 13.5px; }
.cmt-head time, .act time { font-size: 11px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.cmt-body { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .9); word-wrap: break-word; user-select: text; }
.cmt-body a { color: #9fd8ff; }
.act { display: flex; align-items: center; gap: 9px; padding: 5px 0 5px 10px; font-size: 12.5px; color: var(--fg-3); }
.act > span:not(.act-dot) { flex: 1; min-width: 0; }
.act-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--fg-4); }
.cmt-add { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.cmt-add:focus-within { border-color: var(--line-strong); background: rgba(255, 255, 255, .09); }
.cmt-add textarea { flex: 1; resize: none; border: 0; outline: none; background: none; color: var(--fg); font: inherit; font-size: 14px; line-height: 1.45; padding: 6px 0; }
.cmt-add textarea::placeholder { color: var(--fg-3); }
.cmt-add .send { width: 32px; height: 32px; border-radius: 10px; }
.cmt-add:has(textarea:placeholder-shown) .send { opacity: .35; }
.at { font-weight: 600; color: #9fd8ff; }
.msg.mentions-me { background: rgba(255, 200, 87, .07); box-shadow: inset 2px 0 0 #ffc857; }
.cmt-btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 6px; border-radius: 8px; font-size: 12px; color: var(--fg-3); opacity: 0; transition: opacity .15s, background .15s; }
.cmt-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.cmt-btn.has, .task:hover .cmt-btn, .cmt-btn:focus-visible { opacity: 1; }
.cmt-btn:hover { background: rgba(255, 255, 255, .09); color: var(--fg); }

/* Nästa steg efter en flytt på tavlan */
.next-step { min-width: 220px; }
.next-step-q { margin: 2px 10px 8px; font-size: 13.5px; font-weight: 600; }
.next-step-pick { white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 13.5px; color: var(--fg-2); }
.next-step-pick input { width: 132px; flex: none; }
.next-step .next-step-skip { color: var(--fg-3); }

/* Kort att följa upp i Idag-vyn */
.due-card { width: 100%; grid-template-columns: 3px 1fr auto; text-align: left; color: inherit; }
.due-card:hover { background: rgba(255, 255, 255, .05); }
.ritual-hint { margin: -2px 0 10px; font-size: 13px; color: var(--fg-3); }

/* ——— Närvaro: vilka som är inne och var ——— */
.av-wrap { position: relative; display: inline-flex; margin-left: -6px; }
.av-stack .av-wrap .av { margin-left: 0; }
.av-wrap.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px rgba(14, 14, 22, .95); }
.here-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; color: var(--fg-2); background: rgba(94, 230, 160, .1); white-space: nowrap; animation: rowIn .3s var(--ease); }
.here-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: herePulse 2.4s ease-in-out infinite; }
@keyframes herePulse { 50% { opacity: .35; } }
.nav-here { display: inline-flex; margin-left: auto; padding-right: 4px; }
.nav-here .av { margin-left: -4px; box-shadow: 0 0 0 1.5px rgba(14, 14, 22, .95); }
.nav-here + .nav-count { margin-left: 4px; }
@media (max-width: 540px) { .here-chip { display: none; } }

/* ——— Månadens topplista i medlemsvyn ——— */
.lb { margin-bottom: 28px; }
.lb .members-head a { font-size: 13px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-list li { display: grid; grid-template-columns: 22px 28px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 13px; }
.lb-list li.me { background: rgba(255, 255, 255, .06); }
.lb-list .lb-wait { display: block; color: var(--fg-3); font-size: 14px; padding: 6px 0; }
.lb-rank { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--fg-3); text-align: center; }
.lb-list .ws-ic { width: 28px; height: 28px; border-radius: 9px; }
.lb-name { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.lb-name b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.lb-bar i { display: block; height: 100%; border-radius: 3px; background: var(--heart); }
.lb-list li:not(.me) .lb-bar i { opacity: .55; }
.lb-val { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-val small { display: block; font-size: 12px; color: var(--fg-3); }
.lb-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.lb-opt b { display: block; font-size: 14px; font-weight: 500; }
.lb-opt small { font-size: 12.5px; color: var(--fg-3); }
.lb-note { margin: 10px 0 0; font-size: 13px; color: var(--fg-3); }
.link { color: #9fd8ff; }
.link:hover { text-decoration: underline; }

/* ——— Andningspasset: tid kvar, längd och en rad om hur ——— */
.breathe-left { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; height: 18px; }
.breathe-lengths { justify-content: center; margin-top: 0; }
.breathe-lengths .chip:not([aria-pressed="true"]) { color: var(--fg-2); }
.breathe-tip { max-width: 40ch; margin: 6px 16px 0; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--fg-2); }

/* ——— Mikropausen ——— */
.break-card {
  position: fixed; left: 50%; bottom: calc(var(--gutter) + 70px); z-index: 30; transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 22px;
  display: flex; flex-direction: column; gap: 6px; animation: breakIn .6s var(--spring);
}
.break-card.leaving { animation: fadeOut .35s var(--ease) forwards; }
@keyframes breakIn { from { opacity: 0; transform: translate(-50%, 14px) scale(.97); } }
.break-kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ok); }
.break-card b { font-size: 17px; font-weight: 500; line-height: 1.35; }
.break-why { font-size: 13px; color: var(--fg-3); }
.break-btns { display: flex; gap: 8px; margin-top: 8px; }

/* ——— Avsikt på nya fliken ——— */
.intent {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(10, 12, 30, .2), rgba(4, 4, 12, .6));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .6s var(--ease); padding: 16px;
}
.intent.leaving { animation: fadeOut .4s var(--ease) forwards; }
.intent-on .top, .intent-on .bottom, .intent-on .center, .intent-on .sponsor { opacity: 0 !important; pointer-events: none; transition: opacity .6s; }
.intent-orb {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), transparent 40%), radial-gradient(circle, var(--accent), color-mix(in srgb, var(--accent) 30%, #3a2577) 70%);
  box-shadow: 0 0 90px -10px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: intentBreath 3.2s cubic-bezier(.45, 0, .55, 1) both;
}
@keyframes intentBreath { 0% { transform: scale(.55); opacity: .6; } 45% { transform: scale(1); opacity: 1; } 100% { transform: scale(.7); opacity: .85; } }
.intent-breath { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 36px); }
.intent-form { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(520px, 100%); opacity: 0; transform: translateY(8px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.intent.ready .intent-form { opacity: 1; transform: none; pointer-events: auto; }
.intent.ready .intent-breath { opacity: .5; transition: opacity .7s; }
.intent-q { font-size: clamp(20px, 2.4vw, 28px); font-weight: 300; letter-spacing: -.02em; }
.intent-form input { width: 100%; height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .08); color: var(--fg); font: inherit; font-size: 17px; outline: none; text-align: center; }
.intent-form input:focus { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); }
.link-btn { font-size: 14px; color: var(--fg-2); padding: 6px 10px; border-radius: 10px; }
.link-btn:hover { color: var(--fg); background: rgba(255, 255, 255, .07); }

/* ——— Dagsavslutet ——— */
.ritual-banner.rested { background: linear-gradient(110deg, rgba(90, 168, 255, .14), rgba(178, 141, 255, .06)); border-color: rgba(90, 168, 255, .22); }
.ritual-good { margin: 14px 0 0; font-size: 15px; color: var(--fg-2); }
.ritual-teams { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ritual-teams li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }
.ritual-teams .ws-ic { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.stop-signal {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px;
  background: radial-gradient(70% 70% at 50% 45%, rgba(8, 10, 28, .55), rgba(2, 2, 8, .85));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade .8s var(--ease);
}
.stop-signal.leaving { animation: fadeOut .5s var(--ease) forwards; }
.stop-moon svg { width: 46px; height: 46px; fill: none; stroke: #e2d8ff; stroke-width: 1.4; }
.stop-signal b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1; }
.stop-signal span { color: var(--fg-2); font-size: 16px; }

/* ——— Lagets mål, omröstning och matchning ——— */
.goal { margin-bottom: 26px; }
.goal .members-head a, .goal .members-head .link { font-size: 13px; }
.goal-card { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); display: flex; flex-direction: column; gap: 12px; }
.goal-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.goal-line b { font-size: 26px; font-weight: 300; letter-spacing: -.03em; }
.goal-line span { font-size: 14px; color: var(--fg-2); }
.goal-bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--heart), var(--heart-2)); transition: width .9s var(--ease); }
.goal-none { margin: 0; font-size: 14px; color: var(--fg-2); }
.goal-match { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--fg-2); }
.goal-match svg { width: 15px; height: 15px; flex: none; fill: var(--heart); stroke: none; }
.goal-q { font-size: 13.5px; font-weight: 500; }
.goal-vote .chips { margin-top: 8px; }
.vote-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-2); }
.vote-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.vote-chip span { font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--fg); }
.vote-chip[aria-pressed="true"] { background: rgba(255, 255, 255, .9); color: #0b0b12; }
.vote-chip[aria-pressed="true"] span { background: rgba(0, 0, 0, .1); color: #0b0b12; }
.goal-follow { margin-top: 10px; }
.goal-fine { margin: 8px 0 0; font-size: 12.5px; color: var(--fg-3); line-height: 1.45; }
.goal-form { display: flex; flex-direction: column; gap: 10px; }
.goal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--fg-2); }

/* Det som blivit liggande är varmt gult, inte larmrött: det ska påminna, inte stressa. */

/* ——— Dagens tre ——— */
.ritual-three { padding: 16px 18px; border-radius: 18px; background: linear-gradient(110deg, rgba(255, 200, 87, .1), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 200, 87, .2); }
.three-list { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.three-list li { font-size: 15px; }
.three-list li::marker { font-family: var(--serif); font-style: italic; color: #ffc857; }
.three-list small { margin-left: 8px; font-size: 12.5px; color: var(--fg-3); }
.ritual-three .btn { display: inline-flex; align-items: center; gap: 6px; }
.ritual-three .btn svg { width: 14px; height: 14px; }
@media (max-width: 680px) { .break-card { bottom: calc(var(--gutter) + 120px); } }
