/* Customer workspace: local typography, quiet surfaces, one action color. */
.wk-app, .wk-login, body.link-config-page {
  --wk-ink: #253a35;
  --wk-muted: #77817b;
  --wk-line: #e5e8e1;
  --wk-paper: #f7f8f4;
  --wk-green: #237358;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--wk-ink);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wk-app *, .wk-login * { box-sizing: border-box; }
.wk-app a, .wk-login a { text-decoration: none; }
.wk-app button, .wk-login button { font: inherit; cursor: pointer; }
.wk-app button:disabled, .wk-login button:disabled { opacity: .45; cursor: not-allowed; }
.wk-app :is(a, button, input, summary):focus-visible, .wk-login :is(a, button, input):focus-visible { outline: 3px solid #70ae90; outline-offset: 3px; }
.wk-app { min-height: 100vh; background: var(--wk-paper); }
.wk-skip-link { position: fixed; top: -80px; left: 250px; z-index: 1100; background: #fff; color: var(--wk-ink); padding: 12px 18px; }
.wk-skip-link:focus { top: 12px; }
.wk-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; width: 224px; padding: 30px 16px 16px; background: #192e29; color: #f1f6ef; overflow-y: auto; }
.wk-brand-link { color: #f1f6ef; padding: 0 14px; }
.wk-brand-link:hover { color: #fff; }
.wk-brand { display: inline-flex; align-items: center; gap: 11px; text-align: left; }
.wk-brand strong { display: block; font-size: 23px; line-height: 1.15; font-weight: 650; letter-spacing: 3px; }
.wk-brand small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: 1.65px; opacity: .6; }
.wk-workspace-label { display: flex; align-items: center; gap: 10px; padding: 13px 10px; margin: 31px 0 21px; border: 1px solid #3a4b40; border-radius: 7px; color: #e5ede7; font-size: 12px; }
.wk-workspace-label > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.wk-workspace-label small { display: block; font-size: 10px; color: #95aaa0; margin-top: 1px; }
.wk-workspace-avatar { display: grid; place-items: center; flex-shrink: 0; width: 31px; height: 31px; background: #a8c8ad; color: #243e2e; border-radius: 6px; font-weight: 600; }
.wk-workspace-label > i { color: #8aa094; }
.wk-nav-label { color: #8da296; font-size: 10px; letter-spacing: .7px; margin: 0 14px 10px; }
.wk-nav-label-second { margin-top: 31px; }
.wk-nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 43px; margin-bottom: 5px; padding: 10px 14px; color: #b6c5bb; background: transparent; border: 0; border-radius: 6px; text-align: left; font-size: 13px; transition: background 140ms, color 140ms; }
.wk-nav-link:hover { color: #fff; background: #263e34; }
.wk-nav-link.is-current { background: #dcebd8; color: #264734; font-weight: 600; }
.wk-nav-link > i { font-size: 16px; }
.wk-nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: #448461; }
.wk-nav-end { margin-left: auto; font-size: 12px !important; }
.wk-sidebar-bottom { margin-top: auto; padding-top: 72px; }
.wk-credit-panel { padding: 17px 14px 14px; background: #223c31; border: 1px solid #3c5141; border-radius: 8px; }
.wk-credit-panel > span { display: flex; justify-content: space-between; font-size: 11px; color: #b7c7b7; }
.wk-credit-panel > strong { display: block; font-size: 29px; font-weight: 500; line-height: 1.7; font-variant-numeric: tabular-nums; }
.wk-credit-panel strong small { font-size: 11px; font-weight: 400; color: #b6c7b6; }
.wk-credit-panel p { margin: 1px 0 15px; color: #a0b59f; font-size: 10px; }
.wk-credit-panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 9px 10px; color: #eef4e9; border: 1px solid #537055; border-radius: 5px; background: #36533b; font-size: 11px; }
.wk-credit-panel button:hover { background: #46664a; }
.wk-signout { display: flex; align-items: center; gap: 9px; width: 100%; padding: 23px 9px 0; color: #99afa2; background: none; border: 0; font-size: 11px !important; }
.wk-signout span { margin-left: auto; color: #728d7c; letter-spacing: 2px; font-size: 8px; }
.wk-main { margin-left: 224px; min-width: 0; }
.wk-topbar { position: relative; height: 69px; padding: 0 38px; background: #fcfdfb; border-bottom: 1px solid var(--wk-line); display: flex; align-items: center; justify-content: space-between; }
.wk-breadcrumb { display: flex; align-items: center; gap: 16px; font-size: 11px; color: #889187; }
.wk-breadcrumb strong { color: #465047; font-weight: 500; }
.wk-topbar-end { display: flex; align-items: center; gap: 19px; }
.wk-topbar-end button { background: none; color: #647168; border: 0; padding: 4px; font-size: 17px; }
.wk-product-label { color: #858d82; font-size: 10px; padding-right: 17px; border-right: 1px solid var(--wk-line); }
.wk-user-avatar { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d3ded0; border-radius: 50%; background: #e8eee0; color: #5a6951; font-size: 12px; }
.wk-mobile-menu { display: none; }
.wk-content { max-width: 1640px; margin: 0 auto; padding: 39px 38px 0; }
.wk-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.wk-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 8px; letter-spacing: 1.8px; color: #7d8978; }
.wk-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #3d835c; }
.wk-heading h1 { margin: 12px 0 10px; font-size: clamp(23px, 2.15vw, 33px); font-weight: 550; letter-spacing: -1.1px; line-height: 1.4; }
.wk-heading p { margin: 0; font-size: 13px; color: var(--wk-muted); }
.wk-heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; padding-top: 24px; }
.wk-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; min-height: 39px; border-radius: 6px; font-size: 12px; font-weight: 500; border: 1px solid transparent; transition: background 140ms, border-color 140ms; white-space: nowrap; }
.wk-button-primary { color: #fff; background: var(--wk-green); border-color: var(--wk-green); box-shadow: 0 2px 3px #1a513017; }
.wk-button-primary:hover { color: #fff; background: #195c43; }
.wk-button-outline { color: #586458; background: #fff; border-color: #dde2d8; }
.wk-button-outline:hover { background: #f0f3ec; color: #243b29; }
.wk-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; scroll-margin-top: 20px; }
.wk-metric { background: #fff; border: 1px solid var(--wk-line); border-radius: 8px; padding: 20px 22px 16px; }
.wk-metric-label { display: flex; align-items: center; justify-content: space-between; color: #667162; font-size: 12px; }
.wk-metric-label i { font-size: 16px; color: #84927a; }
.wk-metric > strong { display: block; margin: 9px 0 12px; font-weight: 500; font-size: 34px; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.wk-metric:nth-child(2) > strong { color: var(--wk-green); }
.wk-metric-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #727d6a; font-size: 11px; }
.wk-metric-caption small { font-size: 8px; letter-spacing: 1px; color: #7e8a74; }
.wk-message { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid #e8dcbc; border-radius: 7px; background: #faf6e9; color: #776032; font-size: 12px; }
.wk-message.is-error { background: #fcf0ed; border-color: #eecfc5; color: #9b4135; }
.wk-message button { margin-left: auto; background: none; color: inherit; border: 0; text-decoration: underline; white-space: nowrap; }
.wk-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 24px; align-items: start; }
.wk-library { min-width: 0; border: 1px solid var(--wk-line); border-radius: 9px; background: #fff; }
.wk-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 22px 20px; }
.wk-library-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.wk-library-heading h2 > span { font-size: 10px; font-weight: 500; padding: 1px 7px; border: 1px solid var(--wk-line); border-radius: 5px; color: #74806c; }
.wk-library-heading p { margin: 0; font-size: 12px; color: #74806b; }
.wk-sync-status { color: #889681; font-size: 10px; white-space: nowrap; }
.wk-library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 22px 17px; }
.wk-status-filters { display: flex; align-items: center; background: #f3f5ef; padding: 3px; border-radius: 6px; gap: 2px; }
.wk-status-filters button { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid transparent; padding: 5px 8px; border-radius: 4px; color: #69765d; font-size: 12px; white-space: nowrap; }
.wk-status-filters button.is-selected { background: #fff; border-color: #e3e7dc; color: #375334; box-shadow: 0 1px 2px #16291c06; }
.wk-status-filters button span { font-size: 10px; font-variant-numeric: tabular-nums; opacity: .75; }
.wk-search { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--wk-line); border-radius: 5px; width: 204px; color: #8b9382; margin: 0; }
.wk-search input { width: 100%; min-width: 0; padding: 0; border: 0; color: var(--wk-ink); background: transparent; font: inherit; font-size: 12px; outline: none; }
.wk-search:focus-within { border-color: #669c76; box-shadow: 0 0 0 2px #669c7615; }
.wk-search input::placeholder { color: #969d90; }
.wk-table-labels, .wk-card-row { display: grid; grid-template-columns: minmax(140px, 1fr) 68px 77px 117px 84px; gap: 12px; align-items: center; padding: 0 22px; }
.wk-table-labels { min-height: 39px; border-top: 1px solid var(--wk-line); border-bottom: 1px solid var(--wk-line); background: #fafbf8; color: #6e7c64; font-size: 11px; }
.wk-table-labels > span:last-child { text-align: right; padding-right: 3px; }
.wk-card-row { min-height: 87px; border-bottom: 1px solid #eef0e9; transition: background 140ms; }
.wk-card-row:hover { background: #fcfdf9; }
.wk-card-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wk-card-identity > div { min-width: 0; }
.wk-thumbnail { display: grid; place-items: center; width: 43px; height: 43px; flex-shrink: 0; background: #e9eee0; border-radius: 7px; overflow: hidden; color: #6d805c; font-size: 18px; }
.wk-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.wk-card-row:nth-child(3n) .wk-thumbnail { background: #eae4da; color: #99794c; }
.wk-card-row:nth-child(3n + 1) .wk-thumbnail { background: #e4eae8; color: #52776d; }
.wk-card-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #344632; font-weight: 550; }
.wk-card-title:hover { color: var(--wk-green); }
.wk-inline-expiry { display: none; }
.wk-card-identity p { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; font-size: 11px; color: #6f7b64; white-space: nowrap; }
.wk-card-identity p i { color: #5d8e66; font-size: 10px; }
.wk-card-identity p > span { margin: 0 2px; }
.wk-card-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid #dce9dc; background: #f0f7eb; border-radius: 4px; color: #527044; font-size: 11px; white-space: nowrap; }
.wk-card-status > span { width: 4px; height: 4px; background: #648655; border-radius: 50%; }
.wk-card-status.is-expired { background: #f6f3eb; border-color: #eae2d2; color: #9b865d; }
.wk-card-status.is-expired > span { background: #af9467; }
.wk-card-reach { font-variant-numeric: tabular-nums; }
.wk-card-reach > strong { display: block; font-size: 13px; font-weight: 550; line-height: 1.6; }
.wk-card-reach small, .wk-card-reach > span { font-size: 10px; color: #747f69; font-weight: 400; }
.wk-card-expiry > span { display: block; font-size: 11px; color: #687361; font-variant-numeric: tabular-nums; }
.wk-card-expiry small { display: block; font-size: 10px; margin-top: 3px; color: #77846a; }
.wk-card-actions { display: flex; justify-content: flex-end; align-items: center; gap: 5px; }
.wk-copy-button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; background: #fff; border: 1px solid #dde5d8; border-radius: 5px; color: #496441; font-size: 10px !important; white-space: nowrap; }
.wk-copy-button:hover { background: #f0f5eb; border-color: #a6b99b; }
.wk-card-menu { position: relative; }
.wk-card-menu summary { list-style: none; cursor: pointer; padding: 5px; color: #8c9584; }
.wk-card-menu summary::-webkit-details-marker, .wk-mobile-menu summary::-webkit-details-marker { display: none; }
.wk-card-menu > div { position: absolute; right: 0; top: 29px; z-index: 10; min-width: 125px; padding: 5px; border: 1px solid var(--wk-line); border-radius: 6px; background: white; box-shadow: 0 7px 22px #273b231a; }
.wk-card-menu a { display: block; padding: 8px 10px; font-size: 11px; color: #536549; border-radius: 3px; }
.wk-card-menu a:hover { background: #f0f4eb; }
.wk-pagination { display: flex; justify-content: space-between; align-items: center; padding: 17px 22px; font-size: 10px; color: #8b9480; }
.wk-pagination > div { display: flex; align-items: center; gap: 12px; }
.wk-pagination button { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--wk-line); border-radius: 4px; background: #fff; color: #627457; }
.wk-empty { min-height: 365px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.wk-empty > i { font-size: 31px; color: #8caa7b; margin-bottom: 18px; }
.wk-empty h3 { font-size: 18px; font-weight: 500; }
.wk-empty p { font-size: 12px; color: #85917b; max-width: 340px; margin: 0 0 20px; }
.wk-guide { display: grid; gap: 19px; }
.wk-connect-panel { padding: 25px 20px 17px; border-radius: 9px; color: #e6eee0; overflow: hidden; background: #263e31; position: relative; }
.wk-connect-panel::after { content: ''; position: absolute; width: 235px; height: 235px; top: 105px; left: 125px; border: 1px solid #446049; border-radius: 50%; box-shadow: 0 0 0 24px #38513b33, 0 0 0 48px #38513b22; pointer-events: none; }
.wk-connect-panel .wk-eyebrow { color: #a3b49b; font-size: 6px; letter-spacing: 1.05px; }
.wk-connect-panel h2 { position: relative; z-index: 1; font-size: 20px; line-height: 1.65; font-weight: 500; margin: 12px 0 0; letter-spacing: -.3px; }
.wk-connect-panel > p { margin: 0; padding-top: 13px; border-top: 1px solid #43543e; color: #a6b79b; font-size: 10px; }
.wk-share-illustration { position: relative; z-index: 1; margin: 22px -4px 22px; min-height: 158px; }
.wk-orbit-label { display: inline-flex; align-items: center; gap: 6px; margin-left: 7px; padding: 4px 8px; font-size: 10px; background: #16251c; border: 1px solid #43513a; border-radius: 5px; color: #e7efdc; }
.wk-orbit-label i { color: #fff; }
.wk-sample-card { position: relative; display: flex; align-items: center; gap: 9px; padding: 16px 10px; margin: 13px 0 10px; background: #f4f4e9; color: #465338; border: 1px solid #d9e0cc; border-radius: 7px; transform: rotate(-4deg); box-shadow: 0 9px 0 -4px #bac9a75c, 0 18px 25px #15231c33; }
.wk-sample-cover { display: grid; place-items: center; width: 38px; height: 43px; flex-shrink: 0; background: #dfe6cb; border-radius: 4px; font-size: 20px; color: #6a8052; }
.wk-sample-card strong { font-size: 10px; font-weight: 650; }
.wk-sample-card p { font-size: 8px; color: #98a086; margin: 3px 0 4px; }
.wk-sample-card div > span { display: flex; align-items: center; gap: 3px; font-size: 7px; color: #6a7d54; }
.wk-sample-card > i { align-self: flex-start; margin-left: auto; font-size: 9px; }
.wk-orbit-end { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 9px; color: #c8d5b7; margin: 20px 7px 0; }
.wk-steps { border: 1px solid var(--wk-line); border-radius: 8px; background: #fff; padding: 19px 18px 9px; }
.wk-steps h3 { font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.wk-steps > a, .wk-step { display: flex; align-items: flex-start; gap: 11px; padding: 15px 0; color: #5b6b4f; }
.wk-steps > a:hover strong { color: var(--wk-green); }
.wk-steps > :not(h3) + :not(h3) { border-top: 1px solid #eef0e8; }
.wk-steps > :not(h3) > span { font-size: 10px; color: #9ba88c; margin-top: 1px; }
.wk-steps strong { display: block; font-size: 11px; font-weight: 500; }
.wk-steps p { font-size: 9px; color: #909a83; margin: 4px 0 0; }
.wk-steps i { margin-left: auto; font-size: 10px; color: #8f9b80; }
.wk-advisor { display: flex; align-items: center; gap: 10px; width: 100%; padding: 3px 2px; text-align: left; border: 0; background: none; color: #5c6a50; }
.wk-advisor-icon { display: grid; place-items: center; width: 33px; height: 33px; font-size: 16px; border: 1px solid #e1e6d7; border-radius: 50%; background: #eef2e5; }
.wk-advisor strong { display: block; font-size: 11px; font-weight: 500; }
.wk-advisor small { display: block; margin-top: 3px; font-size: 9px; color: #8b9680; }
.wk-advisor > i { margin-left: auto; }
.wk-footer { display: flex; justify-content: space-between; gap: 10px; padding: 31px 0 23px; color: #9ca590; font-size: 9px; }
.wk-footer span:last-child { font-size: 7px; letter-spacing: 1.6px; }
.wk-spinning { animation: wk-rotate 1s linear infinite; }
.wk-loading-bar { display: block; width: 80px; height: 3px; margin-bottom: 25px; background: #accb9d; transform-origin: left; animation: wk-pulse 1s ease-in-out infinite alternate; }
@keyframes wk-rotate { to { transform: rotate(360deg); } }
@keyframes wk-pulse { from { opacity: .35; transform: scaleX(.5); } to { opacity: 1; transform: scaleX(1); } }

/* Login uses the same identity without downloading webfonts. */
.wk-login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fcfcf9; }
.wk-login-story { display: flex; flex-direction: column; padding: 46px 64px 32px; background: #1d352b; color: #ebf0e1; position: relative; overflow: hidden; }
.wk-login-story > .wk-brand { align-self: flex-start; }
.wk-login-story-copy { margin: auto 0; padding: 55px 0 20px; position: relative; z-index: 1; }
.wk-login-story-copy .wk-eyebrow { color: #9eb795; font-size: 9px; }
.wk-login-story h1 { font-size: clamp(32px, 3.3vw, 53px); font-weight: 500; line-height: 1.45; letter-spacing: -1.5px; margin: 23px 0 20px; }
.wk-login-story h1 em { font-style: normal; color: #bdd3a6; }
.wk-login-story-copy > p { max-width: 355px; color: #a4b69b; font-size: 13px; line-height: 2; margin: 0; }
.wk-login-illustration { position: relative; max-width: 370px; margin: 49px 0 24px; }
.wk-login-illustration .wk-sample-card { padding: 26px 20px; transform: rotate(-5deg); margin-bottom: 36px; }
.wk-login-illustration .wk-sample-card strong { font-size: 15px; }
.wk-login-illustration .wk-sample-card p { font-size: 11px; }
.wk-login-illustration .wk-sample-cover { width: 56px; height: 60px; margin-right: 4px; font-size: 24px; }
.wk-login-flow { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 10px; color: #b3c5a7; }
.wk-login-flow > span { border: 1px solid #59744e; padding: 7px 12px; border-radius: 5px; background: #29432c; }
.wk-login-story::after { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid #59714a40; border-radius: 50%; left: 38%; bottom: -320px; box-shadow: 0 0 0 48px #48613a15, 0 0 0 96px #48613a12; }
.wk-login-story-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 15px; color: #96aa87; font-size: 10px; }
.wk-login-story-footer span:last-child { font-size: 8px; letter-spacing: 1.5px; }
.wk-login-content { display: flex; flex-direction: column; padding: 40px 55px 28px; }
.wk-login-top { display: flex; justify-content: flex-end; color: #858e7c; font-size: 11px; }
.wk-login-top a { color: #466941; margin-left: 9px; }
.wk-login-form { width: 100%; max-width: 352px; margin: auto; padding: 54px 0; }
.wk-login-form .wk-eyebrow { font-size: 9px; }
.wk-login-form h2 { font-size: 29px; font-weight: 550; letter-spacing: -.6px; margin: 15px 0 10px; }
.wk-login-form > p { font-size: 12px; color: #939a8a; margin: 0 0 31px; }
.wk-auth-tabs { display: flex; gap: 28px; border-bottom: 1px solid #e2e7da; margin-bottom: 25px; }
.wk-auth-tabs button { position: relative; border: 0; background: none; color: #97a08c; padding: 0 2px 12px; font-size: 12px; }
.wk-auth-tabs button[aria-pressed="true"] { color: #335e3d; font-weight: 600; }
.wk-auth-tabs button[aria-pressed="true"]::after { content: ''; position: absolute; height: 2px; background: #335e3d; bottom: -1px; left: 0; right: 0; }
.wk-login-form form { display: grid; gap: 19px; }
.wk-login-field { display: grid; gap: 8px; font-size: 13px; color: #5a6850; }
.wk-login-field input { width: 100%; height: 45px; padding: 10px 13px; border: 1px solid #dce2d3; background: #fff; border-radius: 5px; font: inherit; color: #2c402d; transition: border-color 140ms; }
.wk-login-field input:focus { border-color: #4c8253; }
.wk-login-field input::placeholder { color: #a5ad9b; font-size: 12px; }
.wk-login-field small { color: #8e9a81; font-size: 10px; }
.wk-login-submit { width: 100%; margin-top: 5px; height: 45px; }
.wk-login-form .wk-message { margin-bottom: 0; }
.wk-login-note { display: flex; justify-content: center; gap: 6px; margin-top: 22px; color: #8d9a82; font-size: 10px; }
.wk-login-footer { text-align: center; color: #9da691; font-size: 10px; }
.wk-login-mobile-brand { display: none; }

/* Existing modal workflows retain their behavior and adopt the workspace scale. */
body:has(.wk-app) .dashboard-modal-backdrop { backdrop-filter: none; background: #10281fb3; }
body:has(.wk-app) .dashboard-modal-content { border-radius: 12px; font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif; }
body:has(.wk-app) .dashboard-modal-header .modal-title { font-size: 21px; font-weight: 600; color: #273e2b; }
body:has(.wk-app) :is(.dashboard-kicker, .dashboard-template-tag) { border-radius: 5px; font-weight: 500; }
body:has(.wk-app) :is(.dashboard-alert, .dashboard-template-item, .dashboard-template-url, .dashboard-card-qr-panel, .dashboard-card-guide-panel, .dashboard-customer-service-card) { border-radius: 8px; box-shadow: none; }
body:has(.wk-app) .dashboard-modal-body { background: #fcfdf9; }
body:has(.wk-app) .dashboard-btn-primary { background: #237358; box-shadow: none; }
body:has(.wk-app) .dashboard-template-item:hover { transform: none; box-shadow: none; }

/* The legacy card editor shares the same navigation and surface tokens. */
body.link-config-page { --lc-bg: #f7f8f4; --lc-line: #e5e8e1; --lc-text: #253a35; --lc-muted: #77817b; --lc-primary: #237358; --lc-primary-strong: #195c43; --lc-shadow: none; --lc-radius-xl: 10px; --lc-radius-lg: 8px; --lc-radius-md: 6px; background: #f7f8f4; }
.link-config-page .layout-container { margin-top: 0; }
.link-config-page .sidebar { width: 224px; top: var(--wk-notice-offset, 0px); margin-top: 0; background: #192e29; box-shadow: none; }
.link-config-page .sidebar-brand { padding: 28px 26px; border-bottom: 1px solid #3a4b40; }
.link-config-page .sidebar-brand h3 { font-size: 21px; letter-spacing: 3px; font-weight: 600; }
.link-config-page .sidebar-brand small { display: block; margin-top: 5px; color: #96af9a; font-size: 8px; letter-spacing: 1.5px; }
.link-config-page .sidebar-nav { padding: 24px 16px; }
.link-config-page .sidebar .nav-item { padding: 12px 14px; margin-bottom: 6px; border: 0; border-radius: 6px; color: #b6c5bb; font-size: 12px; }
.link-config-page .sidebar .nav-item:hover { background: #314c3d; color: #fff; }
.link-config-page .sidebar .nav-item .icon { font-size: 16px; }
.link-config-page .main-content { margin-left: 224px; margin-top: 0; min-width: 0; }
.link-config-page .main-container { min-height: calc(100vh - var(--wk-notice-offset, 0px)); }
.link-config-page .preview-section { width: clamp(290px, 28vw, 390px); top: var(--wk-notice-offset, 0px); height: calc(100vh - var(--wk-notice-offset, 0px)); background: #f1f4ec; padding: 27px 22px; }
.link-config-page .preview-section::before, .link-config-page .page-hero::after { display: none; }
.link-config-page .preview-title { font-size: 22px; font-weight: 550; }
.link-config-page .preview-subtitle, .link-config-page .page-subtitle { font-size: 12px; }
.link-config-page .config-section { min-width: 0; padding: 28px; background: #f7f8f4; }
.link-config-page .page-hero { background: none; border: 0; padding: 0 0 24px; border-radius: 0; border-bottom: 1px solid var(--wk-line); }
.link-config-page .page-hero-meta { min-width: 180px; gap: 8px; }
.link-config-page .meta-pill { border: 0; background: none; box-shadow: none; padding: 5px 0; font-size: 11px; font-weight: 400; color: #71806a; }
.link-config-page .page-title { font-size: 27px; font-weight: 550; }
.link-config-page .panel-kicker { padding: 4px 8px; font-size: 10px; font-weight: 500; letter-spacing: .5px; border-radius: 4px; }
.link-config-page .config-block { background: #fff; box-shadow: none; border: 1px solid var(--wk-line); border-radius: 8px; }
.link-config-page .config-block-title { font-size: 15px; font-weight: 600; }
.link-config-page .strategy-grid { gap: 10px; }
.link-config-page .strategy-card { padding: 14px; border-radius: 6px; box-shadow: none; background: #fff; }
.link-config-page .strategy-card-index { width: 27px; height: 27px; border-radius: 4px; font-size: 11px; }
.link-config-page .strategy-card-name { font-size: 12px; }
.link-config-page .strategy-card p { font-size: 11px; line-height: 1.7; }
.link-config-page .option-card { border-radius: 6px; box-shadow: none; background: #fff; }
.link-config-page .option-card:hover { transform: none; box-shadow: none; }
.link-config-page .option-card.selected { border-color: #538162; background: #f0f6ec; box-shadow: 0 0 0 1px #538162; }
.link-config-page .option-card::after { display: none; }
.link-config-page .option-card-title { font-size: 13px; font-weight: 600; }
.link-config-page .option-card-desc { font-size: 11px; }
.link-config-page .preview-note { background: #e7eddf; border-color: #d8e2cc; color: #687957; backdrop-filter: none; font-size: 11px; }
.link-config-page :is(.form-control, .form-select, .btn) { border-radius: 6px; font-size: 13px; }
.link-config-page .btn-success, .link-config-page .btn-primary { background: #237358; border-color: #237358; box-shadow: none; }
.link-config-page .form-actions { box-shadow: none; border-top: 1px solid var(--wk-line); }
.link-config-page .bottom-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; border-radius: 8px; padding: 14px; background: #fcfdf9; border: 1px solid var(--wk-line); box-shadow: none; backdrop-filter: none; }
.link-config-page .bottom-actions .btn { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.link-config-page .phone-preview { border-color: #233a2c; box-shadow: 0 12px 25px #253a3512; }

@media (min-width: 1600px) {
  .wk-content { padding: 45px 48px 0; }
  .wk-workbench { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .wk-card-row { min-height: 96px; }
  .wk-table-labels, .wk-card-row { grid-template-columns: minmax(180px, 1fr) 86px 96px 135px 95px; gap: 20px; }
}
@media (max-width: 1279px) {
  .wk-sidebar { width: 206px; }
  .wk-main { margin-left: 206px; }
  .wk-content { padding: 29px 25px 0; }
  .wk-topbar { padding: 0 25px; }
  .wk-workbench { grid-template-columns: minmax(0, 1fr); }
  .wk-guide { grid-template-columns: 1fr 1fr; gap: 20px; }
  .wk-connect-panel { grid-row: span 2; }
  .wk-share-illustration { max-width: 260px; }
  .wk-connect-panel h2 br { display: none; }
  .wk-metric { padding: 17px; }
  .wk-heading h1 { font-size: 26px; }
  .wk-login-story { padding: 42px 38px 28px; }
}
@media (max-width: 960px) {
  .wk-heading { align-items: flex-start; flex-direction: column; }
  .wk-heading-actions { padding-top: 0; }
  .wk-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-table-labels, .wk-card-row { grid-template-columns: minmax(150px, 1fr) 65px 70px 84px; gap: 8px; padding-left: 16px; padding-right: 16px; }
  .wk-table-labels > span:nth-child(4), .wk-card-expiry { display: none; }
  .wk-inline-expiry { display: block; color: #7d8778; font-size: 10px; margin-top: 4px; }
  .wk-sync-status { display: none; }
  .wk-library-toolbar { flex-wrap: wrap; }
  .wk-search { flex: 1; min-width: 155px; }
  .wk-login-content { padding: 36px; }
  .link-config-page .main-container { flex-direction: column; }
  .link-config-page .preview-section { position: static; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--wk-line); }
  .link-config-page .config-section { width: 100%; }
}
@media (max-width: 767px) {
  .wk-sidebar { display: none; }
  .wk-main { margin-left: 0; }
  .wk-topbar { height: 61px; padding: 0 20px; justify-content: flex-start; gap: 14px; }
  .wk-breadcrumb { gap: 9px; }
  .wk-topbar-end { margin-left: auto; gap: 13px; }
  .wk-product-label { display: none; }
  .wk-mobile-menu { display: block; }
  .wk-mobile-menu summary { display: grid; place-items: center; width: 27px; height: 34px; list-style: none; font-size: 23px; cursor: pointer; }
  .wk-mobile-menu nav { position: absolute; z-index: 105; top: 55px; left: 16px; width: 245px; padding: 22px 15px; border: 1px solid #3d5543; border-radius: 8px; background: #192e29; box-shadow: 0 12px 30px #203c2538; }
  .wk-mobile-account { border-top: 1px solid #405348; padding: 17px 14px 0; margin-top: 16px; color: #e5ede7; }
  .wk-mobile-account small { display: block; margin-top: 3px; color: #9db5a6; font-size: 11px; }
  .wk-mobile-account button { display: flex; align-items: center; gap: 9px; border: 0; padding: 15px 0 0; background: none; color: #b7c9be; font-size: 12px; }
  .wk-content { padding: 25px 18px 0; }
  .wk-heading { gap: 18px; margin-bottom: 23px; }
  .wk-heading h1 { font-size: 25px; letter-spacing: -1px; }
  .wk-heading p { max-width: 310px; font-size: 12px; line-height: 1.9; }
  .wk-heading-actions { width: 100%; }
  .wk-heading-actions .wk-button-primary { margin-left: auto; }
  .wk-metrics { gap: 10px; margin-bottom: 20px; }
  .wk-metric { padding: 15px; }
  .wk-metric > strong { font-size: 29px; }
  .wk-metric-caption { font-size: 10px; }
  .wk-metric-caption small { display: none; }
  .wk-library-heading { padding: 18px 16px 15px; }
  .wk-library-toolbar { padding: 0 16px 15px; gap: 12px; }
  .wk-status-filters { width: 100%; }
  .wk-status-filters button { flex: 1; justify-content: center; padding: 7px 8px; }
  .wk-search { width: 100%; flex: auto; padding: 9px 10px; }
  .wk-search input { font-size: 12px; }
  .wk-table-labels { display: none; }
  .wk-card-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 10px; padding: 17px 16px; }
  .wk-card-identity { grid-column: 1; gap: 10px; }
  .wk-card-row > :nth-child(2) { justify-self: end; }
  .wk-card-reach { display: flex; align-items: baseline; gap: 12px; }
  .wk-card-actions { justify-self: end; }
  .wk-copy-button { min-height: 33px; padding: 5px 11px; font-size: 11px !important; }
  .wk-card-menu summary { min-width: 28px; min-height: 33px; display: grid; place-items: center; }
  .wk-pagination { padding: 15px 16px; gap: 10px; font-size: 9px; }
  .wk-pagination > div { gap: 9px; }
  .wk-pagination button { width: 30px; height: 30px; }
  .wk-guide { grid-template-columns: 1fr; }
  .wk-connect-panel { padding: 25px; }
  .wk-connect-panel .wk-eyebrow { font-size: 7px; }
  .wk-share-illustration { margin-left: auto; margin-right: auto; }
  .wk-footer span:last-child { display: none; }
  .wk-footer { justify-content: center; padding: 27px 0; }
  .wk-message { align-items: flex-start; flex-direction: column; }
  .wk-message button { margin-left: 0; }
  .wk-skip-link { left: 20px; }
  .wk-login { display: flex; flex-direction: column; }
  .wk-login-story { display: none; }
  .wk-login-content { min-height: 100vh; min-height: 100svh; padding: 27px 27px 20px; }
  .wk-login-mobile-brand { display: block; color: #2a4935; }
  .wk-login-mobile-brand .wk-brand strong { font-size: 19px; }
  .wk-login-top { align-items: center; justify-content: space-between; gap: 16px; }
  .wk-login-form { padding: 55px 0; }
  .wk-login-field input { font-size: 16px; }
  .link-config-page .main-content { margin-left: 0; }
  .link-config-page .sidebar { width: 224px; }
  .link-config-page .config-section { padding: 20px 16px; }
  .link-config-page .page-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-app *, .wk-login *, .link-config-page * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
