:root {
  --ink: #18201d;
  --muted: #6f7874;
  --line: #e6e9e7;
  --paper: #ffffff;
  --canvas: #f3f5f3;
  --green: #176b4b;
  --green-dark: #10543b;
  --green-soft: #e8f3ee;
  --orange: #f28b45;
  --danger: #c54c43;
  --shadow: 0 18px 55px rgba(26, 50, 40, .09);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: white; background: var(--green); box-shadow: 0 7px 18px rgba(23,107,75,.22); }
.brand-mark::before { content: "✦"; font-size: 17px; }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; color: var(--ink); background: #edf0ee; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { border: 1px solid var(--line); background: #fff; }
.btn-danger { color: var(--danger); background: #fff0ee; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 12px; color: var(--ink); outline: none; }
.field textarea { min-height: 94px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); border: 1px dashed #ccd2ce; border-radius: 14px; background: #fafbfa; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 10px; color: white; background: #1d2823; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(13, 23, 19, .45); backdrop-filter: blur(4px); }
.modal-card { width: min(500px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px; border-radius: 18px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.22); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.form-stack { display: grid; gap: 15px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

/* Admin */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #eef2ef; }
.login-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 100vh; padding: 8vw; color: white; background: #153d2f; }
.login-art::before, .login-art::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); }
.login-art::before { width: 640px; height: 640px; left: -180px; top: -260px; }
.login-art::after { width: 420px; height: 420px; right: -210px; bottom: 8%; }
.login-copy { position: relative; max-width: 540px; }
.login-copy .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; opacity: .68; }
.login-copy h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.04; margin: 22px 0; letter-spacing: -.05em; }
.login-copy p { margin: 0; max-width: 460px; color: rgba(255,255,255,.7); line-height: 1.8; }
.login-panel { display: grid; place-items: center; padding: 32px; }
.login-box { width: min(390px, 100%); }
.login-box .brand { margin-bottom: 70px; }
.login-box h2 { font-size: 28px; margin: 0 0 8px; }
.login-box > p { color: var(--muted); margin: 0 0 30px; }
.login-box .btn { width: 100%; padding: 13px; margin-top: 8px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; color: #dce9e3; background: #153d2f; }
.sidebar .brand { color: white; padding: 0 10px 28px; }
.side-nav { display: grid; gap: 7px; margin-top: 20px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; color: #b8ccc3; background: transparent; text-align: left; font-weight: 700; }
.nav-item.active { color: white; background: rgba(255,255,255,.12); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sidebar-foot { position: absolute; left: 20px; right: 20px; bottom: 24px; }
.sidebar-foot .nav-item { color: #b8ccc3; }
.main { min-width: 0; padding: 34px 4vw 60px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.topbar h1 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.04em; }
.topbar p { margin: 0; color: var(--muted); }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; margin-bottom: 26px; }
.stat { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat strong { display: block; margin-top: 8px; font-size: 28px; }
.filters { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; }
.search { flex: 1; max-width: 360px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; background: white; outline: none; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; transition: .2s ease; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-cover { position: relative; height: 180px; overflow: hidden; background: linear-gradient(135deg,#dbece3,#b8d5c7); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-empty { height: 100%; display: grid; place-items: center; color: #597465; font-size: 34px; }
.count-pill { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; color: white; background: rgba(18,28,23,.7); backdrop-filter: blur(4px); font-size: 12px; }
.project-body { padding: 17px; }
.project-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; }
.tag { padding: 4px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-weight: 700; }
.project-body h3 { margin: 13px 0 7px; font-size: 18px; }
.project-body p { height: 40px; margin: 0 0 17px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn:first-child { flex: 1; }
.category-list { display: grid; gap: 10px; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.category-row small { color: var(--muted); }
.detail-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }
.detail-head .icon-btn { flex: 0 0 auto; }
.detail-title { flex: 1; }
.detail-title h1 { font-size: 26px; margin: 0 0 5px; }
.detail-title p { margin: 0; color: var(--muted); }
.share-box { display: flex; gap: 8px; width: min(520px,100%); padding: 8px; border-radius: 12px; background: var(--green-soft); }
.share-box input { min-width: 0; flex: 1; border: 0; background: transparent; padding: 0 7px; color: var(--green-dark); outline: none; }
.upload-zone { display: grid; place-items: center; min-height: 126px; margin-bottom: 20px; border: 1.5px dashed #b9c6bf; border-radius: 15px; background: #f9fbfa; color: var(--muted); text-align: center; cursor: pointer; }
.upload-zone.drag { border-color: var(--green); background: var(--green-soft); }
.upload-zone strong { display: block; margin-bottom: 5px; color: var(--ink); }
.image-admin-list { display: grid; gap: 16px; }
.image-admin-card { display: grid; grid-template-columns: 230px 1fr; min-height: 180px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; }
.image-admin-card > img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; background: #eee; }
.image-info { padding: 18px; min-width: 0; }
.image-info-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.image-info h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.feedback-list { display: grid; gap: 8px; margin-top: 14px; }
.feedback-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 10px; border-radius: 10px; background: #f5f7f6; font-size: 13px; }
.feedback-no { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-size: 11px; font-weight: 800; }
.feedback-row.resolved { opacity: .55; }
.feedback-row p { margin: 3px 0 0; color: var(--muted); line-height: 1.5; }
.feedback-actions { display: flex; gap: 5px; }

/* Customer project */
.public-page { min-height: 100vh; background: #eef1ef; }
.public-nav { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(22px, 4vw); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(10px); }
.public-nav small { color: var(--muted); }
.project-hero { padding: 44px max(22px, 6vw) 34px; background: white; }
.project-hero .tag { display: inline-block; }
.project-hero h1 { margin: 16px 0 10px; font-size: clamp(30px,4vw,48px); letter-spacing: -.045em; }
.project-hero p { max-width: 720px; color: var(--muted); line-height: 1.7; }
.howto { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--green); font-size: 13px; font-weight: 700; }
.howto b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); }
.public-content { padding: 30px max(22px, 6vw) 70px; }
.gallery-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.gallery-head h2 { margin: 0; font-size: 20px; }
.gallery-head span { color: var(--muted); font-size: 13px; }
.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; min-height: 220px; border: 0; border-radius: 15px; padding: 0; background: #dce1de; box-shadow: 0 8px 25px rgba(25,42,34,.06); }
.gallery-item img { display: block; width: 100%; height: 270px; object-fit: cover; transition: .25s ease; }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; padding: 34px 14px 13px; color: white; background: linear-gradient(transparent,rgba(0,0,0,.68)); text-align: left; }
.feedback-badge { padding: 5px 8px; border-radius: 999px; background: var(--orange); font-size: 11px; font-weight: 800; }
.canvas-modal { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-rows: 64px 1fr; background: #1b211e; }
.canvas-bar { display: flex; align-items: center; gap: 14px; padding: 0 18px; color: white; background: #111613; }
.canvas-bar .icon-btn { border-color: #3c433f; color: white; background: #252c28; }
.canvas-title { flex: 1; min-width: 0; }
.canvas-title strong, .canvas-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.canvas-title small { margin-top: 3px; color: #9fa7a2; }
.canvas-work { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 360px; }
.image-stage { position: relative; min-height: 0; overflow: auto; display: grid; place-items: center; padding: 28px; }
.image-wrap { position: relative; line-height: 0; box-shadow: 0 12px 50px rgba(0,0,0,.35); cursor: crosshair; }
.image-wrap img { display: block; max-width: calc(100vw - 440px); max-height: calc(100vh - 120px); width: auto; height: auto; user-select: none; }
.pin { position: absolute; width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid white; border-radius: 50% 50% 50% 0; color: white; background: var(--orange); box-shadow: 0 4px 12px rgba(0,0,0,.3); font-size: 11px; font-weight: 900; line-height: 1; transform: translate(-50%,-100%) rotate(-45deg); }
.pin span { transform: rotate(45deg); }
.pin.draft { background: var(--green); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(23,107,75,.2); } }
.feedback-panel { min-height: 0; overflow-y: auto; padding: 20px; background: white; }
.panel-intro { padding: 14px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; line-height: 1.6; }
.draft-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.draft-form h3 { margin: 0; font-size: 16px; }
.comment-list { display: grid; gap: 10px; margin-top: 22px; }
.comment-list h3 { margin: 0 0 4px; font-size: 15px; }
.comment-card { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.comment-card.resolved { opacity: .5; }
.comment-card strong { font-size: 13px; }
.comment-card p { margin: 5px 0; color: #4f5854; font-size: 13px; line-height: 1.55; }
.comment-card time { color: #929a96; font-size: 11px; }

@media (max-width: 1080px) {
  .project-grid, .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .canvas-work { grid-template-columns: minmax(0,1fr) 320px; }
  .image-wrap img { max-width: calc(100vw - 390px); }
}
@media (max-width: 760px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; }
  .admin-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .sidebar .brand { padding-bottom: 10px; }
  .side-nav { display: flex; margin: 8px 0 0; }
  .nav-item { justify-content: center; }
  .sidebar-foot { position: static; display: none; }
  .main { padding: 24px 16px 50px; }
  .topbar, .detail-head { align-items: stretch; flex-direction: column; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .stats { grid-template-columns: 1fr; }
  .project-grid, .gallery { grid-template-columns: 1fr; }
  .image-admin-card { grid-template-columns: 1fr; }
  .image-admin-card > img { height: 210px; }
  .canvas-modal { grid-template-rows: 58px 1fr; }
  .canvas-work { display: block; overflow: auto; }
  .image-stage { min-height: 48vh; padding: 14px; overflow: visible; }
  .image-wrap img { max-width: calc(100vw - 28px); max-height: none; }
  .feedback-panel { overflow: visible; }
  .public-nav small { display: none; }
  .project-hero { padding-top: 30px; }
}

/* Infinite design workspace */
.workspace-body { width: 100vw; height: 100vh; overflow: hidden; background: #f4f4f3; color: #252725; }
.workspace-loading, .workspace-error { width: 100vw; height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: #69706b; }
.workspace-loading p, .workspace-error p { margin: 0; }
.workspace-spinner { width: 28px; height: 28px; border: 3px solid #d9ddd9; border-top-color: #38a44d; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.workspace-error h2 { margin: 4px 0 0; color: #202320; }
.design-workspace { width: 100vw; height: 100vh; display: grid; grid-template: 58px minmax(0,1fr) / 198px minmax(0,1fr) 220px; background: #f4f4f3; }
.ws-topbar { z-index: 20; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 13px; color: #eef0ee; background: #202220; border-bottom: 1px solid #151715; }
.ws-brand, .ws-top-actions, .ws-tools { display: flex; align-items: center; }
.ws-brand { min-width: 0; gap: 8px; }
.ws-brand > strong { max-width: 260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.ws-brandmark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: white; background: #3cab50; }
.save-state { display: flex; align-items: center; gap: 6px; margin-left: 13px; color: #adb2ae; font-size: 12px; }
.ws-tools { justify-self: center; gap: 3px; padding: 4px; border: 1px solid #333633; border-radius: 8px; background: #262926; }
.tool-btn, .bare-btn, .zoom-control button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; color: #bec3bf; background: transparent; }
.tool-btn:hover, .bare-btn:hover, .zoom-control button:hover { color: white; background: #343834; }
.tool-btn.active { color: white; background: #37683f; }
.ws-top-actions { justify-self: end; gap: 8px; }
.zoom-control { height: 34px; display: flex; align-items: center; border: 1px solid #353835; border-radius: 7px; overflow: hidden; }
.zoom-control button { width: 28px; height: 32px; border-radius: 0; }
.zoom-control span { width: 48px; text-align: center; color: #e6e9e6; font-size: 12px; font-variant-numeric: tabular-nums; }
.top-separator { width: 1px; height: 25px; background: #3b3e3b; }
.share-btn { height: 35px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 7px; color: white; background: #38a44d; font-size: 13px; font-weight: 700; }
.share-btn:hover { background: #2f9343; }
.ws-left, .ws-right { z-index: 10; min-height: 0; overflow: hidden; background: #fff; }
.ws-left { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; border-right: 1px solid #dedfdd; }
.side-search { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #8b908c; border-bottom: 1px solid #eceeec; }
.side-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: 12px; }
.side-section { padding: 13px 7px; }
.side-title { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; }
.side-title strong { font-size: 12px; }
.side-title button { border: 0; padding: 4px; color: #757a76; background: transparent; }
.page-list, .layer-list { display: grid; gap: 3px; }
.side-row { width: 100%; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 5px; color: #444945; background: transparent; text-align: left; font-size: 12px; }
.side-row span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.side-row em { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 9px; color: #287b39; background: #dff1e2; font-size: 10px; font-style: normal; }
.side-row:hover { background: #f2f4f2; }
.side-row.active { color: #238036; background: #e9f4eb; }
.layers-section { margin-top: auto; min-height: 238px; border-top: 1px solid #e3e5e3; }
.ws-canvas { position: relative; grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; background-color: #f3f3f2; cursor: default; touch-action: none; }
.ws-canvas.is-hand { cursor: grab; }
.ws-canvas.is-hand:active, .ws-canvas.is-dragging, .ws-canvas.space-pan { cursor: grabbing; }
.ws-canvas.is-comment { cursor: crosshair; }
.canvas-stage { position: absolute; left: 0; top: 0; width: 2700px; height: 1900px; transform-origin: 0 0; will-change: transform; }
.artboard { position: absolute; width: 600px; user-select: none; }
.artboard > header { height: 52px; display: flex; align-items: center; color: #676c68; font-size: 22px; font-weight: 600; }
.artboard-image { position: relative; width: 600px; background: white; box-shadow: 0 0 0 1px rgba(25,28,25,.08), 0 5px 18px rgba(25,28,25,.05); }
.artboard.selected .artboard-image { box-shadow: 0 0 0 2px #3888ef, 0 6px 20px rgba(25,28,25,.08); }
.artboard-image > img { display: block; width: 600px; height: auto; pointer-events: none; }
.canvas-pin { position: absolute; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 4px solid white; border-radius: 50%; color: white; background: var(--pin); box-shadow: 0 4px 13px rgba(0,0,0,.22); font-size: 18px; font-weight: 800; transform: translate(-50%,-50%); }
.canvas-pin.selected { outline: 4px solid rgba(56,164,77,.22); }
.canvas-pin.draft { animation: pulse 1.4s infinite; }
.feedback-region { position: absolute; z-index: 2; min-width: 12px; min-height: 12px; padding: 0; border: 3px solid var(--pin); border-radius: 4px; background: color-mix(in srgb, var(--pin) 12%, transparent); box-shadow: 0 0 0 1px white inset; }
.feedback-region > span { position: absolute; right: -14px; top: -14px; width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: var(--pin); box-shadow: 0 3px 9px rgba(0,0,0,.2); font-size: 12px; font-weight: 800; }
.feedback-region.selected { outline: 4px solid color-mix(in srgb, var(--pin) 20%, transparent); outline-offset: 2px; }
.feedback-region.draft { pointer-events: none; animation: regionPulse 1.5s infinite; }
.region-preview { position: absolute; z-index: 5; border: 3px solid #16a34a; border-radius: 4px; background: rgba(22,163,74,.12); box-shadow: 0 0 0 1px white inset; pointer-events: none; }
@keyframes regionPulse { 50% { background: rgba(22,163,74,.2); } }
.canvas-help { position: absolute; left: 50%; bottom: 18px; z-index: 5; transform: translateX(-50%); padding: 8px 12px; border: 1px solid #d9dcda; border-radius: 7px; color: #707671; background: rgba(255,255,255,.92); font-size: 11px; pointer-events: none; }
.selection-marquee { position: absolute; z-index: 8; border: 1px solid #277ee8; background: rgba(39,126,232,.1); pointer-events: none; }
.ws-right { grid-column: 3; grid-row: 2; border-left: 1px solid #dedfdd; }
.inspector-tabs { height: 52px; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-bottom: 1px solid #e8eae8; }
.inspector-tabs button { height: 52px; display: flex; align-items: center; border: 0; border-bottom: 2px solid transparent; padding: 0 2px; color: #858a86; background: transparent; font-size: 12px; }
.inspector-tabs button.active { color: #252925; border-bottom-color: #36a24a; font-weight: 700; }
.inspector-tabs span { flex: 1; }
.comment-context { height: 43px; display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #8a8f8b; border-bottom: 1px solid #eff0ef; font-size: 11px; }
.comment-context strong { color: #555a56; }
.inspector-empty { height: calc(100% - 52px); display: grid; place-content: center; justify-items: center; padding: 30px; color: #a0a5a1; text-align: center; }
.inspector-empty strong { margin: 14px 0 5px; color: #3c413d; font-size: 14px; }
.inspector-empty p { max-width: 200px; margin: 0 0 18px; font-size: 12px; line-height: 1.65; }
.inspector-empty button { display: flex; align-items: center; gap: 7px; border: 0; border-radius: 6px; padding: 9px 12px; color: white; background: #38a44d; font-size: 12px; }
.new-comment-head { display: flex; gap: 10px; padding: 16px 14px 10px; }
.new-comment-head > div { display: grid; gap: 3px; }
.new-comment-head strong { font-size: 13px; }
.new-comment-head small { color: #979c98; font-size: 10px; }
.customer-avatar { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #277a37; background: #d9efdd; font-size: 12px; font-weight: 800; }
.inspector-form { display: grid; gap: 12px; padding: 8px 14px 18px; }
.inspector-form label { display: grid; gap: 5px; color: #777c78; font-size: 11px; }
.inspector-form input, .inspector-form textarea, .reply-box textarea { width: 100%; border: 1px solid #dfe2df; border-radius: 6px; padding: 9px 10px; outline: none; color: #2f3430; background: white; font-size: 12px; }
.inspector-form textarea { min-height: 112px; resize: vertical; }
.inspector-form input:focus, .inspector-form textarea:focus, .reply-box textarea:focus { border-color: #41a752; box-shadow: 0 0 0 2px #e4f2e7; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -5px; }
.suggestion-chips button { border: 1px solid #dfe4df; border-radius: 999px; padding: 5px 8px; color: #5e655f; background: #f8faf8; font-size: 10px; }
.suggestion-chips button:hover { color: #287c38; border-color: #9dcea6; background: #edf7ef; }
.inspector-submit { height: 36px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 6px; color: white; background: #38a44d; font-size: 12px; font-weight: 700; }
.thread { padding: 18px 14px; border-bottom: 1px solid #eceeec; }
.thread header { display: flex; align-items: center; gap: 9px; }
.thread header > div { display: grid; gap: 2px; flex: 1; }
.thread header strong { font-size: 12px; }.thread header small { color: #999e9a; font-size: 10px; }
.thread header button { border: 0; color: #8e938f; background: transparent; }
.thread p { margin: 13px 0 6px 39px; color: #424743; font-size: 13px; line-height: 1.65; }
.resolved-badge { display: inline-block; margin-left: 39px; padding: 4px 7px; border-radius: 4px; color: #277a37; background: #e5f3e8; font-size: 10px; }
.reply-box { margin: 16px 14px; padding: 9px; border: 1px solid #dfe2df; border-radius: 7px; }
.reply-tools { display: flex; gap: 10px; color: #919692; }.reply-box textarea { min-height: 70px; margin: 7px 0; padding: 6px 0; border: 0; resize: none; box-shadow: none; }
.reply-box button { float: right; display: flex; align-items: center; gap: 5px; border: 0; border-radius: 5px; padding: 7px 10px; color: white; background: #38a44d; font-size: 11px; }

@media (max-width: 920px) {
  .design-workspace { grid-template-columns: 0 minmax(0,1fr) 290px; }
  .ws-left { display: none; }
  .save-state { display: none; }
  .ws-brand > strong { max-width: 150px; }
}
@media (max-width: 680px) {
  .design-workspace { grid-template: 54px minmax(0,1fr) / 1fr; }
  .ws-topbar { grid-template-columns: 1fr auto; }
  .ws-tools { position: fixed; left: 50%; bottom: 14px; z-index: 30; transform: translateX(-50%); box-shadow: 0 5px 20px rgba(0,0,0,.2); }
  .ws-top-actions .zoom-control, .ws-top-actions .top-separator, .ws-top-actions .bare-btn { display: none; }
  .ws-canvas { grid-column: 1; }
  .ws-right { position: fixed; inset: auto 0 0; z-index: 25; width: 100%; max-height: 52vh; border: 1px solid #dfe1df; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
  .ws-right:has(.inspector-empty) { display: none; }
  .canvas-help { bottom: 72px; }
}
