/* Second Galicia - Raw Utilitarian Monochrome Style */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: monospace, ui-monospace, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* Header / Top Bar */
#top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #000000;
  background-color: #ffffff;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-icon {
  height: 28px;
  width: auto;
  display: block;
  filter: grayscale(100%);
}

.site-title {
  font-size: 15px;
  font-weight: bold;
  color: #000000;
  letter-spacing: 0.5px;
}

/* Corner Widgets (Bottom-Right) */
.corner-bar {
  position: fixed;
  bottom: 12px;
  right: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.corner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stats-toggle-btn {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  padding: 3px 8px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.stats-toggle-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.corner-popup {
  background-color: #ffffff;
  border: 1px solid #000000;
  padding: 10px 14px;
  margin-bottom: 6px;
  width: 280px;
  max-width: calc(100vw - 32px);
  box-shadow: none;
}

.corner-popup[hidden] {
  display: none;
}

.corner-popup-header {
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.corner-popup-title {
  font-size: 12px;
  font-weight: bold;
  color: #000000;
}

.corner-popup-body {
  font-size: 12px;
}

.notice-list {
  list-style-type: square;
  font-size: 11px;
  line-height: 1.4;
  color: #000000;
  padding-left: 16px;
  margin-bottom: 8px;
}

.notice-list li {
  margin-bottom: 4px;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000000;
}

.stats-num {
  font-weight: bold;
  color: #000000;
}

.active-tooltip {
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #888888;
  background-color: #eeeeee;
  font-size: 11px;
  line-height: 1.35;
  color: #000000;
}

#trial-popup {
  width: 330px;
}

.trial-intro {
  font-size: 11px;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.4;
}

.trial-download-box {
  margin: 8px 0;
  text-align: center;
}

.trial-dl-btn {
  display: block;
  width: 100%;
  padding: 6px 10px;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  box-sizing: border-box;
  text-align: center;
}

.trial-dl-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

.trial-rules {
  list-style-type: square;
  font-size: 10.5px;
  line-height: 1.4;
  color: #333333;
  padding-left: 16px;
  margin-top: 8px;
}

.trial-rules li {
  margin-bottom: 4px;
}

.active-tooltip[hidden] {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-status {
  font-size: 13px;
  color: #000000;
}

/* Text Buttons */
.text-btn {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: #000000;
  cursor: pointer;
  text-decoration: none;
}

.text-btn:hover {
  text-decoration: underline;
}

/* Guest View */
.guest-view {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 55px);
  font-size: 14px;
  color: #000000;
  letter-spacing: 0.5px;
}

/* Attend Modal Dialog */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  background-color: #ffffff;
  border: 1px solid #000000;
  padding: 20px;
  width: 360px;
  max-width: 90vw;
  box-shadow: none;
}

.profile-dialog {
  width: 440px;
  max-width: 94vw;
}

.profile-details {
  border: 1px solid #eeeeee;
  background-color: #ffffff;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.profile-row:last-child {
  margin-bottom: 0;
}

.profile-label {
  color: #888888;
  font-weight: bold;
}

.profile-val {
  color: #000000;
  font-weight: bold;
}

.profile-invites-section {
  margin-bottom: 14px;
}

.profile-hash-section {
  border: 1px solid #888888;
  background-color: #ffffff;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.profile-hash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
}

.hash-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eeeeee;
}

.hash-val-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #eeeeee;
  border: 1px solid #000000;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.hash-code {
  font-family: inherit;
  font-size: 12px;
  color: #000000;
  font-weight: bold;
  user-select: all;
  word-break: break-all;
}

.hash-hint {
  font-size: 11px;
  color: #888888;
  line-height: 1.35;
}

.like-btn {
  background: transparent;
  border: 1px solid #888888;
  padding: 1px 6px;
  font-family: inherit;
  font-size: 11px;
  color: #000000;
  cursor: pointer;
  margin-left: 8px;
}

.like-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.like-btn.liked {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.invites-quota-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.invite-new-box {
  border: 1px solid #000000;
  background-color: #eeeeee;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #000000;
  word-break: break-all;
}

.invites-table-wrapper {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #888888;
}

.invites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.invites-table th,
.invites-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #eeeeee;
  text-align: left;
}

.invites-table th {
  background-color: #eeeeee;
  border-bottom: 1px solid #888888;
  color: #000000;
}

.empty-cell {
  text-align: center;
  color: #888888;
  padding: 10px;
}

.post-lineage {
  font-size: 11px;
  color: #888888;
  margin-right: 8px;
}

.modal-header {
  margin-bottom: 12px;
  border-bottom: 1px solid #000000;
  padding-bottom: 4px;
}

.dialog-heading {
  font-size: 14px;
  font-weight: bold;
  color: #000000;
}

.dialog-info {
  font-size: 11px;
  color: #888888;
  border: 1px solid #eeeeee;
  padding: 8px 10px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.dialog-info-list {
  margin-top: 6px;
  padding-left: 18px;
  list-style-type: square;
}

.dialog-info-list li {
  margin-bottom: 2px;
}

.dialog-field {
  margin-bottom: 12px;
}

.label-with-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.dialog-label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 4px;
}

.label-with-help .dialog-label {
  margin-bottom: 0;
}

.help-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  padding: 0 2px;
}

.help-btn:hover {
  text-decoration: underline;
}

.help-text {
  font-size: 11px;
  color: #000000;
  background-color: #eeeeee;
  border: 1px solid #888888;
  padding: 6px 8px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.help-text[hidden] {
  display: none;
}

#nickname-input,
#invite-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #000000;
  background-color: #ffffff;
  color: #000000;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

#nickname-input:focus,
#invite-input:focus {
  border-color: #000000;
}

.dialog-error {
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

.dialog-error[hidden] {
  display: none;
}

.lockout-warning {
  border: 1px solid #000000;
  background-color: #eeeeee;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 11px;
  line-height: 1.4;
  color: #000000;
}

.lockout-warning p {
  margin-bottom: 4px;
}

.lockout-warning p:last-child {
  margin-bottom: 0;
}

.lockout-timer {
  font-weight: bold;
  border-top: 1px solid #888888;
  padding-top: 4px;
  margin-top: 6px;
}

#invite-input:disabled {
  background-color: #eeeeee;
  color: #888888;
  cursor: not-allowed;
  border-color: #888888;
}

.text-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Authenticated Board Feed */
#board-feed {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* Post Form */
.post-form-wrapper {
  border: 1px solid #000000;
  padding: 12px 14px;
  margin-bottom: 24px;
  background-color: #ffffff;
}

.post-form-table {
  width: 100%;
  border-collapse: collapse;
}

.post-form-table td {
  padding: 4px 6px;
  vertical-align: middle;
}

.form-label {
  width: 70px;
  font-weight: bold;
  font-size: 13px;
  color: #000000;
}

.post-form-table input[type="text"] {
  border: 1px solid #888888;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 13px;
  background-color: #ffffff;
  color: #000000;
  outline: none;
  box-sizing: border-box;
}

.post-form-table input[type="text"]:focus,
.post-form-table textarea:focus {
  border-color: #000000;
}

.post-form-table textarea {
  width: 100%;
  border: 1px solid #888888;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 13px;
  background-color: #ffffff;
  color: #000000;
  outline: none;
  box-sizing: border-box;
  resize: vertical;
}

.post-form-table input[type="file"] {
  font-family: inherit;
  font-size: 12px;
  color: #000000;
}

.post-submit-btn {
  background: transparent;
  border: 1px solid #000000;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 13px;
  color: #000000;
  cursor: pointer;
  margin-left: 8px;
}

.post-submit-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Posts Feed */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-entry {
  border: 1px solid #888888;
  background-color: #ffffff;
  padding: 10px 14px;
}

.post-header {
  margin-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 4px;
  font-size: 12px;
  color: #000000;
}

.post-subject {
  font-weight: bold;
  color: #000000;
  margin-right: 8px;
}

.post-author {
  font-weight: bold;
  color: #000000;
  margin-right: 8px;
}

.post-uid {
  color: #666666;
  font-family: inherit;
  font-size: 11px;
  margin-right: 8px;
}

.post-datetime {
  color: #888888;
  margin-right: 8px;
}

.post-number {
  color: #888888;
}

.post-number a {
  color: #000000;
  text-decoration: none;
}

.post-number a:hover {
  text-decoration: underline;
}

.file-header {
  font-size: 11px;
  color: #888888;
  margin-bottom: 8px;
}

.post-body-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.post-thumb {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  border: 1px solid #888888;
  filter: grayscale(100%);
  display: block;
}

.post-text {
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  color: #000000;
}

/* Quote syntax support: Strictly monochrome (NO green) */
.quote {
  color: #888888;
}
