.label {text-transform:uppercase;display:inline-block;background-color:var(--border);color:var(--bg);padding:4px 8px 6px 8px;opacity:0.6;border-radius:var(--radius)}
.fill {width:100% !important;display:block}
.partial-fill {width:calc(100% - 150px) !important;display:block}
iframe.fill {width:calc(100% - 20px) !important;display:block;height:90vh}
.tabbed button.focused {box-shadow:var(--shadow);opacity:1;color:var(--primary)}
.tab-holder {margin-bottom:15px}
.table .table-row {display:grid;border-bottom:1px solid var(--border);grid-template-columns:repeat(auto-fit, minmax(75px, 1fr))}
.table .table-row:last-of-type {border-bottom:0}
.table .table-row .cell {padding:10px;border:1px solid var(--secondary-bg);cursor:pointer;white-space:nowrap;text-overline-style:ellipsis;border-radius:var(--radius);overflow:hidden}
.table .table-row .cell:hover {border:1px solid var(--secondary-border)}
.table .table-header .cell {font-weight:bold}
.line-loader {width:100px;height:14px;border-radius:var(--radius);background-color:var(--secondary-bg);position:relative;overflow:hidden;border:1px solid var(--border)}
.line-loader-bar {width:40px;height:100%;position:absolute;top:0;left:0;background-color:var(--primary);border-radius:var(--radius);animation:slide 0.69s infinite linear}
@keyframes slide { 0%   {left:0} 50%  {left:calc(100% - 20px)} 100% {left:0}}
.internals-image-viewer-shell {height:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:center;overflow:hidden}
.internals-image-viewer-center {width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}
.internals-image-preview-host {display:flex;align-items:center;justify-content:center;max-width:100%;max-height:100%;overflow:hidden}
.internals-image-preview-host img, .internals-image-preview-host svg {flex:0 0 auto}
.internals-pdf-viewer-shell {height:100%;box-sizing:border-box;overflow:hidden}
.internals-pdf-preview {display:block;width:100%;height:100%;min-height:560px;border:0;background:var(--secondary-bg)}
.masonry {column-count:3;column-gap:2rem;padding:0 18px 10px 10px}
.note-tile {break-inside:avoid;margin-bottom:1rem;display:inline-block;width:100%;max-height:400px}
.notes-empty-state {min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--faded)}
.masonry .notes-empty-state {column-span:all}
.notes-empty-icon {width:72px;height:72px;object-fit:contain;opacity:0.7}
.notes-empty-label {font-weight:600}
.contacts-empty-state {min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--faded)}
.contacts-empty-icon {width:72px;height:72px;object-fit:contain;opacity:0.7}
.contacts-empty-label {font-weight:600}
.boards-empty-state {min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:var(--faded);grid-column:1 / -1}
.boards-empty-icon {width:72px;height:72px;object-fit:contain;opacity:0.7}
.boards-empty-label {font-weight:600}
.board-file {min-height:112px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.board-file-icon {display:block;margin:0 !important;flex:0 0 auto}
.board-file-name {width:100%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid {padding:0 15px 0 15px;display:grid;grid-template-columns:repeat(3, 1fr);grid-auto-rows:auto;gap:4px;align-items:start}
.bi {display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:4px;align-items:start}
.large-gridded {display:grid;grid-template-columns:repeat(4, 1fr);grid-template-rows:auto;gap:6px}
.gridded {display:grid;grid-template-columns:repeat(7, 1fr);grid-template-rows:auto;gap:1px}
#photos .file-folder {aspect-ratio:1 / 1;overflow:hidden}
#photos .file-folder .covered {width:100%;height:100%;overflow:hidden}
#photos .file-folder img {width:100% !important;height:100%;object-fit:cover;display:block}
#videos .file-folder {aspect-ratio:1 / 1;overflow:hidden;position:relative}
#videos .file-folder .files-video-thumb {position:relative;width:100%;height:100%;overflow:hidden;background:var(--secondary-bg)}
#videos .file-folder .files-video-thumb img {width:100% !important;height:100%;object-fit:cover;display:block}
#videos .file-folder .files-video-fallback {width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:var(--secondary-bg)}
#videos .file-folder .files-video-fallback img {width:72px !important;height:72px;object-fit:contain;opacity:0.8}
#videos .file-folder .files-video-label {position:absolute;left:0;right:0;bottom:0;padding:10px 12px 12px;background:linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72));color:#fff;font-size:calc(var(--font-size) - 1px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#videos .file-folder .files-video-progress {position:absolute;left:0;bottom:0;height:4px;background:var(--primary);border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius);pointer-events:none}
.grid7 {display:grid;grid-template-columns:repeat(7, 1fr);grid-template-rows:auto;gap:5px}
.grid7 div {height:160px;margin-top:0}
.grid7 div div {height:auto;margin-top:0}
#map {margin:0 !important}
.dot {border-radius:50%;width:8px;height:8px;float:left;margin:calc(var(--fs) / 3) 8px 0 4px}
@keyframes flowIn {from {opacity:0;transform:translateY(-30px) scale(0.8)} to {opacity:1;transform:translateY(0)  scale(1)}}
.animate-in {opacity:0;animation:flowIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards var(--delay, 0s)}
.animate-in-delayed {opacity:0;animation:flowIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s}
.magnify-hover:hover {transition:all 100ms;transform:scale(1.05) !important}
.faded {opacity:0.75}
.faded:hover {opacity:1.0}
#live-time {font-weight:bold;padding:8px 10px 8px 10px}
.interface-icon {width:28px;height:28px;border-radius:var(--radius);padding:2px;cursor:pointer;border:none}
.interface-icon:hover {box-shadow:var(--shadow);border:none}
.interface-icon img {width:28px;height:28px;object-fit:contain}
.guttered {margin-right:calc(var(--gutter) * 2.5);margin-left:calc(var(--gutter) * 2.5)}
.flex {display:flex;flex-direction:column}
.center-center {position:absolute;top:42%;left:50%;transform:translate(-50%, -50%)}
.hover-shadowed:hover {transition:all 100ms;box-shadow:var(--shadow) !important}
.secondary-bg {background-color:var(--secondary-bg)}
.radius {border-radius:var(--radius) !important}
.radius-bottom-left {border-bottom-left-radius:var(--radius) !important}
.radius-bottom-right {border-bottom-right-radius:var(--radius) !important}
.no-radius {border-radius:0 !important}
.inner-radius {border-radius:calc(var(--radius) - 4px) !important}
.bordered {border:1px solid var(--border)}
.bordered-left {border-left:1px solid var(--border)}
.bordered-bottom {border-bottom:1px solid var(--border)}
.bordered-right {border-right:1px solid var(--border)}
.secondary-bordered {border:1px solid var(--secondary-border)}
.list {overflow:hidden}
.list:hover {overflow:visible}
.list .box {border:1px solid rgba(0,0,0,0);border-radius:0;z-index:1}
.list .line, .lined {border-bottom:1px dotted var(--secondary-border) !important;border-bottom-left-radius:0;border-bottom-right-radius:0}
.list .line:last-of-type, .lined:last-of-type {border-bottom:none}
.list .box:hover {transform:scale(1.05);background-color:var(--bg);border-bottom:1px solid var(--secondary-bg);border-radius:var(--radius)}
.hover-border {border:1px solid var(--secondary-bg)}
.hover-background:hover {background-color:var(--secondary-bg)}
.list .hover-border:hover, .hover-border:hover {border:1px solid var(--secondary-border);z-index:4}
.list .box .indicator {transition:all 100ms;opacity:0;margin:-2px 20px 0 0;float:right;position:relative}
.list .box:hover .indicator {transition:all 100ms;opacity:0.8}
.list-item {display:grid;grid-template-columns:50px minmax(0, 1fr)}
.list-item > div {min-width:0}
.indicator span,
.indicator::before,
.indicator::after {content:'';position:absolute;width:15px;height:2px;background:var(--fg);border-radius:6px;transform-origin:left center;transition:transform 0.3s ease, top 0.3s ease, opacity 0.3s ease}
.indicator span {top:13px}
.indicator::before {top:1px;width:12px;left:0;transform:rotate(45deg) translateX(6px);margin-left:4px}
.indicator::after {top:25px;width:12px;left:0;transform:rotate(-45deg) translateX(6px);margin-left:4px}
.indicator.active span {opacity:0;transform:scaleX(0)}
.indicator.active {margin-top:10px}
.indicator.active::before {top:7px;width:16px;transform:rotate(45deg) translateX(0)}
.indicator.active::after {top:18px;width:16px;transform:rotate(-45deg) translateX(0)}
#cover {position:fixed;display:none;width:100%;height:100%;background-color:rgba(0,0,0,0);backdrop-filter:blur(var(--blur));z-index:42067}
.dialogue {border:1px solid var(--border);border-radius:var(--radius);position:fixed;left:50%;top:15%;width:450px;margin-left:-225px;background-color:var(--secondary-bg);z-index:42069}
.search-dialogue {box-sizing:border-box}
.search-dialogue-popout {width:360px;max-width:calc(100vw - 16px);margin-left:0;background-color:var(--transparent-bg)}
.search-dialogue-input {width:100%;box-sizing:border-box}
.search-dialogue-results {display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto;margin:10px 0}
.search-dialogue-result {display:flex;flex-direction:column;gap:2px;width:100%;padding:8px 10px;text-align:left;border:1px solid transparent;border-radius:calc(var(--radius) - 4px);background:transparent;color:var(--fg)}
.search-dialogue-result:hover,.search-dialogue-result.active {background:var(--bg);border-color:var(--border)}
.search-dialogue-result-title {font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-dialogue-result-detail {font-size:calc(var(--fs) - 2px);opacity:0.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-dialogue-empty {padding:8px 2px;opacity:0.7}
.search-dialogue-actions {min-height:32px}
.editor-text-search-marker {display:inline-block;width:0;height:1.2em;vertical-align:middle;box-shadow:0 0 0 4px rgba(59, 130, 246, 0.18);animation:editorTextSearchPulse 700ms ease-out}
@keyframes editorTextSearchPulse {0% {box-shadow:0 0 0 8px rgba(59, 130, 246, 0.32)}100% {box-shadow:0 0 0 4px rgba(59, 130, 246, 0.02)}}
.files-search-hit {animation:filesSearchPulse 800ms ease-out}
@keyframes filesSearchPulse {0% {box-shadow:0 0 0 8px rgba(59, 130, 246, 0.32)}100% {box-shadow:0 0 0 2px rgba(59, 130, 246, 0)}}
.status-indicator {z-index:25;font-size:calc(var(--fs) - 4px);cursor:pointer;position:absolute;opacity:0.8;left:50%;top:6px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:8px;padding:8px 12px 8px 12px;backdrop-filter:blur(var(--blur));margin:0;border:1px solid var(--border);transition:border-color 0.3s ease}
.status-indicator:hover {box-shadow:var(--shadow)}
.status-indicator .status-dot {width:10px;height:10px;border-radius:50%;background-color:var(--green);transition:background-color 0.3s ease, transform 0.3s ease}
.status-indicator.status-connected .status-dot {background-color:var(--green)}
.status-indicator.status-connecting .status-dot {background-color:var(--orange);animation:statusPulse 1s infinite ease-in-out}
.status-indicator.status-disconnected .status-dot {background-color:var(--red)}
.status-toast-container {position:fixed;top:50px;right:16px;display:flex;flex-direction:column;gap:10px;z-index:1000}
.status-toast {padding:8px 12px;border-radius:var(--radius);border:1px solid var(--border);background-color:var(--bg);box-shadow:var(--shadow);opacity:0;transform:translateY(-6px);transition:opacity 0.3s ease, transform 0.3s ease}
.status-toast.show {opacity:1;transform:translateY(0)}
.status-toast.fade-out {opacity:0;transform:translateY(-6px)}
.status-toast.status-connected {border-color:var(--green);background-color:var(--green);color:white}
.status-toast.status-connecting {border-color:var(--orange);background-color:var(--orange);color:white}
.status-toast.status-disconnected {border-color:var(--red);background-color:var(--red);color:white}
.secondary-tile {transition:all 125ms;border-radius:var(--radius);cursor:pointer}
.secondary-tile:hover {background-color:var(--secondary-bg);border-radius:var(--radius) !important}
.secondary-tile .expose, .expose {visibility:hidden;margin:0}
.secondary-tile:hover .expose {visibility:visible}
@keyframes statusPulse {0% {transform:scale(1)}50% {transform:scale(1.2)}100% {transform:scale(1)}}
.service-loader {margin-left:50%;left:-180px}
.service-loader.hidden {display:none}
.service-loader-card {background:var(--secondary-bg);padding:16px 18px;width:320px;max-width:90%}
.service-loader-text {margin:0 0 10px 0;font-weight:600}
.service-loader-bar {border:1px solid var(--light-border);border-radius:var(--radius);height:8px;overflow:hidden;background:var(--secondary-bg)}
.service-loader-bar-progress {height:100%;width:0%;background:var(--primary);transition:width 200ms ease}
.service-loader-status {margin:8px 0 0 0;font-size:14px;opacity:0.8}
.search-box-field {display:flex;align-items:center;justify-content:center;min-width:350px;width:100%;gap:6px}
.search-filter-prefix {display:inline-flex;align-items:center;align-self:center;flex:0 0 auto;padding:5px 8px 6px;border:1px solid var(--border);border-radius:calc(var(--radius) - 4px);background-color:var(--secondary-bg);color:var(--primary);box-shadow:var(--small-shadow);font-weight:700;line-height:1;opacity:1;transform:translateX(0) scale(1);transition:opacity 140ms ease, transform 140ms ease, max-width 140ms ease, padding 140ms ease, margin 140ms ease;max-width:140px;overflow:hidden;white-space:nowrap}
.search-filter-prefix.hidden {opacity:0;transform:translateX(-8px) scale(0.96);max-width:0;padding-left:0;padding-right:0;margin-right:-6px;border-width:0}
.search-filter-prefix.removing {opacity:0;transform:translateX(8px) scale(0.96)}
#search-box {padding:8px 4px 8px 4px;min-width:0;width:100%;display:inline-block;text-overflow:clip}
#search-box.search-filter-backspace {animation:searchFilterBackspace 170ms ease-out}
@keyframes searchFilterBackspace {0% {transform:translateX(6px)}60% {transform:translateX(-2px)}100% {transform:translateX(0)}}
#search-status {margin-top:9px}
.block-loader {font-family:"Fira Code", "JetBrains Mono", Consolas, monospace;font-size:26px;line-height:1}
@keyframes interfaceWindowOpen {from {opacity:0;transform:translateY(10px) scale(0.98)} to {opacity:1;transform:translateY(0) scale(1)}}
.draggable-window {position:fixed;top:50px;left:50px;width:600px;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--radius);z-index:1000;overflow:hidden;background-color:rgba(255, 255, 255, 0.4);backdrop-filter:blur(var(--blur))}
.draggable-window:not(.widget-window) {animation:interfaceWindowOpen 160ms cubic-bezier(0.22, 1, 0.36, 1)}
.widget-window {transition:all 100ms}
.widget-window .window-content {margin:0;padding:10px;height:100%}
.window-header {transition:all 100ms;border-radius:var(--radius);z-index:3;opacity:0.6;width:calc(100% - 22px);margin:5px;padding:6px;cursor:grab;position:absolute}
.window-header:hover {opacity:1}
.window-header .window-icon {width:22px;height:22px;vertical-align:bottom;margin:2px 0 0 4px;object-fit:contain}
.window-header .title {display:inline-block;vertical-align:top;padding:3px 0 0 6px;font-weight:700}
.window-header .closer, .window-header .window-tool-button {width:22px;height:22px;vertical-align:bottom;float:right;border-radius:var(--radius);padding:2px;border:1px solid rgba(0, 0, 0, 0);margin:-2px -2px 0 0}
.window-header .closer svg {margin:0}
.window-header .window-tool-button svg {margin:0}
.widget-window .closer {zoom:0.7}
.window-header .closer:hover {cursor:pointer;backdrop-filter:blur(var(--blur))}
.widget-window .window-header {opacity:0;padding:3px !important;margin:0 !important}
.widget-window:hover .window-header {opacity:0.75}
.widget-window:hover .window-header:hover {opacity:1}
.window-content-barred {z-index:2;box-shadow:var(--shadow);border:1px solid var(--light-border);border-radius:calc(var(--radius) - 2px);margin:5px;display:grid;padding:36px 5px 5px 5px;grid-template-columns:175px minmax(0, 1fr);column-gap:14px;backdrop-filter:blur(var(--blur))}
.window-content {box-shadow:var(--shadow);padding:5px;border-radius:var(--radius);margin:5px;background-color:var(--background)}
.window-body {overflow-y:auto;overflow-x:hidden}
.window-content-barred > .window-sidebar {min-width:0}
.window-content-barred > .window-body {min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.window-content-barred > .window-body > * {max-width:100%;min-width:0;box-sizing:border-box}
.window-body .has-small-space {margin-top:20px}
.window-content-barred > .window-body button.primary-action {position:fixed;bottom:15px;right:15px;padding:5px;backdrop-filter:blur(var(--blur))}
.window-content-barred > .window-body button.secondary-action {position:fixed;bottom:15px;left:15px;padding:5px;backdrop-filter:blur(var(--blur))}
.window-content-barred > .window-body button.primary-action svg, .window-content-barred > .window-body button.secondary-action svg {width:22px;height:22px;display:block}
.window-sidebar {transition:all 120ms;background-color:var(--transparent-bg);backdrop-filter:blur(var(--blur));border-radius:calc(var(--radius) - 2px);display:flex;flex-direction:column;padding:6px 8px 8px 8px;border:1px solid var(--light-border)}
.window-sidebar:hover {box-shadow:var(--shadow)}
.sidebar-item {transition:all 100ms;font-size:calc(var(--font-size) + 1px);display:flex;align-items:center;cursor:pointer;padding:6px;margin-bottom:5px;border-radius:calc(var(--radius) - 2px)}
.sidebar-item:hover {background-color:var(--bg);transform:scale(1.05)}
.active-route {background-color:var(--bg);color:var(--primary)}
.active-route svg {color:var(--primary);stroke:var(--primary)}
.centered-nav {left:50% !important;margin-left:-110px !important;top:12px}
.window-topbar {z-index:12;top:10px;transition:all 120ms;display:inline-block;position:fixed;background-color:var(--transparent-bg);backdrop-filter:blur(var(--blur));border-radius:calc(var(--radius) - 2px);padding:4px;border:1px solid var(--light-border)}
.window-topbar:hover {box-shadow:var(--shadow)}
.window-topbar .sidebar-item {transition:all 100ms;font-size:calc(var(--font-size) - 2px);display:inline-block;align-items:center;cursor:pointer;padding:4px 6px 4px 4px;margin:0 6px 0 0;border-radius:calc(var(--radius) - 3px)}
.window-topbar .sidebar-item:last-of-type {margin-right:0}
.window-topbar .sidebar-item:hover {background-color:var(--secondary-bg);transform:scale(1.05)}
.window-topbar .sidebar-item svg {vertical-align:bottom;width:18px !important;height:18px !important;margin-right:6px}
.window-topbar .sidebar-item svg.no-margin {margin:0}
.primary-action {background-color:var(--primary);border:var(--border-width) solid var(--secondary-color);color:white}
.primary-action span {text-align:center}
.primary-action:hover {background-color:var(--primary);border:var(--border-width) solid var(--secondary-color);color:white}
.sidebar-icon, .sidebar-item svg {margin-right:10px;width:20px;height:20px}
.resize-handle {position:absolute;width:10px;height:10px;background:transparent;z-index:10;cursor:pointer}
.resize-handle.top {top:-5px;left:50%;transform:translateX(-50%);cursor:ns-resize}
.resize-handle.right {top:50%;right:-5px;transform:translateY(-50%);cursor:ew-resize}
.resize-handle.bottom {bottom:-5px;left:50%;transform:translateX(-50%);cursor:ns-resize}
.resize-handle.left {top:50%;left:-5px;transform:translateY(-50%);cursor:ew-resize}
.resize-handle.top-right {top:-5px;right:-5px;cursor:nesw-resize}
.resize-handle.top-left {top:-5px;left:-5px;cursor:nwse-resize}
.resize-handle.bottom-right {bottom:-5px;right:-5px;cursor:nwse-resize}
.resize-handle.bottom-left {bottom:-5px;left:-5px;cursor:nesw-resize}
.window-body .view {transition:all 100ms;border-radius:var(--radius);padding:10px}
.window-body .actionable {position:relative}
.window-body .actionable .ios-switch {margin-right:-10px}
.window-body .actionable:hover {background-color:var(--secondary-bg)}
.window-content-barred > .window-body .bordered {border:1px solid var(--border);margin:10px 5px 0 5px}
.reserve {width:50px;height:50px}
.small-shadowed {box-shadow:var(--small-shadow)}
.shadowed {box-shadow:var(--shadow)}
@keyframes zoomIn { 0% {transform:scale(0.8);opacity:0} 100% {transform:scale(1);opacity:1}}
#search-results {max-height:55vh;overflow-y:auto;overflow-x:hidden;max-width:400px}
.search-result {display:flex;align-items:center;gap:10px;overflow:hidden}
.search-result-icon {width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex:0 0 28px}
.search-result-icon-image {width:28px;height:28px;object-fit:contain;display:block}
.search-result-icon-svg {width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.search-result-icon-svg svg {width:24px;height:24px;display:block}
.search-result-body {min-width:0;flex:1 1 auto;white-space:nowrap}
.search-result-records {font-size:calc(var(--fs) - 3px);margin-top:2px;word-break:break-word}
.internals-article-preview {overflow:visible}
.internals-article-header {margin:0 0 12px;overflow:auto}
.internals-article-header h2 {font-size:24px;line-height:1.2;margin:0 0 6px}
.internals-article-header a {overflow-wrap:anywhere}
.internals-article-meta {float:right;max-width:45%;margin:0 0 8px 16px;text-align:right;overflow-wrap:anywhere}
.internals-article-icon {float:left;width:56px;height:56px;object-fit:cover;border-radius:var(--radius);margin:0 12px 8px 0;background:none}
.internals-article-content {line-height:1.45;clear:both}
.internals-article-content p {margin:0 0 12px}
.internals-article-content h1, .internals-article-content h2, .internals-article-content h3, .internals-article-content h4, .internals-article-content h5, .internals-article-content h6 {margin:14px 0 8px}
.internals-article-content ul, .internals-article-content ol {margin:0 0 12px 1.3rem;padding-left:1.1rem}
.internals-article-content li {margin:4px 0}
.internals-article-content blockquote {margin:0 0 12px;padding-left:12px;border-left:3px solid var(--border)}
.internals-article-content pre {white-space:pre-wrap;overflow:auto}
.internals-article-content img {max-width:100%;height:auto;border-radius:var(--radius)}
.internals-article-source {margin-top:12px;overflow-wrap:anywhere}
.internals-article-modify-header {display:flex;align-items:flex-start;gap:12px;margin:8px 0 12px}
.internals-article-modify-icon {width:65px;height:65px;object-fit:contain;border-radius:var(--radius);background:var(--secondary-bg);flex:0 0 65px}
.internals-article-modify-title-fields {min-width:0;flex:1}
.internals-article-edit-full, .internals-article-edit-full > div, .internals-article-edit-full .padded {width:100%;box-sizing:border-box}
.internals-article-edit-textarea {height:auto;overflow:hidden;resize:none;width:100%;box-sizing:border-box}
.option {width:max-content;box-sizing:border-box;transition:all 100ms;box-shadow:var(--shadow);background:#fff;border:1px solid var(--border);padding:8px;cursor:pointer;border-radius:var(--radius);margin-bottom:8px}
.option:hover {transform:Scale(1.075);background:var(--secondary-bg)}
.option svg {width:22px;height:22px;display:inline-block;vertical-align:bottom}
.option div {display:inline-block;vertical-align:top;padding:1px 0 0 5px}
@keyframes wave { 0%, 100% { transform:translateY(0)} 50% { transform:translateY(-5px)}}
.shortcut-overlay {position:absolute;background-color:#ffa500;border:1px solid #FF8B00;color:#1f1b1b;font-size:14px;border-radius:calc(var(--radius) - 2px);padding:4px 6px;pointer-events:none;font-weight:bold;z-index:1000;transform:scale(0.9);animation:fadeIn 0.2s ease-out forwards}
body.drag-active #app {filter:blur(3px)}
body.drag-active::before {content:"";position:fixed;inset:0;pointer-events:none;box-sizing:border-box;border:12px solid var(--border);box-shadow:0 0 0 9999px rgba(0,0,0,0.0) inset}
.calendar-recurrence-shell {border-top:1px solid var(--border);margin-top:10px;padding-top:4px}
.calendar-recurrence-switch-row {display:flex;align-items:center;justify-content:space-between;gap:10px}
.calendar-recurrence-switch-row .switcher {flex:0 0 auto}
.calendar-recurrence-panel {display:none;opacity:0;overflow:hidden}
.calendar-recurrence-panel-closed {display:none}
.calendar-recurrence-panel.open {display:block;opacity:1;padding-top:4px;animation:calendar-recurrence-reveal .22s ease}
@keyframes calendar-recurrence-reveal {from {opacity:0;transform:translateY(-6px)} to {opacity:1;transform:translateY(0)}}
.calendar-recurrence-row {display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.calendar-recurrence-inline-label {font-weight:600;white-space:nowrap}
input.calendar-recurrence-number {width:46px;padding:5px 6px;text-align:center}
.calendar-recurrence-unit {color:var(--faded);white-space:nowrap}
.calendar-recurrence-weekdays {display:grid;grid-template-columns:repeat(7, minmax(0, 1fr));gap:4px;padding:4px 8px 8px}
.calendar-recurrence-day {display:block;margin:0;cursor:pointer}
.calendar-recurrence-day-label {border:1px solid var(--border);border-radius:var(--radius);padding:5px 0;text-align:center;font-size:calc(var(--fs) - 2px);background:var(--secondary-bg);transition:all .12s ease}
.calendar-recurrence-day-input:checked + .calendar-recurrence-day-label {background:var(--fg);border-color:var(--fg);color:var(--bg)}
.calendar-recurrence-radio-row {display:flex;align-items:center;gap:8px;padding:4px 8px;min-width:0;flex-wrap:wrap}
.calendar-recurrence-radio-label {display:inline-flex;align-items:center;gap:5px;margin:0;min-width:46px}
.calendar-recurrence-radio-label input[type="radio"] {width:auto;margin:0}
.calendar-recurrence-monthly-section,.calendar-recurrence-yearly-section {display:none}
.service-window-parked {transition:left 200ms ease, top 200ms ease, transform 200ms ease, opacity 200ms ease;transform:scale(0.96);opacity:0.93}
.monospaced {font-family:Consolas, serif !important}
.cli-holder {width:100%;overflow:hidden}
.cli-command-row {display:flex;align-items:center;gap:6px;box-sizing:border-box}
.cli-command-prompt {flex:0 0 auto}
.cli-command-input {flex:1 1 auto;min-width:0;width:auto !important}
.cli-command-loader {flex:0 0 32px;width:32px;min-height:30px;text-align:center}
@keyframes fadeIn {
    from {
        opacity:0;
        transform:scale(0.9);
    }
    to {
        opacity:1;
        transform:scale(1);
   }
}

/*WEATHER*/
.weather-portal {min-height:100%;box-sizing:border-box}
.weather-hero {display:grid;grid-template-columns:minmax(0, 1.5fr) minmax(280px, 1fr);gap:14px;align-items:stretch;margin-bottom:14px}
.weather-hero-copy {display:flex;flex-direction:column;justify-content:center}
.weather-location {font-size:24px;font-weight:700;line-height:1.15}
.weather-current-temp {font-size:64px;font-weight:800;line-height:0.95;margin:10px 0 6px 0}
.weather-current-summary {font-size:18px;text-transform:capitalize}
.weather-last-updated {margin-top:10px;opacity:0.66;font-size:12px}
.weather-stat-grid {display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:10px}
.weather-stat-card {display:flex;flex-direction:column;justify-content:space-between;min-height:80px}
.weather-stat-label {font-size:12px;text-transform:uppercase;letter-spacing:0.08em}
.weather-stat-value {font-size:24px;font-weight:700;margin-top:10px}
.weather-error {margin-bottom:14px;background:rgba(186, 26, 26, 0.1);color:#8f1717;border:1px solid rgba(186, 26, 26, 0.18)}
.weather-panel-title {margin:0 0 12px 0}
.weather-hourly-list {display:grid;grid-template-columns:repeat(8, minmax(0, 1fr));gap:10px}
.weather-hour-label,.weather-day-rain {font-size:12px;text-transform:uppercase;letter-spacing:0.06em}
.weather-hour-temp {font-size:26px;font-weight:700;margin:10px 0 6px 0}
.weather-hour-summary,.weather-day-summary {font-size:calc(var(--fs) - 2px);line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.weather-hour-rain {margin-top:10px;font-size:12px}
.weather-daily-list {display:grid;grid-template-columns:repeat(6, minmax(0, 1fr));gap:10px}
.weather-day-label {font-size:16px;font-weight:700;margin-bottom:4px}
.weather-day-high {font-weight:700}
.weather-empty-state {text-align:center}
.weather-widget {box-sizing:border-box;display:flex;flex-direction:column;gap:8px;height:100%;justify-content:center;padding:6px 8px}
.weather-widget-location {font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.weather-widget-current {align-items:center;display:grid;gap:8px;grid-template-columns:auto minmax(54px, auto) minmax(0, 1fr)}
.weather-widget-icon {height:30px;width:30px}
.weather-widget-icon img {height:30px;width:30px}
.weather-widget-temp {font-size:30px;font-weight:800;line-height:1}
.weather-widget-summary {font-size:14px;line-height:1.15;text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:900px) {
    .weather-hero,.weather-panels {grid-template-columns:1fr}
    .weather-hourly-list {grid-template-columns:repeat(2, minmax(0, 1fr))}
}
@media (max-width:640px) {
    .weather-portal {padding:10px}
    .weather-current-temp {font-size:52px}
    .weather-stat-grid {grid-template-columns:1fr}
    .weather-hourly-list {grid-template-columns:1fr}
    .weather-day-row {flex-direction:column;align-items:flex-start}
    .weather-day-temps {width:100%;justify-content:space-between}
}

/*SEARCH BOX WRAPPER*/
.searchbox-wrapper {position:relative}
.searchbox-options {position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:1000;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);max-height:220px;overflow:auto}
.searchbox-option {display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--secondary-border);background:transparent;padding:8px 10px;color:var(--fg);border-radius:0}
.searchbox-option:last-of-type {border-bottom:0}
.searchbox-option:hover {background:var(--secondary-bg)}
.searchbox-option-empty {padding:8px 10px;opacity:0.75;font-size:calc(var(--fs) - 1px)}
.search-combobox-wrapper {display:inline-block;vertical-align:bottom}
.search-combobox-options {min-width:100%}
.search-combobox-option {display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--secondary-border);background:transparent;padding:8px 10px;color:var(--fg);border-radius:0}
.search-combobox-option:last-of-type {border-bottom:0}
.search-combobox-option:hover,.search-combobox-option.active {background:var(--secondary-bg)}
.search-combobox-option-empty {padding:8px 10px;opacity:0.75;font-size:calc(var(--fs) - 1px)}
.editor-font-family-combo,
.editor-font-size-combo {box-sizing:border-box;height:32px;padding:5px 8px;font-size:calc(var(--fs) - 2px);line-height:1.2}
.editor-font-family-combo {width:170px}
.editor-font-size-combo {width:78px}

/*MAPS*/
.maps-shell {position:relative;width:100%;height:100%;min-height:100%}
.maps-canvas {height:100%}
.maps-search-overlay {position:absolute;top:25px;right:12px;z-index:4;display:flex;gap:8px;align-items:center}
.maps-search-stack {position:relative;display:flex;flex-direction:column;align-items:stretch}
.maps-search-input {min-width:250px;background:var(--transparent-bg);backdrop-filter:blur(var(--blur));border:1px solid var(--border)}
.maps-search-autocomplete {position:absolute;top:calc(100% + 6px);left:0;right:0;display:flex;flex-direction:column;max-height:220px;overflow:auto;background:var(--background-bg, var(--bg));border:1px solid var(--border);border-radius:var(--radius);backdrop-filter:blur(var(--blur));box-shadow:var(--shadow);z-index:5}
.maps-search-autocomplete.hidden {display:none}
.maps-autocomplete-option {width:100%;text-align:left;padding:8px 10px;background:transparent;border:0;border-bottom:1px solid var(--border);color:inherit}
.maps-autocomplete-option:last-child {border-bottom:0}
.maps-autocomplete-option:hover {background:var(--secondary-bg)}
.maps-search-button {background:var(--transparent-bg);backdrop-filter:blur(var(--blur));border:1px solid var(--border)}
.maps-directions-panel {position:absolute;top:76px;right:12px;z-index:4;width:min(360px,calc(100% - 24px));display:flex;flex-direction:column;gap:8px;padding:10px;background:var(--transparent-bg);border:1px solid var(--border);border-radius:var(--radius);backdrop-filter:blur(var(--blur));box-shadow:var(--shadow)}
.maps-directions-panel.hidden {display:none}
.maps-directions-fields {display:flex;flex-direction:column;gap:6px}
.maps-directions-input {width:100%;box-sizing:border-box;background:var(--background-bg,var(--bg));border:1px solid var(--border)}
.maps-directions-actions {display:flex;gap:6px}
.maps-directions-action {flex:1;justify-content:center}
.maps-directions-result-actions {display:flex;gap:6px}
.maps-directions-result-actions.hidden {display:none}
.maps-directions-summary {font-size:.9em;font-weight:600;padding:6px 8px;background:var(--secondary-bg);border-radius:var(--radius)}
.maps-directions-summary.hidden {display:none}
.maps-directions-error {color:var(--danger,#b00020)}
.maps-directions-steps {display:flex;flex-direction:column;gap:6px;max-height:180px;overflow:auto;margin:0;padding:0 0 0 20px;font-size:.86em}
.maps-directions-steps.hidden {display:none}
.maps-directions-steps li {padding:0 4px 6px 0;border-bottom:1px solid var(--border)}
.maps-directions-steps li:last-child {border-bottom:0}
.maps-directions-steps span {display:block;line-height:1.25}
.maps-directions-steps small {display:block;opacity:.7;margin-top:2px}
.maps-directions-navigation {display:flex;flex-direction:column;gap:6px;padding:8px;background:var(--background-bg,var(--bg));border:1px solid var(--border);border-radius:var(--radius)}
.maps-directions-navigation.hidden {display:none}
.maps-directions-navigation-count {font-size:.78em;font-weight:700;opacity:.7;text-transform:uppercase}
.maps-directions-navigation-instruction {font-size:.94em;font-weight:600;line-height:1.25}
.maps-directions-navigation-distance {font-size:.82em;opacity:.7}
.maps-directions-navigation-actions {display:flex;gap:6px}
.maps-controls-overlay {position:absolute;right:12px;bottom:12px;z-index:4;display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.maps-control-row {display:flex;gap:4px}
.maps-control-button {margin:0 !important}
.maps-control-button svg {margin:0 !important;display:block}

/*SPREADSHEETS*/
.editor-portal-shell {display:flex;flex-direction:column;min-height:100%;height:100%;min-width:0;box-sizing:border-box;overflow:hidden}
.editor-code-shell,
.editor-sheet-shell {display:flex;flex-direction:column;flex:1;min-height:0}
.editor-sheet-workspace {display:flex;flex-direction:column;flex:1;min-height:0}
.editor-sheet-toolbar {display:flex;align-items:center;gap:8px}
.editor-sheet-active-cell {min-width:44px;text-align:center;font-weight:600;border:1px solid var(--border);border-radius:calc(var(--radius) - 4px);padding:6px 8px;background:var(--secondary-bg)}
.editor-sheet-formula {flex:1;border:1px solid var(--border);border-radius:calc(var(--radius) - 4px);padding:6px 8px;background:var(--bg)}
.editor-sheet-grid-panel {display:flex;flex-direction:column;flex:1;min-height:0}
.editor-sheet-grid-wrap {--editor-sheet-columns:12;--editor-sheet-row-header-width:46px;overflow:auto;flex:1;min-height:0}
#editor-sheet-grid {position:relative;min-width:max-content}
.editor-sheet-row {display:grid;grid-template-columns:var(--editor-sheet-grid-template, var(--editor-sheet-row-header-width, 46px) repeat(var(--editor-sheet-columns, 12), minmax(120px, 120px)));min-width:max-content}
.editor-sheet-cell-header {position:relative;padding:8px 6px;font-size:calc(var(--fs) - 1px);font-weight:600;background:var(--secondary-bg);border-right:1px solid var(--border);border-bottom:1px solid var(--border);box-shadow:inset 0 -1px 0 var(--border);text-align:center;box-sizing:border-box;user-select:none}
.editor-sheet-selectable-header {cursor:pointer}
.editor-sheet-row-header {position:sticky;left:0;z-index:3}
#editor-sheet-header-row {position:sticky;top:0;z-index:7}
#editor-sheet-header-row > .editor-sheet-row-header {z-index:8}
#editor-sheet-grid.editor-sheet-freeze-first-row #editor-sheet-data-row-0 {position:sticky;top:var(--editor-sheet-header-height, 36px);z-index:5}
#editor-sheet-grid.editor-sheet-freeze-first-row #editor-sheet-data-row-0 > .editor-sheet-row-header {z-index:6}
.editor-sheet-cell {position:relative;border-right:1px solid var(--border);border-bottom:1px solid var(--border);box-shadow:inset 0 -1px 0 var(--border);background:var(--bg);box-sizing:border-box}
.editor-sheet-cell-input {display:block;width:100%;height:100%;border:0;background:transparent;padding:8px 6px;outline:none;box-sizing:border-box}
.editor-sheet-filter-header-cell .editor-sheet-cell-input {padding-right:28px}
.editor-sheet-filter-button {display:none;position:absolute;right:4px;top:50%;transform:translateY(-50%);width:20px;height:20px;padding:0;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:calc(var(--radius) - 6px);background:var(--secondary-bg);color:var(--fg);font-size:12px;line-height:1;z-index:2}
.editor-sheet-filter-header-cell .editor-sheet-filter-button {display:flex}
.editor-sheet-filter-button:hover,.editor-sheet-filter-button.active {background:var(--bg);box-shadow:var(--small-shadow)}
.editor-sheet-filter-menu {display:flex;flex-direction:column;gap:4px;min-width:240px;max-width:320px;max-height:none;overflow:hidden;padding:6px;background:var(--bg)}
.editor-sheet-filter-search {box-sizing:border-box;width:100%;height:34px;margin:2px 0 4px 0;padding:7px 9px;border:1px solid var(--border);border-radius:calc(var(--radius) - 4px);background:var(--bg);color:var(--fg);font:inherit;line-height:1.2}
.editor-sheet-filter-values {display:flex;flex-direction:column;gap:2px;max-height:168px;overflow:auto;padding-right:2px}
.editor-sheet-filter-menu-item {display:flex;align-items:center;width:100%;min-height:30px;margin:0;padding:6px 8px;text-align:left;border:0;border-radius:calc(var(--radius) - 5px);background:transparent;color:var(--fg);font:inherit;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.editor-sheet-filter-menu-item:hover {background:var(--secondary-bg)}
.editor-sheet-filter-menu-separator {height:1px;margin:4px 0;background:var(--secondary-border)}
.editor-sheet-filter-menu-note {padding:6px 8px;color:var(--faded);font-size:calc(var(--fs) - 2px)}
.editor-sheet-row-filtered-out {display:none !important}
.editor-sheet-cell-input[readonly] {cursor:default}
.editor-sheet-cell-input:focus,
.editor-sheet-cell-input.active,
.editor-sheet-cell-header.active {box-shadow:inset 0 0 0 2px #20c05c}
.editor-sheet-search-hit {animation:editorSheetSearchPulse 800ms ease-out}
@keyframes editorSheetSearchPulse {0% {box-shadow:inset 0 0 0 3px #20c05c,0 0 0 8px rgba(32, 192, 92, 0.28)}100% {box-shadow:inset 0 0 0 2px #20c05c,0 0 0 2px rgba(32, 192, 92, 0)}}
.editor-sheet-cell[data-styled="1"] {background-image:linear-gradient(135deg, rgba(32, 192, 92, 0.08), rgba(32, 192, 92, 0));}
.editor-sheet-cell-lock-indicator {position:absolute;top:3px;right:3px;width:11px;height:11px;display:none;align-items:center;justify-content:center;color:var(--fg);opacity:.32;pointer-events:none}
.editor-sheet-cell-lock-indicator .small-icon {width:11px;height:11px}
.editor-sheet-cell-locked .editor-sheet-cell-lock-indicator {display:flex}
.editor-sheet-header-label {display:flex;align-items:center;justify-content:center;width:100%;height:100%;pointer-events:none}
.editor-sheet-corner-cell .editor-sheet-header-label {display:none}
.editor-sheet-resize-handle {position:absolute;opacity:0;transition:opacity 120ms ease;background:rgba(32, 192, 92, 0.22);z-index:6}
.editor-sheet-cell-header:hover .editor-sheet-resize-handle,
.editor-sheet-resize-handle:hover,
body.editor-sheet-resizing-columns .editor-sheet-resize-handle-column,
body.editor-sheet-resizing-rows .editor-sheet-resize-handle-row {opacity:1}
.editor-sheet-resize-handle-column {top:0;right:-4px;width:8px;height:100%;cursor:col-resize}
.editor-sheet-resize-handle-row {left:0;bottom:-4px;width:100%;height:8px;cursor:row-resize}
body.editor-sheet-resizing-columns {cursor:col-resize}
body.editor-sheet-resizing-rows {cursor:row-resize}
.editor-inline-style-menu {min-width:260px;display:flex;flex-direction:column;gap:8px;padding:8px}
.editor-inline-style-header {display:flex;align-items:center;justify-content:space-between;gap:8px}
.editor-inline-style-title {font-weight:700;font-size:calc(var(--fs) - 1px)}
.editor-inline-style-row {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.editor-inline-style-label {font-weight:700;font-size:calc(var(--fs) - 2px);opacity:0.8}
.editor-inline-style-select {width:auto;min-width:72px}
.editor-inline-style-palette {margin-top:0}
.editor-inline-style-palette .color-option.selected {box-shadow:inset 0 0 0 2px var(--fg)}
.editor-sheet-chart-portal label,.editor-slide-chart-portal label {display:block;margin:0 0 6px 0;font-weight:700}
.editor-sheet-chart-portal label.inline,.editor-slide-chart-portal label.inline {display:inline;margin:0;font-weight:600}
.editor-sheet-chart-type-grid {display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px;margin-top:6px}
.editor-sheet-chart-type {width:100%;margin:0;padding:10px;border:1px solid var(--border);background:var(--bg);border-radius:calc(var(--radius) - 2px)}
.editor-sheet-chart-type.selected {box-shadow:inset 0 0 0 2px #20c05c;background:var(--secondary-bg)}
.editor-sheet-chart {position:absolute;z-index:8;background:var(--bg);border:1px solid var(--border);box-shadow:0 8px 24px rgba(15, 23, 42, 0.14);border-radius:calc(var(--radius) - 2px);box-sizing:border-box;cursor:grab;overflow:visible;user-select:none}
.editor-sheet-chart.selected {box-shadow:0 0 0 2px #20c05c, 0 10px 28px rgba(15, 23, 42, 0.18)}
.editor-sheet-chart-body {width:100%;height:100%;overflow:hidden;border-radius:calc(var(--radius) - 3px);background:var(--bg)}
.editor-sheet-chart-resize {display:none;position:absolute;right:-6px;bottom:-6px;width:12px;height:12px;border-radius:50%;background:#20c05c;border:2px solid var(--bg);box-shadow:var(--shadow);cursor:nwse-resize}
.editor-sheet-chart.selected .editor-sheet-chart-resize {display:block}
.editor-sheet-image {position:absolute;z-index:9;border:1px solid transparent;box-sizing:border-box;cursor:grab;overflow:visible;user-select:none}
.editor-sheet-image.selected {border-color:#20c05c;box-shadow:0 0 0 2px #20c05c, 0 10px 28px rgba(15, 23, 42, 0.18)}
.editor-sheet-image-content {width:100%;height:100%;display:block;object-fit:cover;pointer-events:none}
.editor-sheet-image-resize {display:none;position:absolute;right:-6px;bottom:-6px;width:12px;height:12px;border-radius:50%;background:#20c05c;border:2px solid var(--bg);box-shadow:var(--shadow);cursor:nwse-resize}
.editor-sheet-image.selected .editor-sheet-image-resize {display:block}
.plastic-chart {position:relative;width:100%;height:100%;box-sizing:border-box;padding:8px;background:var(--bg);color:var(--fg);font-size:12px}
.plastic-chart-title {position:absolute;left:10px;right:10px;top:7px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plastic-chart svg {width:100%;height:100%;display:block}
.plastic-chart svg * {outline:none}
.plastic-chart-axis {stroke:var(--border);stroke-width:1.2}
.plastic-chart-label {fill:var(--faded);font-size:10px}
.plastic-chart-value-label {fill:var(--fg);font-size:10px;font-weight:700;paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.plastic-chart-value-mark {cursor:default}
.plastic-chart-line {fill:none;stroke:#2563eb;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:none}
.plastic-chart-area {fill:rgba(37, 99, 235, 0.18)}
.plastic-chart-pie .plastic-chart-title + svg {display:none}
.plastic-chart-pie-graphic {position:absolute !important;left:16px;top:44px}
.plastic-chart-legend {position:absolute;left:calc(50% + 20px);right:10px;top:46px;display:flex;flex-direction:column;gap:5px}
.plastic-chart-legend-item {display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.plastic-chart-legend-item span {display:inline-block;width:10px;height:10px;border-radius:2px;flex:none}
.plastic-chart-legend-item strong {margin-left:auto;font-size:11px;color:var(--fg)}

/*CODE EDITOR*/
.editor-code-wrap {display:flex;flex:1;min-height:0;max-height:none;overflow:hidden;background:linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.05));--editor-code-font-size:14px;--editor-code-line-height:1.5}
.editor-code-lines {min-width:52px;max-width:52px;overflow:hidden auto;border-right:1px solid var(--border);background:var(--secondary-bg);padding:10px 0;text-align:right;font-family:monospace;font-size:var(--editor-code-font-size);line-height:var(--editor-code-line-height);user-select:none}
.editor-code-line-number {padding:0 10px 0 4px;color:var(--faded);font:inherit;line-height:inherit}
.editor-code-stage {position:relative;flex:1;min-height:0;height:100%;overflow:hidden;background:var(--bg)}
.editor-code-stage[data-empty="1"]::before {content:"Write code...";position:absolute;left:10px;top:10px;color:var(--faded);pointer-events:none;z-index:0}
.editor-code-highlight,
.editor-code-input {position:absolute;inset:0;margin:0;padding:10px;overflow:auto;font-family:monospace;font-size:var(--editor-code-font-size);line-height:var(--editor-code-line-height);tab-size:4;white-space:pre;word-spacing:normal;letter-spacing:normal}
.editor-code-highlight {border:0;pointer-events:none;color:var(--fg);background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 28%), linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(15, 23, 42, 0.03));}
.editor-code-input {border:0;outline:none;background:transparent;color:transparent;caret-color:var(--fg);resize:none;-webkit-text-fill-color:transparent}
.editor-code-input::selection {background:rgba(59, 130, 246, 0.25)}
.editor-code-input::-moz-selection {background:rgba(59, 130, 246, 0.25)}
.editor-code-token-comment {color:#6b7280}
.editor-code-token-string {color:#0f9d58}
.editor-code-token-number {color:#d97706}
.editor-code-token-keyword {color:#2563eb;font-weight:600}
.editor-code-token-builtin {color:#7c3aed}
.editor-code-token-type,
.editor-code-token-title {color:#c2410c;font-weight:600}
.editor-code-token-call {color:#0f766e}
.editor-code-token-operator,
.editor-code-token-punctuation {color:#475569}
.editor-code-token-tag {color:#be123c}

.editor-slide-shell {height:100%;display:flex;flex-direction:column;gap:8px}
.editor-slide-add-button {background:#f97316 !important;color:#fff !important;border:1px solid #ea580c !important}
.editor-slide-body {display:flex;gap:10px;min-height:0;flex:1}
.editor-slide-sidebar {width:170px;padding:8px;display:flex;flex-direction:column;gap:8px;overflow:auto}
.editor-slide-sidebar-title {font-weight:700;font-size:calc(var(--fs) - 1px)}
.editor-slide-list {display:flex;flex-direction:column;gap:6px}
.editor-slide-item {width:100%;text-align:left;padding:6px 8px 8px;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);margin:0;display:flex;flex-direction:column;gap:8px;align-items:center}
.editor-slide-item.active {box-shadow:inset 0 0 0 2px #f97316}
.editor-slide-thumb {position:relative;overflow:hidden;border-radius:calc(var(--radius) - 2px);background:var(--secondary-bg);border:1px solid var(--border);box-shadow:0 4px 16px rgba(15, 23, 42, 0.08);flex:none}
.editor-slide-thumb-scene {position:absolute;left:0;top:0;transform-origin:top left}
.editor-slide-thumb-block {overflow:hidden}
.editor-slide-thumb .editor-slide-present-text {padding:8px;line-height:1.3}
.editor-slide-thumb .editor-slide-present-image {pointer-events:none}
.editor-slide-item-meta {width:100%;display:flex;align-items:center;gap:6px;min-width:0}
.editor-slide-item-index {font-size:11px;font-weight:700;color:var(--faded);flex:none}
.editor-slide-item-title {font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1}
.editor-slide-workspace {flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.editor-slide-toolbar {padding:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.editor-slide-canvas {height:calc(100% - 110px);position:relative;background-color:var(--secondary-bg);background-image:linear-gradient(to right, var(--border) 1px, transparent 1px),linear-gradient(to bottom, var(--border) 1px, transparent 1px);background-size:20px 20px;overflow:hidden}
.editor-slide-block {position:absolute;border:1px solid #fb923c;background:var(--bg);box-sizing:border-box;cursor:grab;user-select:none}
.editor-slide-block[data-block-type="text"] {background:transparent}
.editor-slide-block[data-block-type="chart"] {background:var(--bg);overflow:visible}
.editor-slide-block.selected {box-shadow:0 0 0 2px #f97316}
.editor-slide-text-content {width:100%;height:100%;padding:8px;outline:none;cursor:text;user-select:text;overflow:auto;white-space:pre-wrap;line-height:1.35}
.editor-slide-image-content {width:100%;height:100%;object-fit:cover;pointer-events:auto;display:block}
.editor-slide-chart-content {width:100%;height:100%;overflow:hidden;background:var(--bg)}
.editor-slide-chart-content .plastic-chart {padding:8px}
.editor-slide-resize-handle {display:none;position:absolute;width:12px;height:12px;right:-6px;bottom:-6px;border-radius:50%;background:#f97316;border:1px solid #fff;cursor:nwse-resize}
.editor-slide-block.selected .editor-slide-resize-handle {display:block}

.editor-slide-item.dragging {opacity:0.55}
.editor-slide-item {transition:transform 170ms ease, box-shadow 130ms ease, opacity 130ms ease}
.editor-slide-context-menu {position:fixed;display:none;min-width:150px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:4px;z-index:4000}
.editor-slide-context-menu.open {display:block}
.editor-slide-background-menu {position:fixed;display:none;min-width:180px;background:var(--bg);padding:10px;z-index:4000}
.editor-slide-background-menu.open {display:flex;flex-direction:column;gap:8px}
.editor-slide-options-menu {position:fixed;display:none;min-width:180px;background:var(--bg);padding:8px;z-index:4000}
.editor-slide-options-menu.open {display:block}
.editor-slide-background-section {font-size:12px;font-weight:700}
.editor-slide-background-color-input {display:block;width:100%;height:36px;padding:0;border:1px solid var(--border);border-radius:var(--radius);background:transparent}
.editor-slide-background-action {display:block;width:100%;text-align:left;border:1px solid var(--border);background:var(--secondary-bg);padding:8px 10px;border-radius:var(--radius);cursor:pointer;color:inherit}
.editor-slide-background-action.subtle {background:transparent}
.editor-slide-background-action:hover {background:var(--hover-bg)}
.editor-slide-option-row {padding:8px 10px;border-radius:var(--radius);cursor:pointer}
.editor-slide-option-row:hover {background:var(--secondary-bg)}
.editor-slide-option-label {font-weight:400}
.editor-slide-toolbar button.active {background:var(--hover-bg);border-radius:var(--radius)}
.editor-slide-context-action {display:block;width:100%;text-align:left;border:0;background:transparent;padding:7px 9px;border-radius:calc(var(--radius) - 2px)}
.editor-slide-context-action:hover {background:var(--secondary-bg)}
.editor-slide-context-action.danger {color:#dc2626}
.editor-slide-presenting {overflow:hidden}
.editor-slide-presentation {position:fixed;inset:0;z-index:5000;background:rgba(10, 10, 10, 0.96);display:flex;align-items:center;justify-content:center;padding:32px}
.editor-slide-present-stage {width:min(100vw - 64px, calc((100vh - 64px) * 1.7777778));height:min(calc((100vw - 64px) / 1.7777778), 100vh - 64px);display:flex;align-items:center;justify-content:center}
.editor-slide-present-surface {width:100%;height:100%;position:relative;overflow:hidden;box-shadow:0 24px 90px rgba(0, 0, 0, 0.45);background-color:#fff}
.editor-slide-present-block {position:absolute;box-sizing:border-box}
.editor-slide-present-text {width:100%;height:100%;padding:8px;overflow:hidden;white-space:pre-wrap;line-height:1.35;color:inherit}
.editor-slide-present-image {width:100%;height:100%;object-fit:cover;display:block}
.editor-slide-present-chart {width:100%;height:100%;overflow:hidden;background:var(--bg)}
.editor-slide-present-exit {position:fixed;top:20px;right:20px;border:1px solid rgba(255, 255, 255, 0.2);background:rgba(255, 255, 255, 0.08);color:rgba(255, 255, 255, 0.72);padding:9px 14px;border-radius:999px;cursor:pointer;transition:background 130ms ease, color 130ms ease, opacity 130ms ease;opacity:0.72}
.editor-slide-present-exit:hover {background:rgba(255, 255, 255, 0.14);color:#fff;opacity:1}
.editor-slide-present-counter {position:fixed;left:24px;bottom:20px;color:rgba(255, 255, 255, 0.68);font-size:12px;letter-spacing:0.08em}
.editor-slide-toolbar .disabled {opacity:0.45;pointer-events:none}
.editor-slide-chart-tabs {display:flex;gap:6px;margin-bottom:12px}
.editor-slide-chart-tab {border:1px solid var(--border);background:var(--bg);padding:8px 12px;border-radius:calc(var(--radius) - 2px);cursor:pointer}
.editor-slide-chart-tab.selected {background:var(--secondary-bg);box-shadow:inset 0 0 0 2px #f97316}
.editor-slide-chart-panel.hidden {display:none}
.editor-slide-chart-data-input {min-height:130px;resize:vertical;font-family:monospace}
.editor-slide-chart-preview {height:190px;margin-top:12px;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--bg);overflow:hidden}

.settings-interfaces-list {display:grid;gap:8px}
.settings-interface-item {background:var(--bg);overflow:hidden;transition:border-color 160ms ease,box-shadow 160ms ease,opacity 160ms ease}
.settings-interface-item.open {box-shadow:var(--small-shadow)}
.settings-interface-disabled {opacity:0.68}
.settings-interface-row {align-items:center;display:grid;gap:10px;grid-template-columns:34px minmax(0, 1fr) auto;padding:10px}
.settings-interface-icon {align-items:center;display:flex;height:30px;justify-content:center;width:30px}
.settings-interface-icon img,
.settings-interface-icon svg {height:24px;width:24px}
.settings-interface-copy {min-width:0}
.settings-interface-title, .settings-interface-id, .settings-interface-state {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-interface-drawer {max-height:0;overflow:hidden;transition:max-height 180ms ease}
.settings-interface-item.open .settings-interface-drawer {max-height:96px}
.settings-interface-drawer-inner {align-items:center;border-top:1px solid var(--border);padding:10px}

/*TIMERS*/
.timer-quick-form {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:center}
.timers-list {display:flex;flex-direction:column;gap:10px;overflow:auto;padding-bottom:12px}
.timer-card {padding:12px;background:var(--secondary-bg);transition:opacity 160ms ease}
.timer-card-complete {opacity:.72}
.timer-card-header {display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.timer-card-copy {min-width:0}
.timer-card-copy h3 {margin:0 0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.timer-card-display {flex:none;font-size:24px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.03em}
.timer-progress {height:6px;margin:11px 0;overflow:hidden;border-radius:999px;background:var(--bg);border:1px solid var(--border)}
.timer-progress span {display:block;height:100%;background:var(--primary);transition:width 250ms linear}
.timer-card-complete .timer-progress span {background:var(--faded)}
.timer-card-actions {display:flex;flex-wrap:wrap;gap:7px}
.timer-empty {display:flex;flex-direction:column;align-items:center;gap:7px;padding:28px 16px;text-align:center}
.timer-empty-icon svg {width:32px;height:32px}
@media (prefers-reduced-motion: reduce) {
    .draggable-window:not(.widget-window) {animation:none}
}

/*EMAIL*/
.email-shell {display:grid;grid-template-columns:minmax(230px, 34%) minmax(0, 1fr);height:100%;min-height:0;overflow:hidden;background:var(--bg);border:1px solid var(--border);border-radius:calc(var(--radius) - 2px)}
.email-list-pane {display:flex;flex-direction:column;min-width:0;min-height:0;border-right:1px solid var(--border);background:var(--secondary-bg)}
.email-list-header {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border);flex:none}
.email-list-header h3 {margin:0;font-size:calc(var(--fs) + 2px)}
.email-count {min-width:24px;text-align:center;padding:3px 7px;border-radius:999px;background:var(--bg);border:1px solid var(--border);font-size:calc(var(--fs) - 2px);font-weight:700}
.email-message-list {overflow:auto;min-height:0}
.email-message-item {display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-bottom:1px solid var(--border);cursor:pointer;background:transparent;min-width:0}
.email-message-item:hover {background:var(--bg)}
.email-message-item.active {background:var(--bg);box-shadow:inset 3px 0 0 var(--primary)}
.email-message-item.unread .email-message-sender,.email-message-item.unread .email-message-subject {font-weight:800}
.email-message-row {display:flex;align-items:baseline;gap:8px;min-width:0}
.email-message-sender {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.email-message-date {flex:none;max-width:86px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:calc(var(--fs) - 3px);opacity:0.68}
.email-message-category {display:inline-flex;align-items:center;gap:6px;max-width:100%;align-self:flex-start;padding:2px 7px 3px 6px;border:1px solid var(--border);border-radius:999px;background:var(--bg);font-size:calc(var(--fs) - 3px);line-height:1.2;opacity:0.86}
.email-message-category-dot {width:9px;height:9px;min-width:9px;border-radius:50%;border:1px solid var(--secondary-border)}
.email-message-category-name {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-message-subject {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-message-snippet {font-size:calc(var(--fs) - 2px);opacity:0.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-reading-pane {min-width:0;min-height:0;overflow:auto;padding:18px 22px;background:var(--bg)}
.email-reading-header {padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.email-reading-header h2 {margin:0 0 12px 0;font-size:calc(var(--fs) + 8px);line-height:1.2;overflow-wrap:anywhere}
.email-reading-meta {display:grid;gap:5px;font-size:calc(var(--fs) - 1px);opacity:0.78;overflow-wrap:anywhere}
.email-reading-meta strong {display:inline-block;min-width:42px;margin-right:7px;opacity:0.8}
.email-reading-body {white-space:pre-wrap;line-height:1.5;overflow-wrap:anywhere}
.email-attachments {margin-top:20px;padding-top:16px;border-top:1px solid var(--border)}
.email-attachments-label {margin-bottom:9px;font-weight:750}
.email-attachment-list {display:flex;flex-wrap:wrap;gap:9px}
.email-attachment {display:flex;align-items:center;gap:9px;max-width:100%;padding:9px 11px;background:var(--bg);color:inherit;text-align:left;cursor:pointer}
.email-attachment:hover {background:var(--secondary)}
.email-attachment img {width:30px;height:30px;object-fit:contain;flex:none}
.email-attachment-details {display:flex;flex-direction:column;min-width:0;gap:2px}
.email-attachment-details strong {max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.email-attachment-details small {opacity:0.65}
.email-reading-empty,.email-empty-state {height:100%;min-height:320px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:var(--faded)}
.email-empty-icon {width:72px;height:72px;object-fit:contain;opacity:0.72}
.email-empty-label {font-weight:700;color:var(--fg)}
.email-category-popout-dot {display:inline-block;width:11px;height:11px;min-width:11px;border-radius:50%;margin:2px 9px 0 0;border:1px solid var(--secondary-border);vertical-align:top}
.email-category-popout-dot-empty {background:transparent}
.email-composer-shell {display:flex;flex-direction:column;gap:10px;height:100%;min-height:0;box-sizing:border-box;overflow:hidden}
.email-composer-formatbar {flex:none}
.email-composer-format-button {min-width:30px;height:30px;padding:4px 8px;font-weight:700}
.email-composer-fields {display:grid;grid-template-columns:auto minmax(0, 1fr);gap:8px 10px;align-items:center;flex:none;padding:2px 0 0 0}
.email-composer-fields label {font-weight:700;opacity:0.74}
.email-composer-to-wrapper {width:100%;min-width:0}
.email-composer-input {width:100%;min-width:0;box-sizing:border-box;padding:7px 9px;border:1px solid var(--border);border-radius:calc(var(--radius) - 4px);background:var(--bg);color:var(--fg);font:inherit}
.email-reply-context {flex:none;padding:12px 14px;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--secondary-bg);display:flex;flex-direction:column;gap:7px;min-width:0}
.email-reply-context-title {display:flex;align-items:center;gap:8px;font-weight:800;color:var(--primary)}
.email-reply-context-title svg {width:18px;height:18px;flex:none}
.email-reply-context-subject {font-weight:800;overflow-wrap:anywhere}
.email-reply-context-meta {display:grid;gap:4px;font-size:calc(var(--fs) - 1px);opacity:0.78;overflow-wrap:anywhere}
.email-reply-context-meta strong {display:inline-block;min-width:46px;margin-right:7px;opacity:0.84}
.email-reply-context-snippet {max-height:58px;overflow:hidden;white-space:pre-wrap;font-size:calc(var(--fs) - 2px);line-height:1.4;opacity:0.72}
.email-composer-editor {flex:1;min-height:180px;overflow:auto;padding:16px 18px;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--bg);line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
.email-composer-editor:focus {box-shadow:inset 0 0 0 2px var(--primary)}
.email-reply-quote-header {margin-top:12px;color:var(--faded);font-size:calc(var(--fs) - 1px)}
.email-reply-quote {margin:8px 0 0 0;padding:0 0 0 12px;border-left:3px solid var(--border);color:var(--faded);white-space:pre-wrap;overflow-wrap:anywhere}

@media (max-width: 720px) {
    .email-shell {grid-template-columns:1fr;grid-template-rows:minmax(180px, 42%) minmax(0, 1fr)}
    .email-list-pane {border-right:0;border-bottom:1px solid var(--border)}
    .email-composer-fields {grid-template-columns:1fr}
}
