:root {
  --ink: #17233a;
  --ink-soft: #58657a;
  --line: #e7ebf1;
  --canvas: #f5f7fa;
  --card: #ffffff;
  --navy: #16283f;
  --navy-2: #203a58;
  --teal: #18a996;
  --teal-dark: #0f8879;
  --teal-soft: #e9f8f5;
  --blue: #3b74e7;
  --blue-soft: #edf3ff;
  --amber: #e79a2b;
  --amber-soft: #fff7e8;
  --red: #dc5a63;
  --red-soft: #fff0f1;
  --green: #22a56f;
  --shadow: 0 12px 35px rgba(25, 45, 72, .08);
  --radius: 16px;
  font-family: "Microsoft YaHei", "PingFang SC", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: white; background: linear-gradient(145deg, var(--teal), #4fc5b3); font-weight: 800; box-shadow: 0 8px 18px rgba(24, 169, 150, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; letter-spacing: 3px; }
.brand small { margin-top: 2px; font-size: 8px; letter-spacing: 1.3px; opacity: .6; }

/* Login */
.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(500px, 1.15fr) minmax(500px, .85fr); background: #fff; }
.login-visual { position: relative; overflow: hidden; padding: 46px 58px; color: white; background: radial-gradient(circle at 18% 78%, rgba(45, 203, 180, .24), transparent 26%), radial-gradient(circle at 85% 12%, rgba(84, 129, 196, .25), transparent 26%), linear-gradient(138deg, #14283f, #1e3a58 62%, #19344c); }
.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.login-visual::before { width: 520px; height: 520px; left: -210px; bottom: -250px; }
.login-visual::after { width: 360px; height: 360px; right: -140px; top: -140px; }
.brand-light .brand-mark { color: var(--navy); background: #d8fff7; }
.brand-light small { opacity: .48; }
.login-copy { position: relative; z-index: 1; max-width: 680px; margin: 17vh auto 0; }
.eyebrow { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #bfece4; font-size: 13px; letter-spacing: 1px; background: rgba(255,255,255,.05); }
.login-copy h1 { margin: 26px 0 20px; font-size: clamp(44px, 5vw, 74px); line-height: 1.14; letter-spacing: -3px; }
.login-copy h1 em { color: #65d8c6; font-style: normal; }
.login-copy > p { max-width: 520px; color: rgba(255,255,255,.65); font-size: 17px; line-height: 1.8; }
.mini-flow { display: flex; align-items: center; margin-top: 64px; }
.mini-flow i { width: 38px; height: 1px; background: rgba(255,255,255,.2); }
.mini-node { padding: 9px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: rgba(255,255,255,.55); font-size: 12px; background: rgba(255,255,255,.04); }
.mini-node.active { border-color: rgba(80, 220, 196, .45); color: #bff7ed; background: rgba(24,169,150,.15); }
.login-visual-foot { position: absolute; bottom: 35px; color: rgba(255,255,255,.36); font-size: 12px; letter-spacing: 1px; }
.login-panel { display: grid; place-items: center; padding: 50px; }
.login-card { width: min(410px, 100%); }
.mobile-brand { display: none; }
.site-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-soft); font-size: 13px; }
.site-pill b { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.login-card h2 { margin: 22px 0 7px; font-size: 32px; }
.login-card > p { margin: 0 0 29px; }
.field-label { display: grid; gap: 9px; margin: 17px 0; color: #354259; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #dfe5ec; border-radius: 10px; outline: none; color: var(--ink); background: white; transition: .2s; }
input, select { height: 44px; padding: 0 13px; }
textarea { min-height: 98px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,169,150,.1); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; }
.button.primary { color: white; background: var(--teal); box-shadow: 0 9px 20px rgba(24,169,150,.2); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { color: var(--ink); border-color: var(--line); background: white; }
.button.danger { color: var(--red); border-color: #ffd6d9; background: var(--red-soft); }
.button.wide { width: 100%; justify-content: space-between; height: 48px; margin-top: 8px; padding: 0 19px; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.demo-account-title { position: relative; margin: 27px 0 16px; text-align: center; font-size: 12px; color: #9aa4b3; }
.demo-account-title::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.demo-account-title span { position: relative; padding: 0 11px; background: white; }
.demo-accounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.demo-account { padding: 9px 5px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); background: #fafbfc; font-size: 12px; }
.demo-account:hover { color: var(--teal-dark); border-color: #bce7df; background: var(--teal-soft); }
.login-hint { margin-top: 17px !important; text-align: center; color: #98a2b0; font-size: 12px; line-height: 1.6; }

/* App shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 232px; display: flex; flex-direction: column; padding: 27px 18px 20px; color: white; background: linear-gradient(180deg, var(--navy), #192f49); }
.sidebar-brand { padding: 0 9px 24px; }
.sidebar-brand .brand-mark { width: 34px; height: 34px; }
.sidebar-brand strong { font-size: 18px; }
.tenant-card { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; padding: 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.05); }
.tenant-card .tenant-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #99e8dc; background: rgba(24,169,150,.16); font-size: 12px; font-weight: 700; }
.tenant-card small, .tenant-card strong { display: block; }
.tenant-card small { margin-bottom: 2px; color: rgba(255,255,255,.4); font-size: 10px; }
.tenant-card strong { font-size: 12px; font-weight: 600; }
.tenant-card i { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #49d1b8; box-shadow: 0 0 0 4px rgba(73,209,184,.1); }
.main-nav { display: grid; gap: 5px; }
.main-nav button { position: relative; display: flex; align-items: center; gap: 12px; height: 43px; padding: 0 13px; border: 0; border-radius: 9px; color: rgba(255,255,255,.62); background: transparent; text-align: left; font-size: 14px; }
.main-nav button:hover { color: white; background: rgba(255,255,255,.05); }
.main-nav button.active { color: white; background: linear-gradient(90deg, rgba(24,169,150,.28), rgba(24,169,150,.08)); }
.main-nav button.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 21px; border-radius: 0 3px 3px 0; background: #50d1bd; }
.nav-icon { display: grid; place-items: center; width: 21px; height: 21px; color: #a8bdce; font-size: 17px; }
.main-nav button.active .nav-icon { color: #6fe1cf; }
.main-nav button b { display: none; margin-left: auto; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 10px; color: #d8fff7; background: rgba(24,169,150,.35); line-height: 19px; text-align: center; font-size: 10px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.system-state { display: flex; align-items: center; gap: 10px; padding: 8px; }
.system-state > span { width: 8px; height: 8px; border-radius: 50%; background: #4ad2a5; box-shadow: 0 0 0 5px rgba(74,210,165,.1); }
.system-state strong, .system-state small { display: block; }
.system-state strong { font-size: 11px; }
.system-state small { margin-top: 3px; color: rgba(255,255,255,.34); font-size: 9px; }
.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; justify-content: space-between; height: 70px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.breadcrumb span { color: #8993a3; }
.breadcrumb b { color: #c1c8d1; font-weight: 400; }
.breadcrumb strong { font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { position: relative; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: #607086; background: white; }
.notification-button i { display: none; position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border: 1px solid white; border-radius: 50%; background: var(--red); }
.user-menu { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: var(--teal-dark); background: var(--teal-soft); font-weight: 800; }
.user-menu strong, .user-menu small { display: block; }
.user-menu strong { font-size: 12px; }
.user-menu small { margin-top: 2px; color: #8d98a7; font-size: 10px; }
.user-menu button { margin-left: 5px; border: 0; color: #98a2b0; background: transparent; font-size: 11px; }
.mobile-menu { display: none; }
.page-root { padding: 30px 32px 48px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.5px; }
.page-heading p { margin: 0; color: var(--ink-soft); font-size: 13px; }

/* Content */
.hero-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 410px; min-height: 195px; padding: 31px 34px; border-radius: 18px; color: white; background: linear-gradient(118deg, #17314c, #22516a); box-shadow: var(--shadow); }
.hero-card::after { content: ""; position: absolute; right: -90px; top: -170px; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { padding: 5px 10px; font-size: 10px; }
.hero-copy h2 { margin: 15px 0 9px; font-size: 27px; }
.hero-copy p { margin: 0; color: rgba(255,255,255,.58); font-size: 13px; }
.hero-copy .button { margin-top: 21px; min-height: 37px; font-size: 12px; }
.hero-flow { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.hero-flow .flow-dot { display: grid; place-items: center; width: 82px; height: 82px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: rgba(255,255,255,.7); background: rgba(255,255,255,.05); text-align: center; font-size: 11px; }
.hero-flow .flow-dot.active { border-color: rgba(76,218,195,.45); color: #c5fff5; background: rgba(24,169,150,.16); }
.hero-flow i { width: 34px; height: 1px; background: rgba(255,255,255,.18); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin: 20px 0; }
.stats-grid.student-stats { grid-template-columns: repeat(2, 1fr); }
.stat-card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.stat-card::before { content: ""; position: absolute; left: 0; top: 21px; width: 3px; height: 28px; border-radius: 0 3px 3px 0; background: var(--accent, var(--teal)); }
.stat-card small { color: var(--ink-soft); font-size: 11px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 27px; }
.stat-card span { position: absolute; right: 16px; top: 17px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--accent, var(--teal)); background: color-mix(in srgb, var(--accent, var(--teal)) 10%, white); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 5px 20px rgba(20,42,67,.03); }
.card-head { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; }
.card-head button { border: 0; color: var(--teal-dark); background: none; font-size: 11px; }
.list { padding: 4px 0; }
.list-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 69px; padding: 10px 20px; border-bottom: 1px solid #f0f2f5; cursor: pointer; transition: .18s; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: #fafcfd; }
.item-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--teal-dark); background: var(--teal-soft); font-weight: 700; }
.item-main { min-width: 0; }
.item-main strong { display: block; overflow: hidden; margin-bottom: 5px; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.item-main small { color: #8b96a5; font-size: 10px; }
.item-side { text-align: right; }
.item-side small { display: block; margin-top: 6px; color: #9da6b2; font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.pending { color: var(--amber); background: var(--amber-soft); }
.status.approved, .status.complete { color: var(--green); background: #ebf8f1; }
.status.rejected, .status.error { color: var(--red); background: var(--red-soft); }
.status.withdrawn, .status.canceled { color: #7c8796; background: #f0f2f5; }
.status.published { color: var(--green); background: #ebf8f1; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 17px; }
.quick-actions.student-quick-actions { grid-template-columns: repeat(3, 1fr); }
.quick-action { min-height: 91px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; text-align: left; }
.quick-action span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 11px; border-radius: 8px; color: var(--teal-dark); background: var(--teal-soft); }
.quick-action strong { display: block; font-size: 12px; }
.quick-action small { display: block; margin-top: 4px; color: #929dab; font-size: 9px; }
.empty-state { display: grid; place-items: center; min-height: 230px; padding: 30px; color: #8f9aaa; text-align: center; }
.empty-state span { display: grid; place-items: center; width: 55px; height: 55px; margin-bottom: 13px; border-radius: 16px; color: var(--teal); background: var(--teal-soft); font-size: 23px; }
.empty-state strong { color: #5d6a7c; font-size: 13px; }
.empty-state p { margin: 6px 0 0; font-size: 11px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.form-card { padding: 25px; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; font-size: 15px; }
.form-section-title span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.required-mark::after { content: " *"; color: var(--red); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 17px; padding-top: 20px; border-top: 1px solid var(--line); }
.flow-preview { padding: 22px; }
.vertical-flow { margin-top: 20px; }
.vertical-node { position: relative; display: flex; gap: 12px; min-height: 78px; }
.vertical-node:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 33px; bottom: 0; width: 1px; background: #dce4e9; }
.vertical-node .node-dot { position: relative; z-index: 1; display: grid; place-items: center; flex: 0 0 33px; height: 33px; border: 1px solid #dbe5e8; border-radius: 50%; color: #78909b; background: white; font-size: 10px; }
.vertical-node.approval .node-dot { color: var(--teal-dark); border-color: #b9e6de; background: var(--teal-soft); }
.vertical-node strong, .vertical-node small { display: block; }
.vertical-node strong { margin: 4px 0 5px; font-size: 12px; }
.vertical-node small { color: #929dab; font-size: 9px; }

/* Tables */
.table-card { overflow: hidden; }
.catalog-notice { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 14px 17px; border: 1px solid #cfe8e3; border-radius: 12px; color: #3f5d63; background: #f2fbf9; }
.catalog-notice > span { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; color: white; background: var(--teal); font-size: 12px; font-weight: 800; }
.catalog-notice strong { display: block; font-size: 12px; }
.catalog-notice p { margin: 4px 0 0; color: #6f8186; font-size: 10px; }
.catalog-notice.warning { border-color: #f0d9b5; background: #fffaf1; }
.catalog-notice.warning > span { background: var(--amber); }
.catalog-count { color: #8e99a7; font-size: 10px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.catalog-toolbar h3 { margin: 0 0 5px; font-size: 14px; }
.catalog-search { display: flex; align-items: center; gap: 8px; width: min(410px, 48%); }
.catalog-search input { height: 36px; font-size: 11px; }
.catalog-source { display: inline-flex; padding: 4px 8px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; font-weight: 700; }
.heading-actions { display: flex; gap: 9px; }
td code { padding: 4px 7px; border-radius: 6px; color: #526276; background: #f3f5f7; font-family: Consolas, monospace; font-size: 10px; }
.table-tools { display: flex; gap: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 45px; padding: 0 17px; color: #8792a1; background: #fafbfc; text-align: left; font-size: 10px; font-weight: 600; white-space: nowrap; }
td { height: 62px; padding: 9px 17px; border-top: 1px solid #f0f2f5; font-size: 12px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fbfcfd; }
.cell-title strong, .cell-title small { display: block; }
.cell-title strong { margin-bottom: 4px; }
.cell-title small { color: #929dab; font-size: 9px; }
.text-button { border: 0; color: var(--teal-dark); background: transparent; font-size: 11px; }
.permission-table th:not(:first-child), .permission-table td:not(:first-child) { text-align: center; }
.permission-table td:first-child { min-width: 170px; }
.permission-check { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; }
.permission-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.permission-check span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #dbe2e8; border-radius: 7px; color: transparent; background: #f8fafb; cursor: pointer; transition: .18s; }
.permission-check input:checked + span { color: white; border-color: var(--teal); background: var(--teal); box-shadow: 0 5px 12px rgba(24,169,150,.18); }
.permission-check:hover span { border-color: #9fd8cf; }

/* Designer */
.designer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 650px; overflow: hidden; }
.designer-canvas { padding: 26px; background-color: #f7f9fb; background-image: radial-gradient(#dfe5eb 1px, transparent 1px); background-size: 18px 18px; }
.designer-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.designer-toolbar .version { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: #687689; background: white; font-size: 10px; }
.designer-flow { width: min(560px, 100%); margin: 0 auto; }
.designer-node { position: relative; width: 100%; max-width: 420px; margin: 0 auto; border: 1px solid #dfe6ec; border-radius: 12px; background: white; box-shadow: 0 7px 18px rgba(30,54,78,.05); cursor: pointer; }
.designer-node.selected { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,169,150,.09); }
.designer-node.fixed { max-width: 180px; border-radius: 99px; text-align: center; }
.designer-node-main { display: flex; align-items: center; gap: 13px; padding: 15px 17px; }
.designer-node-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--teal-dark); background: var(--teal-soft); font-size: 13px; }
.designer-node strong, .designer-node small { display: block; }
.designer-node strong { margin-bottom: 5px; font-size: 13px; }
.designer-node small { color: #8d98a7; font-size: 10px; }
.designer-node-actions { display: flex; margin-left: auto; }
.designer-node-actions button { width: 26px; height: 26px; border: 0; color: #96a0ad; background: transparent; }
.flow-interface-section { margin-top: 20px; padding: 22px; }
.flow-interface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.flow-interface-heading h3 { margin: 3px 0 5px; color: var(--text); font-size: 19px; }
.flow-interface-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.flow-interface-heading p code { color: #31547a; }
.section-kicker { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.flow-interface-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow-interface-card { min-width: 0; padding: 16px; border: 1px solid #e0e7ef; border-radius: 12px; background: #fbfcfe; }
.flow-interface-card-head { display: flex; align-items: center; gap: 10px; }
.flow-interface-card-head > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.flow-interface-card-head strong { color: #21374c; font-size: 14px; }
.flow-interface-card-head small { overflow: hidden; color: #7c8a99; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.api-method { flex: 0 0 48px; display: inline-grid; place-items: center; height: 26px; border-radius: 7px; color: #fff; background: #2374d8; font-size: 10px; font-weight: 800; }
.api-method.post { background: #0f8a72; }
.api-path { display: block; margin: 13px 0 10px; padding: 9px 10px; overflow-wrap: anywhere; border: 1px solid #e2e8ef; border-radius: 7px; color: #2c567d; background: #fff; font-size: 11px; line-height: 1.5; }
.flow-interface-card > p { min-height: 42px; margin: 0; color: #637385; font-size: 12px; line-height: 1.65; }
.api-meta { display: flex; flex-direction: column; gap: 4px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e5eaf0; color: #8793a1; font-size: 10px; }
.flow-connector { position: relative; width: 1px; height: 45px; margin: 0 auto; background: #cad5dd; }
.flow-connector::after { content: "⌄"; position: absolute; left: -6px; bottom: -3px; color: #95a5b0; font-size: 12px; }
.add-node { display: grid; place-items: center; width: 26px; height: 26px; margin: 9px auto; border: 1px solid #b9e0d9; border-radius: 50%; color: var(--teal-dark); background: white; font-size: 16px; }
.property-panel { padding: 24px; border-left: 1px solid var(--line); background: white; }
.property-panel h3 { margin: 0; font-size: 15px; }
.property-panel > p { margin: 7px 0 23px; color: #929dab; font-size: 10px; }
.property-group { margin: 17px 0; }
.property-group > label { display: block; margin-bottom: 8px; color: #566478; font-size: 11px; font-weight: 600; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: grid; place-items: center; min-height: 37px; border: 1px solid var(--line); border-radius: 8px; color: #6d7889; font-size: 10px; cursor: pointer; }
.choice input:checked + span { color: var(--teal-dark); border-color: #9fdbd1; background: var(--teal-soft); }
.check-list { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.check-item { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 0 11px; border-bottom: 1px solid #f0f2f5; font-size: 11px; }
.check-item:last-child { border-bottom: 0; }
.check-item input { width: 15px; height: 15px; accent-color: var(--teal); }
.property-placeholder { display: grid; place-items: center; min-height: 430px; color: #9aa4b1; text-align: center; }
.property-placeholder span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 15px; color: var(--teal); background: var(--teal-soft); font-size: 22px; }

/* Detail and notifications */
.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,24,39,.5); backdrop-filter: blur(2px); }
.modal-panel { position: relative; overflow: auto; width: min(960px, 95vw); max-height: 92vh; border-radius: 17px; background: white; box-shadow: 0 28px 80px rgba(10,24,40,.24); }
.modal-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 69px; padding: 0 25px; border-bottom: 1px solid var(--line); background: white; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-close { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #7a8797; background: #f3f5f7; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.3fr) 330px; }
.detail-main { padding: 24px; }
.detail-side { padding: 24px; border-left: 1px solid var(--line); background: #fafbfc; }
.detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding: 18px; border-radius: 12px; background: #f7fafb; }
.detail-summary strong, .detail-summary small { display: block; }
.detail-summary strong { margin-bottom: 5px; font-size: 15px; }
.detail-summary small { color: #8c97a5; font-size: 10px; }
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line); }
.detail-field { min-height: 66px; padding: 12px 14px; background: white; }
.detail-field.wide { grid-column: span 2; }
.detail-field small, .detail-field strong { display: block; }
.detail-field small { margin-bottom: 7px; color: #909aa8; font-size: 9px; }
.detail-field strong { font-size: 12px; font-weight: 500; white-space: pre-wrap; }
.timeline { margin-top: 20px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 11px; min-height: 72px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: #dce3e8; }
.timeline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #dbe3e8; border-radius: 50%; color: #7f8e9e; background: white; font-size: 10px; }
.timeline-item.approve .timeline-dot, .timeline-item.complete .timeline-dot { color: var(--green); border-color: #bae5d2; background: #ecf9f3; }
.timeline-item.reject .timeline-dot, .timeline-item.error .timeline-dot { color: var(--red); border-color: #f2c4c8; background: var(--red-soft); }
.timeline-content strong, .timeline-content small { display: block; }
.timeline-content strong { margin: 3px 0 4px; font-size: 11px; }
.timeline-content p { margin: 4px 0; color: #687589; font-size: 10px; }
.timeline-content small { color: #9ba4b0; font-size: 9px; }
.approval-box { margin-top: 20px; padding: 17px; border: 1px solid #dbe9e6; border-radius: 12px; background: #f7fcfb; }
.approval-box h4 { margin: 0 0 11px; font-size: 12px; }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.notification-list { display: grid; gap: 10px; }
.notification-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 13px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.notification-item.unread { border-left: 3px solid var(--teal); }
.notification-item .item-icon { width: 36px; height: 36px; }
.notification-item strong, .notification-item small { display: block; }
.notification-item strong { margin-bottom: 5px; font-size: 12px; }
.notification-item small { color: #8e99a7; font-size: 10px; }

.toast-root { position: fixed; z-index: 200; right: 24px; top: 22px; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 380px; padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; background: white; box-shadow: var(--shadow); font-size: 12px; animation: toast-in .25s ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } }
.loading { display: grid; place-items: center; min-height: 400px; color: #8995a4; font-size: 12px; }
.loading::before { content: ""; width: 25px; height: 25px; margin-bottom: 12px; border: 2px solid #dbe5e7; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .login-view { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .mobile-brand { display: flex; margin-bottom: 34px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { grid-template-columns: 1fr 330px; }
  .content-grid, .form-layout { grid-template-columns: 1fr; }
  .flow-preview { order: -1; }
  .flow-interface-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: .25s; }
  .sidebar.open { transform: translateX(0); }
  .main-area { grid-column: auto; }
  .mobile-menu { display: grid; }
  .breadcrumb { display: none; }
  .topbar { height: 62px; padding: 0 17px; }
  .user-menu span:not(.avatar) { display: none; }
  .page-root { padding: 20px 16px 35px; }
  .hero-card { display: block; min-height: auto; padding: 25px; }
  .hero-flow { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .content-grid { grid-template-columns: 1fr; }
  .form-grid { display: block; }
  .designer-grid { grid-template-columns: 1fr; }
  .property-panel { border-left: 0; border-top: 1px solid var(--line); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-side { border-top: 1px solid var(--line); border-left: 0; }
  .demo-accounts { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { width: 100%; }
  .flow-interface-heading { flex-direction: column; }
  .flow-interface-grid { grid-template-columns: 1fr; }
}

/* Cloud console theme */
:root {
  --ink: #1f2329;
  --ink-soft: #5f6b7a;
  --line: #d9dfe8;
  --canvas: #f2f3f5;
  --card: #ffffff;
  --navy: #171d2b;
  --navy-2: #20293b;
  --teal: #006eff;
  --teal-dark: #0052d9;
  --teal-soft: #e8f3ff;
  --blue: #006eff;
  --blue-soft: #e8f3ff;
  --amber: #ed7b2f;
  --amber-soft: #fff3e8;
  --red: #e34d59;
  --red-soft: #fff0f1;
  --green: #00a870;
  --shadow: 0 3px 10px rgba(31, 35, 41, .06);
  --radius: 4px;
}

body { color: var(--ink); background: var(--canvas); }
.brand { gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 3px; background: #006eff; box-shadow: none; font-size: 15px; }
.brand strong { font-size: 17px; letter-spacing: 1px; }
.brand small { margin-top: 1px; font-size: 8px; letter-spacing: .8px; }

/* Console login */
.login-view { grid-template-columns: minmax(520px, 1.2fr) minmax(420px, .8fr); background: #fff; }
.login-visual { padding: 38px 52px; background: radial-gradient(circle at 26% 88%, rgba(0,110,255,.28), transparent 32%), linear-gradient(135deg, #151d2d, #25334b 65%, #1c2b43); }
.brand-light .brand-mark { color: white; background: #006eff; }
.login-copy { margin-top: 16vh; }
.login-copy h1 { margin: 22px 0 16px; font-size: clamp(42px, 4.5vw, 66px); letter-spacing: -2px; }
.login-copy h1 em { color: #66b1ff; }
.eyebrow { border-radius: 2px; color: #b8d9ff; }
.mini-node, .site-pill, .demo-account, .field-label input { border-radius: 3px; }
.mini-node.active { border-color: rgba(102,177,255,.6); color: #d7ebff; background: rgba(0,110,255,.2); }
.login-panel { padding: 44px; }
.login-card h2 { font-size: 28px; }

/* Console shell */
.app-shell { grid-template-columns: 216px 1fr; }
.sidebar { width: 216px; padding: 20px 14px 16px; background: #171d2b; }
.sidebar-brand { min-height: 48px; padding: 0 8px 16px; }
.sidebar-brand .brand-mark { width: 30px; height: 30px; }
.sidebar-brand strong { font-size: 16px; }
.tenant-card { margin: 2px 0 16px; padding: 10px; border-color: rgba(255,255,255,.1); border-radius: 3px; background: #20293b; }
.tenant-card .tenant-icon { border-radius: 2px; color: #9ac8ff; background: rgba(0,110,255,.24); }
.tenant-card i { background: #00a870; box-shadow: none; }
.main-nav { gap: 2px; margin: 0 -14px; }
.main-nav button { height: 42px; padding: 0 22px; border-radius: 0; color: #aeb6c4; font-size: 13px; }
.main-nav button:hover { background: #20293b; }
.main-nav button.active { color: #fff; background: #006eff; }
.main-nav button.active::before { display: none; }
.nav-icon, .main-nav button.active .nav-icon { color: currentColor; }
.sidebar-foot { border-color: rgba(255,255,255,.1); }
.system-state > span { background: #00a870; box-shadow: none; }
.main-area { grid-column: 2; }
.topbar { height: 56px; padding: 0 24px; border-color: #d9dfe8; background: #fff; backdrop-filter: none; }
.breadcrumb { font-size: 13px; }
.icon-button, .avatar { border-radius: 3px; }
.avatar { color: #0052d9; background: #e8f3ff; }
.page-root { padding: 24px 24px 40px; }
.page-heading { align-items: center; margin-bottom: 18px; }
.page-heading h1 { margin-bottom: 5px; font-size: 22px; letter-spacing: 0; }
.page-heading p { font-size: 12px; }

/* Console components */
input, select, textarea { border-color: #cfd6e0; border-radius: 3px; }
input, select { height: 36px; }
input:focus, select:focus, textarea:focus { border-color: #006eff; box-shadow: 0 0 0 2px rgba(0,110,255,.12); }
.button { min-height: 36px; padding: 0 16px; border-radius: 3px; font-size: 13px; font-weight: 500; box-shadow: none; }
.button.primary { background: #006eff; box-shadow: none; }
.button.primary:hover { background: #0052d9; }
.button.secondary { border-color: #c9d1dc; }
.button.small { min-height: 30px; padding: 0 12px; font-size: 12px; }
.card { border-color: #d9dfe8; border-radius: 4px; box-shadow: none; }
.card-head { min-height: 52px; }
.hero-card { border-radius: 4px; background: linear-gradient(110deg, #1c2b43, #244a79); box-shadow: none; }
.stat-card, .quick-action, .catalog-notice, .notification-item, .approval-box { border-radius: 4px; }
.stat-card { box-shadow: none; }
.stat-card::before { background: var(--accent, #006eff); }
.catalog-toolbar { min-height: 60px; }
.catalog-source, .status { border-radius: 2px; }
th { height: 42px; color: #4e5969; background: #f5f7fa; font-size: 12px; }
td { height: 56px; font-size: 12px; }
tr.clickable:hover td { background: #f2f7ff; }
.text-button, .card-head button { color: #0052d9; }

/* Cloud-style workflow designer */
.designer-grid { grid-template-columns: minmax(560px, 1fr) 420px; min-height: 720px; border-radius: 4px; }
.designer-canvas { padding: 22px 28px 42px; background-color: #f5f7fa; background-image: linear-gradient(#e6eaf0 1px, transparent 1px), linear-gradient(90deg, #e6eaf0 1px, transparent 1px); background-size: 20px 20px; }
.designer-toolbar { height: 40px; margin-bottom: 22px; padding: 0 12px; border: 1px solid #d9dfe8; background: #fff; }
.designer-toolbar .version { padding: 0; border: 0; border-radius: 0; color: #4e5969; background: transparent; font-size: 12px; }
.designer-node { max-width: 440px; border-color: #cfd6e0; border-radius: 4px; box-shadow: 0 2px 6px rgba(31,35,41,.06); }
.designer-node:hover { border-color: #8ebcf8; }
.designer-node.selected { border-color: #006eff; box-shadow: 0 0 0 2px rgba(0,110,255,.12); }
.designer-node.fixed { max-width: 200px; border-radius: 4px; }
.designer-node-main { min-height: 62px; padding: 12px 14px; }
.designer-node-icon { width: 34px; height: 34px; border-radius: 3px; color: #0052d9; background: #e8f3ff; }
.designer-node strong { font-size: 13px; }
.designer-node small { font-size: 11px; }
.designer-node-actions button { border-radius: 2px; }
.designer-node-actions button:hover { color: #0052d9; background: #e8f3ff; }
.flow-connector { height: 42px; background: #aab5c4; }
.property-panel { overflow-y: auto; max-height: calc(100vh - 140px); padding: 0; border-left-color: #d9dfe8; }
.property-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 104px; padding: 18px 20px; border-bottom: 1px solid #d9dfe8; background: #fff; }
.property-head > div > span { display: block; margin-bottom: 6px; color: #86909c; font-size: 11px; }
.property-head h3 { margin: 0; color: #1d2129; font-size: 17px; }
.property-head p { margin: 7px 0 0; color: #86909c; font-size: 11px; }
.property-head code { color: #4e5969; font-family: Consolas, monospace; }
.property-status { flex: 0 0 auto; margin-top: 1px; padding: 3px 7px; border: 1px solid #9fe5c8; border-radius: 2px; color: #008858; background: #e8ffea; font-size: 10px; }
.property-config-title { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 15px 20px 3px; }
.property-config-title strong { font-size: 13px; }
.property-config-title span { color: #86909c; font-size: 10px; }
.property-group { margin: 14px 20px; }
.property-group > label { margin-bottom: 7px; color: #4e5969; font-size: 12px; }
.choice-row { gap: 6px; }
.choice span { min-height: 34px; border-radius: 3px; font-size: 11px; }
.choice input:checked + span { color: #0052d9; border-color: #006eff; background: #e8f3ff; }
.check-list { border-radius: 3px; }
.node-rule { padding: 10px 12px; border: 1px solid #d6e8ff; background: #f2f7ff; }
.node-rule > label { margin-bottom: 5px; color: #31547a; }
.node-rule p, .fixed-node-summary p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.7; }
.fixed-node-summary { margin: 16px 20px; padding: 12px; border: 1px solid #d9dfe8; background: #f7f8fa; }
.fixed-node-summary strong { display: block; margin-bottom: 6px; font-size: 12px; }

/* Interfaces live inside the selected node panel */
.node-api-section { margin-top: 20px; padding: 18px 20px 24px; border-top: 8px solid #f2f3f5; }
.node-api-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.section-kicker { color: #006eff; font-size: 9px; letter-spacing: .12em; }
.node-api-heading h4 { margin: 3px 0 0; font-size: 14px; }
.node-api-heading a { color: #0052d9; font-size: 11px; text-decoration: none; }
.node-api-heading a:hover { text-decoration: underline; }
.node-api-hint { margin: 8px 0 12px; color: #86909c; font-size: 10px; line-height: 1.6; }
.node-api-list { display: grid; gap: 10px; }
.node-api-card { min-width: 0; padding: 13px; border: 1px solid #d9dfe8; border-left: 3px solid #006eff; border-radius: 3px; background: #fff; box-shadow: 0 1px 3px rgba(31,35,41,.05); }
.node-api-card:has(.api-method.post) { border-left-color: #00a870; }
.node-api-card-head { display: flex; align-items: center; gap: 9px; }
.node-api-card-head > div { min-width: 0; }
.node-api-card-head strong, .node-api-card-head small { display: block; }
.node-api-card-head strong { color: #1d2129; font-size: 12px; }
.node-api-card-head small { overflow: hidden; margin-top: 2px; color: #86909c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.api-method { flex-basis: 42px; height: 23px; border-radius: 2px; background: #006eff; font-size: 9px; }
.api-method.post { background: #00a870; }
.node-api-card .api-path { margin: 10px 0 8px; padding: 8px; border-color: #d9dfe8; border-radius: 2px; color: #134f91; background: #f7f8fa; font-size: 10px; }
.node-api-card > p { margin: 0; color: #5f6b7a; font-size: 10px; line-height: 1.6; }
.node-api-scope { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #86909c; font-size: 9px; }
.node-api-scope code { overflow: hidden; padding: 2px 5px; color: #4e5969; background: #f2f3f5; font-family: Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.node-api-card .api-meta { gap: 3px; margin-top: 9px; padding-top: 8px; font-size: 9px; }
.node-api-empty { padding: 20px; color: #86909c; border: 1px dashed #cfd6e0; text-align: center; font-size: 11px; }

@media (max-width: 1180px) {
  .designer-grid { grid-template-columns: minmax(500px, 1fr) 380px; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 200px 1fr; }
  .sidebar { width: 200px; }
  .designer-grid { grid-template-columns: 1fr; }
  .property-panel { max-height: none; border-top: 1px solid #d9dfe8; border-left: 0; }
  .property-head { position: static; }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { width: 216px; }
  .main-area { grid-column: auto; }
  .page-root { padding: 16px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .designer-canvas { padding: 16px 12px 30px; }
  .property-panel { max-height: none; }
}

/* Readability, navigation icons and role-aware nodes */
body { font-size: 14px; line-height: 1.5; }
.brand-logo { display: block; flex: 0 0 auto; width: 36px; height: 36px; }
.sidebar-brand .brand-logo { width: 34px; height: 34px; }
.brand small { margin-top: 1px; font-size: 12px; letter-spacing: .55px; opacity: .72; }
.tenant-card { min-height: 42px; justify-content: flex-start; gap: 0; padding: 0 12px; }
.tenant-card > span { color: #aeb6c4; font-size: 13px; }
.tenant-card > strong { margin-left: 2px; color: #fff; font-size: 14px; font-weight: 600; }
.main-nav button { gap: 12px; font-size: 14px; }
.nav-icon { display: block; flex: 0 0 20px; width: 20px; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.main-nav button.active .nav-icon { color: #fff; }
.user-menu button { font-size: 12px; }

small { font-size: 12px !important; }
.page-heading p, .hero-copy p, .item-main strong, .empty-state p, .catalog-notice p,
.catalog-count, .catalog-search input, .catalog-source, td code, .text-button,
.designer-toolbar .version, .designer-node small, .section-kicker, .api-method,
.api-path, .api-meta, .property-head > div > span, .property-head p,
.property-status, .property-config-title span, .property-group > label,
.choice span, .check-item, .node-rule p, .fixed-node-summary p,
.node-api-heading a, .node-api-hint, .node-api-card-head small,
.node-api-card .api-path, .node-api-card > p, .node-api-scope,
.node-api-card .api-meta, .node-api-empty, .timeline-content p {
  font-size: 12px;
}
.page-heading h1 { font-size: 24px; }
.card-head h3, .catalog-toolbar h3, .form-section-title { font-size: 15px; }
.field-label, input, select, textarea, td { font-size: 14px; }
th { font-size: 13px; }
.status { font-size: 12px; font-weight: 600; }
.button { width: auto; white-space: nowrap; }
.flow-select { min-width: 280px; max-width: 460px; padding: 0 32px 0 12px; background-color: #fff; }
.catalog-search { display: grid; grid-template-columns: minmax(220px, 1fr) max-content; width: min(520px, 55%); }
.catalog-search input { min-width: 0; height: 38px; }
.catalog-search .button { min-width: 68px; height: 38px; padding: 0 18px; white-space: nowrap; }

.designer-node { --node-color: #00a6a6; overflow: hidden; border-left: 4px solid var(--node-color); }
.designer-node.node-start { --node-color: #00a870; }
.designer-node.node-end { --node-color: #6b57d2; }
.designer-node.role-users { --node-color: #6b57d2; }
.designer-node.role-generic { --node-color: #00a6a6; }
.designer-node.selected { border-color: var(--node-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--node-color) 16%, transparent); }
.designer-node.fixed { max-width: 250px; text-align: left; }
.designer-node-copy { flex: 1 1 auto; min-width: 0; }
.designer-node-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.designer-node-title strong { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.designer-node-icon { flex: 0 0 36px; width: 36px; height: 36px; color: var(--node-color); background: color-mix(in srgb, var(--node-color) 12%, #fff); font-weight: 700; }
.node-role-chip { flex: 0 0 auto; padding: 2px 7px; border: 1px solid color-mix(in srgb, var(--node-color) 28%, #fff); border-radius: 2px; color: var(--node-color); background: color-mix(in srgb, var(--node-color) 8%, #fff); font-size: 12px; line-height: 18px; }
.designer-node-copy > small { margin-top: 5px; color: #667085; }
.designer-node-actions { flex: 0 0 auto; }

@media (max-width: 760px) {
  .catalog-search { grid-template-columns: minmax(0, 1fr) max-content; width: 100%; }
  .catalog-search .button { min-width: 64px; padding: 0 14px; }
}

/* Unified enterprise suite theme — shared with the management headquarters. */
:root {
  --ink: #1d2129;
  --ink-soft: #4e5969;
  --line: #e5e6eb;
  --canvas: #f5f6f8;
  --card: #fff;
  --teal: #2468f2;
  --teal-dark: #1d56cf;
  --teal-soft: #edf4ff;
  --blue: #2468f2;
  --blue-soft: #edf4ff;
  --radius: 4px;
  --shadow: none;
}

.suite-brand-mark {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 4px;
  background: #2468f2;
}
.suite-brand-mark i { display: block; border-radius: 1px; background: #fff; }
.brand strong { color: #1d2129; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.brand small { color: #86909c; font-size: 11px; letter-spacing: 0; opacity: 1; }

.app-shell { grid-template-columns: 208px minmax(0, 1fr); }
.sidebar {
  width: 208px;
  padding: 0 10px 12px;
  color: #4e5969;
  background: #fff;
  border-right: 1px solid #e5e6eb;
}
.sidebar-brand { min-height: 56px; padding: 0 8px; gap: 10px; border-bottom: 1px solid #e5e6eb; }
.tenant-card {
  min-height: 38px;
  margin: 12px 0 6px;
  padding: 0 12px;
  color: #4e5969;
  border: 1px solid #e5e6eb;
  border-radius: 4px;
  background: #f7f8fa;
}
.tenant-card > span { color: #86909c; font-size: 12px; }
.tenant-card > strong { color: #1d2129; font-size: 12px; font-weight: 500; }
.main-nav { gap: 2px; padding-top: 4px; }
.main-nav button {
  height: 40px;
  gap: 10px;
  margin: 0;
  padding: 0 12px;
  color: #4e5969;
  border-radius: 4px;
  font-size: 14px;
}
.main-nav button:hover { color: #1d2129; background: #f7f8fa; }
.main-nav button.active { color: #2468f2; font-weight: 600; background: #edf4ff; }
.main-nav button.active::before {
  display: block;
  left: -10px;
  width: 3px;
  height: 24px;
  border-radius: 0 2px 2px 0;
  background: #2468f2;
}
.nav-icon, .main-nav button.active .nav-icon { color: currentColor; }
.main-nav button b { color: #2468f2; background: #dce9ff; }
.main-area { grid-column: 2; }
.topbar { height: 56px; padding: 0 24px; border-bottom-color: #e5e6eb; background: #fff; }
.breadcrumb b { color: #c9cdd4; }
.icon-button { width: 32px; height: 32px; border-radius: 4px; }
.avatar { width: 30px; height: 30px; color: #fff; background: #2468f2; border-radius: 50%; }
.page-root { padding: 28px 32px 40px; }
.page-heading h1 { color: #1d2129; font-size: 26px; font-weight: 600; }
.page-heading p { color: #86909c; font-size: 13px; }

.button, input, select, textarea, .card, .stat-card, .quick-action,
.catalog-notice, .notification-item, .approval-box, .designer-grid,
.designer-node, .designer-node.fixed, .node-api-card {
  border-radius: 4px;
  box-shadow: none;
}
.button.primary { background: #2468f2; box-shadow: none; }
.button.primary:hover { background: #1d56cf; }
input:focus, select:focus, textarea:focus { border-color: #2468f2; box-shadow: 0 0 0 2px rgba(36,104,242,.12); }
.text-button, .card-head button { color: #2468f2; }
.hero-card { border-radius: 4px; background: #224f8f; }
.designer-node { --node-color: #2468f2; }

.login-view { grid-template-columns: minmax(520px, 1.05fr) minmax(460px, .95fr); }
.login-visual {
  padding: 46px 58px;
  background: linear-gradient(145deg, #143866, #235a99);
}
.login-visual .brand strong { color: #fff; }
.login-visual .brand small { color: rgba(255,255,255,.62); }
.login-copy h1 em { color: #8fc0ff; }
.eyebrow { color: #d6e8ff; border-radius: 2px; }
.mini-node { border-radius: 3px; }
.mini-node.active { color: #fff; border-color: #7fb4ff; background: rgba(36,104,242,.34); }
.site-pill { color: #1d56cf; background: #edf4ff; border-radius: 2px; }
.site-pill b { background: #2468f2; }
.demo-account { border-radius: 4px; }
.demo-account:hover { color: #1d56cf; border-color: #b7cffd; background: #edf4ff; }

.workflow-entry-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(31, 52, 83, .12);
}

.workflow-entry-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: 30px;
  place-items: center;
  border-radius: 4px;
  color: #2468f2;
  background: #edf4ff;
  font-size: 24px;
}

.workflow-entry-card h2 { margin-top: 18px; }

.workflow-entry-card > p.muted {
  margin-bottom: 22px;
  color: #667085;
  line-height: 1.75;
}

.workflow-entry-points {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border-top: 1px solid #e8edf4;
  list-style: none;
}

.workflow-entry-points li {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  border-bottom: 1px solid #e8edf4;
  color: #344054;
  font-size: 13px;
}

.workflow-entry-points b {
  color: #2468f2;
  font-size: 11px;
  letter-spacing: .08em;
}

.workflow-entry-button { color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 200px 1fr; }
  .sidebar { width: 200px; }
}
