/* src/css/variables.css */
:root {
  --color-primary: #007aff;
  --color-primary-hover: #005bb5;
  --color-primary-light: #e3f2fd;
  --color-primary-border: #90caf9;
  --color-primary-text: #1565c0;
  --color-dark: #455a64;
  --color-dark-hover: #37474f;
  --color-dark-border: #cfd8dc;
  --color-danger: #d32f2f;
  --color-danger-hover: #b71c1c;
  --color-danger-light: #ffebee;
  --color-danger-border: #ef9a9a;
  --color-warning: #ff9800;
  --color-warning-hover: #e68a00;
  --color-warning-light: #fff3e0;
  --color-warning-text: #e65100;
  --color-success: #4caf50;
  --color-success-hover: #43a047;
  --color-success-light: #e8f5e9;
  --color-success-text: #2e7d32;
  --color-text-title: #222222;
  --color-text-main: #333333;
  --color-text-dark: #111111;
  --color-text-sub: #555555;
  --color-text-muted: #666666;
  --color-text-light: #888888;
  --color-bg-body: #ffffff;
  --color-bg-view: #ffffff;
  --color-bg-panel: #ffffff;
  --color-bg-sub: #f9f9f9;
  --color-bg-hover: #f5f5f5;
  --color-bg-header: rgba(255, 255, 255, 0.95);
  --color-border-light: #eeeeee;
  --color-border-main: #dddddd;
  --color-border-dark: #cccccc;
  --color-group-badge-bg: #e1bee7;
  --color-group-badge-text: #4a148c;
  --color-owner-badge-bg: #f0f4c3;
  --color-owner-badge-text: #827717;
  --color-board-wood: #f4d79c;
  --color-board-edge: #3e2723;
  --font-family-base:
    "M PLUS 1p",
    "Helvetica Neue",
    Helvetica,
    Arial,
    "Hiragino Sans",
    "\30d2\30e9\30ae\30ce\89d2\30b4  ProN",
    "Meiryo",
    "\30e1\30a4\30ea\30aa",
    sans-serif;
  --font-family-mono:
    "Consolas",
    "Monaco",
    monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.15);
  --shadow-modal: 0 4px 15px rgba(0,0,0,0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;
  --radius-circle: 50%;
}

/* src/css/base.css */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-family-base);
  background: var(--color-bg-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s;
  min-height: 100vh;
}
#app-header {
  width: 100%;
}
body.view-mode {
  background: var(--color-bg-view);
}
.global-controls {
  width: 100%;
  z-index: 3000;
  background: var(--color-bg-header);
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  box-sizing: border-box;
  transition: opacity 0.3s;
}
body.view-mode .global-controls {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}
#app-main-content {
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1;
}
[id$=-view] {
  width: 100%;
  padding: 20px 40px 40px;
  box-sizing: border-box;
}
#app-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  min-height: 200px;
  max-width: 1150px;
  padding: 0 20px;
  box-sizing: border-box;
  margin: 0 auto;
}
#title-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 20px;
  padding: 0 20px;
  box-sizing: border-box;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
body.auth-initializing .header-right {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
body.auth-initializing .guest-controls {
  display: none !important;
}
.view-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 12px;
}
.view-heading h2,
.view-heading h3 {
  color: var(--color-dark);
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}
@media (max-width: 800px) {
  #app-root,
  #title-wrapper,
  #comments-section,
  .global-controls,
  [id$=-view] {
    padding-left: 10px;
    padding-right: 10px;
  }
  .header-left span {
    font-size: 16px;
  }
  .header-right {
    gap: 10px;
    justify-content: flex-end;
  }
}

/* src/css/components.css */
.io-btn {
  font-size: 14px;
  padding: 8px 16px;
  color: var(--color-bg-panel);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-family-base);
}
.io-btn:active {
  transform: scale(0.98);
}
.io-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background-color: var(--color-border-dark) !important;
  color: var(--color-text-muted) !important;
}
.btn-orange {
  background: var(--color-warning);
}
.btn-orange:hover {
  background: var(--color-warning-hover);
}
.btn-dark {
  background: var(--color-dark);
}
.btn-dark:hover {
  background: var(--color-dark-hover);
}
.btn-blue {
  background: var(--color-primary);
}
.btn-blue:hover {
  background: var(--color-primary-hover);
}
.btn-green {
  background: var(--color-success);
}
.btn-green:hover {
  background: var(--color-success-hover);
}
.add-large-btn {
  font-size: 16px;
  padding: 12px 24px;
  color: var(--color-bg-panel);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
}
.add-large-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}
.add-large-btn:active {
  transform: translateY(0);
}
.add-large-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background-color: var(--color-border-dark);
}
.settings-btn-icon {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-dark);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
}
.settings-btn-icon:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}
.settings-dropdown-panel {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 12px;
  z-index: 5000;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}
.settings-dropdown-panel.show {
  display: flex;
  animation: fadeInDropdown 0.2s ease-out;
}
@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.settings-dropdown-panel .io-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  white-space: nowrap;
}
.settings-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-row label {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-sub);
}
.settings-toggle-group {
  display: flex;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  width: fit-content;
}
.settings-toggle-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text-sub);
  transition: background 0.2s, color 0.2s;
  user-select: none;
}
.settings-toggle-btn.active {
  background: var(--color-dark);
  color: var(--color-bg-panel);
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border-dark);
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-bg-panel);
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: var(--color-primary);
}
input:checked + .slider:before {
  transform: translateX(24px);
}
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 4000;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 15px;
}
.modal-content {
  background: var(--color-bg-panel);
  padding: 20px;
  border-radius: var(--radius-md);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: var(--shadow-modal);
  animation: fadeIn 0.2s ease-out;
  box-sizing: border-box;
  margin: 0;
}
.auth-modal-content {
  max-width: 340px;
}
.history-modal-content {
  max-width: 500px;
  max-height: 100%;
  overflow-y: auto;
}
.sgf-modal-content {
  max-width: 400px;
}
.modal-header {
  font-weight: bold;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-main);
}
.modal-close {
  cursor: pointer;
  font-size: 20px;
  color: var(--color-text-light);
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--color-text-main);
}
.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 15px;
}
.modal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.modal-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--color-text-sub);
}
.modal-input {
  padding: 8px;
  border: 1px solid var(--color-border-main);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  width: 100%;
}
.modal-input:focus {
  border-color: var(--color-primary);
  outline: none;
}
.modal-btn {
  padding: 8px 12px;
  background: var(--color-dark);
  color: var(--color-bg-panel);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: var(--font-family-base);
}
.modal-btn:hover {
  background: var(--color-dark-hover);
}
.modal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-border-dark);
  color: var(--color-text-muted);
}
.modal-btn-row {
  display: flex;
  gap: 10px;
}
.loader-spinner {
  border: 3px solid var(--color-bg-hover);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: 0 auto 8px auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.line-clamp-1 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}
.scroll-row::-webkit-scrollbar {
  height: 8px;
}
.scroll-row::-webkit-scrollbar-thumb {
  background-color: var(--color-dark-border);
  border-radius: var(--radius-sm);
}
.scroll-row::-webkit-scrollbar-track {
  background-color: var(--color-bg-hover);
  border-radius: var(--radius-sm);
}
#user-settings-dropdown {
  min-width: 200px;
}
#user-email-display {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: bold;
  text-align: center;
  padding: 4px 8px 12px;
  margin-bottom: 4px;
  word-break: break-all;
}
.header-logo-link {
  text-decoration: none;
}
.header-logo-text {
  font-weight: bold;
  color: var(--color-dark);
  font-size: 18px;
  letter-spacing: 1px;
}
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
.search-container {
  position: relative;
  width: 100%;
  max-width: 450px;
}
.global-search-input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-main);
  font-size: 14px;
  background: var(--color-bg-sub);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.global-search-input:focus {
  border-color: var(--color-primary);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.guest-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dev-ribbon {
  position: fixed;
  bottom: 50px;
  right: -60px;
  width: 240px;
  background-color: var(--color-danger-hover);
  color: var(--color-bg-panel);
  text-align: center;
  padding: 8px 0;
  font-size: 18px;
  font-weight: bold;
  font-family: var(--font-family-base);
  letter-spacing: 2px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-45deg);
  z-index: 9999;
  pointer-events: none;
}
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.auth-error-msg {
  color: var(--color-danger);
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  padding: 8px;
  background: var(--color-danger-light);
  border-radius: var(--radius-sm);
  display: none;
}
.auth-error-msg.show {
  display: block;
}
.auth-modal-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
  margin-top: 0;
}
.modal-btn.full-width {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
}
.modal-section.no-border {
  border-bottom: none;
}
.modal-section.center-text {
  text-align: center;
}
.auth-modal-or {
  font-size: 12px;
  color: var(--color-text-light);
}
.auth-google-btn {
  width: 100%;
  margin-top: 10px;
  background: var(--color-bg-panel);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border-dark);
  padding: 10px;
  transition: background 0.2s;
  font-family: var(--font-family-base);
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.auth-google-btn:hover {
  background: var(--color-bg-hover);
}
.history-modal-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 10px 0 0 0;
}
.history-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
.modal-btn-row-right {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.history-row-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  width: 100%;
  box-sizing: border-box;
}
.history-info-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.history-version-text {
  font-weight: bold;
  font-size: 14px;
  line-height: 1.2;
  word-wrap: break-word;
}
.history-date-text {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.2;
  word-wrap: break-word;
}
.history-action-text {
  color: var(--color-text-light);
}
.history-restore-btn {
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
}
.search-dropdown-panel {
  width: 100%;
  left: 0;
  top: 45px;
  max-height: 450px;
  overflow-y: auto;
  padding: 0;
  display: none;
}
.search-dropdown-msg {
  padding: 16px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 13px;
}
.search-dropdown-error {
  padding: 16px;
  text-align: center;
  color: var(--color-danger);
  font-size: 13px;
}
.search-highlight {
  color: var(--color-primary);
}
.search-badge-group {
  font-size: 10px;
  background: #e0f7fa;
  color: #006064;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}
.search-badge-draft {
  font-size: 10px;
  background: var(--color-warning-light);
  color: var(--color-warning-text);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
}
.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.search-result-title {
  font-size: 14px;
  color: var(--color-text-title);
  line-height: 1.4;
}
.search-result-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-result-author {
  font-weight: bold;
}
.search-result-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.tag-editor-custom-badge {
  cursor: default;
}
.tag-editor-close-btn {
  cursor: pointer;
  margin-left: 6px;
  font-weight: bold;
}
.tag-badge-link {
  text-decoration: none;
  cursor: pointer;
}
.svg-icon-inline {
  vertical-align: text-bottom;
  margin-right: 4px;
}
.avatar-img-base {
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 3px solid var(--color-bg-panel);
  box-shadow: var(--shadow-md);
  background: var(--color-border-light);
}
.avatar-fallback-base {
  border-radius: var(--radius-circle);
  background: var(--color-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-panel);
  font-weight: bold;
  border: 3px solid var(--color-bg-panel);
  box-shadow: var(--shadow-md);
  width: var(--avatar-size, 100px);
  height: var(--avatar-size, 100px);
  font-size: var(--avatar-font-size, 32px);
}
.settings-menu-wrapper {
  position: relative;
}
.settings-menu-wrapper.hidden {
  display: none;
}
.settings-menu-divider {
  border-top: 1px solid var(--color-border-light);
  margin: 4px 0;
}
.filter-icon-btn.active {
  color: var(--color-primary) !important;
}
@media (max-width: 800px) {
  .io-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  .settings-btn-icon {
    padding: 4px;
    font-size: 18px;
  }
  .add-large-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .modal-content {
    padding: 15px;
  }
  .global-controls {
    padding: 10px;
    flex-wrap: wrap !important;
  }
  .header-left {
    order: 1 !important;
    flex: 0 0 auto !important;
  }
  .header-right {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
  }
  .header-center {
    order: 3 !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin-top: 10px !important;
    display: block !important;
    width: 100% !important;
  }
  .search-container {
    max-width: 100% !important;
    width: 100% !important;
  }
}
.terms-agreement-text {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 15px;
  line-height: 1.4;
}
.terms-agreement-text a {
  color: var(--color-text-sub);
  text-decoration: underline;
}
.terms-update-content {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  max-height: 40vh;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
}
.terms-update-content h1,
.terms-update-content h2,
.terms-update-content h3 {
  margin-top: 1em;
  margin-bottom: 0.5em;
}
.terms-update-content p {
  margin-bottom: 1em;
}
.terms-update-content ul,
.terms-update-content ol {
  padding-left: 20px;
}
.consent-links {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  padding: 10px;
  background: var(--color-bg-sub);
  border-radius: var(--radius-md);
}
.consent-link-item {
  font-weight: bold;
  color: var(--color-primary);
}
.consent-checkbox-group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.consent-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
#app-footer {
  background-color: var(--color-bg-panel);
  color: var(--color-text-muted);
  padding: 40px 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
  box-sizing: border-box;
}
.footer-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav a:hover {
  color: var(--color-primary);
}
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 600px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-main);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  border-radius: var(--radius-md);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.cookie-consent-banner.hide {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}
.cookie-consent-content p {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.5;
  margin: 0;
}
.cookie-consent-content a {
  color: var(--color-primary);
  text-decoration: underline;
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .cookie-consent-actions {
    flex-direction: column;
  }
  .cookie-consent-actions .io-btn {
    width: 100%;
    justify-content: center;
  }
}
body.has-cookie-banner #app-main-content {
  padding-bottom: 200px;
}

/* src/css/editor.css */
#title-input {
  width: 100%;
  font-size: 32px;
  font-weight: bold;
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
  text-align: center;
}
#title-input:hover,
#title-input:focus {
  border-bottom-color: var(--color-border-dark);
}
#title-input:focus {
  border-bottom-color: var(--color-primary);
}
#title-view {
  display: none;
  font-size: 36px;
  font-weight: bold;
  color: var(--color-text-title);
  margin: 10px 0 10px;
  padding: 10px 0;
  line-height: 1.3;
  text-align: center;
}
body.view-mode #title-input {
  display: none;
}
body.view-mode #title-view {
  display: block;
}
.bottom-controls {
  margin-top: 40px;
  margin-bottom: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  padding: 20px;
  border-top: 2px dashed var(--color-dark-border);
}
body.view-mode .bottom-controls {
  display: none;
}
.editor-wrapper {
  position: relative;
  background: var(--color-bg-panel);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-main);
  animation: fadeIn 0.3s ease-out;
  transition: all 0.3s;
  width: 100%;
  box-sizing: border-box;
}
body.view-mode .editor-wrapper {
  box-shadow: none;
  border: none;
  padding: 10px 0;
}
.editor-wrapper.dragging {
  opacity: 0.4;
  box-shadow: var(--shadow-xl);
  border: 2px dashed var(--color-primary);
  background: var(--color-bg-hover);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.drag-handle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background: var(--color-bg-sub);
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  user-select: none;
  z-index: 20;
  transition: background 0.2s;
}
.drag-handle:hover {
  background: var(--color-border-light);
  color: var(--color-text-main);
}
.close-editor-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-danger);
  color: var(--color-bg-panel);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}
.close-editor-btn:hover {
  background: var(--color-danger-hover);
}
body.view-mode .drag-handle,
body.view-mode .close-editor-btn,
body.view-mode .edit-only {
  display: none !important;
}
.text-editor-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ql-container {
  height: 300px;
  font-family: var(--font-family-base) !important;
  font-size: 16px !important;
}
.ql-toolbar {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.ql-container.ql-snow {
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.view-content-area {
  display: none;
  font-family: var(--font-family-base);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-main);
  padding: 10px 20px;
}
.view-content-area h1,
.view-content-area h2 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.view-content-area p {
  margin-bottom: 1em;
}
.view-content-area .ql-align-center {
  text-align: center;
}
.view-content-area .ql-align-right {
  text-align: right;
}
.view-content-area .ql-align-justify {
  text-align: justify;
}
.view-content-area ul,
.view-content-area ol,
.ql-editor ul,
.ql-editor ol {
  padding-left: 1.5em;
}
.ql-editor img,
.view-content-area img {
  display: block !important;
  margin: 1em auto !important;
  max-width: 100%;
  height: auto;
}
.ql-editor iframe,
.view-content-area iframe {
  display: block !important;
  margin: 1em auto !important;
  width: 90% !important;
  max-width: 800px;
  aspect-ratio: 16/9 !important;
  height: auto !important;
}
body.view-mode .text-editor-container .quill-wrapper {
  display: none;
}
body.view-mode .view-content-area {
  display: block;
}
.go-layout-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}
.main-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 1150px;
  margin-top: 10px;
  transition: gap 0.3s;
  width: 100%;
  box-sizing: border-box;
}
body.view-mode .main-layout {
  gap: 40px;
  justify-content: center;
}
.board-canvas {
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: default;
  outline: none;
  transition: box-shadow 0.2s;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}
.board-canvas:focus {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 0 2px var(--color-primary);
}
.board-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin-top: 8px;
  padding: 0 5px;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 14px;
  color: var(--color-text-main);
  flex-wrap: wrap;
  gap: 5px;
}
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  transition: width 0.3s;
  box-sizing: border-box;
}
body.view-mode .side-panel {
  width: 100%;
  max-width: 400px;
}
.tree-wrapper {
  position: relative;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}
.tree-container {
  background: var(--color-bg-panel);
  border: none;
  border-radius: var(--radius-sm);
  overflow: auto;
  padding: 5px;
  height: 350px;
  outline: none;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}
.tree-container:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 122, 255, 0.2);
}
.tree-canvas {
  background: var(--color-bg-panel);
  cursor: default;
  display: block;
}
.sgf-container {
  background: var(--color-bg-panel);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}
.sgf-display {
  width: 100%;
  height: 130px;
  font-family: var(--font-family-mono);
  font-size: 12px;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  box-sizing: border-box;
  resize: none;
  background: var(--color-bg-sub);
  color: var(--color-text-sub);
}
.mode-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--color-dark-border);
  padding: 10px;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}
.mode-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}
.mode-btn {
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid var(--color-border-dark);
  background: var(--color-bg-panel);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-weight: bold;
  font-size: 14px;
  flex-grow: 1;
  text-align: center;
  color: var(--color-dark-hover);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mode-btn span.symbol {
  font-size: 18px;
  margin-left: 4px;
  vertical-align: middle;
}
.mode-btn.active {
  background: var(--color-dark) !important;
  color: var(--color-bg-panel) !important;
  border-color: var(--color-dark) !important;
}
.editor-details {
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-panel);
  box-sizing: border-box;
}
.editor-details-summary {
  padding: 10px 15px;
  font-weight: bold;
  font-size: 14px;
  color: var(--color-dark);
  cursor: pointer;
  outline: none;
  background: var(--color-bg-sub);
  border-radius: var(--radius-md);
  user-select: none;
  list-style: none;
}
.editor-details-summary::-webkit-details-marker {
  display: none;
}
.editor-details-summary::before {
  content: "\25b6  ";
  font-size: 12px;
  display: inline-block;
  transition: transform 0.2s;
  margin-right: 5px;
}
.editor-details[open] .editor-details-summary::before {
  transform: rotate(90deg);
}
.editor-details[open] .editor-details-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid var(--color-dark-border);
}
.options-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
}
.toggle-group {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: bold;
  flex-wrap: wrap;
}
.option-btn,
.size-btn,
.komi-btn,
.op-btn {
  padding: 5px 12px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-dark);
  font-size: 12px;
  background: var(--color-bg-panel);
  font-weight: bold;
}
.option-btn.active,
.size-btn.active,
.komi-btn.active,
.op-btn.active {
  background: var(--color-dark);
  color: var(--color-bg-panel);
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
button {
  padding: 10px 20px;
  cursor: pointer;
  background: var(--color-dark);
  color: var(--color-bg-panel);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-weight: bold;
  transition: opacity 0.2s, background 0.2s;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--color-border-dark) !important;
  color: var(--color-text-muted) !important;
}
.pass-btn {
  background: var(--color-danger);
}
.reset-view-btn {
  background: var(--color-warning);
  display: none;
}
body.view-mode .reset-view-btn {
  display: inline-block;
}
.repetition-panel {
  width: 100%;
  max-width: 500px;
  margin-top: 5px;
  padding: 8px 10px;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-main);
  box-sizing: border-box;
  word-wrap: break-word;
  font-family: var(--font-family-mono);
  box-shadow: var(--shadow-sm);
}
.context-menu {
  position: absolute;
  display: none;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-sm);
  z-index: 2000;
  font-family: var(--font-family-base);
  width: 180px;
}
.context-menu div {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-main);
  font-weight: bold;
}
.context-menu div:hover {
  background: var(--color-bg-hover);
}
.context-menu .deleteBranchBtn {
  color: var(--color-danger);
}
.ctrl-label {
  display: inline-block;
  min-width: 85px;
  margin-right: 10px;
}
#editor-action-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 5px;
}
.mode-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  color: var(--color-text-sub);
  margin: 0;
  padding: 0 5px;
  background: transparent;
  border: none;
  box-shadow: none;
}
body.view-mode .editor-wrapper.interaction-denied .side-panel,
body.view-mode .editor-wrapper.interaction-denied .pass-btn,
body.view-mode .editor-wrapper.interaction-denied .reset-view-btn {
  display: none !important;
}
.caption-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
  margin-top: 10px;
}
.caption-display {
  font-weight: bold;
  color: var(--color-text-main);
  font-size: 18px;
  word-break: break-word;
  margin: 0 auto;
  display: none;
}
.caption-input {
  width: 80%;
  max-width: 600px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: inherit;
  font-weight: bold;
  color: var(--color-text-main);
  font-size: 15px;
  margin: 0 auto;
  display: block;
}
.go-board-flex-container {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.turn-display-text {
  color: var(--color-danger);
}
.ai-info-display-text {
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  flex-grow: 1;
  margin: 0 5px;
}
.options-fieldset-base {
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.options-legend {
  font-size: 13px;
  font-weight: bold;
  color: var(--color-dark);
  padding: 0 8px;
}
.size-input,
.init-move-input,
.focus-w-input,
.focus-h-input {
  width: 40px;
  padding: 2px;
  font-size: 12px;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: bold;
  font-family: inherit;
  outline: none;
  background: transparent;
}
.komi-input {
  width: 45px;
  padding: 2px;
  font-size: 12px;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: bold;
  font-family: inherit;
  outline: none;
  background: transparent;
}
.focus-control-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
  width: 100%;
  flex-wrap: wrap;
}
.focus-control-wrapper.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.focus-overlay-msg {
  position: absolute;
  top: -15px;
  left: 85px;
  background: var(--color-danger);
  color: var(--color-bg-panel);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.focus-partial-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 12px;
  flex-wrap: wrap;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 18px);
  grid-template-rows: repeat(3, 18px);
  gap: 1px;
  background: var(--color-board-edge);
  padding: 2px;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}
.focus-cell {
  background: var(--color-board-wood);
  cursor: pointer;
  border-radius: 1px;
}
.focus-cell.active {
  background: var(--color-warning);
  box-shadow: inset 0 0 0 1px var(--color-bg-panel);
}
.focus-input-group {
  gap: 3px;
  font-size: 12px;
}
.focus-input-label {
  font-size: 12px;
}
.focus-input-label.ml {
  margin-left: 4px;
}
.flex-row-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}
.handicap-select-base {
  padding: 2px;
  font-size: 12px;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-panel);
}
.ai-interaction-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
  width: 100%;
}
.ai-interaction-wrapper.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ai-overlay-msg {
  position: absolute;
  top: -15px;
  left: 85px;
  background: var(--color-danger);
  color: var(--color-bg-panel);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.side-panel-base {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  transition: width 0.3s;
  box-sizing: border-box;
}
.tree-menu-divider {
  border-top: 1px solid var(--color-border-light);
  margin: 2px 0;
}
.mode-btn-base {
  min-height: 34px;
  box-sizing: border-box;
}
.mode-panel-divider {
  width: 100%;
  height: 0;
  border-bottom: 1px solid var(--color-border-dark);
  margin: 2px 0;
}
.pencil-controls-wrapper {
  min-height: 34px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-dark-hover);
  padding: 4px 0;
  flex-wrap: wrap;
}
.pencil-btn-inner {
  margin: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 0;
  min-width: 34px;
  min-height: 34px;
  box-sizing: border-box;
}
.pencil-label {
  margin: 0;
}
.pencil-label.ml {
  margin: 0;
}
.pencil-color-input {
  height: 28px;
  width: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.pencil-width-wrapper {
  height: 28px;
  display: flex;
  align-items: center;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  padding-right: 6px;
}
.pencil-width-input {
  width: 36px;
  height: 100%;
  box-sizing: border-box;
  border: none;
  outline: none;
  background: transparent;
  text-align: center;
  font-weight: bold;
}
.pencil-width-unit {
  color: var(--color-text-light);
  font-weight: normal;
  margin-left: 2px;
}
.pencil-clear-btn {
  min-height: 34px;
  box-sizing: border-box;
  padding: 0 12px;
  margin-left: auto;
}
.controls-wrapper {
  width: 100%;
  max-width: 500px;
  display: flex;
  gap: 10px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.control-btn-base {
  min-height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  flex: 1;
}
.btn-run-ai-base {
  background: var(--color-primary);
  color: var(--color-bg-panel);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  cursor: pointer;
}
.editor-content-wrapper {
  width: 100%;
}
.w-full-wrapper {
  width: 100%;
}
.display-none {
  display: none !important;
}
.modal-overlay-show {
  display: flex !important;
}
.context-menu-show {
  display: block !important;
}
@keyframes ai-spin {
  100% {
    transform: rotate(360deg);
  }
}
.ai-spinner {
  animation: ai-spin 1s linear infinite;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 4px;
}
@media (max-width: 800px) {
  .editor-wrapper {
    padding: 15px 10px;
  }
  .view-content-area {
    padding-left: 0;
    padding-right: 0;
  }
  .board-container,
  .side-panel {
    display: contents;
  }
  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }
  body.view-mode .main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .board-canvas {
    order: 1;
  }
  .board-info {
    order: 2;
    margin-top: 0;
    width: 100%;
    max-width: 500px;
  }
  .repetition-panel {
    order: 3;
    margin-top: 0;
    width: 100%;
    max-width: 500px;
  }
  .comment-container {
    order: 4;
    margin-top: 0;
    width: 100%;
    max-width: 500px;
  }
  .options-details {
    order: 5;
    margin-top: 5px;
    width: 100%;
    max-width: 500px;
  }
  .mode-panel {
    order: 6;
    margin-top: 5px;
    width: 100%;
    max-width: 500px;
  }
  .controls {
    order: 7;
    margin-top: 5px;
    width: 100%;
    max-width: 500px;
  }
  .tree-details {
    order: 8;
    margin-top: 5px;
    width: 100%;
    max-width: 500px;
  }
  .sgf-details {
    order: 9;
    margin-top: 5px;
    width: 100%;
    max-width: 500px;
  }
  .ctrl-label {
    min-width: auto;
    margin-right: 5px;
  }
  fieldset.options-fieldset {
    padding: 10px !important;
  }
  .board-info {
    justify-content: center;
    font-size: 12px;
  }
  .board-info div {
    white-space: normal !important;
    text-align: center;
  }
  #title-input {
    font-size: 24px;
  }
  #title-view {
    font-size: 28px;
  }
  .bottom-controls {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  #editor-action-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }
  .mode-switch-wrapper {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
}
.source-wrapper {
  width: 100%;
  margin-top: 6px;
  text-align: left;
}
.source-display {
  font-size: 12px;
  color: var(--color-text-sub);
  font-style: italic;
  display: none;
}
.source-input-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.source-input {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  background: var(--color-bg-panel);
  outline: none;
  box-sizing: border-box;
}
.source-input:focus {
  border-color: var(--color-primary);
}
.article-table th {
  padding: 12px 16px;
  vertical-align: middle;
}
.article-table th:not(.col-title),
.article-table td:not(:first-child) {
  text-align: center;
}
.th-content-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}
.th-content-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.stat-item-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.action-btn-group {
  justify-content: center;
}
.article-table thead {
  position: relative;
  z-index: 100;
}
.article-table tbody {
  position: relative;
  z-index: 1;
}
th.active-th {
  z-index: 9999 !important;
}
.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border-light, #e0e0e0);
  border-radius: 6px;
  padding: 8px 0;
  text-align: left;
  min-width: 140px;
  z-index: 9999;
}
.filter-cb-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
  font-size: 14px;
}
.filter-cb-label:hover {
  background-color: var(--color-bg-hover, #f5f5f5);
}
.filter-cb-label input {
  margin: 0;
  cursor: pointer;
}
.add-large-btn:disabled,
.add-large-btn.btn-disabled {
  background-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-rotate {
  padding: 6px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-dark);
  background: var(--color-bg-panel);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-rotate:hover {
  border-color: var(--color-dark);
  background: var(--color-bg-hover);
}
.toggle-group .ctrl-label {
  font-weight: bold;
}

/* src/css/views.css */
.tag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: bold;
  background: var(--color-primary-light);
  color: var(--color-primary-text);
  cursor: pointer;
}
.tag-toggle-btn {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-dark-border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-sub);
  background: var(--color-bg-panel);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}
.tag-toggle-btn.active {
  background: var(--color-primary);
  color: var(--color-bg-panel);
  border-color: var(--color-primary);
}
.btn-social {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-text-sub);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-social:hover {
  background: var(--color-bg-hover);
}
.btn-social.active.like {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border-color: var(--color-danger-border);
}
.btn-social.active.like svg {
  fill: var(--color-danger);
}
.btn-social.active.bookmark {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary-border);
}
.btn-social.active.bookmark svg {
  fill: var(--color-primary);
}
.btn-follow {
  background: var(--color-bg-panel);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-follow.following {
  background: var(--color-primary);
  color: var(--color-bg-panel);
}
.comment-container {
  display: block;
  width: 100%;
  max-width: 500px;
  margin-top: 5px;
  box-sizing: border-box;
}
.comment-box {
  width: 100%;
  height: 70px;
  padding: 8px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.4;
  color: var(--color-text-main);
}
body.view-mode .comment-box {
  background: var(--color-bg-sub);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border-light);
  cursor: default;
  pointer-events: none;
}
body.view-mode .comment-box:focus {
  outline: none;
  border-color: var(--color-border-light);
}
.comment-input-area-auth {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.comment-submit-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 5px;
}
.article-comment-box {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-base);
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.4;
  color: var(--color-text-main);
  background: var(--color-bg-panel);
}
.article-comment-box:focus {
  outline: none;
  border-color: var(--color-primary);
}
.comment-item {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.comment-item.reply {
  margin-left: 30px;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--color-text-light);
}
.comment-author {
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
}
.comment-body {
  font-size: 14px;
  color: var(--color-text-main);
  line-height: 1.5;
  white-space: pre-wrap;
  margin: 0;
}
.comment-actions {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  font-size: 12px;
}
.comment-actions button {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0;
  font-weight: bold;
}
.comment-actions button:hover {
  color: var(--color-text-main);
}
.comment-sgf-preview {
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  position: relative;
}
.comment-go-board {
  width: 100%;
  max-width: 500px;
  margin: 10px auto;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.author-badge {
  display: inline-block;
  background: var(--color-success-light);
  color: var(--color-success-text);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid var(--color-success-light);
}
.pro-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  white-space: nowrap;
}
.other-link-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--color-bg-sub);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--color-border-light);
  position: relative;
}
.other-link-row .link-label {
  width: 140px;
  padding: 8px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-sizing: border-box;
}
.other-link-row .link-url {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-sizing: border-box;
}
.other-link-row .btn-remove-link {
  background: none;
  border: none;
  color: var(--color-danger);
  font-size: 20px;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.profile-social-link {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-hover);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: bold;
  color: var(--color-primary-text);
  text-decoration: none;
  border: 1px solid var(--color-border-main);
  transition: all 0.2s;
}
.profile-social-link:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-border);
}
.article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-bg-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  table-layout: fixed;
  min-width: 1000px !important;
}
.article-table th {
  background: var(--color-bg-sub);
  font-weight: bold;
  color: var(--color-dark);
  font-size: 14px;
  position: relative;
  z-index: 10;
}
.article-table th.active-th {
  z-index: 200;
  overflow: visible !important;
}
.article-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-table tr {
  position: relative;
  z-index: 1;
}
.article-table tr.active-row {
  z-index: 100;
}
.article-table tr:last-child td {
  border-bottom: none;
}
.article-table tr:hover td {
  background: var(--color-bg-sub);
}
.article-table td.td-overflow-visible {
  overflow: visible !important;
}
.article-table th.th-filter-wrapper {
  overflow: visible !important;
}
.article-table th.col-title {
  width: auto;
  min-width: 200px;
}
.article-table th.col-owner {
  width: 100px;
}
.article-table th.col-visibility {
  width: 100px;
}
.article-table th.col-tags {
  width: 150px;
}
.article-table th.col-status {
  width: 100px;
}
.article-table th.col-engagement {
  width: 120px;
}
.article-table th.col-updated {
  width: 110px;
}
.article-table th.col-actions {
  width: 80px;
}
.sortable-header {
  user-select: none;
  transition: background 0.2s;
}
.sortable-header:hover {
  background: var(--color-bg-main);
}
.filter-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
}
.filter-icon-btn.active {
  color: var(--color-primary);
}
.filter-icon-btn:hover {
  background: var(--color-border-main);
}
.article-menu-wrapper {
  position: relative;
  display: inline-block;
}
.article-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  padding: 4px 0;
  min-width: 180px;
  width: max-content;
  z-index: 9999;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  padding: 10px;
  z-index: 9999;
  min-width: 110px;
  display: flex;
  flex-direction: column;
}
.tag-dropdown-scroll {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
}
.pagination-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.page-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-dark-border);
  background: var(--color-bg-panel);
  color: var(--color-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
}
.page-btn:hover:not(:disabled) {
  background: var(--color-bg-main);
}
.page-btn.active {
  background: var(--color-primary);
  color: var(--color-bg-panel);
  border-color: var(--color-primary);
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.article-grid-container {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  width: 100%;
}
.page-layout-wrapper {
  display: block;
  padding: 20px 40px 40px;
  box-sizing: border-box;
  width: 100%;
}
.empty-text-msg {
  color: var(--color-text-muted);
  font-size: 14px;
  text-align: center;
  padding: 60px 20px;
  margin: 0;
}
.followed-section {
  margin-bottom: 40px;
}
.view-heading-link {
  color: inherit;
  text-decoration: none;
}
.view-heading-more {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}
.tag-follow-btn {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  transition: all 0.2s;
}
.tag-follow-btn:hover {
  background: var(--color-primary-light);
}
.article-title-wrapper {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.editor-action-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 20px;
}
.article-title-view {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: var(--color-text-title);
  margin: 10px 0;
  padding: 10px 0;
  line-height: 1.3;
  text-align: center;
}
.article-meta-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.article-author-link {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-primary);
  text-decoration: none;
}
.article-author-link:hover {
  text-decoration: underline;
}
.article-updated-at {
  font-size: 13px;
  color: var(--color-text-sub);
}
.visibility-badge-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: bold;
}
.view-tag-area {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
  justify-content: center;
}
.app-root-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  min-height: 200px;
  max-width: 1150px;
  padding: 0 20px;
  box-sizing: border-box;
  margin: 0 auto;
  width: 100%;
}
.ssr-editor-wrapper {
  box-shadow: none;
  border: none;
  padding: 10px 0;
  width: 100%;
}
.ssr-text-block-inner {
  display: block;
  max-width: 900px;
  margin: 0 auto;
}
.ssr-go-board-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1;
  background: var(--color-board-wood);
  margin: 20px auto;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-weight: bold;
  border: 1px solid #d7ccc8;
  box-shadow: var(--shadow-lg);
}
body.theme-mono .ssr-go-board-placeholder {
  background: #ffffff;
  border: 1px solid var(--color-border-dark);
}
.comments-section {
  width: 100%;
  max-width: 900px;
  margin: 60px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}
.comments-divider {
  border: 0;
  border-top: 1px solid var(--color-border-light);
  margin-bottom: 24px;
}
.comments-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-text-title);
  margin-bottom: 24px;
}
.comment-input-textarea {
  width: 100%;
  min-height: 24px;
  padding: 4px 0;
  border: none;
  border-bottom: 1px solid var(--color-border-dark);
  background: transparent;
  font-family: inherit;
  resize: vertical;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.comment-input-textarea:focus {
  border-color: var(--color-text-title);
}
.btn-submit-comment {
  padding: 8px 16px;
  border-radius: 18px;
  border: none;
  background: var(--color-primary);
  color: var(--color-bg-panel);
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
}
.btn-submit-comment:hover {
  background: var(--color-primary-hover);
}
.btn-submit-comment:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--color-border-dark);
  color: var(--color-text-muted);
}
.comment-input-area-guest {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  border: none;
}
.comment-guest-msg {
  color: var(--color-text-muted);
  font-size: 14px;
}
.btn-login-prompt {
  padding: 8px 16px;
  border-radius: 18px;
  border: 1px solid var(--color-border-dark);
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-login-prompt:hover {
  background: var(--color-bg-hover);
}
.comment-thread-ssr {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.comment-item-ssr {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.comment-item-ssr.reply {
  margin-left: 40px;
  margin-top: 0;
  padding: 4px 0;
}
.comment-header-inner {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.comment-header-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.comment-author-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--color-text-title);
  text-decoration: none;
}
.comment-author-name:hover {
  text-decoration: underline;
}
.comment-author-badge {
  font-size: 10px;
  background: var(--color-text-light);
  color: var(--color-bg-panel);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}
.comment-date-text {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.comment-body-deleted {
  color: var(--color-text-light);
  font-style: italic;
  font-size: 14px;
  margin-bottom: 4px;
}
.comment-body-hidden-msg {
  color: var(--color-text-light);
  font-style: italic;
  font-size: 13px;
  margin-bottom: 4px;
}
.btn-show-hidden {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  padding: 0 5px;
}
.btn-show-hidden:hover {
  text-decoration: underline;
}
.comment-body-text {
  font-size: 14px;
  color: var(--color-text-title);
  line-height: 1.4;
  margin-bottom: 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-action-btn {
  font-size: 12px;
  color: var(--color-text-title);
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 12px 4px 0;
  margin: 0;
}
.comment-action-btn:hover {
  color: var(--color-text-dark);
}
.comment-actions-ssr {
  display: flex;
  align-items: center;
}
.error-view {
  display: block;
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
}
.maintenance-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background: var(--color-bg-panel);
}
.error-content-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.error-code {
  font-size: 48px;
  color: var(--color-dark);
  margin-bottom: 10px;
  margin-top: 0;
}
.error-title {
  font-size: 24px;
  color: var(--color-text-main);
  margin-bottom: 20px;
  margin-top: 0;
}
.error-message {
  color: var(--color-text-muted);
  margin-bottom: 30px;
  line-height: 1.6;
}
.btn-return-top {
  display: inline-flex;
  text-decoration: none;
  padding: 10px 24px;
  margin: 0 auto;
}
.article-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.article-badge.group-badge {
  background: var(--color-group-badge-bg);
  color: var(--color-group-badge-text);
  margin-right: 4px;
}
.article-badge.status-badge {
  background: var(--color-border-main);
  color: var(--color-text-sub);
}
.article-badge.status-badge.editing {
  background: var(--color-warning-light);
  color: var(--color-warning-text);
}
.article-badge.status-badge.published {
  background: var(--color-success-light);
  color: var(--color-success-text);
}
.btn-delete-article {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--color-danger);
  cursor: pointer;
  padding: 4px 8px;
  font-weight: bold;
  transition: background 0.2s;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.btn-delete-article:hover {
  background: var(--color-danger-light);
}
.dropdown-item {
  display: block;
  box-sizing: border-box;
  background: none;
  border: none;
  padding: 10px 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
  transition: background 0.2s;
  color: var(--color-text-main);
  white-space: nowrap;
}
.dropdown-item:hover {
  background: var(--color-bg-hover);
}
.dropdown-item.danger-item {
  color: var(--color-danger);
}
.dropdown-item.danger-item:hover {
  background: var(--color-danger-light);
}
.dropdown-divider {
  border-top: 1px solid var(--color-border-light);
  margin: 4px 0;
  width: 100%;
}
.article-tag-link {
  font-size: 10px;
  padding: 2px 6px;
  background: var(--color-primary-light);
  color: var(--color-primary-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  z-index: 10;
}
.article-tag-link:hover {
  text-decoration: underline;
}
.article-tag-ellipsis {
  font-size: 10px;
  color: var(--color-text-light);
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--color-bg-panel);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-text-main);
  border: 1px solid var(--color-border-light);
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  position: relative;
  height: 100%;
  transition: transform 0.1s, box-shadow 0.1s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.article-card-thumbnail {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--color-bg-hover);
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.article-card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.article-card-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.article-card-title {
  margin: 0;
  font-size: 18px;
  color: var(--color-text-title);
  line-height: 1.4;
}
.article-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: auto;
  min-height: 18px;
}
.article-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.article-card-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-light);
  gap: 8px;
}
.card-author-name-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 4px;
}
.article-card-author-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.article-card-author-icon.default-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-hover);
  color: var(--color-text-main);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.card-author-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-width: 0;
}
.card-date {
  white-space: nowrap;
  flex-shrink: 0;
}
.article-card-stats {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-light);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 2px;
}
.tag-section-card-wrapper {
  width: 280px;
  flex-shrink: 0;
}
.tag-section-heading-link {
  color: inherit;
  text-decoration: none;
}
.tag-section-more-link {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}
.tag-section-scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 10px;
}
.profile-not-found-msg {
  text-align: center;
  color: var(--color-text-light);
}
.profile-card-container {
  background: var(--color-bg-panel);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  max-width: 600px;
}
.profile-action-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
}
.profile-edit-btn {
  font-size: 12px;
  padding: 4px 12px;
  text-decoration: none;
}
.profile-follow-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}
.profile-header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.profile-name-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.profile-name-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-display-name {
  margin: 0;
  color: var(--color-text-main);
  font-size: 22px;
  display: inline-block;
}
.profile-username {
  color: var(--color-text-light);
  font-size: 14px;
}
.profile-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-rank {
  color: var(--color-text-sub);
  font-size: 13px;
  font-weight: bold;
}
.profile-location {
  color: var(--color-text-sub);
  font-size: 13px;
  font-weight: bold;
}
.profile-bio {
  color: var(--color-text-muted);
  font-size: 14px;
  white-space: pre-wrap;
  margin: 15px auto 20px;
  line-height: 1.6;
  text-align: left;
}
.profile-links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.profile-empty-text {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px;
}
.profile-error-text {
  text-align: center;
  color: var(--color-danger);
  padding: 40px;
}
.profile-card-container {
  background: var(--color-bg-panel);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-light);
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
  max-width: 600px;
}
.profile-action-wrapper {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.profile-header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}
.profile-name-area {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}
.profile-name-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  width: 100%;
  gap: 8px;
}
.profile-display-name {
  margin: 0;
  color: var(--color-text-title);
  font-size: 24px;
  display: inline-block;
}
.profile-username {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-left: 8px;
}
.profile-meta-row {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  width: 100%;
  justify-content: center;
}
.profile-action-buttons {
  display: flex;
  gap: 8px;
}
.group-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: 12px;
}
.group-header-title {
  color: var(--color-dark);
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}
.group-create-panel {
  background: var(--color-bg-panel);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-main);
  margin-bottom: 30px;
  max-width: 500px;
}
.group-create-title {
  margin-top: 0;
  color: var(--color-text-main);
  font-size: 16px;
}
.group-create-input-row {
  display: flex;
  gap: 10px;
}
.group-create-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.group-list-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.group-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
  transition: transform 0.1s;
}
.group-card:hover {
  transform: translateY(-2px);
}
.group-card-title {
  margin: 0 0 10px 0;
  color: var(--color-text-title);
  font-size: 18px;
}
.group-card-meta {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 0;
}
.member-manage-panel {
  background: var(--color-bg-panel);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-main);
  margin-bottom: 20px;
}
.member-manage-title {
  margin-top: 0;
  color: var(--color-text-main);
  font-size: 16px;
}
.member-manage-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.member-manage-input-row {
  display: flex;
  gap: 8px;
}
.member-search-input {
  padding: 8px;
  border: 1px solid var(--color-border-main);
  border-radius: var(--radius-sm);
  font-size: 14px;
  flex: 1;
}
.member-role-select {
  padding: 8px;
  border: 1px solid var(--color-border-main);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.member-table-wrapper {
  background: var(--color-bg-panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-main);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.member-table {
  width: 100%;
  border-collapse: collapse;
}
.member-table th {
  background: #f8f9fa;
  border-bottom: 1px solid var(--color-border-light);
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  color: var(--color-text-sub);
}
.member-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--color-border-light);
}
.member-table tr:last-child td {
  border-bottom: none;
}
.member-name-text {
  font-weight: bold;
  font-size: 14px;
  color: var(--color-text-main);
}
.member-username-text {
  font-size: 11px;
  color: var(--color-text-light);
}
.member-role-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: bold;
}
.member-role-dropdown {
  font-size: 13px;
  padding: 4px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
}
.btn-remove-member {
  color: var(--color-danger);
  background: none;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}
.member-self-badge {
  font-size: 10px;
  background: var(--color-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text-light);
}
.member-manage-container {
  overflow-x: auto;
}
.member-list-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.member-table-th {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 13px;
}
.member-table-td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.member-table-td-center {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  text-align: center;
}
.member-table-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-light);
}
.member-table-empty.error {
  color: var(--color-danger);
}
.member-role-text {
  font-size: 14px;
}
.member-role-select {
  width: 100%;
  padding: 6px;
  font-size: 13px;
}
.member-info-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.member-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.member-icon-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.member-name-link {
  font-weight: bold;
  color: var(--color-text);
  text-decoration: none;
}
.member-invite-wrapper {
  background: var(--color-bg-sub);
  padding: 15px;
  border-radius: 8px;
}
.member-invite-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.member-invite-input {
  flex: 1;
}
.member-invite-select {
  width: 120px;
}
.profile-edit-empty-msg {
  font-size: 13px;
}
.profile-edit-empty-msg.error {
  color: var(--color-danger);
}
.invitation-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.invitation-item {
  background: var(--color-bg-sub);
  border: 1px solid var(--color-blue);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.invitation-item-name {
  font-weight: bold;
  color: var(--color-text);
  font-size: 16px;
}
.invitation-item-role {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}
.invitation-item-actions {
  display: flex;
  gap: 10px;
}
.block-list-item {
  background: var(--color-bg-sub);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.block-list-name {
  font-weight: bold;
  color: var(--color-text);
}
.leave-group-wrapper {
  margin-top: 30px;
  text-align: right;
}
.btn-leave-group-danger {
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  background: transparent;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-leave-group-danger:hover {
  background: var(--color-danger-light);
}
.profile-edit-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
}
.profile-edit-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border-main);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-edit-tabs::-webkit-scrollbar {
  display: none;
}
.profile-edit-tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.profile-edit-tab-btn:hover {
  color: var(--color-text-main);
}
.profile-edit-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.profile-edit-tab-content {
  display: none !important;
}
.profile-edit-tab-content.active {
  display: block !important;
}
.profile-edit-panel {
  background: var(--color-bg-panel);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-main);
  box-shadow: var(--shadow-md);
}
.profile-edit-form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-edit-icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-edit-icon-preview {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-edit-icon-preview img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  background: var(--color-border-light);
}
.profile-edit-icon-preview div {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25.6px;
  color: var(--color-bg-panel);
  font-weight: bold;
  border: 3px solid var(--color-bg-panel);
  box-shadow: var(--shadow-md);
}
.profile-edit-icon-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-edit-icon-input {
  font-size: 13px;
}
.profile-edit-icon-remove-label {
  font-size: 12px;
  color: var(--color-text-muted);
  cursor: pointer;
}
.profile-edit-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--color-dark);
}
.profile-edit-desc {
  font-size: 11px;
  color: var(--color-text-light);
  margin: 4px 0 0;
}
.uid-display-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.uid-display-wrapper .modal-input {
  margin-bottom: 0;
  min-width: 0;
}
.profile-edit-flex-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.profile-edit-flex-col {
  flex: 1;
  min-width: 200px;
}
.profile-edit-textarea {
  resize: vertical;
}
.profile-edit-section-divider {
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
}
.profile-edit-links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.profile-edit-link-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.profile-edit-link-prefix {
  background: #f8f9fa;
  border-right: 1px solid var(--color-border-dark);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  color: var(--color-text-sub);
  font-size: 14px;
  white-space: nowrap;
}
.profile-edit-link-input {
  border: none;
  padding: 8px 12px;
  flex: 1;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.profile-edit-other-links-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}
.profile-edit-other-links-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.profile-edit-tags-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.profile-edit-custom-tag-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.profile-edit-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-top: 1px solid var(--color-border-light);
  padding-top: 20px;
  margin-top: 10px;
}
.profile-edit-action-group {
  display: flex;
  gap: 10px;
}
.profile-edit-danger-zone {
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--color-danger-light);
}
.profile-edit-danger-heading {
  color: var(--color-danger);
  font-size: 16px;
  margin: 0 0 10px 0;
}
.profile-edit-danger-list {
  margin: 0 0 15px 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--color-text-main);
  line-height: 1.5;
}
.profile-edit-danger-list li {
  margin-bottom: 5px;
}
.profile-edit-danger-input {
  border: 1px solid var(--color-danger);
  margin-bottom: 15px;
}
.profile-edit-delete-btn {
  background: var(--color-danger);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}
.profile-edit-delete-btn:hover:not(:disabled) {
  opacity: 0.8;
}
.profile-edit-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.profile-edit-cancel-btn {
  background: var(--color-bg-panel);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border-dark);
}
.member-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid var(--color-border-light);
}
.member-list-role-select {
  font-size: 12px;
  padding: 2px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  margin-right: 8px;
}
.member-list-role-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-right: 8px;
  font-weight: bold;
}
.member-list-self-badge {
  font-size: 11px;
  color: var(--color-text-light);
  background: var(--color-border-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}
.member-list-name-col {
  display: flex;
  flex-direction: column;
}
.member-list-name {
  font-weight: bold;
  font-size: 14px;
  color: var(--color-text-main);
}
.member-list-username {
  font-size: 11px;
  color: var(--color-text-light);
}
.member-list-actions-col {
  display: flex;
  align-items: center;
}
.table-empty-msg {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px;
}
.owner-badge-self {
  background: var(--color-owner-badge-bg);
  color: var(--color-owner-badge-text);
}
.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
}
.action-icon-btn.view-btn {
  color: var(--color-primary);
}
.action-icon-btn.edit-btn {
  color: var(--color-success);
}
.action-icon-btn.menu-btn {
  color: var(--color-text-sub);
}
.action-icon-btn.disabled {
  color: var(--color-border-dark);
  cursor: not-allowed;
}
.article-menu-wrapper {
  position: relative;
  display: inline-block;
}
.article-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  padding: 4px 0;
  min-width: 180px;
  width: max-content;
  z-index: 9999;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}
.filter-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  padding: 10px;
  z-index: 9999;
  min-width: 110px;
  display: flex;
  flex-direction: column;
}
.table-responsive-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  min-height: 400px;
  padding-bottom: 20px;
  width: 100%;
}
.group-member-header-heading {
  margin: 0;
  border: none;
  padding: 0;
}
.group-member-back-wrapper {
  margin-top: 20px;
  text-align: right;
}
.group-member-back-btn {
  display: inline-flex;
  text-decoration: none;
}
.group-member-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-light);
}
.profile-edit-required {
  color: var(--color-danger);
}
.profile-edit-custom-tag-input {
  max-width: 200px;
}
.profile-edit-tags-container-bottom {
  margin-bottom: 0;
}
.infinite-scroll-empty {
  text-align: center;
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}
.infinite-scroll-error {
  color: var(--color-danger);
  text-align: center;
  grid-column: 1 / -1;
}
.page-layout-heading-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.scroll-row-flex {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 10px;
}
.display-none {
  display: none !important;
}
.reply-form-wrapper {
  margin-top: 8px;
}
.comments-list-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.article-author-italic {
  font-style: italic;
}
.mb-20 {
  margin-bottom: 20px !important;
}
.mb-15 {
  margin-bottom: 15px !important;
}
.mb-10-lg {
  font-size: 14px !important;
  margin-bottom: 10px !important;
}
.px-24 {
  padding: 8px 24px !important;
  font-size: 14px !important;
}
.sm-btn {
  font-size: 12px !important;
  padding: 6px 12px !important;
}
.w-fit {
  width: fit-content !important;
}
.profile-edit-wrapper-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}
.group-member-edit-btn {
  font-size: 12px;
  padding: 4px 12px;
  text-decoration: none;
}
.infinite-scroll-loader {
  grid-column: 1 / -1;
}
.article-title-inner-wrapper {
  width: 100%;
  margin-bottom: 25px;
}
.article-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-meta-right {
  display: flex;
  gap: 10px;
}
.table-cell-title {
  font-weight: bold;
  color: var(--color-text-main);
}
.th-sortable {
  cursor: pointer;
}
.action-btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.article-table th.col-owner {
  width: 100px;
}
.article-table th.col-visibility {
  width: 100px;
}
.article-table th.col-tags {
  width: 150px;
}
.article-table th.col-status {
  width: 100px;
}
.article-table th.col-engagement {
  width: 120px;
}
.article-table th.col-updated {
  width: 110px;
}
.article-table th.col-actions {
  width: 80px;
}
.member-joined-date {
  font-size: 13px;
  color: var(--color-text-sub);
}
.role-badge-admin {
  color: var(--color-danger);
  background: var(--color-danger-light);
}
.role-badge-editor {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.role-badge-reader {
  color: var(--color-text-sub);
  background: var(--color-border-light);
}
.disabled-interaction {
  pointer-events: none;
  opacity: 0.6;
}
.share-buttons-container {
  display: flex;
  gap: 8px;
  margin-left: 10px;
  align-items: center;
  border-left: 1px solid var(--color-border-light);
  padding-left: 10px;
}
.btn-processing {
  opacity: 0.7;
  cursor: wait !important;
}
.search-dropdown-show {
  display: block !important;
}
.pagination-ellipsis {
  display: flex;
  align-items: flex-end;
  padding: 0 4px;
  color: var(--color-text-light);
}
.rank-select-group {
  display: flex;
  gap: 10px;
}
.rank-type-select {
  width: auto;
}
.netgo-icon-text {
  font-weight: bold;
  font-size: 14px;
  margin-right: 4px;
  vertical-align: middle;
}
.link-prefix-fixed {
  width: 80px;
}
.mt-10 {
  margin-top: 10px !important;
}
.article-author-profile-container {
  margin-top: 60px;
}
.article-author-profile-title {
  font-size: 16px;
  color: var(--color-text-sub);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.disabled-opacity {
  opacity: 0.7;
  pointer-events: none;
}
.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.editor-tag-area {
  background: var(--color-bg-panel);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-main);
  margin-bottom: 20px;
}
.editor-setting-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-dark);
  display: block;
  margin-bottom: 12px;
}
.editor-setting-subtitle {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}
.editor-tag-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.editor-tag-custom-section {
  padding-top: 10px;
  border-top: 1px dashed var(--color-border-main);
}
.editor-tag-input-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.editor-tag-input {
  padding: 6px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  flex: 1;
  max-width: 200px;
  font-family: var(--font-family-base);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.editor-tag-input:focus {
  border-color: var(--color-primary);
}
.editor-owner-area {
  background: var(--color-bg-panel);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-main);
  margin-bottom: 20px;
}
.editor-setting-heading {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--color-dark);
}
.editor-setting-row-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.editor-setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.editor-setting-label {
  font-size: 13px;
  color: var(--color-text-main);
}
.owner-display-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.owner-name-text {
  font-weight: bold;
  font-size: 13px;
  color: var(--color-text-title);
}
.owner-select-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}
.owner-select {
  padding: 4px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}
.owner-cancel-btn {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
.owner-cancel-btn:hover {
  color: var(--color-danger);
}
.visibility-wrapper {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border-light);
}
.visibility-select {
  padding: 4px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}
@media (max-width: 800px) {
  .article-grid-container {
    grid-template-columns: 1fr;
  }
  .other-link-row {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 40px;
  }
  .other-link-row .link-label {
    width: 100%;
  }
  .other-link-row .link-url {
    width: 100%;
  }
  .other-link-row .btn-remove-link {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px;
  }
}
@media (max-width: 600px) {
  .article-table th,
  .article-table td {
    padding: 10px;
    font-size: 12px;
  }
  .page-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  .profile-edit-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .profile-edit-action-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .profile-edit-action-group button,
  .profile-edit-delete-btn {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    margin: 0;
  }
  .member-manage-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .member-manage-input-row select,
  .member-manage-input-row input,
  .member-manage-input-row button {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin: 0;
  }
  .article-meta-info {
    flex-direction: column;
    gap: 12px;
  }
  .article-meta-left {
    flex-direction: column;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .article-meta-right {
    width: 100%;
    justify-content: center;
  }
}
.toast-message {
  padding: 12px 24px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 10px;
  pointer-events: auto;
}
.toast-message.toast-show {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  background-color: var(--color-success-text, #28a745);
}
.toast-error {
  background-color: var(--color-danger, #dc3545);
}
.toast-warning {
  background-color: var(--color-warning, #f39c12);
  color: #fff;
}
.toast-info {
  background-color: var(--color-dark, #343a40);
}
.ssr-reservation-marker {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted, #757575);
  border: 1px solid var(--color-border-light, #e0e0e0);
  border-radius: var(--radius-sm, 8px);
  background-color: var(--color-bg-sub, #fafafa);
  margin: 20px 0;
}
.group-card-center {
  max-width: 400px;
  margin: 0 auto;
}
.tag-view-heading {
  margin: 0;
  color: var(--color-dark);
  font-size: 24px;
  font-weight: bold;
}
.error-text-msg {
  color: var(--color-danger);
}
.followed-card {
  width: 280px;
  flex-shrink: 0;
}
.static-page-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.terms-content-static {
  font-size: 15px;
  line-height: 1.7;
}
.terms-content-static h1,
.terms-content-static h2,
.terms-content-static h3 {
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
}
.terms-content-static p {
  margin-bottom: 1.2em;
}
.terms-content-static ul,
.terms-content-static ol {
  padding-left: 25px;
  margin-bottom: 1.2em;
}
.static-page-container > h1 {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5em;
  padding-bottom: 0.5em;
  color: var(--color-text-title);
}
.terms-content-static h1 {
  font-size: 22px;
}
.terms-content-static h2 {
  font-size: 20px;
}
.terms-content-static h3 {
  font-size: 18px;
}
.static-page-meta {
  text-align: center;
  color: var(--color-text-sub);
  font-size: 14px;
  margin: -1.5em 0 1.5em 0;
}
.static-page-divider {
  border: none;
  margin-bottom: 2em;
}
.credit-item {
  margin-top: 30px;
  padding-bottom: 20px;
}
.credit-item:last-child {
  border-bottom: none;
}
.terms-content-static .credit-item h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
}
.credit-copyright {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.credit-license-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  white-space: pre-wrap;
  background: var(--color-bg-sub);
  padding: 15px;
  border-radius: var(--radius-sm);
  font-family: monospace;
}
.credit-loading-container {
  text-align: center;
  padding: 40px;
  color: var(--color-text-light);
}
.credit-error-container {
  text-align: center;
  padding: 40px;
  color: var(--color-danger);
}
.support-form-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.support-form-container h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.support-form-container p {
  text-align: center;
  color: var(--color-text-sub);
  margin-bottom: 2rem;
}
#support-form .form-group {
  margin-bottom: 1.5rem;
}
#support-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}
#support-form input[type=text],
#support-form input[type=email],
#support-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border-main);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  box-sizing: border-box;
}
#support-form textarea {
  resize: vertical;
  min-height: 120px;
}
#support-form .checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}
#support-form .checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
}
#support-form .form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}
.tag-list-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 20px 0;
}
.tag-list-badge {
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  background: var(--color-bg-sub);
  color: var(--color-text-main);
  border: 1px solid var(--color-border-main);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-list-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-primary-light);
  color: var(--color-primary-text);
  border-color: var(--color-primary-border);
}
.tag-count {
  font-size: 12px;
  color: var(--color-text-muted);
}
.guide-wrapper {
  margin-top: 20px;
}
.guide-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}
.guide-empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.guide-loading-container {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}
.guide-loading-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.guide-document-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.guide-main-title {
  margin-bottom: 30px;
  text-align: center;
}
.guide-footer-links {
  margin-top: 40px;
  text-align: center;
}
.guide-list-container {
  background: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.guide-list-item {
  display: block;
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background-color 0.2s;
}
.guide-list-item:hover {
  background-color: var(--color-bg-sub);
}
.guide-list-item:last-child {
  border-bottom: none;
}
.guide-list-item-inner {
  display: flex;
  align-items: baseline;
  gap: 15px;
}
.guide-list-index {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-primary);
  width: 30px;
}
.guide-list-title {
  margin: 0 0 8px 0;
  color: var(--color-text);
}
.guide-list-date {
  font-size: 13px;
  color: var(--color-text-light);
}
.editor-setting-row-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.editor-setting-row-flex-sm {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.editor-setting-item-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor-setting-options-flex {
  display: flex;
  gap: 15px;
  font-size: 13px;
  align-items: center;
}
.editor-publish-date-input {
  font-size: 13px;
  padding: 4px 8px;
  width: auto;
}
.editor-radio-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.visibility-wrapper-custom {
  display: none;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
}
.visibility-wrapper-custom.show {
  display: flex;
}
.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: 8px;
}
.scheduled-alert {
  background-color: #fff3cd;
  color: #856404;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  font-size: 0.95em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-empty-text {
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}
.history-empty-text-light {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
}
.history-error-text {
  text-align: center;
  font-size: 13px;
  color: var(--color-danger);
}
.comment-quill-wrapper-style {
  background: var(--color-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 8px;
}
.comment-quill-editor-style {
  height: 120px;
  background: var(--color-bg-sub);
  color: var(--color-text);
}
.btn-remove-comment-sgf-style {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 10;
  background: var(--color-bg-panel);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-dark);
}
.support-consent-group {
  margin-top: 20px;
  text-align: left;
}
.support-consent-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  text-align: left;
}
.support-consent-link {
  color: var(--color-primary);
  text-decoration: underline;
}
.support-consent-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}
.support-consent-label.disabled {
  cursor: not-allowed;
}
.support-consent-text {
  font-size: 13px;
}
.support-consent-date {
  color: var(--color-text-light);
  font-size: 11px;
}
.support-form-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}
.support-submit-btn {
  padding: 10px 32px;
  text-align: center;
  line-height: 1;
}
@media (max-width: 768px) {
  .static-page-container {
    margin: 10px auto;
    padding: 10px;
  }
  .support-form-container {
    margin: 10px auto;
    padding: 10px;
  }
}

/* src/css/app.css */
/*# sourceMappingURL=app.css.map */
