/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --excel-green: #217346;
  --excel-green-dark: #1a5c38;
  --excel-green-light: #2ecc71;
  --ribbon-bg: #f3f3f3;
  --ribbon-border: #d4d4d4;
  --header-bg: #f8f8f8;
  --cell-border: #e8e8e8;
  --header-text: #666;
  --selected-cell: #217346;
  --msg-mine: #333;
  --msg-other: #1a5276;
  --settings-bg: #fafafa;
  --status-bar-bg: #217346;
  --formula-height: 36px;
  --col-a-width: 70px;
  --col-b-width: 60px;
  --col-c-width: 300px;
  --col-d-width: 40px;
  --col-e-width: 60px;
  --row-num-width: 48px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  user-select: none;
}

/* ===== TOOLBAR ===== */
.toolbar {
  background: var(--excel-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 46px;
  flex-shrink: 0;
  font-size: 15px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.excel-logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.5px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.filename {
  font-size: 15px;
  opacity: 0.95;
}

.toolbar-sep {
  opacity: 0.4;
}

.toolbar-saved {
  font-size: 13px;
  opacity: 0.7;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-email {
  font-size: 14px;
  opacity: 0.85;
}

.share-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 14px;
  cursor: default;
}

/* ===== RIBBON TABS ===== */
.ribbon-tabs {
  background: var(--excel-green);
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
  height: 34px;
  flex-shrink: 0;
}

.ribbon-tab {
  color: rgba(255,255,255,0.85);
  padding: 5px 13px 4px;
  font-size: 14px;
  cursor: default;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}

.ribbon-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.ribbon-tab.active {
  color: var(--excel-green);
  background: #fff;
  border-bottom: 2px solid #fff;
  border-radius: 2px 2px 0 0;
  font-weight: 600;
}

/* ===== RIBBON CONTROLS ===== */
.ribbon-controls {
  background: var(--ribbon-bg);
  border-bottom: 1px solid var(--ribbon-border);
  display: flex;
  align-items: center;
  padding: 4px 10px;
  gap: 6px;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
}

.ribbon-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.ribbon-group.ribbon-right {
  margin-left: auto;
}

.ribbon-sep {
  width: 1px;
  height: 26px;
  background: var(--ribbon-border);
  margin: 0 5px;
}

.ribbon-font-select {
  height: 26px;
  font-size: 13px;
  border: 1px solid var(--ribbon-border);
  background: #fff;
  padding: 0 5px;
  width: 130px;
  color: #333;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
}

.ribbon-font-size {
  height: 26px;
  width: 38px;
  font-size: 13px;
  border: 1px solid var(--ribbon-border);
  background: #fff;
  text-align: center;
  padding: 0 3px;
  color: #333;
}

.ribbon-btn {
  background: transparent;
  border: 1px solid transparent;
  height: 26px;
  padding: 0 8px;
  font-size: 13px;
  color: #333;
  cursor: default;
  border-radius: 1px;
  white-space: nowrap;
}

.ribbon-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.ribbon-btn.font-bold { font-weight: 700; }
.ribbon-btn.font-italic { font-style: italic; }
.ribbon-btn.font-underline { text-decoration: underline; }

/* ===== FORMULA BAR ===== */
.formula-bar {
  display: flex;
  align-items: center;
  height: var(--formula-height);
  border-bottom: 1px solid var(--ribbon-border);
  background: #fff;
  flex-shrink: 0;
}

.cell-ref-box {
  width: 72px;
  min-width: 72px;
  height: 100%;
  border-right: 1px solid var(--ribbon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
  padding: 0 6px;
}

.formula-fx {
  width: 34px;
  min-width: 34px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #7b68ee;
  font-style: italic;
  border-right: 1px solid var(--ribbon-border);
  font-family: 'Times New Roman', serif;
}

.formula-display {
  flex: 1;
  height: 100%;
  padding: 0 10px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #999;
  background: transparent;
  display: flex;
  align-items: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===== MAIN AREA ===== */
.main-area {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ===== GRID WRAPPER ===== */
.grid-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Column headers row */
.col-headers {
  display: flex;
  flex-shrink: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--ribbon-border);
}

.col-corner {
  width: var(--row-num-width);
  min-width: var(--row-num-width);
  height: 28px;
  border-right: 1px solid var(--ribbon-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--header-bg);
  cursor: default;
}

.gear-icon {
  font-size: 20px;
  color: #555;
  cursor: pointer;
  display: block;
  line-height: 1;
  padding: 4px;
}

.gear-icon:hover {
  color: var(--excel-green);
}

.col-header {
  height: 28px;
  border-right: 1px solid var(--ribbon-border);
  font-size: 13px;
  color: var(--header-text);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  cursor: default;
  padding: 0 3px;
}

.col-header .col-label {
  font-size: 11px;
  color: #999;
  display: block;
}

.col-a {
  width: var(--col-a-width);
  min-width: 40px;
}

.col-b {
  width: var(--col-b-width);
  min-width: 40px;

}

.col-c {
  width: var(--col-c-width);
  min-width: 48px;
}

.col-d {
  width: var(--col-d-width);
  min-width: 48px;
}

.col-e {
  width: var(--col-e-width);
  min-width: 48px;
}

/* Scrollable grid body */
.grid-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ===== CHAT GRID ROWS ===== */
#chatGrid {
  min-height: 100%;
}

.grid-row {
  display: flex;
  border-bottom: 1px solid var(--cell-border);
  min-height: 36px;
}

.grid-row:hover {
  background: #f5f5f5;
}

.grid-row.selected .row-cell {
  border-color: var(--selected-cell);
}

.row-num {
  width: var(--row-num-width);
  min-width: var(--row-num-width);
  background: var(--header-bg);
  border-right: 1px solid var(--ribbon-border);
  font-size: 13px;
  color: var(--header-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: default;
}

.row-cell {
  border-right: 1px solid var(--cell-border);
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  font-size: 14px;
  cursor: default;
}

.cell-a {
  width: var(--col-a-width);
  min-width: 40px;
  color: #555;
  font-size: 13px;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 500;
}

.cell-b {
  width: var(--col-b-width);
  min-width: 40px;
  color: #999;
  font-size: 13px;
  justify-content: center;
  flex-shrink: 0;
}

.cell-c {
  width: var(--col-c-width);
  min-width: 40px;
  flex: 1;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  line-height: 1.4;
  padding: 5px 10px;
  font-size: 14px;
}

.cell-d {
  width: var(--col-d-width);
  min-width: 32px;
}

.cell-e {
  width: var(--col-e-width);
  min-width: 48px;
}

/* Message styles */
.msg-mine .cell-c {
  color: var(--msg-mine);
}

.msg-other {
  background: #f4f6f8;
}
.msg-other .row-num {
  background: #eaecef;
}
.msg-other .cell-c {
  color: var(--msg-other);
}

/* File cell */
.file-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  color: var(--msg-other);
}

.file-cell:hover {
  color: var(--excel-green);
}

.file-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.file-thumb {
  max-width: 200px;
  max-height: 150px;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid var(--cell-border);
  display: block;
  margin: 4px 0;
}

/* Upload progress row */
.upload-progress-row .cell-c {
  color: #888;
  font-style: italic;
}

/* Typing indicator */
.typing-row {
  opacity: 0.5;
}

.typing-row .cell-c {
  animation: cellBlink 1s ease-in-out infinite;
  color: #bbb;
  font-style: italic;
}

@keyframes cellBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== CHAT INPUT BAR ===== */
.chat-input-bar {
  display: flex;
  flex-shrink: 0;
  border-top: 2px solid #217346;
  background: #fff;
  min-height: 36px;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.input-row-num {
  width: var(--row-num-width);
  min-width: var(--row-num-width);
  background: var(--header-bg);
  border-right: 1px solid var(--ribbon-border);
  flex-shrink: 0;
}

.input-cell-a {
  width: var(--col-a-width);
  min-width: 40px;
  border-right: 1px solid var(--cell-border);
  flex-shrink: 0;
}

.input-cell-b {
  width: var(--col-b-width);
  min-width: 40px;
  border-right: 1px solid var(--cell-border);
  flex-shrink: 0;
}

.input-cell-c {
  flex: 1;
  min-width: 40px;
  border: 2px solid #217346;
  outline: none;
  padding: 5px 10px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #333;
  background: #fff;
  margin: 0;
  caret-color: #217346;
}

.input-cell-c::placeholder {
  color: #bbb;
}

.input-cell-d {
  width: var(--col-d-width);
  min-width: 32px;
  border-left: 1px solid var(--cell-border);
  flex-shrink: 0;
}

.input-cell-e {
  width: var(--col-e-width);
  min-width: 48px;
  border-left: 1px solid var(--cell-border);
  flex-shrink: 0;
}

/* ===== SETTINGS PANEL ===== */
.settings-panel {
  width: 300px;
  min-width: 300px;
  background: var(--settings-bg);
  border-left: 1px solid var(--ribbon-border);
  display: none;
  flex-direction: column;
  flex-shrink: 0;
}

.settings-panel.open {
  display: flex;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ribbon-border);
  font-weight: 600;
  font-size: 14px;
  color: #333;
  background: #f0f0f0;
}

.settings-close {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: #666;
  padding: 0 3px;
  line-height: 1;
}

.settings-close:hover {
  color: #333;
}

.settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.setting-item {
  padding: 10px 14px;
  border-bottom: 1px solid #ebebeb;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setting-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.setting-desc {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  line-height: 1.4;
}

/* Nickname text input */
.setting-text-input {
  width: 100%;
  border: 1px solid var(--ribbon-border);
  border-radius: 2px;
  padding: 5px 8px;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #333;
  background: #fff;
  margin-top: 6px;
  outline: none;
  box-sizing: border-box;
}

.setting-text-input:focus {
  border-color: var(--excel-green);
}

/* iOS-style toggle */
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--excel-green);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: default;
}

/* Auto-delete sub-options */
.setting-suboptions {
  display: none;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

.setting-suboptions.visible {
  display: block;
}

.suboption-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
}

.ttl-options {
  display: flex;
  gap: 5px;
}

.ttl-btn {
  border: 1px solid var(--ribbon-border);
  background: #fff;
  color: #555;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 2px;
  cursor: pointer;
}

.ttl-btn.active {
  background: var(--excel-green);
  color: #fff;
  border-color: var(--excel-green-dark);
}

/* ===== ARCHIVE VIEW ===== */
.archive-view {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.archive-view.active {
  display: flex;
}

.archive-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--ribbon-border);
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  flex-shrink: 0;
}

.archive-list {
  flex: 1;
  overflow-y: auto;
  padding: 5px 0;
}

.archive-empty {
  padding: 24px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.archive-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--cell-border);
  cursor: pointer;
}

.archive-item:hover {
  background: #f5f5f5;
}

.archive-item-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.archive-item-info {
  flex: 1;
  min-width: 0;
}

.archive-item-name {
  font-size: 14px;
  color: var(--msg-other);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-item-meta {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ===== SHEET TABS ===== */
.sheet-tabs {
  display: flex;
  align-items: center;
  background: #f3f3f3;
  border-top: 1px solid var(--ribbon-border);
  padding: 0 6px;
  height: 32px;
  flex-shrink: 0;
  gap: 3px;
}

.sheet-add {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: default;
  padding: 0 5px;
  line-height: 1;
}

.sheet-tab {
  padding: 4px 14px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  white-space: nowrap;
  user-select: none;
}

.sheet-tab:hover {
  background: #e8e8e8;
}

.sheet-tab.active {
  background: #fff;
  border-color: var(--ribbon-border);
  border-bottom-color: #fff;
  color: var(--excel-green);
  font-weight: 600;
}

/* ===== STATUS BAR ===== */
.status-bar {
  background: var(--excel-green);
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 26px;
  flex-shrink: 0;
  font-size: 13px;
}

.status-left {
  opacity: 0.85;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-sep {
  opacity: 0.4;
}

.enc-indicator {
  opacity: 0.8;
}

/* ===== OFFLINE PENDING ROW ===== */
.offline-pending-row .cell-c {
  color: #999;
  font-style: italic;
}

/* ===== CHAT ERROR ROW ===== */
.chat-error-row .cell-c {
  color: #e74c3c;
  font-style: italic;
}

/* ===== EMPTY STATE ROW ===== */
.empty-state-row .cell-c {
  color: #999;
  font-style: italic;
}

/* ===== RETRY BUTTON ===== */
.retry-btn {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 13px;
  padding: 0 0 0 6px;
  font-family: inherit;
}

/* ===== DROP OVERLAY ===== */
.drop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33, 115, 70, 0.1);
  border: 3px dashed var(--excel-green);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.drop-overlay.active {
  display: flex;
}

.drop-message {
  text-align: center;
  color: var(--excel-green);
  font-size: 18px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  padding: 28px 48px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.drop-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

/* ===== COVER DATA (panic mode) ===== */
.cover-hint {
  color: #e0e0e0;
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --col-c-width: 200px;
    --col-d-width: 0px;
  }

  .settings-panel {
    display: none !important;
  }

  .col-d, .col-e,
  .cell-d, .cell-e,
  .input-cell-d, .input-cell-e {
    display: none;
  }

  .toolbar-right .user-email {
    display: none;
  }

  .ribbon-controls {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .ribbon-group.ribbon-right {
    display: none;
  }
}

/* ===== REPLY PREVIEW BAR ===== */
.reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f7f0;
  border-left: 3px solid var(--excel-green);
  padding: 6px 12px;
  font-size: 13px;
  color: #555;
}
.reply-preview-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-cancel {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
}
.reply-cancel:hover { color: #333; }

/* ===== REPLY QUOTE IN MESSAGE ===== */
.reply-quote {
  display: block;
  background: #f5f5f5;
  border-left: 3px solid #ccc;
  padding: 4px 8px;
  margin-bottom: 4px;
  font-size: 0.85em;
  color: #666;
  border-radius: 2px;
}

.reply-quote-mine {
  border-left-color: #217346;
}

.reply-quote-other {
  border-left-color: #1a5276;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
  position: fixed;
  background: white;
  border: 1px solid #d4d4d4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  padding: 4px 0;
  border-radius: 4px;
  min-width: 120px;
}
.context-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}
.context-menu-item:hover {
  background: #f0f0f0;
}

.context-menu-delete {
  color: #e74c3c;
}

.context-menu-delete:hover {
  background: #fdf0f0;
}

/* ===== FORMATTING ===== */
.ribbon-btn.active {
  background: #d8e8d8;
  border-color: var(--excel-green);
}
.fmt-bold { font-weight: 700; }
.fmt-italic { font-style: italic; }
.fmt-underline { text-decoration: underline; }

/* ===== FONT SELECT ===== */
.ribbon-font-select,
.ribbon-font-size-select {
  font-size: 13px;
  border: 1px solid #ccc;
  padding: 3px 6px;
  background: white;
  border-radius: 2px;
  cursor: pointer;
}
.ribbon-font-select { width: 110px; }
.ribbon-font-size-select { width: 52px; }

/* ===== COLUMN RESIZE HANDLES ===== */
.col-header {
  position: relative;
}

.col-resize-handle {
  position: absolute;
  right: -2px;
  top: 0;
  width: 4px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
}

.col-resize-handle:hover {
  background: rgba(33, 115, 70, 0.3);
}

/* ===== NEW MESSAGE BANNER ===== */
.new-msg-banner {
  position: sticky;
  top: 0;
  background: #217346;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 0 0 4px 4px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-msg-banner:hover {
  background: #1a5c38;
}

/* ===== READ STATUS (in D column) ===== */
.read-status {
  font-size: 12px;
  color: #e74c3c;
  display: block;
  text-align: center;
  font-weight: 600;
}
.read-status.read {
  color: var(--excel-green);
}

/* ===== FILE THUMB ===== */
.file-thumb {
  max-width: 200px;
  max-height: 150px;
  display: block;
  margin: 4px 0;
  border-radius: 3px;
  border: 1px solid #e0e0e0;
}

/* ===== FILE VIEWER OVERLAY ===== */
.file-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-viewer-overlay img,
.file-viewer-overlay video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}

.file-viewer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-viewer-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
  :root {
    --col-a-width: 50px;
    --col-b-width: 48px;
    --col-c-width: 160px;
  }
}
