@import url('./kbos.css');
@import url('./page-tokens.css');

body {
  margin: 0;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* 页面容器 */
.login-page, .pending-page, .workspace-page {
  min-height: 100vh;
  background: var(--bg);
}

.cursor-pointer {
  cursor: pointer;
}

/* 登录页 */
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
}
.login-intro {
  padding: 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--page-intro);
}
.login-logo { font-size: 18px; }
.login-intro-content { max-width: 560px; }
.login-headline { font-size: 40px; line-height: 1.25; font-weight: 700; letter-spacing: .3px; margin: 0; white-space: pre-line; }
.login-blurb { margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--page-secondary); margin-bottom: 0; }
.login-steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.login-step-row { display: flex; gap: 14px; align-items: flex-start; }
.login-step-chip { margin-top: 2px; }
.login-step-text strong { display: block; font-size: 14px; }
.login-step-text span { color: var(--muted); font-size: 13px; }
.login-note { font-size: 12px; color: var(--muted); margin: 0; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--surface); }
.login-panel-inner { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.login-title h2 { font-size: 24px; font-weight: 700; margin: 0; }
.login-title p { margin-top: 6px; color: var(--muted); margin-bottom: 0; }
.login-btn-oauth { height: 48px; font-size: 16px; border-radius: 10px; width: 100%; }
.login-qr { padding: 18px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: center; background: var(--bg); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.login-qr h3 { font-size: 14px; font-weight: 600; margin: 0; }
.login-qr p { font-size: 12px; color: var(--muted); margin: 0; }
.login-btn-stub { height: 40px; width: 100%; }

/* 等待分配页 */
.pending-page { display: flex; flex-direction: column; }
.pending-header { height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.pending-user-area { display: flex; align-items: center; gap: 12px; }
.pending-user-name { font-weight: 500; font-size: 14px; }
.pending-avatar { width: 32px; height: 32px; border-radius: 16px; }
.pending-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.pending-card { width: 640px; padding: 40px; display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
.pending-hero { display: flex; gap: 18px; align-items: flex-start; }
.pending-icon-circle { width: 56px; height: 56px; border-radius: 28px; background: var(--yellow-bg); color: var(--yellow-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex-shrink: 0; }
.pending-hero-text h1 { font-size: 24px; font-weight: 700; margin: 0; }
.pending-hero-text p { margin-top: 6px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.pending-actions { display: flex; gap: 12px; }
.pending-detail { border-top: 1px solid var(--line); padding-top: 16px; display: grid; grid-template-columns: 96px 1fr; row-gap: 8px; font-size: 13px; }

/* 工作台页 */
.workspace-page { display: block; }
.workspace-page > .k-app { width: 100%; min-height: 100vh; }
.k-main-inner { display: flex; flex-direction: column; gap: 20px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.task-table-card { overflow: auto; }
.task-row { display: grid; grid-template-columns: minmax(180px, 1fr) 150px 110px 80px; align-items: center; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); white-space: nowrap; }
.task-row.th { border-top: 0; font-size: 12px; color: var(--muted); font-weight: 600; background: var(--page-subtle); }
.side-panel { display: flex; flex-direction: column; gap: 16px; }
.side-section { display: flex; flex-direction: column; gap: 10px; }
.stage-box { padding: 12px; background: var(--page-subtle); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.stage-box-title { font-weight: 600; font-size: 13px; color: var(--ink); }
.stage-box-desc { font-size: 12px; color: var(--muted); margin: 0; }
.status-legend-grid { display:flex;flex-wrap:wrap;gap:8px;margin-top:12px; }

/* 弹窗与文本域类 */
.dialog-reason-area { width: 100%; min-height: 84px; }
.dialog-error { color: var(--red-ink); font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* 骨架重置 */
.k-app { width: 100%; min-height: 100vh; }
.k-main { overflow: auto; }


.k-nav-list{display:flex;flex-direction:column;gap:2px}

.login-page,.pending-page{font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',system-ui,sans-serif;box-sizing:border-box;font-size:14px;line-height:1.5}
.login-page *,.pending-page *{box-sizing:border-box}
.login-page h1,.login-page h2,.login-page h3,.login-page p,.pending-page h1,.pending-page h2,.pending-page h3,.pending-page p{margin:0}

.k{font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',system-ui,sans-serif}

.k-icon{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;flex-shrink:0}.k-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.k-logo .k-icon{width:30px;height:30px;border-radius:8px;background:var(--accent);color:var(--surface)}.k-logo .k-icon svg{width:18px;height:18px;stroke-width:2}
.k-user-text{display:flex;flex-direction:column;gap:1px;line-height:1.3}.demo-owner{display:flex;align-items:center;gap:8px}.demo-detail{display:flex;flex-direction:column;gap:14px}.demo-detail-top,.demo-actions{display:flex;align-items:center;gap:10px}.demo-detail-top{justify-content:space-between}.demo-detail-title{font-size:17px;font-weight:700;line-height:1.45}.demo-meta{display:grid;grid-template-columns:72px 1fr;row-gap:8px;font-size:13px}.demo-events h3{font-size:14px;margin:0 0 8px}.demo-events p{font-size:13px;margin:8px 0;color:var(--muted)}.demo-events p::before{content:'•';margin-right:8px;color:var(--line-strong)}

.demo-head-actions{display:flex;align-items:center;gap:12px}.demo-search{display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--surface);width:230px;color:var(--muted)}.demo-search-input{border:0;outline:0;width:100%;background:transparent;color:var(--ink);font:inherit}.demo-search-icon{display:inline-flex;width:16px;height:16px;flex-shrink:0}.demo-search-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.demo-right{display:flex;flex-direction:column;gap:16px}.demo-right>.k-card{display:flex;flex-wrap:wrap;gap:8px}.demo-right>.k-card .k-h2{width:100%}.demo-right>.k-card p{width:100%;font-size:12px;color:var(--muted);line-height:1.6;margin:2px 0 0}.k-tab:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
