/* Vaizdai: pradžia (orbas), puslapiai, Canvas, kanban, užduotys, atmintis. */
.home { display: flex; }
.home-in { flex: 1; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 24px clamp(16px, 3vw, 40px); }
.frame { position: relative; width: 100%; max-width: 620px; height: 320px; flex: 0 1 320px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line-4); }
.corner.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; } .corner.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.corner.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; } .corner.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.frame-id, .frame-state { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }
.frame-id { left: 24px; top: 4px; } .frame-state { right: 24px; bottom: 4px; } .frame-state.on { color: var(--ink); }
.orb-spin { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px dashed #2A3037; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-body { position: absolute; width: 176px; height: 176px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line-3); transition: transform 90ms linear, box-shadow 90ms linear; }
.orb-ring { position: absolute; width: 540px; max-width: 94%; height: 104px; border-radius: 50%; border: 1px solid var(--ink); opacity: .14; transform: rotate(-12deg); }
.orb-bars { position: absolute; display: flex; align-items: center; gap: 4px; height: 130px; transform: rotate(-12deg); }
.bar { width: 2px; height: 2px; border-radius: 1px; background: var(--ink); opacity: .2; transition: height 120ms ease; }
.home-text { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 620px; text-align: center; }
.home-title { margin: 0; font-family: var(--display); font-weight: 300; font-size: 15px; letter-spacing: .6em; padding-left: .6em; text-transform: uppercase; }
.home-line { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.4; letter-spacing: -.01em; max-height: 4.3em; overflow: hidden; white-space: pre-wrap; }
.home-sub { margin: 0; font-size: 11px; letter-spacing: .16em; }
.home-warn { margin: 0; color: var(--amber); font-size: 12.5px; }
.command { width: 100%; max-width: 600px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(26,30,35,.85); padding: 6px 6px 6px 22px; }
.command input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; font-size: 14px; }
.command input::placeholder { color: var(--muted); }
.command-key { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--dim); padding-right: 6px; }

.page-in { max-width: 760px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 48px; display: flex; flex-direction: column; gap: 18px; }
.page-in.wide { max-width: 1180px; }
.page-title { margin: 0; font-family: var(--display); font-weight: 300; font-size: 26px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 12px; }
.kcount { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: rgba(20,23,27,.72); padding: 18px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.panel h2 { margin: 0; font-weight: 400; }
.set-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: center; width: 100%; }
.set-name { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; } .set-name small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.set-form, .set-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; } .set-form .field { flex: 1; min-width: 160px; }
.empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 24px; }
.empty-title { font-family: var(--display); font-weight: 300; font-size: 22px; color: var(--ink); margin: 0; }
.empty-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.ask { position: fixed; inset: 0; background: rgba(10,12,14,.6); display: flex; align-items: flex-start; justify-content: center; padding-top: 18vh; z-index: 40; }
.ask-card { width: min(460px, 92vw); background: var(--panel); border: 1px solid var(--line-3); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ask-actions, .kactions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* Canvas */
.canvas { position: relative; overflow: hidden !important; }
.canvas-stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; outline: none; touch-action: none; }
.canvas-stage.panning { cursor: grabbing; }
.canvas-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.canvas-lines { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.canvas-lines line { stroke: var(--line-4); stroke-width: 1.5; cursor: pointer; }
.canvas-lines line:hover { stroke: var(--ink); } .canvas-lines line.temp { stroke: var(--ink); stroke-dasharray: 4 4; pointer-events: none; }
.card { position: absolute; width: 240px; min-height: 64px; background: var(--panel); border: 1px solid var(--line-3); border-radius: 12px; padding: 12px 14px; cursor: grab; user-select: none; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.card.selected { border-color: var(--ink); } .card.by-agent { border-color: #4A5560; }
.card-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.card-text { font-size: 12.5px; color: var(--muted); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: hidden; }
.card-tag { align-self: flex-start; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-link, .card-del { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 0; opacity: 0; transition: opacity 120ms; }
.card-link { right: -11px; top: calc(50% - 11px); cursor: crosshair; } .card-del { right: -8px; top: -8px; opacity: 1; }
.card:hover .card-link, .card.selected .card-link { opacity: 1; }
.card.editing { cursor: default; border-color: var(--ink); }
.card-title-in, .card-text-in { width: 100%; border: 0; background: transparent; outline: none; font-size: 13.5px; resize: none; }
.card-title-in { font-weight: 500; } .card-text-in { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.canvas-tools { position: absolute; left: 16px; top: 14px; display: flex; align-items: center; gap: 8px; }
.canvas-tools .btn { background: rgba(20,23,27,.9); } .canvas-tools .btn.primary { background: var(--ink); }
.canvas-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); pointer-events: none; }

/* Kanban */
.kanban { overflow-x: auto !important; }
.kboard { display: flex; gap: 12px; padding: 20px clamp(12px, 2vw, 24px); min-height: 100%; align-items: flex-start; }
.kcol { flex: 0 0 272px; background: rgba(20,23,27,.72); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kcol-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.klist { display: flex; flex-direction: column; gap: 8px; min-height: 24px; }
.kcard { background: var(--panel); border: 1px solid var(--line-3); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; cursor: grab; }
.kcard.dragging { opacity: .35; } .kcard.open { cursor: default; gap: 8px; border-color: var(--ink); }
.kcard-title { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; } .kcard-meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.kcard-text { font-size: 12.5px; color: var(--muted); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 90px; overflow: hidden; }
.kfield { display: flex; flex-direction: column; gap: 4px; } .kcard.open .field { padding: 7px 9px; font-size: 13px; }
.kadd { width: 100%; height: 34px; border: 1px dashed var(--line-2); border-radius: 10px; background: transparent; padding: 0 12px; font-size: 12.5px; outline: none; }
.kadd:focus { border-style: solid; border-color: var(--line-4); } .kadd::placeholder { color: var(--dim); }
.drop-mark { height: 2px; background: var(--ink); border-radius: 1px; }

/* Užduotys, planas, atmintis */
.task-add { display: flex; gap: 8px; } .task-add .field { flex: 1; } .due-in { flex: 0 0 150px !important; color-scheme: dark; }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(26,30,35,.7); border: 1px solid var(--line); border-radius: 12px; }
.task.done .task-title { text-decoration: line-through; color: var(--dim); }
.check { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; border: 1px solid var(--line-4); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.check.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.task-body { flex: 1; min-width: 0; } .task-title { font-size: 13.5px; overflow-wrap: anywhere; } .task-note { font-size: 12px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.task-due, .task-src { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; } .task-due.late { color: var(--amber); }
.plan-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .plan-form .field { color-scheme: dark; }
.plan-when { display: flex; gap: 8px; width: 100%; } .plan-when .field { flex: 1; }
.mem-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.mem-list { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(20,23,27,.72); }
.mem-list.over { border-color: var(--ink); } .mem-list .kactions { justify-content: flex-start; margin-bottom: 6px; }
.mem-file { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.mem-file:hover { background: rgba(234,230,221,.05); } .mem-file.on { border-color: var(--line-4); background: rgba(234,230,221,.06); }
.mem-file small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); } .mem-drop { color: var(--dim); font-size: 12px; margin: 6px 4px 0; }
.mem-editor { display: flex; flex-direction: column; gap: 10px; } .mem-editor.wide { max-width: 820px; }
.mem-text { min-height: 46vh; }
.mem-body { margin-top: 4px; }
