/* Ray.Land AFFiNE · native tokens and existing coastal assets · 2026-11-19 */
:root:not([data-theme]),html[data-theme="dark"] {
  --affine-brand-color: #67c6ca;
  --affine-primary-color: #67c6ca;
  --affine-primary-color-04: #67c6ca1a;
  --affine-link-color: #79d3d5;
  --affine-border-color: #344756;
  --affine-text-primary-color: #f0f3f8;
  --affine-text-secondary-color: #a7b6c7;
  --affine-text-emphasis-color: #67c6ca;
  --affine-text-disable-color: #6e8296;
  --affine-placeholder-color: #8b9bad;
  --affine-background-primary-color: #0c1420;
  --affine-background-secondary-color: #141f2d;
  --affine-background-tertiary-color: #1a2a39;
  --affine-background-overlay-panel-color: #141f2d;
  --affine-background-modal-color: #0c142099;
  --affine-background-code-block: #141f2d;
  --affine-hover-color: #203546;
  --affine-icon-color: #c4d2df;
  --affine-v2-text-primary: #f0f3f8;
  --affine-v2-text-secondary: #a7b6c7;
  --affine-v2-text-tertiary: #8b9bad;
  --affine-v2-text-placeholder: #8b9bad;
  --affine-v2-text-disable: #6e8296;
  --affine-v2-text-emphasis: #67c6ca;
  --affine-v2-text-link: #79d3d5;
  --affine-v2-icon-primary: #d5e1eb;
  --affine-v2-icon-secondary: #a7b6c7;
  --affine-v2-icon-tertiary: #6e8296;
  --affine-v2-icon-activated: #67c6ca;
  --affine-v2-layer-background-primary: #0c1420;
  --affine-v2-layer-background-secondary: #141f2d;
  --affine-v2-layer-background-tertiary: #1a2a39;
  --affine-v2-layer-background-overlayPanel: #141f2d;
  --affine-v2-layer-background-modal: #0c142099;
  --affine-v2-layer-background-hoverOverlay: #67c6ca14;
  --affine-v2-layer-background-translucentUI: #141f2df5;
  --affine-v2-layer-background-codeBlock: #141f2d;
  --affine-v2-dialog-background-primary: #141f2d;
  --affine-v2-layer-insideBorder-border: #344756;
  --affine-v2-layer-insideBorder-primaryBorder: #67c6ca;
  --affine-v2-layer-insideBorder-blackBorder: #344756;
  --affine-v2-button-primary: #67c6ca;
  --affine-v2-button-secondary: #1a2a39;
  --affine-v2-button-iconButtonSolid: #1a2a39;
  --affine-v2-button-buttonOverHover: #284454;
  --affine-v2-button-sidebarButton-background: #67c6ca16;
  --affine-v2-button-siderbarPrimary-background: #67c6ca20;
  --affine-v2-button-signinbutton-background: #101c29;
  --affine-v2-button-innerBlackBorder: #344756;
  --affine-v2-input-background: #101c29;
  --affine-v2-input-border-default: #344756;
  --affine-v2-input-border-active: #67c6ca;
  --affine-v2-segment-background: #101c29;
  --affine-v2-segment-button: #284454;
  --affine-v2-tab-fontColor-active: #f0f3f8;
  --affine-v2-tab-fontColor-default: #a7b6c7;
  --affine-v2-tab-fontColor-hover: #f0f3f8;
  --affine-v2-tab-divider-divider: #344756;
  --affine-v2-tab-divider-indicator: #67c6ca;
  --affine-v2-tab-tabBackground-hover: #1a2a39;
  --affine-v2-tab-tabBackground-active: #1a2a39;
  --affine-v2-tab-tabBackground-default: transparent;
  --affine-v2-loading-foreground: #67c6ca;
  --affine-v2-slashMenu-background: #141f2d;
  --affine-v2-workspacePicker-border: #344756;
  --affine-v2-workspacePicker-secondaryBackground: #1a2a39;
  --affine-v2-table-border: #344756;
  --affine-v2-table-headerBackground-default: #141f2d;
  --affine-v2-selfhost-layer-background-primary: #0c1420;
  --affine-v2-selfhost-layer-background-secondary: #141f2d;
  --affine-v2-selfhost-layer-background-sidebarBg-sidebarBg: #101c29;
  --affine-v2-selfhost-layer-border-border: #344756;
  --affine-v2-selfhost-text-sidebar-primary: #f0f3f8;
  --affine-v2-selfhost-text-sidebar-secondary: #a7b6c7;
}
html[data-theme="light"] {
  --affine-brand-color: #237c83;
  --affine-primary-color: #237c83;
  --affine-text-primary-color: #172b3a;
  --affine-text-secondary-color: #526d80;
  --affine-background-primary-color: #f5f8fb;
  --affine-background-secondary-color: #eaf0f5;
  --affine-background-tertiary-color: #e2ebf1;
  --affine-border-color: #c8d7e2;
  --affine-v2-text-primary: #172b3a;
  --affine-v2-text-secondary: #526d80;
  --affine-v2-text-tertiary: #6c8495;
  --affine-v2-icon-primary: #304d61;
  --affine-v2-icon-secondary: #526d80;
  --affine-v2-layer-background-primary: #f5f8fb;
  --affine-v2-layer-background-secondary: #eaf0f5;
  --affine-v2-layer-background-tertiary: #e2ebf1;
  --affine-v2-layer-background-overlayPanel: #f5f8fb;
  --affine-v2-dialog-background-primary: #f5f8fb;
  --affine-v2-layer-insideBorder-border: #c8d7e2;
  --affine-v2-input-background: #ffffff;
  --affine-v2-input-border-default: #c8d7e2;
  --affine-v2-button-secondary: #e2ebf1;
  --affine-v2-slashMenu-background: #f5f8fb;
  --affine-v2-tab-fontColor-active: #172b3a;
  --affine-v2-tab-fontColor-default: #526d80;
  --affine-v2-tab-fontColor-hover: #172b3a;
  --affine-v2-tab-tabBackground-hover: #e2ebf1;
  --affine-v2-tab-tabBackground-active: #e2ebf1;
  --affine-v2-workspacePicker-secondaryBackground: #e2ebf1;
  --affine-v2-table-border: #c8d7e2;
}

body {background:var(--affine-v2-layer-background-primary);}
[data-testid="app-sidebar-wrapper"] {border-right:1px solid var(--affine-border-color);}
[data-testid="app-sidebar"] {background:var(--affine-v2-layer-background-secondary);}
.rayland-affine-brand {display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;min-height:88px;margin:12px 12px 18px;padding:12px 16px;border:1px solid #344756;border-radius:12px;background:linear-gradient(90deg,#0c1420c9,#0c142040),url('/rayland-theme/coast.jpg') center 58%/cover;color:#f0f3f8;overflow:hidden;text-decoration:none;}
.rayland-affine-brand img {display:block;width:138px;max-width:70%;height:46px;object-fit:contain;}
.rayland-affine-brand span {font-size:10px;font-weight:600;letter-spacing:1.8px;color:#cbe3e7;}
.rayland-affine-brand:focus-visible {outline:2px solid #67c6ca;outline-offset:3px;}
[data-testid="sliderBar-inner"] {padding-top:0;}
[data-testid="current-workspace-card"] {border-radius:10px;}
[role="dialog"] {border-color:var(--affine-border-color);}
button[data-variant="primary"] {color:#0c202b;}
::selection {background:#67c6ca45;}
@media(max-width:767px){.rayland-affine-brand {min-height:76px;margin:8px 10px 12px;padding:10px 14px;}.rayland-affine-brand img{width:126px;height:40px;}}
@media(prefers-reduced-motion:reduce){.rayland-affine-brand{scroll-behavior:auto;}}

html[data-theme="dark"] {--affine-blue:#67c6ca;}
[data-testid="auth-modal"] {border:1px solid var(--affine-border-color);border-radius:16px;background:linear-gradient(180deg,#0c142060,#141f2d 190px),url('/rayland-theme/coast.jpg') center top/auto 190px no-repeat #141f2d;}
[data-testid="auth-modal"] .ubmlgk1::before {content:"";display:block;height:56px;width:180px;margin:0 0 20px;background:url('/rayland-theme/wordmark.png') left center/contain no-repeat;}
[data-testid="auth-modal"] .ubmlgk1>p:last-of-type {font-size:14px;font-weight:400;line-height:22px;color:var(--affine-v2-text-secondary);}
[data-testid="auth-modal"] div:has(>input[type="email"]),[data-testid="auth-modal"] div:has(>input[type="password"]) {background:#101c29;color:#f0f3f8;border-color:#435968;}
[data-testid="auth-modal"] input {color:#f0f3f8;}
[data-testid="auth-modal"] input::placeholder {color:#8b9bad;opacity:1;}
[data-testid="auth-modal"] button[data-testid="continue-login-button"], [data-testid="auth-modal"] button[type="submit"] {background:#67c6ca;color:#0c202b;border:1px solid #85d4d7;}
[data-testid="auth-modal"] button[data-testid="continue-login-button"] svg {color:#0c202b;}

html[data-theme="dark"] {--affine-warning-color:#ffbb9b;--affine-error-color:#ff9f95;}
[data-testid="local-demo-tips"] {color:#ffbb9b;font-weight:500;}
@media(max-width:767px){
 :root {--affine-editor-width:100vw;--affine-editor-side-padding:24px;}
 .editor-wrapper.page-mode {width:100%;min-width:0;max-width:100vw;}
}
