/* ============================================================
   GoalSync — unified stylesheet
   Base: mockup common.css (LINE design, primary #06c755)
   + page-specific styles consolidated
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:#06c755; --green-dark:#05b34c; --green-light:#e8faf0;
  --danger:#d93025; --warning:#f9ab00; --warn-light:#fef7e0;
  --text:#000; --text-sub:#666; --text-dis:#999;
  --border:#e5e5e5; --bg:#fff; --surface:#f7f8f9;
  --shadow-1:0 2px 8px rgba(0,0,0,.08); --shadow-2:0 4px 16px rgba(0,0,0,.12);
}

html { font-size:16px; }
body {
  font-family: SFPro, Arial, "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size:14px; color:var(--text); background:var(--surface);
  min-height:100vh; word-break:break-word; overflow-wrap:break-word;
}
a { color:inherit; }

/* ── Layout ── */
.app-layout { display:flex; min-height:100vh; }
.sidebar { width:220px; min-height:100vh; background:#fff; border-right:1px solid var(--border);
  display:flex; flex-direction:column; position:fixed; top:0; left:0; z-index:100; }
.sidebar-logo { padding:20px 20px 16px; border-bottom:1px solid var(--border); }
.sidebar-logo .logo-mark { display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:var(--text); text-decoration:none; }
.sidebar-logo .logo-icon { width:28px; height:28px; background:var(--green); border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:700; }
.sidebar-section { padding:12px 0 4px; }
.sidebar-section-label { padding:0 16px 6px; font-size:10px; font-weight:700; color:var(--text-dis); letter-spacing:.08em; text-transform:uppercase; }
.sidebar-nav { list-style:none; }
.sidebar-nav a { display:flex; align-items:center; gap:10px; padding:9px 16px; font-size:13px; font-weight:500; color:var(--text-sub); text-decoration:none; transition:background .15s,color .15s; }
.sidebar-nav a:hover { background:var(--surface); color:var(--text); }
.sidebar-nav a.active { background:var(--green-light); color:var(--green); font-weight:700; border-right:3px solid var(--green); }
.sidebar-nav .nav-icon { font-size:15px; width:18px; text-align:center; }
.sidebar-user { margin-top:auto; padding:16px; border-top:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.user-avatar { width:32px; height:32px; border-radius:50%; background:var(--green); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.user-info .user-name { font-size:12px; font-weight:700; }
.user-info .user-grade { font-size:10px; color:var(--text-sub); }

.main-content { margin-left:220px; flex:1; display:flex; flex-direction:column; }
.page-header { background:#fff; border-bottom:1px solid var(--border); padding:16px 32px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:50; }
.page-header-left { display:flex; align-items:center; gap:12px; }
.breadcrumb { font-size:12px; color:var(--text-sub); display:flex; align-items:center; gap:4px; }
.breadcrumb a { color:var(--text-sub); text-decoration:none; }
.breadcrumb a:hover { color:var(--green); }
.breadcrumb span { color:var(--text-dis); }
.page-title { font-size:20px; font-weight:700; color:var(--text); }
.page-body { padding:28px 32px; flex:1; }

/* ── Cards / grid / buttons / badges / progress (base) ── */
.card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:24px; box-shadow:var(--shadow-1); }
.card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.card-title { font-size:15px; font-weight:700; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.btn { display:inline-flex; align-items:center; gap:6px; padding:8px 20px; border-radius:8px; font-size:13px; font-weight:700; cursor:pointer; border:none; transition:background .15s,opacity .15s; text-decoration:none; }
.btn-primary { background:var(--green); color:#fff; }
.btn-primary:hover { background:var(--green-dark); }
.btn-secondary { background:transparent; color:var(--text); border:1px solid var(--border); }
.btn-secondary:hover { background:var(--surface); }
.btn-sm { padding:5px 12px; font-size:12px; }
.btn-danger { background:var(--danger); color:#fff; }
.badge { display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:700; }
.badge-green { background:var(--green-light); color:var(--green); }
.badge-yellow { background:var(--warn-light); color:#c47a00; }
.badge-red { background:#fde8e7; color:var(--danger); }
.badge-gray { background:var(--surface); color:var(--text-sub); }
.badge-blue { background:#e8f0fe; color:#1967d2; }
.badge-purple { background:#f3e8fd; color:#8430ce; }
.progress-wrap { background:var(--surface); border-radius:100px; height:8px; overflow:hidden; }
.progress-bar { height:100%; border-radius:100px; background:var(--green); transition:width .4s ease; }
.progress-bar.warn { background:var(--warning); }
.progress-bar.danger { background:var(--danger); }

.kr-item { padding:14px 0; border-bottom:1px solid var(--border); }
.kr-item:last-child { border-bottom:none; }
.kr-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:8px; gap:12px; }
.kr-label { font-size:13px; font-weight:500; line-height:1.5; }
.kr-pct { font-size:15px; font-weight:700; color:var(--green); white-space:nowrap; }
.kr-pct.warn { color:var(--warning); } .kr-pct.danger { color:var(--danger); }
.kr-meta { display:flex; align-items:center; gap:12px; margin-top:6px; font-size:11px; color:var(--text-sub); flex-wrap:wrap; }

.stat-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; box-shadow:var(--shadow-1); }
.stat-label { font-size:12px; color:var(--text-sub); margin-bottom:6px; font-weight:500; }
.stat-value { font-size:28px; font-weight:700; line-height:1.1; }
.stat-change { font-size:11px; color:var(--text-sub); margin-top:4px; }
.stat-change.up { color:var(--green); }

.table-wrap { overflow-x:auto; border-radius:12px; border:1px solid var(--border); background:#fff; }
table { width:100%; border-collapse:collapse; }
thead th { padding:10px 16px; font-size:11px; font-weight:700; color:var(--text-sub); text-align:left; background:var(--surface); border-bottom:1px solid var(--border); white-space:nowrap; }
tbody td { padding:12px 16px; font-size:13px; border-bottom:1px solid var(--border); vertical-align:middle; }
tbody tr:last-child td { border-bottom:none; }
tbody tr:hover { background:#fafafa; }

.tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:11px; font-weight:500; background:var(--surface); color:var(--text-sub); border:1px solid var(--border); }
.check-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.check-row:last-child { border-bottom:none; }
.check-row label { font-size:13px; cursor:pointer; flex:1; }
.check-row label.done { text-decoration:line-through; color:var(--text-sub); }
.check-row .check-meta { font-size:11px; color:var(--text-sub); white-space:nowrap; }

.section-title { font-size:16px; font-weight:700; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.section-title .dot { width:4px; height:16px; background:var(--green); border-radius:2px; }
.period-banner { background:var(--green-light); border:1px solid var(--green); border-radius:8px; padding:10px 16px; font-size:13px; color:var(--green); font-weight:700; display:flex; align-items:center; gap:8px; margin-bottom:24px; }

/* ── utils ── */
.flex { display:flex; } .flex-col { flex-direction:column; } .items-center { align-items:center; }
.justify-between { justify-content:space-between; }
.gap-4{gap:4px}.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-20{gap:20px}.gap-24{gap:24px}
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-20{margin-top:20px}.mt-24{margin-top:24px}
.mb-4{margin-bottom:4px}.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}.mb-20{margin-bottom:20px}.mb-24{margin-bottom:24px}
.text-sub{color:var(--text-sub)}.text-sm{font-size:12px}.text-xs{font-size:11px}.font-bold{font-weight:700}.text-green{color:var(--green)}

/* ── checkbox button (toggle via form) ── */
.rt-check { width:18px; height:18px; border-radius:5px; border:1.5px solid var(--border); background:#fff; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:700; flex-shrink:0; padding:0; line-height:1; }
.rt-check.checked { background:var(--green); border-color:var(--green); }
.rt-check:hover { border-color:var(--green); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.hero-section { background:linear-gradient(135deg,#06c755,#04a344); border-radius:16px; padding:36px 40px; color:#fff; margin-bottom:28px; position:relative; overflow:hidden; }
.hero-section::after { content:'G'; position:absolute; right:40px; top:50%; transform:translateY(-50%); font-size:120px; font-weight:900; color:rgba(255,255,255,.1); line-height:1; }
.hero-eyebrow { font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; opacity:.85; margin-bottom:8px; }
.hero-title { font-size:28px; font-weight:700; line-height:1.3; margin-bottom:8px; }
.hero-subtitle { font-size:14px; opacity:.85; line-height:1.6; max-width:560px; }
.hero-actions { display:flex; gap:10px; margin-top:20px; flex-wrap:wrap; }
.hero-btn-primary { padding:10px 24px; background:#fff; color:var(--green); border-radius:8px; font-size:13px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.hero-btn-secondary { padding:10px 24px; background:rgba(255,255,255,.15); color:#fff; border-radius:8px; font-size:13px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(255,255,255,.3); }
.four-layer { display:flex; flex-direction:column; }
.layer-row { display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); transition:background .1s; }
.layer-row:last-child { border-bottom:none; } .layer-row:hover { background:#fafafa; }
.layer-num { width:28px; height:28px; border-radius:8px; background:var(--green); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.layer-label { font-size:13px; font-weight:600; }
.layer-desc { font-size:11px; color:var(--text-sub); margin-top:2px; }
.alert-card { background:#fff; border:1px solid var(--border); border-radius:10px; padding:14px 18px; display:flex; align-items:flex-start; gap:12px; box-shadow:var(--shadow-1); margin-bottom:10px; text-decoration:none; color:var(--text); transition:background .1s; }
.alert-card:hover { background:#fafafa; }
.alert-icon { font-size:18px; flex-shrink:0; margin-top:1px; }
.alert-title { font-size:13px; font-weight:600; line-height:1.4; }
.alert-sub { font-size:12px; color:var(--text-sub); margin-top:2px; }
.checkin-card { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:14px 18px; margin-bottom:10px; }
.checkin-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.checkin-who { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; }
.checkin-when { font-size:11px; color:var(--text-sub); }
.checkin-comment { font-size:12px; color:var(--text-sub); line-height:1.6; }

/* ============================================================
   COMPANY OKR
   ============================================================ */
.objective-card { background:#fff; border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-1); overflow:hidden; margin-bottom:20px; }
.objective-header { padding:18px 24px; border-bottom:1px solid var(--border); display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.objective-number { width:28px; height:28px; background:var(--green); color:#fff; border-radius:8px; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.objective-title { font-size:16px; font-weight:700; line-height:1.4; flex:1; }
.objective-meta { font-size:12px; color:var(--text-sub); margin-top:4px; }
.objective-progress-circle { width:56px; height:56px; flex-shrink:0; position:relative; }
.objective-progress-circle svg { transform:rotate(-90deg); }
.circle-bg { fill:none; stroke:var(--surface); stroke-width:5; }
.circle-fg { fill:none; stroke-width:5; stroke-linecap:round; }
.circle-green { stroke:var(--green); } .circle-yellow { stroke:var(--warning); } .circle-red { stroke:var(--danger); }
.circle-label { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:12px; font-weight:700; }
.kr-list { padding:0 24px; }

/* ============================================================
   INDIVIDUAL OKR
   ============================================================ */
.member-selector { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px; }
.member-btn { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; border-radius:100px; border:1px solid var(--border); background:#fff; cursor:pointer; font-size:13px; font-weight:500; color:var(--text-sub); transition:all .15s; text-decoration:none; }
.member-btn.active { background:var(--green); color:#fff; border-color:var(--green); font-weight:700; }
.member-btn:hover:not(.active) { background:var(--surface); color:var(--text); }
.av-sm { width:22px; height:22px; border-radius:50%; font-size:10px; font-weight:700; color:#fff; display:flex; align-items:center; justify-content:center; }
.profile-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px 24px; box-shadow:var(--shadow-1); display:flex; align-items:flex-start; gap:20px; margin-bottom:24px; flex-wrap:wrap; }
.profile-avatar { width:56px; height:56px; border-radius:50%; background:var(--green); color:#fff; font-size:20px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.profile-main { flex:1; min-width:180px; }
.profile-name { font-size:20px; font-weight:700; line-height:1.2; }
.profile-role { font-size:13px; color:var(--text-sub); margin-top:2px; }
.profile-grade-wrap { display:flex; align-items:center; gap:8px; margin-top:10px; }
.grade-from { padding:4px 12px; border:1px solid var(--border); border-radius:6px; font-size:12px; font-weight:700; color:var(--text-sub); }
.grade-arrow { font-size:14px; color:var(--text-dis); }
.grade-to { padding:4px 12px; background:var(--green); color:#fff; border-radius:6px; font-size:12px; font-weight:700; }
.okr-score-ring { text-align:center; flex-shrink:0; }
.ring-label { font-size:11px; color:var(--text-sub); margin-top:4px; text-align:center; }
.objective-box { background:var(--green-light); border:1px solid var(--green); border-radius:10px; padding:14px 20px; margin-bottom:20px; }
.objective-box .o-tag { font-size:11px; font-weight:700; color:var(--green); margin-bottom:4px; }
.objective-box .o-text { font-size:15px; font-weight:700; line-height:1.4; color:var(--text); }
.kr-detail-card { background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px 20px; margin-bottom:12px; box-shadow:var(--shadow-1); }
.kr-number-badge { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; background:var(--green); color:#fff; border-radius:6px; font-size:11px; font-weight:700; flex-shrink:0; margin-right:8px; }
.kr-title-row { display:flex; align-items:center; margin-bottom:10px; }
.kr-title { font-size:14px; font-weight:600; line-height:1.4; flex:1; }
.kr-pct-lg { font-size:18px; font-weight:700; color:var(--green); white-space:nowrap; }
.kr-pct-lg.warn { color:var(--warning); } .kr-pct-lg.danger { color:var(--danger); }
.kr-numbers-row { display:flex; align-items:center; gap:12px; margin-top:8px; font-size:12px; color:var(--text-sub); flex-wrap:wrap; }
.weight-pill { padding:2px 8px; background:var(--surface); border:1px solid var(--border); border-radius:4px; font-size:11px; color:var(--text-sub); font-weight:500; white-space:nowrap; }
.checkin-block { background:var(--surface); border-radius:8px; padding:12px 16px; margin-top:10px; font-size:12px; color:var(--text-sub); line-height:1.6; }
.checkin-label { font-size:10px; font-weight:700; color:var(--text-dis); letter-spacing:.08em; text-transform:uppercase; margin-bottom:4px; }
.eval-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:10px; }
.eval-box { background:var(--surface); border-radius:8px; padding:10px 12px; font-size:12px; }
.eval-box .eval-who { font-size:10px; font-weight:700; color:var(--text-dis); letter-spacing:.06em; margin-bottom:4px; }
.star-row { color:var(--warning); font-size:14px; }
.feedback-text { color:var(--text-sub); line-height:1.5; margin-top:4px; }
details.kr-edit { margin-top:12px; border-top:1px dashed var(--border); padding-top:10px; }
details.kr-edit summary { font-size:12px; font-weight:700; color:var(--green); cursor:pointer; }
.edit-form { margin-top:10px; }
.edit-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.edit-form label, .modal label.ml { display:block; font-size:12px; font-weight:600; color:var(--text-sub); margin-bottom:10px; }
.edit-form input, .edit-form select, .modal input, .modal select, .modal textarea { display:block; width:100%; margin-top:4px; padding:7px 10px; border:1px solid var(--border); border-radius:6px; font-size:13px; font-family:inherit; }
.edit-form input:focus, .modal input:focus, .modal select:focus { outline:none; border-color:var(--green); }

/* ============================================================
   WEEKLY TASKS
   ============================================================ */
.week-nav { display:flex; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.week-nav-arrow { width:32px; height:32px; border-radius:8px; border:1px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; color:var(--text-sub); text-decoration:none; }
.week-nav-arrow:hover { background:var(--surface); }
.week-label { font-size:18px; font-weight:700; }
.week-dates { font-size:12px; color:var(--text-sub); margin-top:2px; }
.task-board { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:28px; }
.day-col { background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; box-shadow:var(--shadow-1); }
.day-col.today { border-color:var(--green); }
.day-header { padding:10px 12px; border-bottom:1px solid var(--border); background:var(--surface); display:flex; align-items:center; justify-content:space-between; }
.day-col.today .day-header { background:var(--green); }
.day-name { font-size:12px; font-weight:700; color:var(--text-sub); }
.day-col.today .day-name { color:#fff; }
.day-date { font-size:18px; font-weight:700; line-height:1; color:var(--text); }
.day-col.today .day-date { color:#fff; }
.day-tasks { padding:8px; min-height:160px; }
.task-card { background:#fff; border:1px solid var(--border); border-radius:8px; padding:10px 12px; margin-bottom:8px; position:relative; transition:box-shadow .15s; }
.task-card:hover { box-shadow:var(--shadow-2); }
.task-card.done { opacity:.55; } .task-card.done .task-card-title { text-decoration:line-through; }
.task-card-kr { font-size:10px; font-weight:700; color:var(--green); margin-bottom:3px; }
.task-card-title { font-size:12px; font-weight:600; line-height:1.4; color:var(--text); padding-right:22px; }
.task-card-meta { display:flex; align-items:center; gap:6px; margin-top:6px; flex-wrap:wrap; }
.task-card-time { font-size:10px; color:var(--text-dis); }
.task-add-btn { width:100%; padding:8px; border:1px dashed var(--border); border-radius:8px; background:transparent; color:var(--text-dis); font-size:12px; cursor:pointer; transition:all .15s; }
.task-add-btn:hover { border-color:var(--green); color:var(--green); background:var(--green-light); }
.kr-summary-wrap { background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px 20px; box-shadow:var(--shadow-1); }
.kr-link-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border); }
.kr-link-row:last-child { border-bottom:none; }
.kr-badge-sm { display:inline-flex; align-items:center; justify-content:center; width:28px; height:20px; background:var(--green); color:#fff; border-radius:4px; font-size:10px; font-weight:700; flex-shrink:0; }
.kr-link-label { font-size:12px; font-weight:500; flex:1; }
.task-list-section { background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; box-shadow:var(--shadow-1); }
.task-list-header { padding:12px 16px; background:var(--surface); border-bottom:1px solid var(--border); font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:space-between; }
.task-list-row { display:flex; align-items:center; gap:12px; padding:11px 16px; border-bottom:1px solid var(--border); transition:background .1s; }
.task-list-row:last-child { border-bottom:none; } .task-list-row:hover { background:#fafafa; }

/* ============================================================
   DAILY ROUTINE
   ============================================================ */
.date-selector { display:flex; align-items:center; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.date-btn { width:32px; height:32px; border-radius:8px; border:1px solid var(--border); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; color:var(--text-sub); text-decoration:none; }
.date-display { font-size:18px; font-weight:700; flex:1; }
.completion-bar-wrap { background:var(--green-light); border:1px solid var(--green); border-radius:10px; padding:16px 20px; margin-bottom:24px; display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.completion-percent { font-size:28px; font-weight:700; color:var(--green); white-space:nowrap; }
.completion-main { flex:1; min-width:220px; }
.completion-title { font-size:13px; font-weight:700; color:var(--green); margin-bottom:6px; }
.routine-section { background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; box-shadow:var(--shadow-1); margin-bottom:20px; }
.routine-section-header { padding:12px 16px; background:var(--surface); border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.routine-section-title { font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; }
.routine-row { display:grid; grid-template-columns:24px 1fr 100px 80px 80px; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--border); transition:background .1s; }
.routine-row:last-child { border-bottom:none; } .routine-row:hover { background:#fafafa; }
.routine-title { font-size:13px; line-height:1.4; }
.routine-title.done { text-decoration:line-through; color:var(--text-sub); }
.routine-sub { font-size:11px; color:var(--text-sub); margin-top:2px; }
.routine-time { font-size:12px; color:var(--text-sub); white-space:nowrap; text-align:right; }
.routine-owner { font-size:11px; color:var(--text-sub); white-space:nowrap; display:flex; align-items:center; gap:4px; }
.manual-link { font-size:11px; color:var(--green); text-decoration:none; display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.manual-link:hover { text-decoration:underline; }
.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:24px; }
.summary-mini { background:#fff; border:1px solid var(--border); border-radius:8px; padding:14px 16px; box-shadow:var(--shadow-1); text-align:center; }
.summary-mini .val { font-size:22px; font-weight:700; }
.summary-mini .lab { font-size:11px; color:var(--text-sub); margin-top:2px; }

/* ============================================================
   BACKLOG
   ============================================================ */
.filter-chip { padding:5px 12px; border-radius:20px; border:1px solid var(--border); background:#fff; font-size:12px; font-weight:500; color:var(--text-sub); cursor:pointer; transition:all .15s; }
.filter-chip.active { background:var(--green); border-color:var(--green); color:#fff; font-weight:700; }
.filter-chip:hover:not(.active) { background:var(--surface); color:var(--text); }
.search-input:focus { border-color:var(--green); }
.backlog-table tbody td { vertical-align:top; }
.issue-title { font-size:13px; }
.priority-dot { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; white-space:nowrap; }
.priority-dot::before { content:''; width:8px; height:8px; border-radius:50%; display:block; }
.priority-dot.high::before { background:var(--danger); } .priority-dot.high { color:var(--danger); }
.priority-dot.mid::before { background:var(--warning); } .priority-dot.mid { color:#c47a00; }
.priority-dot.low::before { background:var(--text-dis); } .priority-dot.low { color:var(--text-sub); }
.status-select { padding:4px 8px; border:1px solid var(--border); border-radius:6px; font-size:11px; font-family:inherit; cursor:pointer; outline:none; }
.deadline-text { font-size:12px; white-space:nowrap; }
.kr-chip { display:inline-flex; align-items:center; gap:3px; padding:2px 7px; background:var(--green-light); color:var(--green); border-radius:4px; font-size:10px; font-weight:700; white-space:nowrap; }
.action-btn { width:28px; height:28px; border-radius:6px; border:1px solid var(--border); background:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:13px; transition:all .1s; padding:0; }
.action-btn:hover { background:var(--surface); }

/* ── Modal (dialog) ── */
dialog.modal { border:none; border-radius:16px; padding:28px; width:min(460px,92vw); box-shadow:var(--shadow-2); }
dialog.modal::backdrop { background:rgba(0,0,0,.4); }
dialog.modal h3 { font-size:17px; font-weight:700; }

/* ── Mobile ── */
.mobile-menu-btn { display:none; position:fixed; top:12px; left:12px; z-index:200; width:40px; height:40px; border-radius:8px; border:1px solid var(--border); background:#fff; font-size:18px; cursor:pointer; box-shadow:var(--shadow-1); }
.nav-overlay { display:none; }
@media (max-width:1024px){ .grid-4{grid-template-columns:repeat(2,1fr)} .task-board{grid-template-columns:1fr;gap:10px} }
@media (max-width:880px){ .grid-2,.grid-3{grid-template-columns:1fr} .eval-row{grid-template-columns:1fr} }
@media (max-width:760px){
  .mobile-menu-btn{display:flex;align-items:center;justify-content:center}
  .sidebar{transform:translateX(-100%);transition:transform .2s}
  body.nav-open .sidebar{transform:translateX(0)}
  body.nav-open .nav-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:99}
  .main-content{margin-left:0}
  .page-header{padding:16px 16px 16px 60px}
  .page-body{padding:20px 16px}
  .edit-grid{grid-template-columns:1fr}
  .routine-row{grid-template-columns:24px 1fr;row-gap:4px}
  .routine-time,.routine-owner{grid-column:2;text-align:left}
}

/* ============================================================
   USER GUIDE (使い方ガイド)
   ============================================================ */
.guide-flow { display:flex; flex-direction:column; max-width:720px; margin:0 auto; }
.guide-flow-row { display:flex; align-items:center; gap:16px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 18px; }
.guide-flow-lv { min-width:74px; height:42px; border-radius:10px; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:12px; flex-shrink:0; }
.guide-flow-h { font-size:15px; font-weight:700; }
.guide-flow-p { font-size:12.5px; color:var(--text-sub); margin-top:2px; }
.guide-flow-arrow { text-align:center; color:var(--text-dis); font-size:12px; padding:8px 0; font-weight:500; }

.guide-cyc { background:#fff; border:1px solid var(--border); border-radius:14px; padding:18px 16px; position:relative; box-shadow:var(--shadow-1); }
.guide-cyc-step { position:absolute; top:14px; right:16px; font-size:34px; font-weight:900; color:var(--green-light); line-height:1; }
.guide-cyc-tag { font-size:11px; font-weight:700; color:var(--green); }
.guide-cyc-h { font-size:15px; font-weight:700; margin:6px 0 4px; }
.guide-cyc-p { font-size:12px; color:var(--text-sub); line-height:1.6; min-height:46px; }
.guide-cyc-link { font-size:12px; font-weight:700; color:var(--green); text-decoration:none; }
.guide-cyc-link:hover { text-decoration:underline; }

.guide-screen { display:grid; grid-template-columns:1.1fr 1fr; gap:28px; align-items:center; background:#fff; border:1px solid var(--border); border-radius:16px; padding:24px; margin-bottom:20px; box-shadow:var(--shadow-1); }
.guide-screen:nth-child(even) .guide-screen-shot { order:2; }
.guide-shot-frame { border-radius:12px; overflow:hidden; border:1px solid var(--border); box-shadow:var(--shadow-2); }
.guide-shot-bar { background:#eef1ef; padding:8px 12px; display:flex; gap:6px; align-items:center; border-bottom:1px solid var(--border); }
.guide-shot-bar i { width:10px; height:10px; border-radius:50%; display:block; }
.guide-shot-frame img { width:100%; display:block; }
.guide-screen-num { font-size:12px; font-weight:900; color:var(--green); letter-spacing:.1em; }
.guide-screen-title { font-size:20px; font-weight:900; margin:6px 0 10px; }
.guide-screen-lead { font-size:13.5px; color:var(--text-sub); line-height:1.7; margin-bottom:14px; }
.guide-steps { margin:0 0 18px; padding-left:0; list-style:none; counter-reset:gstep; display:flex; flex-direction:column; gap:9px; }
.guide-steps li { position:relative; padding-left:32px; font-size:13.5px; line-height:1.6; counter-increment:gstep; }
.guide-steps li::before { content:counter(gstep); position:absolute; left:0; top:1px; width:22px; height:22px; background:var(--green-light); color:var(--green); border-radius:50%; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }

.guide-tip { background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px; box-shadow:var(--shadow-1); }
.guide-tip-ic { font-size:24px; }
.guide-tip-h { font-size:14px; font-weight:700; margin:8px 0 4px; }
.guide-tip-p { font-size:12.5px; color:var(--text-sub); line-height:1.6; }

.guide-faq { border-bottom:1px solid var(--border); padding:4px 0; }
.guide-faq:last-child { border-bottom:none; }
.guide-faq summary { font-size:14px; font-weight:700; cursor:pointer; padding:12px 4px; list-style:none; display:flex; align-items:center; }
.guide-faq summary::-webkit-details-marker { display:none; }
.guide-faq summary::after { content:'＋'; margin-left:auto; color:var(--text-dis); font-weight:400; }
.guide-faq[open] summary::after { content:'－'; }
.guide-faq-a { font-size:13px; color:var(--text-sub); line-height:1.8; padding:0 4px 14px; }

.guide-cta { background:linear-gradient(160deg,#063f24,#06c755); color:#fff; border-radius:16px; padding:36px 24px; text-align:center; }
.guide-cta-h { font-size:22px; font-weight:900; }
.guide-cta-p { font-size:14px; opacity:.92; margin-top:8px; }

@media (max-width:880px){
  .guide-screen { grid-template-columns:1fr; gap:18px; }
  .guide-screen:nth-child(even) .guide-screen-shot { order:0; }
}

::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }
