#app-titlebar {
  --app-window-controls-width: 138px;
  height: 40px;
  min-height: 40px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 calc(var(--app-window-controls-width) + 18px) 0 18px;
  flex-shrink: 0;
  -webkit-app-region: drag;
  user-select: none;
  position: relative;
  z-index: 10001;
}

#app-titlebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

#app-titlebar-logo {
  height: 31px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

#app-titlebar-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body:not(.ops-work-mode) #shell,
body[data-ops-mode="home"] #shell,
body[data-ops-mode="admin"] #shell,
body[data-ops-mode="api"] #shell,
body[data-ops-mode="safe"] #shell {
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.ops-work-mode #shell,
body[data-ops-mode="work"] #shell {
  display: flex !important;
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.ops-login-gate #shell {
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body:not(.ops-work-mode) #login-overlay,
body[data-ops-mode="home"] #login-overlay,
body[data-ops-mode="admin"] #login-overlay,
body[data-ops-mode="api"] #login-overlay,
body[data-ops-mode="safe"] #login-overlay {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

body.ops-work-mode #ops-mode-hub,
body[data-ops-mode="work"] #ops-mode-hub {
  display: none !important;
}

body:not(.ops-work-mode) #app-titlebar,
body[data-ops-mode="home"] #app-titlebar,
body[data-ops-mode="admin"] #app-titlebar,
body[data-ops-mode="api"] #app-titlebar,
body[data-ops-mode="safe"] #app-titlebar {
  display: flex;
  background: #fff;
  border-bottom: 1px solid rgba(49,45,36,.12);
  -webkit-app-region: drag;
}

body:not(.ops-work-mode) #app-titlebar-brand,
body[data-ops-mode="home"] #app-titlebar-brand,
body[data-ops-mode="admin"] #app-titlebar-brand,
body[data-ops-mode="api"] #app-titlebar-brand,
body[data-ops-mode="safe"] #app-titlebar-brand {
  display: none;
}

body:not(.ops-work-mode) #app-titlebar::after,
body[data-ops-mode="home"] #app-titlebar::after,
body[data-ops-mode="admin"] #app-titlebar::after,
body[data-ops-mode="api"] #app-titlebar::after,
body[data-ops-mode="safe"] #app-titlebar::after {
  display: none;
}

#ops-mode-hub {
  position: relative;
  isolation: isolate;
  min-height: 0;
  overflow: auto;
  padding: 24px clamp(18px, 2.6vw, 40px) 42px;
  background:
    radial-gradient(circle at 48% -14%, var(--ops2a-glow, rgba(255,255,255,.88)) 0 16%, rgba(255,255,255,0) 39%),
    linear-gradient(112deg, var(--ops2a-bg-a, #e9f2e8) 0%, var(--ops2a-bg-b, #eee9df) 44%, var(--ops2a-bg-c, #f7f4ee) 100%);
  color: #20221e;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", var(--sans), sans-serif;
  --ops-card: rgba(255,255,255,.86);
  --ops-input: rgba(248,247,242,.78);
  --ops-panel: rgba(255,255,255,.9);
  --ops-soft: rgba(248,247,242,.72);
  --ops-chip: rgba(239,236,228,.72);
  --ops-accent: #2e765c;
  --ops-accent-dark: #27694f;
  --ops-ambient-a: rgba(121,148,120,.2);
  --ops-ambient-b: rgba(226,217,194,.46);
  --ops-ambient-c: rgba(217,224,208,.08);
  --ops-ink: #20221e;
  --ops-muted: #8b8679;
  --ops-line: rgba(49,45,36,.1);
  --ops-shadow: 0 14px 30px rgba(49,45,36,.11), 0 1px 0 rgba(255,255,255,.78) inset;
  --ops-control-h: 40px;
  transition: background .22s ease, color .22s ease;
}

body[data-ops-theme="blue"] #ops-mode-hub {
  --ops2a-bg-a: #e8f3ff;
  --ops2a-bg-b: #eef4fb;
  --ops2a-bg-c: #f8fbff;
  --ops2a-glow: rgba(255,255,255,.9);
  --ops-card: rgba(255,255,255,.88);
  --ops-panel: rgba(255,255,255,.92);
  --ops-soft: rgba(239,247,255,.78);
  --ops-chip: rgba(231,241,253,.82);
  --ops-accent: #2f6f9f;
  --ops-accent-dark: #255c85;
  --ops-ambient-a: rgba(86,130,179,.22);
  --ops-ambient-b: rgba(189,215,241,.48);
  --ops-ambient-c: rgba(214,229,241,.16);
}

body[data-ops-theme="mint"] #ops-mode-hub,
body[data-ops-theme="green"] #ops-mode-hub {
  --ops2a-bg-a: #e8f5ed;
  --ops2a-bg-b: #edf4e9;
  --ops2a-bg-c: #f8fbf5;
  --ops-card: rgba(255,255,255,.88);
  --ops-panel: rgba(255,255,255,.92);
  --ops-soft: rgba(239,248,241,.78);
  --ops-chip: rgba(226,241,231,.82);
  --ops-accent: #2e765c;
  --ops-accent-dark: #27694f;
  --ops-ambient-a: rgba(86,151,112,.22);
  --ops-ambient-b: rgba(197,225,205,.5);
  --ops-ambient-c: rgba(217,235,220,.18);
}

body[data-ops-theme="cream"] #ops-mode-hub {
  --ops2a-bg-a: #f6f0df;
  --ops2a-bg-b: #f3ead9;
  --ops2a-bg-c: #fffaf0;
  --ops-card: rgba(255,254,249,.9);
  --ops-panel: rgba(255,254,249,.94);
  --ops-soft: rgba(250,244,229,.82);
  --ops-chip: rgba(241,232,211,.86);
  --ops-accent: #8c6b2f;
  --ops-accent-dark: #725523;
  --ops-ambient-a: rgba(185,157,94,.22);
  --ops-ambient-b: rgba(231,215,176,.54);
  --ops-ambient-c: rgba(244,234,209,.2);
}

body[data-ops-theme="lavender"] #ops-mode-hub {
  --ops2a-bg-a: #efecff;
  --ops2a-bg-b: #f0eef9;
  --ops2a-bg-c: #fbfaff;
  --ops-card: rgba(255,255,255,.9);
  --ops-panel: rgba(255,255,255,.94);
  --ops-soft: rgba(246,243,255,.8);
  --ops-chip: rgba(236,231,252,.84);
  --ops-accent: #7462a8;
  --ops-accent-dark: #5f4f8c;
  --ops-ambient-a: rgba(129,105,177,.2);
  --ops-ambient-b: rgba(215,204,242,.5);
  --ops-ambient-c: rgba(233,228,248,.18);
}

body[data-ops-theme="rose"] #ops-mode-hub {
  --ops2a-bg-a: #fff0f2;
  --ops2a-bg-b: #f8eeee;
  --ops2a-bg-c: #fff8f8;
  --ops-card: rgba(255,255,255,.9);
  --ops-panel: rgba(255,255,255,.94);
  --ops-soft: rgba(255,244,245,.8);
  --ops-chip: rgba(249,229,231,.84);
  --ops-accent: #a85663;
  --ops-accent-dark: #8f4651;
  --ops-ambient-a: rgba(180,98,111,.2);
  --ops-ambient-b: rgba(241,203,209,.5);
  --ops-ambient-c: rgba(249,229,232,.18);
}

body[data-ops-theme="graphite"] #ops-mode-hub {
  --ops2a-bg-a: #eceff1;
  --ops2a-bg-b: #f1f0eb;
  --ops2a-bg-c: #faf9f5;
  --ops-card: rgba(255,255,255,.9);
  --ops-panel: rgba(255,255,255,.94);
  --ops-soft: rgba(243,244,245,.82);
  --ops-chip: rgba(231,233,235,.86);
  --ops-accent: #52616b;
  --ops-accent-dark: #3f4b54;
  --ops-ambient-a: rgba(105,117,125,.18);
  --ops-ambient-b: rgba(209,213,216,.52);
  --ops-ambient-c: rgba(229,231,232,.18);
}

#ops-mode-hub > * {
  position: relative;
  z-index: 2;
}

#ops-mode-hub [hidden] {
  display: none !important;
}

.ops2a-ambient,
.ops2a-sheen,
.ops2a-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ops2a-ambient {
  perspective: 900px;
}

.ops2a-ambient i,
.ops2a-ambient b,
.ops2a-ambient em {
  position: absolute;
  display: block;
  border-radius: 34% 66% 48% 52%;
}

.ops2a-ambient i {
  left: -9vw;
  top: -12vh;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle at 55% 45%, var(--ops-ambient-a), transparent 62%);
  transform: translate3d(0,0,0) rotateZ(-8deg);
}

.ops2a-ambient b {
  right: -10vw;
  top: 8vh;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle at 42% 55%, var(--ops-ambient-b), transparent 65%);
  transform: translate3d(0,0,0) rotateZ(4deg);
}

.ops2a-ambient em {
  left: 34vw;
  bottom: -22vw;
  width: 54vw;
  height: 54vw;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.66), var(--ops-ambient-c) 54%, transparent 72%);
  transform: translate3d(0,0,0) scale(1);
}

.ops2a-sheen {
  background:
    linear-gradient(105deg, transparent 0 28%, rgba(255,255,255,.28) 42%, transparent 58% 100%),
    radial-gradient(circle at 70% 76%, rgba(255,255,255,.4), transparent 31%);
  opacity: .42;
}

.ops2a-noise {
  opacity: .04;
  background-image:
    linear-gradient(90deg, rgba(32,34,30,.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32,34,30,.12) 1px, transparent 1px);
  background-size: 76px 76px;
}

#ops-mode-hub.ops-effects-paused,
#ops-mode-hub.ops-effects-paused *,
body.ops-work-transitioning #ops-mode-hub,
body.ops-work-transitioning #ops-mode-hub * {
  transition: none !important;
  animation: none !important;
}

#ops-mode-hub.ops-effects-paused .ops2a-ambient,
#ops-mode-hub.ops-effects-paused .ops2a-sheen,
#ops-mode-hub.ops-effects-paused .ops2a-noise {
  opacity: 0 !important;
}

.ops-inline-notice {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 10050;
  max-width: min(520px, calc(100vw - 52px));
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid rgba(49,45,36,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(49,45,36,.18);
  color: #1f2933;
  font-family: var(--ops-font-body, system-ui, sans-serif);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.ops-inline-notice.is-show {
  opacity: 1;
  transform: translateY(0);
}

.ops-inline-notice b {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
}

.ops-inline-notice span {
  font-size: 12px;
  line-height: 1.35;
  color: #6f6a5d;
}

.ops-inline-notice.is-success {
  border-color: rgba(45,112,83,.24);
}

.ops-inline-notice.is-warn {
  border-color: rgba(180,83,9,.28);
}

.ops-entry,
.ops-mode-page {
  width: min(100%, 1820px);
  margin: 0 auto;
}

.ops-entry {
  min-height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(28px, 4.6vh, 42px);
  padding-top: clamp(42px, 7vh, 78px);
}

.ops-entry-greeting {
  width: min(100%, 1320px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.ops-greeting-emoji {
  display: none;
}

.ops-entry-date {
  margin: 0;
  color: rgba(32,34,30,.44);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.ops-entry-greeting h1 {
  margin: 0;
  color: #171915;
  font-family: "Newsreader", "Noto Serif KR", Georgia, serif;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: 0;
}

.ops-entry-lead {
  margin: 0;
  color: rgba(32,34,30,.56);
  font-size: 14px;
  font-weight: 800;
}

.ops-entry-grid {
  width: min(100%, 1820px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, .98fr);
  grid-template-rows: repeat(3, minmax(104px, 1fr));
  gap: 16px 22px;
}

.ops-entry-card {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 18px;
  background: var(--ops-card);
  box-shadow: var(--ops-shadow);
  color: var(--ops-ink);
  cursor: pointer;
  display: grid;
  justify-items: start;
  text-align: left;
  transform: perspective(900px) rotateX(var(--ops-tilt-x, 0deg)) rotateY(var(--ops-tilt-y, 0deg)) translate3d(0,0,0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  contain: layout paint;
}

.ops-entry-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ops-glow-x, 30%) var(--ops-glow-y, 20%), rgba(255,255,255,.72), transparent 32%);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}

.ops-entry-card:hover {
  border-color: color-mix(in srgb, var(--ops-accent) 28%, transparent);
  box-shadow: 0 24px 54px rgba(49,45,36,.18), 0 2px 0 rgba(255,255,255,.9) inset;
  transform: perspective(900px) rotateX(var(--ops-tilt-x, 0deg)) rotateY(var(--ops-tilt-y, 0deg)) translate3d(0,-3px,0);
}

.ops-entry-card:hover::before {
  opacity: 1;
}

.ops-entry-card:first-child {
  grid-row: 1 / 4;
  min-height: 344px;
  padding: 30px 36px 34px;
  grid-template-rows: auto minmax(70px,1fr) auto auto;
  align-content: space-between;
  gap: 24px;
}

.ops-entry-card:not(:first-child) {
  padding: 26px 24px;
  grid-template-columns: 48px minmax(0,1fr) 32px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 14px;
}

.ops-card-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--ops-accent-dark);
  display: grid;
  place-items: start;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
}

.ops-entry-card:not(:first-child) .ops-card-icon {
  grid-row: 1 / 3;
  font-size: 34px;
  align-self: center;
}

.ops-entry-card strong {
  position: relative;
  z-index: 1;
  color: #1d1f1b;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.ops-entry-card:first-child strong {
  align-self: end;
  font-size: clamp(28px, 2.2vw, 36px);
}

.ops-entry-card small {
  position: relative;
  z-index: 1;
  color: rgba(32,34,30,.58);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-entry-card em {
  position: relative;
  z-index: 1;
  min-height: 30px;
  width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--ops-accent);
  color: #fff;
  box-shadow: 0 12px 22px color-mix(in srgb, var(--ops-accent) 28%, transparent);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 900;
  font-style: normal;
}

.ops-entry-card:not(:first-child) em {
  grid-column: 3;
  grid-row: 1 / 3;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: color-mix(in srgb, var(--ops-accent) 76%, transparent);
  font-size: 0;
}

.ops-entry-card:not(:first-child) em::after {
  content: "→";
  font-size: 25px;
  line-height: 1;
  font-weight: 400;
}

.ops-entry-card:first-child::after {
  content: "WORK";
  position: absolute;
  right: 36px;
  top: 34px;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ops-accent) 12%, transparent);
  color: var(--ops-accent-dark);
  padding: 0 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
}

.ops-mode-page {
  padding: 28px 0 34px;
}

.ops-mode-head {
  min-height: 112px;
  margin-bottom: 22px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 18px;
  background: var(--ops-panel);
  box-shadow: var(--ops-shadow);
}

.ops-mode-head button {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(49,45,36,.1);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ops-panel) 92%, #fff);
  color: var(--ops-accent-dark);
  box-shadow: 0 8px 20px rgba(49,45,36,.08);
}

.ops-mode-head h2 {
  color: #191b17;
  font-family: "Newsreader", "Noto Serif KR", Georgia, serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
  letter-spacing: 0;
}

.ops-mode-head p {
  max-width: 860px;
  color: rgba(32,34,30,.6);
  font-size: 14px;
  font-weight: 800;
}

.ops-head-tags {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ops-head-tags span,
.ops-pill,
.ops-log-row em,
.ops-guard-row em,
.ops-mode-split em,
.ops-preview-card span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: color-mix(in srgb, var(--ops-accent) 14%, #fff);
  color: var(--ops-accent-dark);
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ops-log-row em,
.ops-guard-row em {
  width: 64px;
  padding: 0 8px;
}

.ops-mode-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.ops-mode-panel {
  min-width: 0;
  display: grid;
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 18px;
  background: var(--ops-panel);
  box-shadow: var(--ops-shadow);
  padding: 24px;
  gap: 14px;
  contain: layout paint;
}

.ops-mode-panel.ops-span {
  grid-column: 1 / -1;
}

.ops-mode-panel h3 {
  color: #191b17;
  font-size: 19px;
  font-weight: 900;
}

.ops-mode-panel h4 {
  color: #242620;
  font-size: 15px;
}

.ops-mode-panel p,
.ops-mode-panel small {
  color: rgba(32,34,30,.58);
}

.ops-setting-row,
.ops-api-row,
.ops-log-row,
.ops-guard-row {
  display: grid;
  grid-template-columns: minmax(170px,1fr) minmax(220px,1.45fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(49,45,36,.1);
  background: transparent;
  padding: 14px 0;
}

.ops-api-row {
  grid-template-columns: 180px minmax(0,1fr) auto auto;
}

.ops-log-row {
  grid-template-columns: 76px minmax(0,1fr) minmax(170px,.74fr) 64px;
}

.ops-setting-row span,
.ops-api-row span,
.ops-guard-row span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ops-setting-row:last-child,
.ops-api-row:last-child,
.ops-log-row:last-child,
.ops-guard-row:last-child {
  border-bottom: 0;
}

.ops-setting-row b,
.ops-api-row b,
.ops-guard-row b {
  color: #20221e;
  font-size: 14px;
  line-height: 1.3;
}

.ops-setting-row small,
.ops-api-row small,
.ops-guard-row small {
  color: rgba(32,34,30,.55);
  font-size: 12px;
  line-height: 1.45;
}

.ops-api-row small.ops-api-state {
  color: var(--ops-accent-dark);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-api-row small.ops-api-state.is-warn {
  color: #8d6025;
}

.ops-api-row small.ops-api-state.is-error {
  color: #9e2f38;
}

.ops-mode-panel code,
.ops-key-row code,
.ops-api-row code,
.ops-log-row code,
.ops-guard-row code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: var(--ops-control-h);
  line-height: calc(var(--ops-control-h) - 2px);
  padding: 0 14px;
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 999px;
  background: var(--ops-chip);
  color: rgba(32,34,30,.68);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.ops-api-row input {
  width: 100%;
  min-width: 0;
  height: var(--ops-control-h);
  border: 1px solid rgba(49,45,36,.14);
  border-radius: 0;
  background: #fff;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #20221e;
}

.ops-swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.ops-swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(49,45,36,.16);
  background: var(--bg);
  box-shadow: inset 0 0 0 5px var(--card);
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.ops-swatch.is-on {
  border-color: var(--ops-accent);
  box-shadow: inset 0 0 0 5px var(--card), 0 0 0 2px color-mix(in srgb, var(--ops-accent) 22%, transparent);
}

.ops-range-row {
  display: grid;
  grid-template-columns: minmax(160px,1fr) 58px;
  align-items: center;
  gap: 10px;
}

.ops-range-row input {
  width: 100%;
  accent-color: var(--ops-accent);
}

.ops-preview-wrap,
.ops-mode-split > div,
.ops-detail-grid article {
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 18px;
  background: var(--ops-soft);
}

.ops-preview-card,
.ops-preview-text {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  background: color-mix(in srgb, var(--ops-panel) 84%, transparent);
}

.ops-preview-wrap {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ops-mode-split,
.ops-detail-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.ops-mode-split > div,
.ops-detail-grid article {
  min-width: 0;
  padding: 14px;
}

.ops-detail-grid article h4 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.35;
}

.ops-detail-grid article p,
.ops-detail-grid article ol {
  margin: 0 0 10px;
  color: rgba(32,34,30,.65);
  font-size: 13px;
  line-height: 1.55;
}

.ops-detail-grid article ol {
  padding-left: 18px;
}

.ops-detail-grid article code {
  width: 100%;
}

.ops-range-row b {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(49,45,36,.08);
  color: rgba(32,34,30,.7);
}

.ops-small-action,
.ops-api-row button,
.ops-action-row button,
.ops-key-row button {
  height: var(--ops-control-h);
  min-height: var(--ops-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49,45,36,.1);
  border-radius: 0;
  background: color-mix(in srgb, var(--ops-panel) 90%, #fff);
  color: #20221e;
  box-shadow: 0 8px 18px rgba(49,45,36,.08);
  min-width: 62px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-api-row button[id="ops-run-tml-audit"],
.ops-action-row button:first-child,
#ops-save-claude-key {
  border-color: var(--ops-accent);
  background: var(--ops-accent);
  color: #fff;
  box-shadow: 0 12px 22px color-mix(in srgb, var(--ops-accent) 26%, transparent);
}

#ops-save-claude-key {
  min-width: 74px;
}

.ops-api-row button[id="ops-run-tml-audit"] {
  min-width: 92px;
}

.ops-api-row button[id="ops-open-tml-report"] {
  min-width: 62px;
}

.ops-action-row button {
  min-width: 108px;
}

.ops-action-row button:first-child {
  min-width: 86px;
}

.ops-progress-row {
  display: grid;
  grid-template-columns: 110px minmax(160px,1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 16px;
  background: var(--ops-input);
}

.ops-progress-row span {
  display: grid;
  gap: 2px;
}

.ops-progress-row b {
  color: var(--ops-accent-dark);
  font-size: 13px;
}

.ops-progress-row small {
  font-size: 12px;
  color: rgba(32,34,30,.58);
}

.ops-progress-row i {
  height: 8px;
  border-radius: 999px;
  background: rgba(49,45,36,.08);
  overflow: hidden;
}

.ops-progress-row em {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e765c, #7aa488);
}

.ops-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ops-diagnostics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-diagnostics-head h3 {
  margin: 0;
}

.ops-diagnostics-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-segment {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(49,45,36,.08);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ops-soft) 76%, #fff);
}

.ops-segment button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(32,34,30,.62);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.ops-segment button.is-active {
  background: var(--ops-accent);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--ops-accent) 24%, transparent);
}

#ops-diagnostics-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

#ops-diagnostics-list .ops-log-row code {
  min-width: 0;
}

.ops-log-row time {
  color: var(--ops-accent-dark);
  font-size: 13px;
  line-height: 1.35;
}

.ops-log-row span {
  color: rgba(32,34,30,.67);
  font-size: 13px;
  line-height: 1.45;
}

.ops-log-row.is-warn em,
.ops-guard-row em:last-child {
  background: rgba(178,126,41,.15);
  color: #8d6025;
}

.ops-log-row.is-lock em {
  background: rgba(170,50,58,.12);
  color: #9e2f38;
}

@media (max-width: 980px) {
  .ops-entry-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .ops-entry-card:first-child {
    grid-row: auto;
    min-height: 280px;
  }

  .ops-mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  #ops-mode-hub {
    padding: 18px 14px 28px;
  }

  .ops-entry {
    min-height: calc(100vh - 110px);
    gap: 28px;
  }

  .ops-entry-greeting h1 {
    font-size: 39px;
  }

  .ops-entry-card:first-child,
  .ops-entry-card:not(:first-child) {
    min-height: 132px;
    padding: 22px;
  }

  .ops-entry-card:not(:first-child) {
    grid-template-columns: 48px minmax(0,1fr) 28px;
  }

  .ops-mode-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-mode-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ops2a-ambient i,
  .ops2a-ambient b,
  .ops2a-ambient em,
  .ops2a-sheen {
    animation: none;
  }

  .ops-entry-card {
    transform: none !important;
  }
}
