/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  /* Casso Open Platform brand tokens */
  --bg: #f5faf7;
  --surface: #ffffff;
  --border: #dbe9e1;
  --border-strong: #b9d1c4;
  --text: #002a18;
  --muted: #4c6b5d;
  --primary: #00a85e;
  --primary-hover: #007e47;
  --primary-soft: #cceeed;
  --danger: #f54a45;
  --danger-soft: #fdeceb;
  --success: #00a85e;
  --warn: #ff8800;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 42, 24, 0.08);
  --font: "DM Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
button:hover {
  background: var(--primary-hover);
}
button.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
button.secondary:hover {
  background: var(--bg);
}
button.danger {
  background: var(--danger);
}
button.ghost {
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
}
button.ghost:hover {
  background: var(--bg);
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  word-break: break-all;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
  margin: 0.5rem 0 0;
}

.warn {
  color: var(--warn);
  font-size: 0.85rem;
}

/* ── Shell layouts ─────────────────────────────────────── */
.dev-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.dev-topbar {
  min-height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}
.brand-mark:hover {
  text-decoration: none;
}
.brand-image {
  width: 46px;
  height: auto;
  flex: 0 0 auto;
}
.brand-wording {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-wording strong {
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}
.brand-wording small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.brand-mark-compact {
  gap: 0.55rem;
}
.brand-mark-compact .brand-image {
  width: 42px;
}
.brand-mark-compact .brand-wording strong {
  font-size: 0.8rem;
}
.brand-mark-compact .brand-wording small {
  font-size: 0.65rem;
}

.dev-topbar-leading,
.account-context,
.org-context,
.user-context,
.user-name-line {
  display: flex;
  align-items: center;
}

.dev-topbar-leading {
  gap: 0.9rem;
  flex: 0 0 auto;
}

.topbar-separator,
.account-divider {
  width: 1px;
  background: var(--border);
  flex: 0 0 auto;
}

.topbar-separator {
  height: 22px;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.topbar-back:hover {
  color: var(--text);
  text-decoration: none;
}

.account-context {
  justify-content: flex-end;
  gap: 1rem;
  min-width: 0;
}

.org-context,
.user-context {
  gap: 0.65rem;
  min-width: 0;
}

.org-context {
  max-width: 330px;
}

.user-context {
  max-width: 250px;
}

.context-icon,
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.context-icon {
  color: var(--primary);
  background: var(--primary-soft);
}

.context-icon svg,
.logout-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.user-avatar {
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #33b97e, #007e47);
  font-size: 0.8rem;
  font-weight: 750;
}

.context-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.context-label {
  margin-bottom: 0.15rem;
  color: #8f959e;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.context-primary,
.context-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-primary {
  font-size: 0.82rem;
  font-weight: 650;
}

.context-secondary {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.context-secondary.mono {
  font-size: 0.68rem;
  word-break: normal;
}

.user-name-line {
  gap: 0.4rem;
  min-width: 0;
}

.role-badge {
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  color: #5f3dc4;
  background: #f0ebff;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.account-divider {
  height: 34px;
}

button.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.78rem;
  white-space: nowrap;
}

button.logout-button:hover {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #ffd5d2;
}

.account-menu-shell {
  position: relative;
  flex: 0 0 auto;
}

button.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
}

button.account-trigger:hover,
button.account-trigger[aria-expanded="true"] {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border);
}

.account-trigger > svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(310px, calc(100vw - 2rem));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow:
    0 12px 32px rgba(0, 42, 24, 0.14),
    0 2px 8px rgba(0, 42, 24, 0.08);
}

.account-menu-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
}

.account-menu-avatar {
  width: 42px;
  height: 42px;
  font-size: 0.95rem;
}

.account-menu-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.account-menu-copy strong,
.account-menu-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-copy strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.account-menu-copy span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.account-menu-divider {
  height: 1px;
  background: var(--border);
}

button.account-menu-logout {
  width: 100%;
  padding: 0.8rem 1rem;
  color: var(--text);
  background: transparent;
  border-radius: 0;
  text-align: left;
  font-weight: 500;
}

button.account-menu-logout:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.dev-main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.hero-panel h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}
.hero-panel .lead {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.field {
  margin-bottom: 0.85rem;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.secret-once {
  border: 1px solid #b7eb8f;
  background: #f6ffed;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
}

.app-list,
.scope-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.app-list li {
  border-top: 1px solid var(--border);
  padding: 0.9rem 0;
}
.app-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.scope-catalog {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}
.scope-product {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: #fafbfc;
}
.scope-product-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.scope-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.35rem 0;
  cursor: pointer;
}
.scope-check input {
  width: auto;
  margin-top: 0.2rem;
}

.login-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, #d6e4ff 0%, transparent 55%),
    var(--bg);
}
.login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.login-card > .brand-mark {
  margin-bottom: 1.25rem;
}
.login-card > .brand-mark .brand-image {
  width: 64px;
}
.login-card > .brand-mark .brand-wording strong {
  font-size: 1rem;
}
.login-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}
.login-card .sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* Admin layout */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-side .brand-mark {
  padding: 0 0.5rem 1.25rem;
}
.admin-nav {
  flex: 1 1;
}
.admin-nav a {
  display: block;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  margin-bottom: 0.2rem;
}
.admin-nav a:hover,
.admin-nav a.active {
  background: var(--primary-soft);
  color: var(--primary-hover);
  text-decoration: none;
}
.admin-side-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.admin-util-link {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.admin-util-link:hover {
  color: var(--primary-hover);
  background: var(--primary-soft);
  text-decoration: none;
}
.admin-content {
  padding: 1.5rem 1.75rem 3rem;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.admin-toolbar h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table th {
  background: #fafbfc;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
}
.badge.inactive {
  background: #f0f0f0;
  color: var(--muted);
}
.badge.api {
  background: #e8f8ef;
  color: #1a7f37;
}
.badge.event {
  background: #fff7e8;
  color: #ad6800;
}

.form-grid {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full {
  grid-column: 1 / -1;
}
@media (max-width: 800px) {
  .dev-topbar {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  .dev-topbar-leading {
    min-width: 0;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-side {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    align-items: center;
    min-height: auto;
    padding: 0.75rem 1rem;
  }
  .admin-side .brand-mark {
    padding: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .dev-topbar .brand-wording {
    display: none;
  }
  .dev-topbar .brand-image {
    width: 40px;
  }
  .topbar-separator {
    display: none;
  }
  .topbar-back {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.tabs button {
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── Side panel / drawer ───────────────────────────────── */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 35, 41, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(31, 35, 41, 0.08);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.drawer-panel.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.drawer-header h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.drawer-body {
  flex: 1 1;
  overflow: auto;
  padding: 1.15rem;
}
.drawer-footer {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  background: #fafbfc;
}

.list-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s ease;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row:hover,
.list-row.active {
  background: var(--primary-soft);
}
.list-row-title {
  font-weight: 650;
  margin: 0 0 0.15rem;
}
.list-row-meta {
  color: var(--muted);
  font-size: 0.82rem;
}
.list-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}

/* ── Portal app detail scopes ─────────────────────────── */
.section-title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}
.cred-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.cred-grid {
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}
.cred-value {
  padding: 0.55rem 0.75rem;
  background: #f7f8fa;
  border-radius: 8px;
  border: 1px solid var(--border);
  word-break: break-all;
}
.cred-secret-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.cred-secret-row .cred-value {
  flex: 1 1;
}
.icon-btn {
  font-size: 1.1rem;
  padding: 0.4rem 0.55rem;
  min-width: 2.4rem;
}
.scope-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.scope-table {
  width: 100%;
  border-collapse: collapse;
}
.scope-table th,
.scope-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.scope-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafbfc;
}
.scope-table tr:last-child td {
  border-bottom: 0;
}
.scope-name {
  font-weight: 650;
  margin-bottom: 0.15rem;
}
.badge.ok {
  background: #e8f8ef;
  color: #1a7f37;
}
.linkish {
  background: none;
  border: 0;
  color: var(--primary);
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.linkish:hover {
  text-decoration: underline;
}
.danger-text {
  color: #c62828;
}
.add-scope-toolbar {
  margin-bottom: 0.85rem;
}
.add-scope-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.add-scope-products {
  background: #f7f8fa;
  border-right: 1px solid var(--border);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: auto;
}
.add-scope-products button {
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.5rem 0.65rem;
}
.add-scope-products button.active,
.add-scope-products button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.add-scope-list {
  overflow: auto;
  max-height: 520px;
}
.add-scope-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.add-scope-row:hover {
  background: #fafbfc;
}
.related-apis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.api-chip {
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (max-width: 800px) {
  .add-scope-layout {
    grid-template-columns: 1fr;
  }
  .add-scope-products {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ── Product detail workspace ──────────────────────────── */
.product-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.product-detail-header h1 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.product-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  min-height: 420px;
}
.workspace-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}
.workspace-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.workspace-list {
  flex: 1 1;
  max-height: calc(100vh - 260px);
  overflow: auto;
}
.seg {
  display: flex;
  gap: 0.4rem;
}
.seg button {
  flex: 1 1;
}
.seg button.active {
  background: var(--primary);
  color: #fff;
}
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
@media (max-width: 900px) {
  .product-workspace {
    grid-template-columns: 1fr;
  }
  .workspace-list {
    max-height: 320px;
  }
}

