:root { color-scheme: dark; --sidebar: var(--sws-surface); --sidebar-soft: var(--sws-surface-raised); --paper: var(--sws-canvas); --surface: var(--sws-surface); --ink: var(--sws-text); --muted: var(--sws-text-muted); --line: var(--sws-line); --line-strong: var(--sws-line-strong); --orange: var(--sws-accent); --orange-soft: var(--sws-accent-soft); --blue: var(--sws-focus); --green: var(--sws-positive); --red: var(--sws-danger); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 7px;
  background: var(--sws-surface-raised);
  color: var(--sws-text-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.skip-link:focus { top: 14px; }

.works-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; gap: 0; }

.works-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 100vh;
  padding: 28px 16px 24px;
  background: var(--sidebar);
  color: #d6d8da;
  border-right: 1px solid var(--line);
}

.works-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--sws-text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.works-brand img { display: block; border-radius: 9px; }

.start-work {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 10px);
  min-height: 48px;
  margin: 20px 5px 14px;
  border: 0;
  border-radius: var(--sws-radius-control);
  background: var(--orange);
  color: #20150d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(255,155,91,.12);
}
.start-work:hover, .start-work:focus-visible { background: #ff8731; outline: 2px solid rgba(255,255,255,.25); outline-offset: 2px; }

.primary-nav { display: grid; gap: 4px; padding: 8px 5px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.primary-nav a {
  min-height: 44px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #aeb1b4;
  font-size: 14px;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--sws-text); background: rgba(255,255,255,.05); }
.primary-nav a.is-active { color: var(--orange); background: var(--sws-accent-soft); box-shadow: inset 2px 0 var(--orange); }

.sidebar-section { padding: 21px 5px 0; }
.sidebar-section > p {
  margin: 0 12px 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.sidebar-section button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 11px 0 13px;
  background: transparent;
  color: #aeb1b4;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}
.sidebar-section button:hover, .sidebar-section button:focus-visible { color: var(--sws-text); background: rgba(255,255,255,.05); }
.sidebar-section button.is-active { color: var(--sws-text); background: rgba(255,255,255,.08); }
.sidebar-section small {
  min-width: 25px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--sws-text-soft);
  font-size: 12px;
  text-align: center;
}
.sidebar-section button.is-active small { background: var(--orange); color: var(--sws-text); }
.sidebar-lifecycle { margin-top: 5px; }
.sidebar-note { margin: auto 10px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.works-main { min-width: 0; padding: 48px clamp(24px,4vw,72px) 72px; background: radial-gradient(ellipse at 90% 0,rgba(255,157,92,.045),transparent 45%),var(--paper); }
.works-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: 1500px; margin: 0 auto 36px; }
.header-kicker { margin: 0 0 14px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.works-header h1 { margin: 0; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(30px,3vw,44px); font-weight: 620; letter-spacing: -.045em; line-height: 1.2; }
.works-header > div:first-child > p:last-child { min-height: 20px; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions > a { padding: 12px 15px; color: var(--sws-text-soft); font-size: 13px; }
.header-actions > a:hover, .header-actions > a:focus-visible { color: var(--ink); }

.create-trigger {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--orange);
  color: #20150d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.create-trigger:hover, .create-trigger:focus-visible { background: var(--sws-line-strong); outline: 2px solid rgba(242,120,34,.22); outline-offset: 2px; }

.works-create-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0;
  background: var(--sws-surface-strong);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}
.works-create-dialog::backdrop { background: rgba(16,18,19,.68); backdrop-filter: blur(8px); }
.works-create-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding: 25px 28px 23px; }
.works-create-heading p { margin: 0 0 7px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.works-create-heading h2 { margin: 0; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.works-create-heading span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.works-create-heading > button { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--sws-surface-raised); color: var(--sws-text-soft); font-size: 20px; cursor: pointer; }
.works-create-heading > button:hover { border-color: #aeb1ae; color: var(--sws-text-soft); }
.works-create-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 22px; }
.works-create-card { min-height: 244px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--sws-surface); transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease; }
.works-create-card:hover, .works-create-card:focus-visible { border-color: #f1a26b; box-shadow: 0 16px 35px rgba(43,37,32,.09); }
.works-create-card > span { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.works-create-card > strong { margin-top: 13px; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 24px; font-weight: 600; }
.works-create-card > small { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.works-create-card > b { margin-top: auto; padding-top: 28px; color: var(--orange); font-size: 12px; }

.works-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1500px;
  min-height: auto;
  margin: 0 auto;
  border: 0;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  padding: 0 0 20px;
  background: transparent;
  flex-wrap: wrap;
}
.search-box { display: flex; align-items: center; width: min(420px,100%); min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--sws-surface); }
.search-box:focus-within { border-color: var(--sws-focus); background: var(--sws-surface-raised); }
.search-box input { width: 100%; border: 0; padding: 9px 13px; background: transparent; color: var(--ink); outline: none; font-size: 13px; }
.search-box input::placeholder { color: var(--muted); }
.toolbar-side { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.toolbar-side > span { margin-right: 12px; }
.toolbar-side select { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 0 30px 0 10px; background: var(--sws-surface); color: var(--sws-text-soft); font-size: 12px; }

.works-panel { max-width: 1500px; min-height: 420px; margin: 0 auto; border: 0; border-radius: 0 0 11px 11px; background: transparent; box-shadow: none; }
.list-heading { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 40px; padding: 0 0 16px; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; }
.select-all { display: flex; align-items: center; gap: 10px; }
.select-all input, .row-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--orange); }
.list-heading > div { display: flex; gap: 20px; }

.works-list { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(300px,100%),1fr)); gap: 20px; }
.work-row { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; min-height: 0; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--sws-surface); transition: border-color var(--sws-motion-fast) ease, background var(--sws-motion-fast) ease, box-shadow var(--sws-motion-fast) ease;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row:hover, .work-row:focus-within { background: var(--sws-surface-raised); border-color: var(--line-strong); box-shadow: 0 20px 44px rgba(0,0,0,.2); }
.row-check { position: absolute; z-index: 2; top: 24px; left: 24px; width: 28px; height: 28px; background: rgba(10,12,16,.75); border: 1px solid var(--line-strong); border-radius: 9px; display: grid; place-items: center; }
.work-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg,var(--sws-surface-raised),var(--sws-canvas));
  grid-column: 1 / -1;
}
.work-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform var(--sws-motion-panel) ease; }
.work-thumbnail span { display: grid; width: 100%; height: 100%; place-items: center; color: var(--sws-line-strong); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 58px; }
.work-thumbnail::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: none; }

.work-copy { min-width: 0; grid-column: 1 / -1; padding: 0 4px; }
.work-copy > div { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.type-badge, .status-badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 750; }
.type-badge { background: rgba(130,184,255,.1); color: #b6d5ff; }
.type-badge[data-type="panorama"] { background: rgba(85,232,162,.09); color: #8de4ba; }
.type-badge[data-type="spatial"] { background: rgba(174,143,255,.1); color: #d0bbff; }
.status-badge { background: var(--sws-surface-strong); color: var(--sws-text-soft); }
.status-badge[data-status="published"] { background: rgba(85,232,162,.09); color: var(--green); }
.status-badge[data-status="unpublished"] { background: var(--orange-soft); color: var(--orange); }
.work-copy h2 { max-width: 700px; overflow: hidden; margin: 10px 0 8px; color: var(--ink); font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.work-copy p { margin: 0; color: var(--muted); font-size: 12px; }

.work-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; grid-column: 1; padding-left: 4px; }
.work-stats div { min-width: 0; }
.work-stats dt { color: var(--muted); font-size: 12px; }
.work-stats dd { margin: 5px 0 0; color: var(--sws-text-soft); font-size: 13px; font-variant-numeric: tabular-nums; }

.work-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; grid-column: 2; }
.work-actions > a, .work-actions > button, .work-actions > details > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 8px;
  background: transparent;
  color: var(--sws-text-soft);
  font-size: 12px;
  cursor: pointer;
}
.work-actions > a:hover, .work-actions > button:hover, .work-actions > details > summary:hover { background: var(--orange-soft); color: var(--orange); }
.work-actions > button:disabled { color: #c3c5c5; cursor: not-allowed; }
.work-actions details { position: relative; }
.work-actions details > summary { list-style: none; }
.work-actions details > summary::-webkit-details-marker { display: none; }
.work-actions details > div { position: absolute; z-index: 12; top: calc(100% + 6px); right: 0; display: grid; width: 138px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--sws-surface-strong); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.work-actions details button { min-height: 40px; border: 0; border-radius: 8px; padding: 0 10px; background: transparent; color: var(--sws-text-soft); font-size: 12px; text-align: left; cursor: pointer; }
.work-actions details button:hover { background: var(--sws-surface-raised); color: var(--ink); }
.work-actions details button:disabled { color: #bfc1c1; cursor: not-allowed; }
.work-actions details button.danger { color: var(--red); }

.works-state { display: grid; justify-items: center; align-content: center; min-height: 340px; padding: 40px; color: #8a8e90; text-align: center; }
.works-state strong { color: var(--ink); font-size: 20px; }
.works-state p { max-width: 480px; margin: 10px 0 20px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.works-state a, .works-state button { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 15px; background: var(--sws-surface-raised); color: var(--ink); cursor: pointer; }
.works-state a { display: inline-flex; align-items: center; }
.loading-dot { width: 22px; height: 22px; margin-bottom: 15px; border: 2px solid var(--sws-line-strong); border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
:where(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid var(--sws-focus); outline-offset: 3px;
}
:where(button, input, select, textarea):disabled { opacity: .45; cursor: not-allowed;
}
@keyframes spin { to { transform: rotate(360deg); } }

.load-more { display: block; min-width: 118px; min-height: 44px; margin: 22px auto; border: 1px solid var(--line); border-radius: 12px; background: var(--sws-surface); color: var(--sws-text-soft); font-size: 12px; cursor: pointer; }
.load-more:hover { border-color: #b9bbb9; color: var(--sws-text-soft); }

.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 48px)); border-radius: 9px; padding: 13px 17px; background: #181a1b; color: var(--sws-text); box-shadow: 0 18px 55px rgba(0,0,0,.22); font-size: 12px; }

@media (max-width: 1050px) {

 .works-shell { grid-template-columns: 208px minmax(0,1fr);
 }

 .works-main { padding: 36px 24px 60px;
 }

 .work-row { padding: 14px; gap: 16px;
 }

 .work-thumbnail { width: 100%;
 }

 .work-actions > a, .work-actions > button, .work-actions > details > summary { padding-inline: 7px;
 }
}

@media (max-width: 820px) {

 .works-shell { display: block;
 }

 .works-sidebar { position: relative; min-height: 0; padding: 20px 20px 12px; border-right: 0; border-bottom: 1px solid var(--line);
 }

 .works-brand { padding: 0 0 18px; border-bottom: 0;
 }

 .start-work { position: absolute; top: 18px; right: 20px; width: auto; min-height: 40px; margin: 0; padding: 0 16px;
 }

 .primary-nav { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; border-bottom: 1px solid var(--line);
 }

 .primary-nav a { flex: 0 0 auto; min-height: 40px; padding: 10px 14px;
 }

 .sidebar-section { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 0;
 }

 .sidebar-section > p, .sidebar-note { display: none;
 }

 .sidebar-section button { flex: 0 0 auto; width: auto; gap: 12px; min-height: 40px;
 }

 .sidebar-lifecycle { margin: 0;
 }

 .works-main { padding: 32px 20px 60px;
 }

 .works-header { align-items: flex-start;
 }

 .works-header h1 { font-size: 32px;
 }

 .header-actions > a { display: none;
 }

 .works-create-grid { grid-template-columns: 1fr;
 }

 .works-create-card { min-height: 180px;
 }

 .works-list { grid-template-columns: repeat(auto-fill,minmax(min(280px,100%),1fr));
 }

 .list-heading > div { display: none;
 }
}

@media (max-width: 520px) {

 .works-main { padding: 28px 16px 56px;
 }

 .works-header { display: grid; gap: 20px;
 }

 .works-header h1 { font-size: 30px;
 }

 .header-actions { justify-content: flex-start;
 }

 .works-toolbar { align-items: stretch; flex-direction: column;
 }

 .search-box { width: 100%;
 }

 .toolbar-side { justify-content: space-between;
 }

 .toolbar-side > label { display: none;
 }

 .toolbar-side select { margin-left: auto;
 }

 .work-row { grid-template-columns: 1fr auto; gap: 16px; padding: 14px;
 }

 .work-thumbnail { width: 100%;
 }

 .work-copy h2 { font-size: 17px;
 }

 .work-actions { grid-column: 2; justify-content: flex-end; flex-wrap: wrap;
 }

 .work-stats { display: grid; grid-column: 1; grid-row: auto; margin: 0; width: auto;
 }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (hover: hover) and (pointer: fine) {

 .work-row:hover .work-thumbnail img { transform: scale(1.025);
 }
}
