/* Adapted from cymm2h-prog/cy-workspace main 79d376a0249a20df5ff302c93c5afcee0d156178; source design tokens and shell. */
.cy-workspace-body {
	--cy-bg: #f7f8fb;
	--cy-surface: #fff;
	--cy-surface-muted: #f3f5f9;
	--cy-text: #171923;
	--cy-text-muted: #737b8e;
	--cy-border: #e3e6ee;
	--cy-primary: #5b67e8;
	--cy-primary-dark: #4451d2;
	--cy-primary-soft: #eef0ff;
	--cy-success-soft: #eaf7ef;
	--cy-warning-soft: #fff0e8;
	--cy-radius-sm: 9px;
	--cy-radius-md: 14px;
	--cy-radius-lg: 20px;
	--cy-shadow-sm: 0 3px 14px rgba(29, 35, 55, .045);
	--cy-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
	--cy-font-size-base: 15px;
	--cy-font-size-sm: 12px;
	--cy-space-1: 6px;
	--cy-space-2: 10px;
	--cy-space-3: 14px;
	--cy-space-4: 20px;
	--cy-space-5: 28px;
	--cy-space-6: 40px;
	margin: 0;
	background: var(--cy-bg);
	color: var(--cy-text);
	font-family: var(--cy-font-sans);
	font-size: var(--cy-font-size-base);
	line-height: 1.5;
}
.cy-workspace-body *, .cy-workspace-body *::before, .cy-workspace-body *::after { box-sizing: border-box; }
.cy-workspace-body a { color: inherit; }
.cy-workspace-body button, .cy-workspace-body input { font: inherit; }
.cy-workspace-body a:focus-visible, .cy-workspace-body button:focus-visible, .cy-workspace-body input:focus-visible, .cy-workspace-body summary:focus-visible { outline: 3px solid #9aa3ff; outline-offset: 3px; }
.cy-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.cy-brand-mark { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border-radius: 13px; background: linear-gradient(145deg, #5d8fff, #4567ee); color: #fff; font-size: 19px; font-weight: 750; box-shadow: 0 8px 22px rgba(69, 103, 238, .2); }

.cy-workspace { min-height: 100vh; }
.cy-sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 260px; padding: 24px 16px; overflow-y: auto; border-right: 1px solid var(--cy-border); background: rgba(255,255,255,.98); }
.cy-brand { display: flex; align-items: center; gap: 13px; padding: 0 10px 25px; text-decoration: none; }
.cy-brand strong { font-size: 20px; letter-spacing: -.025em; white-space: nowrap; }
.cy-sidebar nav { display: grid; gap: 5px; }
.cy-nav-label { margin: 19px 13px 5px; color: #969dad; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.cy-nav-link { display: flex; min-height: 46px; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 11px; color: #596277 !important; text-decoration: none; }
.cy-nav-link:hover { background: #f6f7fb; color: var(--cy-primary-dark) !important; }
.cy-nav-link.is-active { background: var(--cy-primary-soft); color: var(--cy-primary-dark) !important; font-weight: 700; }
.cy-shell { min-width: 0; margin-left: 260px; }
.cy-topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 82px; align-items: center; gap: 14px; padding: 12px 36px; border-bottom: 1px solid rgba(227,230,238,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.cy-topbar-title { color: var(--cy-text-muted); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cy-menu-button { display: none; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid var(--cy-border); border-radius: 11px; background: #fff; color: var(--cy-text); cursor: pointer; }
.cy-profile { position: relative; margin-left: auto; }
.cy-profile summary { display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 12px; cursor: pointer; list-style: none; }
.cy-profile summary::-webkit-details-marker { display: none; }
.cy-profile summary > span:nth-child(2) { display: flex; min-width: 118px; flex-direction: column; }
.cy-profile strong { font-size: 13px; }
.cy-profile small { margin-top: 2px; color: var(--cy-text-muted); font-size: 11px; }
.cy-avatar { display: grid; width: 42px; height: 42px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--cy-primary-soft); color: var(--cy-primary-dark); font-weight: 800; }
.cy-avatar-image { display: block; object-fit: cover; }
.cy-profile > div { position: absolute; top: calc(100% + 8px); right: 0; display: grid; width: 175px; padding: 7px; border: 1px solid var(--cy-border); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px rgba(28,34,52,.14); }
.cy-profile > div a { padding: 9px 10px; border-radius: 8px; text-decoration: none; }
.cy-profile > div a:hover { background: var(--cy-surface-muted); }
.cy-main { width: min(1460px, 100%); margin: 0 auto; padding: 34px 36px 60px; }
.cy-greeting { margin-bottom: 22px; }
.cy-greeting h1 { margin: 0; font-size: clamp(28px, 3vw, 39px); line-height: 1.2; letter-spacing: -.035em; }
.cy-greeting p { margin: 6px 0 0; color: var(--cy-text-muted); }
.cy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.cy-content { min-width: 0; }
.cy-daily-note { display: flex; min-height: 94px; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-md); background: #fbfbfe; box-shadow: var(--cy-shadow-sm); }
.cy-daily-note > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: var(--cy-primary-soft); color: #7982be; }
.cy-daily-note h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cy-daily-note p { margin: 0; font-size: 16px; }
.cy-section-title { margin: 30px 0 13px; font-size: 18px; letter-spacing: -.015em; }
.cy-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cy-module-card { display: flex; min-height: 244px; flex-direction: column; padding: 20px; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-md); background: var(--cy-surface); box-shadow: var(--cy-shadow-sm); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.cy-module-card:hover { transform: translateY(-2px); border-color: #cbd0df; box-shadow: 0 10px 28px rgba(29,35,55,.08); }
.cy-module-card.cy-accent-primary { border-color: #d9d9f6; background: linear-gradient(145deg, #e9efff 0%, #f0e8ff 52%, #fff0e8 100%); }
.cy-module-icon { display: grid; width: 49px; height: 49px; place-items: center; border-radius: 50%; background: var(--cy-primary-soft); color: var(--cy-primary-dark); }
.cy-accent-green .cy-module-icon { background: var(--cy-success-soft); color: #218c5a; }
.cy-accent-orange .cy-module-icon { background: var(--cy-warning-soft); color: #d25f2d; }
.cy-accent-blue .cy-module-icon { background: #eaf2ff; color: #3978e8; }
.cy-module-card h3 { margin: 18px 0 4px; font-size: 17px; }
.cy-module-card p { margin: 0; color: var(--cy-text-muted); font-size: 13px; }
.cy-module-card > a { display: inline-flex; width: fit-content; align-items: center; gap: 6px; min-height: 37px; margin-top: auto; padding: 7px 12px; border: 1px solid #dce0e9; border-radius: 999px; background: rgba(255,255,255,.78); font-size: 12px; font-weight: 700; text-decoration: none; }
.cy-module-card > a:hover { border-color: #adb5ca; }
.cy-module-card > a .cy-icon { width: 15px; height: 15px; }
.cy-quick-actions { overflow: hidden; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-md); background: #fff; box-shadow: var(--cy-shadow-sm); }
.cy-quick-actions h2 { margin: 0; padding: 20px 18px 13px; font-size: 17px; }
.cy-quick-actions > a { display: grid; grid-template-columns: 38px minmax(0,1fr) 17px; align-items: center; gap: 11px; min-height: 62px; padding: 10px 17px; border-top: 1px solid #eef0f4; text-decoration: none; }
.cy-quick-actions > a:hover { background: #fafbfe; }
.cy-quick-actions > a > .cy-icon { width: 17px; height: 17px; color: var(--cy-text-muted); }
.cy-action-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--cy-surface-muted); }
.cy-action-icon .cy-icon { width: 18px; height: 18px; }
.cy-quick-links { margin-top: 28px; padding: 20px; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-md); background: #fff; box-shadow: var(--cy-shadow-sm); }
.cy-quick-links .cy-section-title { margin: 0 0 14px; }
.cy-quick-links > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cy-quick-links a { display: flex; min-height: 54px; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid var(--cy-border); border-radius: 11px; text-decoration: none; }
.cy-quick-links a:hover { border-color: #c3c9d8; background: #fafbfe; }
.cy-empty { padding: 22px; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-md); background: #fff; color: var(--cy-text-muted); }
.cy-sidebar-overlay { display: none; }

.cy-workspace-login-body { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #edf1ff 0, transparent 32%), var(--cy-bg); }
.cy-login { display: grid; width: min(440px, calc(100% - 32px)); min-height: 100vh; align-content: center; gap: 22px; margin: 0 auto; padding: 40px 0; }
.cy-login-brand { display: flex; align-items: center; justify-content: center; gap: 13px; }
.cy-login-brand > span:last-child { display: flex; flex-direction: column; }
.cy-login-brand strong { font-size: 20px; }
.cy-login-brand small { color: var(--cy-text-muted); }
.cy-login-card { padding: 32px; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-lg); background: #fff; box-shadow: 0 18px 55px rgba(27,34,55,.09); }
.cy-login-card h1 { margin: 0; font-size: 27px; }
.cy-login-card > p { margin: 5px 0 24px; color: var(--cy-text-muted); }
.cy-login-card form { display: grid; gap: 9px; }
.cy-login-card form > label { margin-top: 7px; font-size: 13px; font-weight: 700; }
.cy-login-card input[type="text"], .cy-login-card input[type="password"] { width: 100%; height: 46px; padding: 9px 12px; border: 1px solid #dfe2ea; border-radius: 10px; background: #fff; color: var(--cy-text); }
.cy-login-card input:focus { border-color: #a7afff; box-shadow: 0 0 0 3px #eef0ff; outline: 0; }
.cy-login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 0 12px; font-size: 12px; }
.cy-checkbox { display: flex; align-items: center; gap: 7px; }
.cy-login-card button[type="submit"] { min-height: 46px; border: 0; border-radius: 10px; background: var(--cy-primary); color: #fff; font-weight: 750; cursor: pointer; }
.cy-login-card button[type="submit"]:hover { background: var(--cy-primary-dark); }
.cy-login-error { margin-bottom: 15px; padding: 11px 13px; border: 1px solid #f1c1bd; border-radius: 9px; background: #fff0ef; color: #9f2c22; }
.cy-login footer { color: var(--cy-text-muted); font-size: 12px; text-align: center; }

@media (max-width: 1180px) {
	.cy-sidebar { width: 84px; padding-inline: 12px; }
	.cy-sidebar .cy-brand { justify-content: center; padding-inline: 0; }
	.cy-sidebar .cy-brand strong, .cy-sidebar .cy-nav-link span, .cy-sidebar .cy-nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
	.cy-nav-link { justify-content: center; padding-inline: 0; }
	.cy-shell { margin-left: 84px; }
	.cy-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
	.cy-module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
	.cy-sidebar { width: 270px; padding-inline: 16px; transform: translateX(-100%); transition: transform .18s ease; }
	.cy-sidebar .cy-brand { justify-content: flex-start; padding-inline: 10px; }
	.cy-sidebar .cy-brand strong, .cy-sidebar .cy-nav-link span, .cy-sidebar .cy-nav-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
	.cy-nav-link { justify-content: flex-start; padding-inline: 14px; }
	.cy-shell { margin-left: 0; }
	.cy-menu-button { display: grid; }
	.cy-main { padding: 28px 22px 48px; }
	.cy-topbar { height: 72px; padding: 10px 22px; }
	.cy-layout { grid-template-columns: 1fr; }
	.cy-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
	.cy-quick-actions h2 { grid-column: 1 / -1; }
	.cy-quick-actions > a { border-right: 1px solid #eef0f4; }
	.cy-sidebar-overlay { position: fixed; z-index: 35; inset: 0; border: 0; background: rgba(20,25,39,.38); }
	.cy-nav-open .cy-sidebar { transform: translateX(0); }
	.cy-nav-open .cy-sidebar-overlay { display: block; }
}
@media (max-width: 620px) {
	.cy-main { padding-inline: 16px; }
	.cy-topbar { padding-inline: 16px; }
	.cy-topbar-title, .cy-profile summary > span:nth-child(2) { display: none; }
	.cy-module-grid, .cy-quick-links > div, .cy-quick-actions { grid-template-columns: 1fr; }
	.cy-quick-actions h2 { grid-column: auto; }
	.cy-module-card { min-height: 220px; }
	.cy-daily-note { align-items: flex-start; }
	.cy-login-card { padding: 25px 20px; }
	.cy-login-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.cy-workspace-body *, .cy-workspace-body *::before, .cy-workspace-body *::after { scroll-behavior: auto !important; transition: none !important; }
}

.cy-knowledge { max-width: 900px; margin: 0 auto; }
.cy-knowledge-header h1, .cy-knowledge-detail h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 34px); }
.cy-knowledge-header p, .cy-knowledge-count, .cy-knowledge-meta { color: var(--cy-text-muted); }
.cy-knowledge-form, .cy-knowledge-card, .cy-knowledge-detail, .cy-knowledge-state { background: var(--cy-surface); border: 1px solid var(--cy-border); border-radius: var(--cy-radius-md); box-shadow: var(--cy-shadow-sm); }
.cy-knowledge-form { display: grid; gap: 10px; padding: 22px; margin: 24px 0; }
.cy-knowledge-form label { font-weight: 700; }
.cy-knowledge-form > div { display: flex; gap: 10px; }
.cy-knowledge-form input { min-width: 0; flex: 1; padding: 11px 13px; border: 1px solid var(--cy-border); border-radius: var(--cy-radius-sm); }
.cy-knowledge-form button { padding: 10px 20px; border: 0; border-radius: var(--cy-radius-sm); background: var(--cy-primary); color: #fff; font-weight: 700; cursor: pointer; }
.cy-knowledge-form button:hover { background: var(--cy-primary-dark); }
.cy-knowledge-results { display: grid; gap: 14px; }
.cy-knowledge-card, .cy-knowledge-detail { padding: 23px; }
.cy-knowledge-card h2 { margin: 0 0 10px; font-size: 20px; }
.cy-knowledge-result-link, .cy-knowledge-back { padding: 0; border: 0; background: none; font: inherit; color: var(--cy-primary-dark); cursor: pointer; text-align: left; }
.cy-knowledge-result-link:hover, .cy-knowledge-back:hover { text-decoration: underline; }
.cy-knowledge-card p { margin: 8px 0; }
.cy-knowledge-snippet { color: var(--cy-text-muted); }
.cy-knowledge-meta { font-size: 13px; }
.cy-knowledge-state { padding: 22px; }
.cy-knowledge-back { display: inline-block; margin: 0 0 18px; }
.cy-knowledge-summary { font-size: 18px; font-weight: 600; }
.cy-knowledge-body { margin: 24px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cy-knowledge-sources { border-top: 1px solid var(--cy-border); padding-top: 12px; }
.cy-knowledge-sources h2 { font-size: 17px; }
@media (max-width: 620px) { .cy-knowledge-form > div { flex-direction: column; } }
