.workspace-theme {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #f7fbff 0%, #f1f6ff 42%, #ffffff 100%);
  color: #20324f;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
}
.workspace-theme .site-header nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid rgba(216, 226, 242, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.workspace-theme .nav-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.workspace-theme .brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}
.workspace-theme .brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #10223d;
  white-space: nowrap;
  text-decoration: none;
}
.workspace-theme #nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.workspace-theme #nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #354764;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.workspace-theme #nav-links a:hover,
.workspace-theme #nav-links a:focus-visible {
  border-color: #d8e2f2;
  background: #f6f9ff;
  color: #0e1f36;
  outline: none;
}
.workspace-theme .mobile-nav-toggle {
  display: none;
  border: 1px solid #d8e2f2;
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: #0f2b55;
  cursor: pointer;
}
.workspace-theme #welcome {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d8e2f2;
  border-radius: 999px;
  padding: 6px 12px;
  color: #365278;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.workspace-theme #nav-lang-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.workspace-theme #lang-menu-toggle {
  border: 1px solid #c9dbf7;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  border-radius: 999px;
  padding: 2px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(14, 40, 73, 0.08);
}
.workspace-theme #lang-menu-toggle img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.workspace-theme #lang-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 168px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #c8daf6;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 14px 34px rgba(8, 29, 61, 0.16);
  overflow: hidden;
}
.workspace-theme #lang-options.hidden {
  display: none;
}
.workspace-theme #lang-options button {
  border: 1px solid transparent;
  background: #f6faff;
  border-radius: 10px;
  padding: 2px;
  width: 44px;
  height: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.workspace-theme #lang-options button img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.workspace-layout {
  width: min(1380px, calc(100% - 2rem));
  margin: 104px auto 34px;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  position: relative;
}
.workspace-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100dvh - 96px);
  overflow: auto;
  border: 1px solid #d8e2f2;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(13, 26, 52, 0.09);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px;
  z-index: 35;
}
.workspace-sidebar .sidebar-title {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #10223d;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.workspace-sidebar .sidebar-subtitle {
  margin: 0 0 12px;
  color: #4b648a;
  font-size: 0.8rem;
}
.workspace-sidebar .sidebar-nav {
  display: grid;
  gap: 8px;
}
.workspace-sidebar .sidebar-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e2f2;
  border-radius: 12px;
  padding: 10px 12px;
  color: #2f4b73;
  background: #f8fbff;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
  text-decoration: none;
}
.workspace-sidebar .sidebar-link:hover {
  border-color: #a8c0ea;
  background: #f0f6ff;
  color: #12315e;
}
.workspace-sidebar .sidebar-link.active .sidebar-index {
  background: #1b6be8;
  border-color: #1b6be8;
  color: #fff;
}
.workspace-sidebar .sidebar-link.active-cta {
  margin-top: 14px;
  justify-content: center;
  background: linear-gradient(135deg, #1b6be8 0%, #0f5fd4 100%);
  border-color: #1b6be8;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 20px rgba(20, 74, 160, 0.22);
}
.workspace-sidebar .sidebar-link.active-cta .sidebar-index {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.workspace-sidebar .sidebar-index svg,
.workspace-sidebar .sidebar-step-index svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}
.workspace-content {
  min-width: 0;
}
.page-hero {
  border: 1px solid #d8e2f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 20px;
  box-shadow: 0 12px 28px rgba(13, 26, 52, 0.09);
}
.page-hero h1 {
  margin: 0;
  color: #10223d;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}
.page-hero p {
  margin: 8px 0 0;
  color: #4f668a;
  line-height: 1.55;
}
.panel-card {
  border: 1px solid #d8e2f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 26, 52, 0.09);
  margin-top: 14px;
  padding: 18px;
}
.table-header,
.file-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr 1.5fr;
  gap: 12px;
  align-items: center;
}
.table-header {
  padding: 6px 2px 10px;
  border-bottom: 1px solid #dce7f8;
  color: #5f7497;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.file-row {
  border: 1px solid #d8e2f2;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}
.file-value {
  color: #163257;
  font-size: 0.96rem;
  font-weight: 600;
  word-break: break-word;
}
.button-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.button-stack.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.action-btn {
  border: 1px solid #bed0ee;
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f5fd4;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  line-height: 1.2;
  white-space: normal;
}
.action-btn:hover {
  border-color: #8fb3ea;
  box-shadow: 0 10px 20px rgba(20, 74, 160, 0.12);
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kv {
  border: 1px solid #d8e2f2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f9fbff;
}
.kv b {
  display: block;
  color: #11305e;
  margin-bottom: 5px;
}
.text-block {
  border: 1px solid #d8e2f2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdff;
  white-space: pre-wrap;
  word-break: break-word;
}
.form-grid {
  display: grid;
  gap: 10px;
}
.form-grid label {
  font-weight: 700;
  color: #1c3a66;
}
.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid #c7d9f6;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.form-grid textarea {
  min-height: 96px;
}
.message-list {
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.msg {
  border: 1px solid #d8e2f2;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.msg.admin {
  border-color: #b9d2fb;
  background: #f3f8ff;
}
.msg .meta {
  font-size: 0.78rem;
  color: #587198;
  margin-bottom: 6px;
}
.empty-state {
  padding: 20px;
  text-align: center;
  color: #5d7394;
}
.sidebar-toggle,
.sidebar-overlay {
  display: none;
}
@media (max-width: 1023px) {
  .workspace-theme .mobile-nav-toggle { display: inline-flex; }
  .workspace-theme #nav-links { display: none; position: absolute; top: 74px; left: 1rem; right: 1rem; flex-direction: column; border: 1px solid #d8e2f2; border-radius: 14px; background: #fff; padding: 10px; }
  .workspace-theme #nav-links.hidden { display: none; }
  .workspace-theme #nav-links:not(.hidden) { display: flex; }
  .workspace-layout {
    grid-template-columns: 1fr;
    margin-top: 92px;
  }
  .workspace-sidebar {
    position: static;
    max-height: none;
  }
  .table-header { display: none; }
  .file-row { grid-template-columns: 1fr; }
  .button-stack,
  .button-stack.cols-3,
  .grid-two { grid-template-columns: 1fr; }
}
