import "nuclo";
const mono = "ui-monospace, SFMono-Regular, Consolas, monospace";
const control = { minHeight: "32px", padding: "0 11px", borderRadius: "7px", border: "1px solid var(--os-line)", backgroundColor: "var(--os-panel)", color: "var(--os-text)", fontFamily: "inherit", fontSize: "0.75rem", fontWeight: "600", whiteSpace: "nowrap", display: "inline-flex", alignItems: "center", justifyContent: "center", gap: "6px", cursor: "pointer" };
const focusRing = { outline: "2px solid var(--os-accent)", outlineOffset: "2px" };
export const s = {
contextMenu: css("os-context-menu", { position: "absolute", zIndex: 9, width: "min(224px, calc(100% - 12px))", maxHeight: "calc(100% - 12px)", overflowY: "auto", padding: "6px", borderRadius: "10px", backgroundColor: "var(--os-panel)", boxShadow: "0 10px 32px rgb(0 0 0 / .28)" }),
contextHeading: css("os-context-heading", { display: "block", padding: "7px 10px 8px", marginBottom: "4px", borderBottom: "1px solid var(--os-line)", overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis", color: "var(--os-muted)", fontSize: "0.65rem", fontWeight: "600" }),
contextItem: css("os-context-item", { display: "flex", alignItems: "center", gap: "10px", width: "100%", minHeight: "36px", padding: "7px 10px", borderRadius: "6px", color: "var(--os-text)", textAlign: "left", fontSize: "0.8rem", cursor: "pointer", hover: { backgroundColor: "var(--os-soft)" }, "&:focus-visible": { outlineOffset: "-2px", backgroundColor: "var(--os-soft)" } }),
contextDanger: css("os-context-danger", { color: "#a23737", hover: { backgroundColor: "#f9e8e4" } }),
app: css("os-app", { position: "relative", isolation: "isolate", display: "flex", flexDirection: "column", width: "100%", height: "100%", overflow: "hidden", borderRadius: "14px", fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif", color: "var(--os-text)", raw: { "--os-panel": "#f9fbfa", "--os-soft": "#edf2ef", "--os-text": "#233c34", "--os-muted": "#596c64", "--os-line": "#d7e1db", "--os-accent": "#237556", "--os-warm": "#174c3c", "scrollbar-color": "#9bafa3 transparent", "scrollbar-width": "thin" }, "& button:focus-visible, & input:focus-visible, & textarea:focus-visible, & select:focus-visible, & [tabindex='0']:focus-visible": focusRing, "@media (max-width: 600px)": { "& .os-btn, & .os-ctl, & .os-side-item": { minHeight: "36px" } }, "& button:disabled": { opacity: ".45", cursor: "default" }, "& ::selection": { backgroundColor: "#c5ead4", color: "#163d2c" }, "&[data-wallpaper=dusk]": { raw: { "--os-warm": "#624c67" } }, "&[data-wallpaper=slate]": { raw: { "--os-warm": "#344b61" } } }),
desk: css("os-desk", { position: "relative", isolation: "isolate", flex: "1", minHeight: "0", overflow: "hidden", backgroundColor: "var(--os-warm)" }),
wallpaper: css("os-wallpaper", { position: "absolute", inset: "0", overflow: "hidden", pointerEvents: "none", backgroundImage: "linear-gradient(130deg, rgb(255 255 255 / .08), transparent 55%)" }),
orbit: css("os-orbit", { position: "absolute", width: "850px", height: "850px", right: "-270px", top: "-330px", borderRadius: "50%", border: "100px solid rgb(255 255 255 / .045)" }),
orbitTwo: css("os-orbit-two", { width: "1150px", height: "1150px", right: "-420px", top: "-480px", borderWidth: "1px", borderColor: "rgb(255 255 255 / .15)" }),
desktopHeading: css("os-desktop-heading", { position: "absolute", bottom: "28px", right: "32px", display: "flex", flexDirection: "column", gap: "6px", textAlign: "right", pointerEvents: "none", color: "#e0eee5", "& strong": { fontSize: "1.7rem", fontWeight: "500", letterSpacing: "-.03em" }, "& span": { fontSize: "0.8rem" }, "@media (max-width: 600px)": { display: "none" } }),
icons: css("os-icons", { display: "flex", flexDirection: "column", flexWrap: "wrap", alignContent: "flex-start", gap: "3px", height: "100%", padding: "14px 8px", "@media (max-width: 600px)": { "& > button:nth-child(n+4)": { display: "none" } } }),
icon: css("os-icon", { display: "flex", flexDirection: "column", alignItems: "center", gap: "5px", width: "80px", padding: "7px 4px", borderRadius: "10px", fontSize: "0.7rem", fontWeight: "500", color: "#f0f7f2", touchAction: "manipulation", userSelect: "none", cursor: "pointer", hover: { backgroundColor: "rgb(255 255 255 / .12)" } }),
glyph: css("os-glyph", { display: "flex", alignItems: "center", justifyContent: "center", width: "43px", height: "43px", borderRadius: "12px", color: "#285644", backgroundColor: "#dfebdf", boxShadow: "0 3px 6px rgb(0 0 0 / .12)", "&[data-app=notes]": { color: "#795522", backgroundColor: "#f7eacb" }, "&[data-app=terminal]": { color: "#def0e6", backgroundColor: "#253c33" }, "&[data-app=calculator]": { color: "#494672", backgroundColor: "#e7e3f2" }, "&[data-app=timer]": { color: "#7d463c", backgroundColor: "#f2ddd5" }, "&[data-app=kanban]": { color: "#6a4a94", backgroundColor: "#e8dcf1" }, "&[data-app=calendar]": { color: "#96623a", backgroundColor: "#f6e6d2" }, "&[data-app=finance]": { color: "#275d8a", backgroundColor: "#dfe9f2" } }),
win: css("os-win", { position: "absolute", display: "flex", flexDirection: "column", borderRadius: "12px", overflow: "hidden", backgroundColor: "var(--os-panel)", boxShadow: "0 8px 28px rgb(0 0 0 / .19)" }),
active: css("os-active", { boxShadow: "0 16px 42px rgb(0 0 0 / .28)", "& > header": { backgroundColor: "#f9fbfa", color: "var(--os-text)" } }),
minimized: css("os-minimized", { display: "none" }),
maximized: css("os-maximized", { borderRadius: "0", "& .os-grip": { display: "none" } }),
bar: css("os-bar", { display: "flex", alignItems: "center", gap: "3px", height: "42px", flexShrink: 0, paddingRight: "7px", borderBottom: "1px solid var(--os-line)", backgroundColor: "var(--os-soft)", color: "var(--os-muted)", userSelect: "none" }),
title: css("os-title", { display: "flex", alignItems: "center", gap: "8px", flex: "1", minWidth: "0", height: "100%", paddingLeft: "14px", fontSize: "0.75rem", fontWeight: "600", cursor: "grab", touchAction: "none", "& span": { overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" } }),
dirty: css("os-dirty", { color: "var(--os-accent)" }),
ctl: css("os-ctl", { display: "flex", alignItems: "center", justifyContent: "center", width: "30px", height: "30px", borderRadius: "7px", color: "var(--os-muted)", cursor: "pointer", hover: { color: "var(--os-text)", backgroundColor: "#e4ebe6" } }),
close: css("os-close", { hover: { color: "#9e3434", backgroundColor: "#f6dede" } }),
body: css("os-body", { display: "flex", flexDirection: "column", flex: "1", minHeight: "0", overflow: "hidden" }),
grip: css("os-grip", { position: "absolute", right: "1px", bottom: "1px", width: "16px", height: "16px", cursor: "nwse-resize", touchAction: "none", backgroundImage: "linear-gradient(135deg, transparent 55%, #879e90 55% 62%, transparent 62% 76%, #879e90 76% 83%, transparent 83%)" }),
backdrop: css("os-backdrop", { position: "absolute", inset: "0", zIndex: 10, display: "flex", alignItems: "center", justifyContent: "center", padding: "16px", backgroundColor: "rgb(12 27 20 / .5)" }),
dialog: css("os-dialog", { borderRadius: "14px", backgroundColor: "var(--os-panel)", display: "flex", flexDirection: "column", gap: "8px", width: "min(340px, 100%)", padding: "24px", boxShadow: "0 20px 60px rgb(0 0 0 / .25)", "& h3": { fontSize: "1.1rem", fontWeight: "600" }, "& p": { fontSize: "0.875rem", color: "var(--os-muted)" } }),
actions: css("os-actions", { display: "flex", justifyContent: "flex-end", gap: "8px", marginTop: "12px" }),
taskbar: css("os-taskbar", { position: "relative", display: "flex", alignItems: "center", gap: "8px", height: "58px", flexShrink: 0, padding: "0 12px", backgroundColor: "var(--os-panel)", "@media (max-width: 600px)": { gap: "4px", padding: "0 6px" } }),
start: css("os-start", { ...control, minHeight: "36px", flexShrink: 0, backgroundColor: "var(--os-text)", borderColor: "transparent", color: "#fff", hover: { backgroundColor: "var(--os-accent)" } }),
menu: css("os-menu", { position: "absolute", left: "12px", bottom: "calc(100% + 10px)", zIndex: 1, display: "flex", flexDirection: "column", gap: "3px", width: "min(280px, calc(100vw - 72px))", maxHeight: "min(460px, 65vh)", overflowY: "auto", padding: "14px", borderRadius: "14px", backgroundColor: "var(--os-panel)", boxShadow: "0 12px 40px rgb(0 0 0 / .25)" }),
launcherHeading: css("os-launcher-heading", { display: "flex", flexDirection: "column", gap: "3px", marginBottom: "10px", "& strong": { fontSize: "0.95rem" }, "& span": { fontSize: "0.75rem", color: "var(--os-muted)" } }),
item: css("os-item", { display: "flex", alignItems: "center", gap: "12px", minHeight: "38px", padding: "0 10px", borderRadius: "7px", fontSize: "0.8rem", color: "var(--os-text)", textAlign: "left", cursor: "pointer", hover: { backgroundColor: "var(--os-soft)" } }),
tasks: css("os-tasks", { display: "flex", gap: "5px", flex: "1", minWidth: "0", overflowX: "auto", raw: { "scrollbar-width": "none" } }),
task: css("os-task", { display: "flex", alignItems: "center", gap: "8px", flexShrink: 0, maxWidth: "170px", height: "38px", padding: "0 12px", borderRadius: "8px", fontSize: "0.75rem", color: "var(--os-muted)", cursor: "pointer", hover: { backgroundColor: "var(--os-soft)" } }),
current: css("os-current", { color: "#20583f", backgroundColor: "#dfede3", boxShadow: "inset 0 -2px 0 #237556", hover: { backgroundColor: "#dfede3" } }),
faded: css("os-faded", { color: "#687b70" }),
label: css("os-label", { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", "@media (max-width: 600px)": { display: "none" } }),
showDesktop: css("os-show-desktop", { ...control, width: "32px", padding: "0", "@media (max-width: 600px)": { display: "none" } }),
tray: css("os-tray", { display: "flex", alignItems: "center", gap: "6px", flexShrink: 0, fontSize: "0.75rem", fontVariantNumeric: "tabular-nums" }),
trayItem: css("os-tray-item", { ...control, color: "var(--os-accent)", backgroundColor: "var(--os-soft)" }),
clock: css("os-clock", { display: "flex", flexDirection: "column", alignItems: "flex-end", gap: "2px", padding: "0 6px", color: "var(--os-text)", fontSize: "0.75rem", fontWeight: "600" }),
clockDate: css("os-clock-date", { color: "var(--os-muted)", fontSize: "0.65rem", fontWeight: "400" }),
btn: css("os-btn", { ...control, hover: { backgroundColor: "var(--os-soft)" } }),
primary: css("os-primary", { backgroundColor: "var(--os-accent)", borderColor: "transparent", color: "#fff", hover: { backgroundColor: "#18583f" } }),
danger: css("os-danger", { backgroundColor: "#ad3434", borderColor: "transparent", color: "#fff", hover: { backgroundColor: "#912727" } }),
input: css("os-input", { minWidth: "0", width: "100%", height: "32px", padding: "0 10px", border: "1px solid var(--os-line)", borderRadius: "7px", backgroundColor: "var(--os-panel)", color: "var(--os-text)", fontFamily: "inherit", fontSize: "0.8rem", "&::placeholder": { color: "var(--os-muted)" }, "@media (max-width: 600px)": { fontSize: "16px" } }),
toolbar: css("os-toolbar", { display: "flex", alignItems: "center", gap: "7px", padding: "9px 12px", flexShrink: 0, borderBottom: "1px solid var(--os-line)", "@media (max-width: 600px)": { flexWrap: "wrap", padding: "7px" } }),
notes: css("os-notes", { display: "flex", flexDirection: "column", flex: "1", minHeight: "0" }),
textarea: css("os-textarea", { flex: "1", minHeight: "0", width: "100%", padding: "20px", border: "none", resize: "none", backgroundColor: "#fffdf5", color: "#3f473c", fontFamily: "inherit", fontSize: "0.875rem", lineHeight: "1.8", raw: { "caret-color": "#237556" }, "&::placeholder": { color: "#63715f" }, "@media (max-width: 600px)": { fontSize: "16px", padding: "14px" } }),
foot: css("os-foot", { display: "flex", justifyContent: "space-between", alignItems: "center", gap: "10px", padding: "9px 14px", borderTop: "1px solid var(--os-line)", fontSize: "0.65rem", color: "var(--os-muted)" }),
error: css("os-error", { padding: "8px 12px", backgroundColor: "#fff0ed", color: "#933b30", fontSize: "0.75rem", flexShrink: 0 }),
explorer: css("os-explorer", { display: "flex", flex: "1", minHeight: "0" }),
sidebar: css("os-sidebar", { display: "flex", flexDirection: "column", flexShrink: 0, width: "145px", padding: "18px 8px 10px", gap: "4px", backgroundColor: "var(--os-soft)", "@media (max-width: 600px)": { width: "46px", padding: "12px 4px", "& .os-side-item span, & .os-sidebar-title, & .os-disk-hint": { display: "none" }, "& .os-side-item": { justifyContent: "center", padding: "0" } } }),
sidebarTitle: css("os-sidebar-title", { fontSize: "0.65rem", fontWeight: "600", color: "var(--os-muted)", padding: "0 10px 8px" }),
sideItem: css("os-side-item", { display: "flex", alignItems: "center", gap: "8px", minHeight: "35px", padding: "0 10px", borderRadius: "7px", fontSize: "0.75rem", textAlign: "left", color: "var(--os-text)", cursor: "pointer", "&[aria-current=page]": { backgroundColor: "#d9e7dc", color: "#20583f", fontWeight: "600" }, hover: { backgroundColor: "#e0e9e2" } }),
diskHint: css("os-disk-hint", { marginTop: "auto", padding: "14px 10px 0", fontSize: "0.6rem", lineHeight: "1.6", color: "var(--os-muted)" }),
fileMain: css("os-file-main", { display: "flex", flexDirection: "column", flex: "1", minWidth: "0", minHeight: "0" }),
breadcrumb: css("os-breadcrumb", { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontSize: "0.75rem", fontWeight: "600" }),
inlineForm: css("os-inline-form", { display: "flex", gap: "6px", padding: "10px 12px", backgroundColor: "var(--os-soft)", flexShrink: 0 }),
fileList: css("os-file-list", { flex: "1", minHeight: "0", overflowY: "auto", padding: "10px" }),
fileRow: css("os-file-row", { display: "flex", alignItems: "center", gap: "10px", width: "100%", minHeight: "48px", padding: "8px 10px", borderRadius: "7px", textAlign: "left", cursor: "pointer", color: "var(--os-text)", hover: { backgroundColor: "var(--os-soft)" }, "&[aria-pressed=true]": { backgroundColor: "#dfede3" } }),
fileIcon: css("os-file-icon", { display: "flex", color: "#688a70" }),
fileName: css("os-file-name", { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontSize: "0.8rem" }),
fileMeta: css("os-file-meta", { color: "var(--os-muted)", fontSize: "0.65rem", whiteSpace: "nowrap", fontVariantNumeric: "tabular-nums" }),
fileGrid: css("os-file-grid", { display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(110px, 1fr))", alignContent: "start", gap: "4px", "& .os-file-row": { flexDirection: "column", textAlign: "center", gap: "7px", padding: "16px 6px" }, "& .os-file-name": { width: "100%" } }),
fileActions: css("os-file-actions", { display: "flex", alignItems: "center", gap: "5px", padding: "8px 12px", borderTop: "1px solid var(--os-line)", flexShrink: 0, flexWrap: "wrap" }),
selection: css("os-selection", { flex: "1", minWidth: "40px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", color: "var(--os-muted)", fontSize: "0.65rem" }),
empty: css("os-empty", { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "9px", padding: "25px 10px", color: "var(--os-muted)", textAlign: "center", fontSize: "0.75rem", gridColumn: "1 / -1" }),
calc: css("os-calc", { display: "flex", flexDirection: "column", gap: "10px", flex: "1", minHeight: "0", padding: "14px" }),
display: css("os-display", { display: "block", padding: "12px", borderRadius: "8px", backgroundColor: "var(--os-soft)", fontFamily: mono, fontSize: "1.7rem", textAlign: "right", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }),
keys: css("os-keys", { display: "grid", gridTemplateColumns: "repeat(4, 1fr)", gridAutoRows: "1fr", gap: "6px", flex: "1", minHeight: "0" }),
key: css("os-key", { borderRadius: "7px", backgroundColor: "var(--os-soft)", color: "var(--os-text)", fontSize: "1rem", fontWeight: "600", cursor: "pointer", hover: { backgroundColor: "#dce7df" }, "&:nth-child(4n)": { color: "var(--os-accent)" }, "&:last-child": { gridColumn: "span 4", color: "#fff", backgroundColor: "var(--os-accent)" } }),
calcHint: css("os-calc-hint", { color: "var(--os-muted)", fontSize: "0.62rem", textAlign: "center" }),
timer: css("os-timer", { display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: "20px", flex: "1", padding: "16px" }),
countdown: css("os-countdown", { fontSize: "3rem", fontWeight: "400", letterSpacing: "-.03em", fontVariantNumeric: "tabular-nums" }),
row: css("os-row", { display: "flex", flexWrap: "wrap", justifyContent: "center", gap: "6px" }),
term: css("os-term", { display: "flex", flexDirection: "column-reverse", flex: "1", minHeight: "0", overflowY: "auto", padding: "16px", backgroundColor: "#172b23", color: "#d9e9df", fontFamily: mono, fontSize: "0.75rem", lineHeight: "1.7", cursor: "text", "& pre": { margin: "0", whiteSpace: "pre-wrap", wordBreak: "break-word", fontFamily: "inherit" } }),
prompt: css("os-prompt", { display: "flex", alignItems: "baseline", gap: "8px", color: "#a3dab6", "& span": { whiteSpace: "nowrap" }, "& input": { flex: "1", minWidth: "0", border: "none", backgroundColor: "transparent", color: "#e1eee6", fontFamily: "inherit", fontSize: "inherit", caretColor: "#a3dab6" } }),
about: css("os-about", { display: "flex", flexDirection: "column", gap: "12px", flex: "1", minHeight: "0", overflowY: "auto", padding: "22px", fontSize: "0.8rem", lineHeight: "1.7", color: "var(--os-muted)", "& h3": { fontSize: "1rem", fontWeight: "600", color: "var(--os-text)" }, "& ol": { listStyle: "none", padding: "0" }, "& li + li": { borderTop: "1px solid var(--os-line)" } }),
runningApp: css("os-running-app", { display: "flex", alignItems: "center", gap: "8px", width: "100%", padding: "8px 0", color: "var(--os-text)", cursor: "pointer", "& span": { marginLeft: "auto", fontSize: "0.65rem", color: "var(--os-muted)" } }),
wallpapers: css("os-wallpapers", { display: "flex", gap: "8px", flexWrap: "wrap" }),
swatch: css("os-swatch", { padding: "18px 14px", borderRadius: "8px", color: "#fff", backgroundColor: "#174c3c", fontSize: "0.75rem", cursor: "pointer", "&[data-wallpaper=dusk]": { backgroundColor: "#624c67" }, "&[data-wallpaper=slate]": { backgroundColor: "#344b61" }, "&[aria-pressed=true]": { outline: "2px solid var(--os-accent)", outlineOffset: "3px" } }),
kanban: css("os-kanban", { display: "flex", flexDirection: "column", flex: "1", minHeight: "0" }),
kanbanHeading: css("os-kanban-heading", { fontSize: "0.8rem", fontWeight: "700" }),
kanbanHint: css("os-kanban-hint", { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", color: "var(--os-muted)", fontSize: "0.65rem" }),
kanbanBoard: css("os-kanban-board", { display: "flex", gap: "8px", flex: "1", minHeight: "0", overflowX: "auto", padding: "12px" }),
kanbanColumn: css("os-kanban-column", { display: "flex", flexDirection: "column", flex: "1 1 0", minWidth: "170px", borderRadius: "10px", border: "1px solid var(--os-line)", backgroundColor: "var(--os-soft)" }),
kanbanAfter: css("os-kanban-after", { boxShadow: "inset 0 -3px 0 var(--os-accent)" }),
kanbanColumnHead: css("os-kanban-column-head", { display: "flex", alignItems: "center", gap: "4px", padding: "9px 9px 7px", "& h3": { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontSize: "0.75rem", fontWeight: "700" } }),
kanbanCount: css("os-kanban-count", { marginLeft: "5px", color: "var(--os-muted)", fontWeight: "500", fontVariantNumeric: "tabular-nums" }),
kanbanSmall: css("os-kanban-small", { height: "24px", padding: "0 7px", borderRadius: "6px", fontSize: "0.7rem", fontWeight: "600", color: "var(--os-muted)", cursor: "pointer", hover: { color: "var(--os-text)", backgroundColor: "#dce7df" } }),
kanbanCards: css("os-kanban-cards", { display: "flex", flexDirection: "column", gap: "6px", flex: "1", minHeight: "60px", padding: "0 7px 7px", overflowY: "auto" }),
kanbanCard: css("os-kanban-card", { padding: "7px 8px 8px", borderRadius: "8px", border: "1px solid var(--os-line)", backgroundColor: "var(--os-panel)", boxShadow: "0 1px 2px rgb(0 0 0 / .05)", cursor: "grab", "&:active": { cursor: "grabbing" } }),
kanbanLifted: css("os-kanban-lifted", { opacity: "0.4" }),
kanbanBefore: css("os-kanban-before", { boxShadow: "0 -7px 0 -2px var(--os-accent)" }),
kanbanCardHead: css("os-kanban-card-head", { display: "flex", alignItems: "center", gap: "5px", marginBottom: "3px" }),
kanbanPriority: css("os-kanban-priority", { height: "18px", padding: "0 6px", borderRadius: "999px", fontSize: "0.6rem", fontWeight: "700", textTransform: "uppercase", letterSpacing: "0.02em", cursor: "pointer" }),
kanbanP1: css("os-kanban-p1", { backgroundColor: "#e6ece7", color: "var(--os-muted)" }),
kanbanP2: css("os-kanban-p2", { backgroundColor: "#cfe3d4", color: "#1d5c42" }),
kanbanP3: css("os-kanban-p3", { backgroundColor: "var(--os-accent)", color: "#fff" }),
kanbanId: css("os-kanban-id", { flex: "1", color: "var(--os-muted)", fontSize: "0.6rem", fontFamily: mono, fontVariantNumeric: "tabular-nums" }),
kanbanIcon: css("os-kanban-icon", { width: "22px", height: "22px", borderRadius: "5px", fontSize: "0.8rem", color: "var(--os-muted)", cursor: "pointer", hover: { color: "var(--os-text)", backgroundColor: "var(--os-soft)" } }),
kanbanTitle: css("os-kanban-title", { fontSize: "0.78rem", lineHeight: "1.4", overflowWrap: "anywhere" }),
kanbanEdit: css("os-kanban-edit", { width: "100%", padding: "4px 6px", border: "1px solid var(--os-accent)", borderRadius: "6px", fontSize: "0.78rem", fontFamily: "inherit", color: "var(--os-text)", backgroundColor: "#fff" }),
kanbanAdd: css("os-kanban-add", { display: "flex", gap: "5px", padding: "0 7px 7px", "& input": { flex: "1" } }),
kanbanEmpty: css("os-kanban-empty", { padding: "10px 8px", color: "var(--os-muted)", fontSize: "0.7rem", textAlign: "center" }),
calendar: css("os-calendar", { display: "flex", flexDirection: "column", gap: "10px", flex: "1", minHeight: "0", overflowY: "auto", padding: "12px" }),
calMonth: css("os-cal-month", { flex: "1", textAlign: "center", fontSize: "0.8rem", fontWeight: "700" }),
calGrid: css("os-cal-grid", { display: "grid", gridTemplateColumns: "repeat(7, 1fr)", gap: "3px" }),
calWeekday: css("os-cal-weekday", { padding: "2px 0 5px", textAlign: "center", fontSize: "0.62rem", fontWeight: "700", color: "var(--os-muted)", textTransform: "uppercase", letterSpacing: "0.03em" }),
calDay: css("os-cal-day", { position: "relative", display: "flex", alignItems: "center", justifyContent: "center", aspectRatio: "1", minHeight: "32px", borderRadius: "7px", fontSize: "0.8rem", color: "var(--os-text)", cursor: "pointer", hover: { backgroundColor: "var(--os-soft)" }, "&[aria-pressed=true]": { backgroundColor: "var(--os-accent)", color: "#fff" }, "&[aria-pressed=true] .os-cal-dot": { backgroundColor: "#fff" } }),
calToday: css("os-cal-today", { color: "var(--os-accent)", fontWeight: "700" }),
calDot: css("os-cal-dot", { position: "absolute", bottom: "5px", left: "50%", transform: "translateX(-50%)", width: "5px", height: "5px", borderRadius: "50%", backgroundColor: "var(--os-accent)" }),
calGap: css("os-cal-gap", { minHeight: "32px" }),
calNote: css("os-cal-note", { display: "flex", flexDirection: "column", gap: "6px", paddingTop: "10px", borderTop: "1px solid var(--os-line)" }),
calNoteHead: css("os-cal-note-head", { display: "flex", alignItems: "center", gap: "8px", "& strong": { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontSize: "0.75rem" } }),
calInput: css("os-cal-input", { width: "100%", minHeight: "54px", padding: "8px 10px", borderRadius: "7px", border: "1px solid var(--os-line)", backgroundColor: "var(--os-panel)", color: "var(--os-text)", fontFamily: "inherit", fontSize: "0.78rem", lineHeight: "1.5", resize: "none", "&::placeholder": { color: "var(--os-muted)" } }),
finance: css("os-finance", { display: "flex", flexDirection: "column", flex: "1", minHeight: "0" }),
finBody: css("os-fin-body", { display: "flex", flexDirection: "column", flex: "1", minHeight: "0" }),
finHidden: css("os-fin-hidden", { display: "none" }),
financeHeading: css("os-finance-heading", { fontSize: "0.8rem", fontWeight: "700" }),
finHint: css("os-fin-hint", { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", color: "var(--os-muted)", fontSize: "0.65rem" }),
finTabs: css("os-fin-tabs", { display: "flex", gap: "2px", padding: "2px", borderRadius: "8px", border: "1px solid var(--os-line)", backgroundColor: "var(--os-soft)" }),
finTab: css("os-fin-tab", { height: "26px", padding: "0 12px", borderRadius: "6px", fontSize: "0.72rem", fontWeight: "600", color: "var(--os-muted)", cursor: "pointer", hover: { color: "var(--os-text)" } }),
finTabOn: css("os-fin-tab-on", { backgroundColor: "var(--os-panel)", color: "var(--os-text)", boxShadow: "0 1px 2px rgb(0 0 0 / .08)", hover: { color: "var(--os-text)" } }),
finLoading: css("os-fin-loading", { padding: "40px 12px", textAlign: "center", color: "var(--os-muted)", fontSize: "0.75rem" }),
finCharts: css("os-fin-charts", { display: "flex", flexDirection: "column", gap: "10px", flex: "1", minHeight: "0", overflowY: "auto", padding: "12px" }),
finCards: css("os-fin-cards", { display: "grid", gridTemplateColumns: "repeat(4, minmax(0, 1fr))", gap: "8px", "@media (max-width: 600px)": { gridTemplateColumns: "repeat(2, minmax(0, 1fr))" } }),
finStat: css("os-fin-stat", { gap: "2px", padding: "12px 14px" }),
finStatTitle: css("os-fin-stat-title", { fontSize: "0.68rem", fontWeight: "700" }),
finStatSub: css("os-fin-stat-sub", { fontSize: "0.62rem", color: "var(--os-muted)" }),
finStatValue: css("os-fin-stat-value", { fontSize: "1.05rem", fontWeight: "600", fontVariantNumeric: "tabular-nums" }),
finPos: css("os-fin-pos", { color: "#1d5c42" }),
finNeg: css("os-fin-neg", { color: "#b04a3a" }),
finGrid: css("os-fin-grid", { display: "grid", gridTemplateColumns: "minmax(0, 1.5fr) minmax(0, 1fr)", gap: "10px", alignItems: "start" }),
finCard: css("os-fin-card", { display: "flex", flexDirection: "column", gap: "10px", padding: "14px", borderRadius: "10px", border: "1px solid var(--os-line)", backgroundColor: "var(--os-panel)" }),
finWide: css("os-fin-wide", { gridColumn: "1 / -1" }),
finCardHead: css("os-fin-card-head", { display: "flex", alignItems: "baseline", gap: "8px", "& h3": { fontSize: "0.8rem", fontWeight: "700" } }),
finCardSub: css("os-fin-card-sub", { color: "var(--os-muted)", fontSize: "0.62rem" }),
finDonutRow: css("os-fin-donut-row", { display: "flex", alignItems: "center", gap: "14px", flexWrap: "wrap" }),
finLegend: css("os-fin-legend", { display: "flex", flexDirection: "column", gap: "5px", flex: "1", minWidth: "130px" }),
finLegendItem: css("os-fin-legend-item", { display: "flex", alignItems: "center", gap: "7px", fontSize: "0.68rem" }),
finLegendDot: css("os-fin-legend-dot", { width: "9px", height: "9px", borderRadius: "3px", flexShrink: 0 }),
finLegendLabel: css("os-fin-legend-label", { flex: "1", minWidth: "0", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }),
finLegendValue: css("os-fin-legend-value", { color: "var(--os-muted)", fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap" }),
finKey: css("os-fin-key", { display: "flex", gap: "14px", justifyContent: "center", color: "var(--os-muted)", fontSize: "0.65rem" }),
finKeyItem: css("os-fin-key-item", { display: "flex", alignItems: "center", gap: "6px" }),
finSheet: css("os-fin-sheet", { display: "flex", flexDirection: "column", flex: "1", minHeight: "0" }),
finScroller: css("os-fin-scroller", { flex: "1", minHeight: "0", overflow: "auto" }),
finTable: css("os-fin-table", { width: "100%", borderCollapse: "separate", borderSpacing: "0", fontSize: "0.76rem" }),
finTh: css("os-fin-th", { position: "sticky", top: "0", zIndex: 1, padding: "7px 10px", textAlign: "left", fontSize: "0.62rem", fontWeight: "700", textTransform: "uppercase", letterSpacing: "0.04em", color: "var(--os-muted)", backgroundColor: "var(--os-panel)", borderBottom: "1px solid var(--os-line)" }),
finTd: css("os-fin-td", { padding: "0", borderBottom: "1px solid var(--os-line)", verticalAlign: "middle" }),
finRow: css("os-fin-row", { hover: { backgroundColor: "var(--os-soft)" } }),
finCell: css("os-fin-cell", { display: "block", width: "100%", padding: "7px 10px", textAlign: "inherit", fontSize: "inherit", color: "var(--os-text)", cursor: "text", hover: { backgroundColor: "var(--os-soft)" } }),
finPlaceholder: css("os-fin-placeholder", { color: "var(--os-muted)" }),
finInput: css("os-fin-input", { width: "100%", height: "30px", padding: "0 8px", border: "1px solid var(--os-accent)", borderRadius: "6px", backgroundColor: "#fff", color: "var(--os-text)", fontFamily: "inherit", fontSize: "inherit", textAlign: "inherit" }),
finAmount: css("os-fin-amount", { textAlign: "right", fontVariantNumeric: "tabular-nums" }),
finIncome: css("os-fin-income", { color: "#1d5c42" }),
finExpense: css("os-fin-expense", { color: "#b04a3a" }),
finDelete: css("os-fin-delete", { width: "34px" }),
finIcon: css("os-fin-icon", { display: "flex", alignItems: "center", justifyContent: "center", width: "26px", height: "26px", margin: "2px auto", borderRadius: "6px", fontSize: "0.85rem", color: "var(--os-muted)", cursor: "pointer", hover: { color: "#9e3434", backgroundColor: "#f6dede" } }),
finEmpty: css("os-fin-empty", { padding: "34px 12px", textAlign: "center", color: "var(--os-muted)", fontSize: "0.75rem" }),
finFoot: css("os-fin-foot", { display: "flex", alignItems: "center", gap: "10px", padding: "9px 12px", borderTop: "1px solid var(--os-line)", color: "var(--os-muted)", fontSize: "0.68rem" }),
finFootTotal: css("os-fin-foot-total", { marginLeft: "auto", whiteSpace: "nowrap", "& strong": { color: "var(--os-text)", fontVariantNumeric: "tabular-nums" } }),
};