/* Камертон24 · Резонанс 3.1. Shared identity; semantic status colours stay distinct. */
@font-face{font-family:Manrope;src:url('resonance/manrope-variable.woff2') format('woff2');font-weight:200 800;font-style:normal;font-display:swap}
:root{--bg:#071e2d;--surface:#0c293b;--surface-2:#12364b;--line:#284a5e;--text:#f1faff;--muted:#a9c3d3;--teal:#60c6ff;--teal-dark:#153f59;--purple:#8ed6ff;--red:#ffacb9;--sidebar:264px;--radius:14px;--action:#60c6ff;--action-text:#071e2d;--rail:#071e2d;--rail-hover:#133a52}
body{font-family:Manrope,Arial,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
h1{font-weight:300;letter-spacing:-.045em;font-size:38px;line-height:1.18}h2{font-weight:400;letter-spacing:-.03em}h3{font-weight:500}strong,b{font-weight:600}
.button,input,select,textarea{font-family:inherit}.button{border-color:var(--line);border-radius:8px}.button:hover{background:var(--surface-2);border-color:var(--teal)}
.button.primary{background:var(--action);color:var(--action-text);border-color:var(--action)}.button.primary:hover{background:color-mix(in srgb,var(--action) 86%,var(--text));border-color:var(--action)}
.button.danger{background:#9b3548;border-color:#9b3548;color:white}.button.danger:hover{background:#b43c52}
input,select,.stack-form textarea{background:var(--bg);border-color:var(--line);color:var(--text)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.8}
input[type=checkbox]{accent-color:var(--teal)}input:focus,select:focus,textarea:focus{border-color:var(--teal)}textarea:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
.notice{background:var(--teal-dark);border-color:var(--line);color:var(--text)}.form-error{background:#3e2030;border-color:#80455b;color:#ffd9e2}
.eyebrow{font-size:12px;letter-spacing:.11em;color:var(--muted);font-weight:500}.form-help{font-size:14px}.status{font-size:12px}.status.neutral{background:var(--surface-2);color:var(--muted)}
.sidebar,.crm-workspace .sidebar{background:var(--rail);border-right:1px solid #244457;padding:30px 20px 24px;overflow-y:auto}
.sidebar .kamerton-brand,.crm-workspace .sidebar .brand{margin:0 0 34px;padding:0;display:flex;min-width:0}
.brand .resonance-logo{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}.sidebar .resonance-logo{width:224px}
.workspace,.crm-workspace .workspace{border-color:#244457;padding:18px 10px;gap:12px;color:#f1faff}.workspace strong{font-size:14px}.workspace div>span,.crm-workspace .workspace div>span{color:#a9c3d3;font-size:12px}
.workspace-icon,.crm-workspace .workspace-icon{background:#153f59;color:#8ed6ff;border:1px solid #28546e;border-radius:9px}
.main-nav,.crm-workspace .main-nav{gap:6px}.main-nav>a,.crm-workspace .main-nav>a{color:#b9d0df;font-size:14px;line-height:1.5;padding:12px;border-radius:8px;gap:12px}
.main-nav>a:hover,.crm-workspace .main-nav>a:hover{background:#113349;color:#fff}.main-nav>a.active,.crm-workspace .main-nav>a.active{background:#153f59;color:#b4e4ff;box-shadow:inset 2px 0 0 #60c6ff;border-radius:4px 8px 8px 4px}
.sidebar .early-label,.crm-workspace .sidebar .early-label{color:#a9c3d3;border-color:#34566b}.sidebar .support-link,.crm-workspace .sidebar .support-link{color:#c4dae7;font-size:13px}.nav-back,.crm-workspace .nav-back{border-color:#244457}
.sidebar-bottom{position:relative;isolation:isolate;padding-top:36px}.sidebar-bottom:before{content:'';position:absolute;inset:0 -20px;z-index:-1;background:url('resonance/waves.svg') center/560px auto no-repeat;opacity:.24;pointer-events:none}
.topbar{background:var(--bg);border-color:var(--line);height:auto;min-height:88px;padding-top:16px;padding-bottom:16px}.breadcrumb{color:var(--muted)}.profile-link{color:var(--text)}.avatar{background:var(--teal-dark);color:var(--teal)}
.content{padding-top:38px}.page-heading{margin-bottom:30px}.panel{border-color:var(--line)}.workspace-card{position:relative;overflow:hidden;padding:32px;isolation:isolate}.workspace-card:after{content:'';position:absolute;z-index:-1;right:-110px;bottom:-65px;width:410px;height:180px;background:url('resonance/waves.svg') center/cover no-repeat;opacity:.22;pointer-events:none}.workspace-card h2{font-size:28px;font-weight:300;line-height:1.25}.workspace-card .workspace-open{min-height:46px}.workspace-card p{max-width:40ch}.reserved-address{font-variant-numeric:normal;color:var(--teal)}
.balance-amount{font-weight:300;font-size:44px;color:var(--teal)}.app-footer{border-color:var(--line);color:var(--muted);font-size:12px}
/* Auth: brand story and a quiet, high-contrast form on a midnight canvas. */
.resonance-public{min-height:100dvh;display:flex;flex-direction:column;background:#071e2d;color:#f1faff}
.public-header{width:100%;max-width:1392px;padding:32px 48px;min-height:106px}.public-header .brand{width:300px;min-width:0}.public-header>a:last-child{color:#b9d0df;font-size:14px;white-space:nowrap}.public-header>a:last-child:hover{color:#60c6ff}
.public-main{width:100%;max-width:1392px;min-height:0;margin:0 auto;padding:26px 48px 56px;flex:1;display:flex;align-items:center;position:relative}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,530px);gap:clamp(44px,7vw,110px);align-items:center;width:100%}
.auth-story{position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:60px 0 95px;isolation:isolate;min-width:0}.auth-story:before{content:'';position:absolute;z-index:-1;inset:26% -100px -15% -110px;background:url('resonance/waves.svg') center/820px auto no-repeat;opacity:.65;pointer-events:none}
.auth-story .eyebrow{color:#a9c3d3;letter-spacing:.14em;margin-bottom:30px}.auth-story-title{font-size:clamp(42px,4.35vw,64px);font-weight:300;letter-spacing:-.055em;line-height:1.13;color:#fff;margin:0 0 30px}.auth-story-title span{color:#60c6ff}.auth-story-copy{font-size:18px;line-height:1.7;color:#b9d0df;max-width:35ch;margin-bottom:64px}.auth-story-caption{display:flex;align-items:center;gap:10px;font-size:13px;color:#a9c3d3}.auth-story-caption>span{width:5px;height:5px;border-radius:50%;background:#60c6ff;box-shadow:0 0 0 5px #60c6ff12}
.auth-form-column{min-width:0;position:relative}.auth-card{--bg:#fff;--surface:#fff;--surface-2:#f1faff;--line:#c8dfec;--text:#093a59;--muted:#4d6e82;--teal:#006ea8;--teal-dark:#e6f5ff;--action:#006ea8;--action-text:#fff;--red:#a52b47;color-scheme:light;background:#fff;color:var(--text);border:1px solid #d8edfa;border-radius:20px;padding:38px 40px;max-width:none;box-shadow:0 24px 80px #00101b24}
.public-main{overflow-x:clip}
.auth-card h1{font-size:36px;font-weight:300;line-height:1.15;margin-bottom:16px}.auth-card h1+p{font-size:15px;line-height:1.65;margin-bottom:24px}.auth-card .eyebrow{color:#557e96;margin-bottom:14px}.auth-card input,.auth-card select{background:#f8fcff;border-color:#bdd6e5;color:#093a59;min-height:48px;font-size:16px}.auth-card input::placeholder{color:#637f91}.auth-card label{display:block;font-size:14px;font-weight:500;margin-bottom:7px}.auth-card .field{margin-bottom:18px}.auth-card form>.button.primary,.auth-card .form-actions>.button{width:100%;min-height:48px;margin-top:4px}.auth-card .form-help a{color:#006ea8;text-decoration:underline;text-underline-offset:3px}.auth-card form>p{margin-bottom:18px}.auth-card .form-error{color:#9b263e;background:#fff0f2;border-color:#efc1c9}
.provider-list{margin:24px 0;gap:10px}
.provider-button{min-height:52px;padding:10px 16px;gap:12px;background:#fff;border-color:#c8dfec;color:#093a59;font-size:14px;line-height:1.4}
.provider-button:hover{background:#f1faff}
.provider-mark{display:block;flex:0 0 30px;width:30px;height:30px}
.provider-mark--strateg{
  background:#071e2d;
  border-radius:50%;
  /* Center the visible mark within the original PNG's asymmetric artboard. */
  padding:4px 2.35px 4px 5.65px;
}
.provider-status{color:#4d6e82;font-size:12px}
.auth-divider{display:flex;align-items:center;gap:12px;color:#59788b;font-size:12px;margin:20px 0}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#d4e5ee;flex:1}.auth-divider span{white-space:nowrap}
.auth-bottom{font-size:14px;padding-top:22px;margin-top:24px}.auth-bottom .text-link{font-size:14px}.public-note{font-size:13px;line-height:1.7;color:#a9c3d3;padding:0 5px;margin:20px 0 0}.public-footer{color:#a9c3d3;font-size:12px;padding:20px 24px 26px}
/* Working CRM: same identity in both existing themes; calendar colours encode records. */
body.crm-workspace{--bg:#f1faff;--surface:#fff;--surface-2:#eaf5fc;--line:#cddfea;--text:#093a59;--muted:#506f82;--teal:#006ea8;--teal-dark:#e2f2fd;--red:#b52b42;--sidebar:264px;--rail:#071e2d;--rail-hover:#133a52;--action:#006ea8;--action-text:#fff}
body.crm-workspace[data-crm-theme=dark]{--bg:#071e2d;--surface:#0c293b;--surface-2:#12364b;--line:#284a5e;--text:#f1faff;--muted:#a9c3d3;--teal:#60c6ff;--teal-dark:#153f59;--red:#ffacb9;--action:#60c6ff;--action-text:#071e2d}
@media(prefers-color-scheme:dark){body.crm-workspace:not([data-crm-theme=light]){--bg:#071e2d;--surface:#0c293b;--surface-2:#12364b;--line:#284a5e;--text:#f1faff;--muted:#a9c3d3;--teal:#60c6ff;--teal-dark:#153f59;--red:#ffacb9;--action:#60c6ff;--action-text:#071e2d}}
.crm-workspace h1{font-size:30px;font-weight:400;letter-spacing:-.035em}.crm-workspace .button.primary{background:var(--action);color:var(--action-text);border-color:var(--action)}.crm-workspace .button.primary:hover{filter:brightness(1.08)}.crm-workspace .calendar-column-heading strong{font-weight:400}.crm-workspace .calendar-event strong{font-weight:600}.crm-workspace .calendar-time{font-size:12px}.crm-workspace .crm-theme-label select{border-color:var(--line)}
@media(max-width:1100px){.auth-layout{gap:40px;grid-template-columns:minmax(0,1fr) minmax(0,480px)}.public-main,.public-header{padding-left:32px;padding-right:32px}.auth-card{padding:32px}.auth-story-title{font-size:45px}.auth-story-copy{font-size:16px}.topbar{padding-left:28px;padding-right:28px}.top-actions{gap:16px}.content{padding-left:28px;padding-right:28px}}
@media(max-width:900px){:root,body.crm-workspace{--sidebar:248px}.sidebar,.crm-workspace .sidebar{padding-left:12px;padding-right:12px}.sidebar .resonance-logo{width:224px}.auth-layout{max-width:580px;margin:auto;grid-template-columns:1fr;gap:28px}.auth-story{padding:8px 0 0;display:block}.auth-story:before{inset:-20% -30px -50%;background-size:700px;opacity:.25}.auth-story .eyebrow,.auth-story-copy,.auth-story-caption{display:none}.auth-story-title{font-size:34px;margin:0;line-height:1.15}.auth-story-title br{display:none}.auth-story-title span{display:inline}.public-main{align-items:flex-start;padding-top:10px}.public-header .brand{width:270px}}
@media(max-width:680px){.sidebar,.crm-workspace .sidebar{position:static;width:auto;padding:22px 20px 16px;border-right:0;border-bottom:1px solid #244457}.sidebar .brand,.crm-workspace .sidebar .brand{margin-bottom:20px}.sidebar .resonance-logo{width:240px}.main-nav,.crm-workspace .main-nav{gap:4px}.main-nav>a,.crm-workspace .main-nav>a{padding:10px;font-size:14px}.sidebar-bottom{display:none}.content{padding:28px 20px}.topbar{padding:18px 20px;min-height:80px}.top-actions{flex-wrap:wrap;gap:14px}.page-heading h1{font-size:32px}.panel{padding:24px}.workspace-card h2{font-size:26px}.public-header{padding:22px 24px;min-height:90px;gap:16px;flex-wrap:wrap}.public-header .brand{width:250px}.public-header>a:last-child{font-size:13px}.public-main{padding:10px 24px 30px}.auth-story-title{font-size:30px}.auth-layout{gap:24px}.auth-card{padding:28px 24px;border-radius:16px}.auth-card h1{font-size:32px}.auth-bottom .text-link{margin-left:0}.auth-bottom{display:flex;flex-wrap:wrap;gap:8px}.public-footer{padding-top:8px}.balance-amount{font-size:38px}}
@media(max-width:400px){.public-header{padding:20px}.public-header .brand{width:228px}.public-header>a:last-child{font-size:12px}.public-main{padding:8px 16px 24px}.auth-card{padding:24px 20px}.auth-story{padding-left:4px}.auth-story-title{font-size:28px}.auth-card h1{font-size:30px}.provider-button{font-size:13px;gap:8px;padding:10px 12px}.provider-status{font-size:11px}.public-note{font-size:12px}.sidebar,.crm-workspace .sidebar{padding-left:16px;padding-right:16px}.sidebar .resonance-logo{width:230px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){.auth-story-title br{display:block}}
