* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: #f0f2f5;
  margin: 0;
  color: #222;
}
.topnav {
  background: #2c3e50;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.topnav .brand { font-weight: bold; font-size: 18px; margin-right: auto; color: white; text-decoration: none; }

.brand-group { display: flex; gap: 4px; margin-right: auto; align-items: center; }
.brand-word {
  font-weight: 800; font-size: 17px; color: white; text-decoration: none;
  margin-right: 10px; padding-right: 12px; border-right: 1px solid rgba(255,255,255,0.25);
}
.brand-word:hover { text-decoration: none; opacity: 0.85; }
.brand-tab {
  font-weight: 700; font-size: 15px; color: rgba(255,255,255,0.55); text-decoration: none;
  padding: 6px 10px; border-radius: 6px; transition: color 0.15s, background 0.15s;
}
.brand-tab:hover { color: white; background: rgba(255,255,255,0.08); text-decoration: none; }
.brand-tab-active { color: white; background: rgba(255,255,255,0.15); }
.topnav a { color: #a8d0ff; text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.nav-user { color: #ccc; font-size: 14px; }
.lang-select {
  background: #34495e; color: white; border: 1px solid #4a637a;
  border-radius: 4px; padding: 4px 8px; font-size: 13px;
}

.container { max-width: 1200px; margin: 20px auto; padding: 0 16px 60px; }

.auth-box {
  max-width: 380px;
  margin: 60px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.auth-box form { display: flex; flex-direction: column; gap: 4px; }
.auth-box label { font-size: 13px; color: #555; margin-top: 8px; }
.auth-box input { padding: 8px; border: 1px solid #ccc; border-radius: 4px; }
.auth-box button { margin-top: 16px; }
.checkbox-label {
  display: flex !important; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #555; margin-top: 14px !important; line-height: 1.4;
}
.checkbox-label input[type="checkbox"] { width: auto; margin-top: 2px; }
.checkbox-label a { color: #1a5276; }

.flashes { list-style: none; padding: 0; margin-bottom: 16px; }
.flashes li {
  background: #fff3cd; border: 1px solid #ffe69c; padding: 10px 14px;
  border-radius: 4px; margin-bottom: 6px; font-size: 14px;
}

.row { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.row.three-col > .card { flex: 1; min-width: 240px; }

.card {
  background: white; border: 1px solid #ddd; border-radius: 8px;
  padding: 14px; margin: 0;
}
.card-title {
  font-weight: 700; font-size: 15px; color: #1a5276;
  text-transform: uppercase; letter-spacing: 0.4px;
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 2px solid #cfe2f3;
}

.hidden-field { display: none; }

.card label { display: block; font-size: 12px; color: #666; margin-top: 8px; }
.card input, .card select {
  width: 100%; padding: 7px; border: 1px solid #ccc; border-radius: 4px;
  font-size: 14px; margin-top: 2px;
}

/* Vienāds, plakans izskats visiem atlikušajiem <select> (piem. mērvienība, dokumenta veids) --
   noņem pārlūka noklusēto krāsu/reljefu izskatu, lai tas vizuāli saietu kopā ar pārējiem laukiem. */
.card select, #goods-table select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23667'><path d='M5.5 7.5L10 12l4.5-4.5' stroke='%23667' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
  padding-right: 28px; cursor: pointer;
}

/* Lauki, kas atver pašu izstrādāto (custom) dropdown sarakstu -- vizuāli tāpat kā select */
.dropdown-input {
  cursor: pointer; background-color: white;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23667'><path d='M5.5 7.5L10 12l4.5-4.5' stroke='%23667' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
  padding-right: 28px;
}
.dropdown-input[readonly] { caret-color: transparent; }

.custom-dropdown-list {
  position: fixed; z-index: 500;
  background: white; border: 1px solid #cfd8e3; border-radius: 6px;
  max-height: 480px; overflow-y: auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.custom-dropdown-item {
  padding: 6px 12px; font-size: 13px; line-height: 1.3; cursor: pointer; color: #222;
  border-bottom: 1px solid #f0f2f5;
}
.custom-dropdown-item:last-child { border-bottom: none; }
.custom-dropdown-item:hover { background: #eaf2fa; }
.custom-dropdown-item.dropdown-match { background: #fff3cd; font-weight: 600; }
.custom-dropdown-item.dropdown-match:hover { background: #ffe9a8; }

.preset-name { margin-bottom: 10px; font-weight: 500; }

.btn-row { margin-top: 12px; display: flex; gap: 8px; }
button {
  padding: 8px 14px; border: none; border-radius: 4px; cursor: pointer;
  background: #e0e0e0; font-size: 13px;
}
button:hover { background: #d0d0d0; }
button.primary { background: #2ecc71; color: white; font-weight: bold; }
button.primary:hover { background: #27ae60; }
button.danger { background: #e74c3c; color: white; }
button.danger:hover { background: #c0392b; }

#goods-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
#goods-table th { text-align: left; font-size: 12px; color: #666; padding: 4px; }
#goods-table td { padding: 4px; }
#goods-table input { width: 100%; padding: 6px; border: 1px solid #ccc; border-radius: 4px; }
#add-good { margin-top: 8px; }

.page-title {
  font-weight: 700; font-size: 24px; color: #1a5276;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 3px solid #cfe2f3; padding-bottom: 10px; margin-bottom: 20px;
}

.save-btn {
  background: white; color: #27ae60; border: 1.5px solid #27ae60; font-weight: 600;
  border-radius: 6px; padding: 6px 16px;
  transition: background 0.15s, color 0.15s;
}
.save-btn:hover { background: #27ae60; color: white; }

.delete-btn {
  background: white; color: #e74c3c; border: 1.5px solid #e74c3c; font-weight: 600;
  border-radius: 6px; padding: 6px 16px;
  transition: background 0.15s, color 0.15s;
}
.delete-btn:hover { background: #e74c3c; color: white; }

.secondary-btn {
  background: #eaf2fa; color: #1a5276; border: 1.5px solid #aed0ea; font-weight: 600;
  border-radius: 6px; padding: 6px 16px;
  transition: background 0.15s;
}
.secondary-btn:hover { background: #d6e9f8; }

/* Flatpickr kalendārs -- samazināts par 1/4, salīdzinot ar iepriekšējo palielināto versiju */
.flatpickr-calendar { font-size: 0.98em !important; box-shadow: 0 4px 16px rgba(0,0,0,0.2) !important; }
.flatpickr-day { height: 32px !important; line-height: 32px !important; max-width: 32px !important; }
.flatpickr-months .flatpickr-month { height: 35px !important; }
.flatpickr-current-month { font-size: 0.83em !important; padding-top: 5px !important; }
.flatpickr-weekday { font-size: 0.71em !important; }
.numInputWrapper { font-size: 0.9em !important; }

.errors {
  background: #fdecea; border: 1px solid #f5c2c0; color: #b71c1c;
  padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
}
.errors ul { margin: 0; padding-left: 20px; }

.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 14px; border-bottom: 1px solid #eee; font-size: 14px; text-align: left; }
.admin-table th { background: #f7f7f7; }
.admin-table .actions { display: flex; gap: 6px; }

.unread-badge {
  background: #e74c3c; color: white; border-radius: 10px;
  font-size: 11px; font-weight: 700; padding: 1px 7px; margin-left: 4px;
  display: inline-block; vertical-align: middle;
}

.hero {
  text-align: center; padding: 70px 20px 50px; max-width: 720px; margin: 0 auto;
}
.hero h1 { font-size: 34px; color: #1a5276; margin-bottom: 16px; }
.hero p { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 12px 28px; font-size: 15px; text-decoration: none; display: inline-block; }

.landing-body { background: #f0f2f5; }
.landing-nav { background: #14202e; }

.hero-gradient {
  max-width: none; width: 100%; text-align: left; padding: 60px 20px 80px;
  background: linear-gradient(135deg, #1a5276 0%, #2c3e50 60%, #14202e 100%);
  position: relative; overflow: hidden;
}
.hero-bg-illustration {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
.hero-wave-divider {
  position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; z-index: 1;
}
.hero-content {
  max-width: 1080px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 50px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.hero-copy { flex: 1 1 380px; min-width: 300px; }
.hero-copy h1 { color: white; font-size: 44px; font-weight: 800; line-height: 1.15; text-align: left; margin-bottom: 16px; }
.hero-copy .hero-sub { color: #d7e4ee; text-align: left; font-size: 16px; margin-bottom: 0; }
.hero-eyebrow {
  color: #9fdcff; font-size: 13px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px; opacity: 1;
  display: inline-block; padding-left: 14px; border-left: 3px solid #2e9e5b;
}

.auth-panel {
  flex: 0 1 380px; min-width: 300px; background: white; border-radius: 12px;
  padding: 24px 26px 28px; box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.auth-tabs { display: flex; gap: 4px; background: #eef1f4; border-radius: 8px; padding: 4px; margin-bottom: 18px; }
.auth-tab {
  flex: 1; padding: 9px 0; border: none; background: transparent; border-radius: 6px;
  font-weight: 700; font-size: 14px; color: #667; cursor: pointer; transition: all 0.15s;
}
.auth-tab-active { background: white; color: #1a5276; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.auth-tab-panel { display: none; flex-direction: column; gap: 3px; }
.auth-tab-panel-active { display: flex; }
.auth-tab-panel label { font-size: 12.5px; color: #666; margin-top: 9px; font-weight: 600; }
.auth-tab-panel input, .auth-tab-panel select {
  padding: 9px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 14px;
}
.auth-tab-panel button.primary { margin-top: 18px; padding: 11px; font-size: 14.5px; }
.auth-panel .flashes { margin-bottom: 14px; }
.auth-panel .flashes li { font-size: 13px; }

.btn-on-dark { box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.btn-on-dark-outline { background: transparent; color: white; border-color: rgba(255,255,255,0.6); }
.btn-on-dark-outline:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 720px) {
  .hero-content { flex-direction: column; }
  .hero-copy h1, .hero-copy .hero-sub { text-align: center; }
  .hero-copy { text-align: center; }
  .auth-panel { width: 100%; max-width: 420px; }
}

.showcase-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.showcase-card {
  background: white; border-radius: 12px; padding: 26px 22px; text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.showcase-icon { width: 44px; height: 44px; margin: 0 auto 12px; }
.showcase-icon svg { width: 100%; height: 100%; }
.showcase-card h3 { color: #1a5276; font-size: 15.5px; margin-bottom: 8px; }
.showcase-card p { color: #666; font-size: 13px; line-height: 1.5; margin: 0; }

.landing-footer {
  text-align: center; padding: 24px; color: #999; font-size: 13px;
}
.site-footer {
  text-align: center; padding: 20px; color: #999; font-size: 12.5px;
  border-top: 1px solid #e5e8eb; margin-top: 40px;
}

.demo-frame {
  max-width: 720px; margin: 30px auto 0; background: white; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); overflow: hidden;
}
.demo-titlebar { background: #e9edf1; padding: 10px 14px; display: flex; gap: 6px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #d0d5db; }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-body { position: relative; min-height: 220px; }
.demo-video { display: block; width: 100%; height: auto; background: #f4f6f8; }
.demo-progress { height: 4px; background: #e6ebf0; }
.demo-progress-bar { height: 100%; width: 0%; background: #1a5276; }
.demo-controls { display: flex; align-items: center; gap: 14px; padding: 14px 20px 18px; }
.demo-play-btn {
  background: #1a5276; color: white; border: none; border-radius: 50%;
  width: 32px; height: 32px; flex-shrink: 0; cursor: pointer; font-size: 11px;
}
.demo-caption { margin: 0; font-size: 14px; color: #333; font-weight: 600; }

.mock-cards { display: flex; gap: 10px; width: 100%; }
.mock-card { flex: 1; border: 1px solid #dde3ea; border-radius: 8px; padding: 12px; background: #fafbfc; }
.mock-card.mock-highlight { border-color: #1a5276; box-shadow: 0 0 0 3px rgba(26,82,118,0.15); }
.mock-line { height: 8px; background: #e2e7ec; border-radius: 4px; margin-bottom: 7px; }
.mock-line.short { width: 55%; background: #c7d3dd; }

.mock-table { width: 100%; border: 1px solid #dde3ea; border-radius: 8px; overflow: hidden; }
.mock-row { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef1f4; }
.mock-row:last-child { border-bottom: none; }
.mock-row.mock-header { background: #f4f6f8; }
.mock-row span { flex: 1; height: 8px; border-radius: 4px; background: #e2e7ec; }
.mock-row.mock-header span { background: #c7d3dd; height: 7px; }

.mock-generate-wrap { display: flex; justify-content: center; width: 100%; }
.mock-generate-btn {
  background: #27ae60; color: white; font-weight: 700; padding: 14px 34px;
  border-radius: 8px; font-size: 15px; animation: mockPulse 1.4s ease-in-out infinite;
}
@keyframes mockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.35); }
  50% { box-shadow: 0 0 0 10px rgba(39,174,96,0); }
}

.mock-file-row { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 34px; }
.mock-arrow { font-size: 22px; color: #1a5276; }

.mock-folders { display: flex; gap: 22px; }
.mock-folder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 34px; color: #1a5276;
}
.mock-folder span { font-size: 11px; font-weight: 700; color: #666; }

.landing-section { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.landing-alt { background: white; border-radius: 12px; }
.landing-center { text-align: center; border-bottom: none; }

.landing-section-intro { text-align:center; color:#666; max-width:600px; margin:0 auto 30px; }
.risk-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; margin: 0 0 26px;
}
.risk-card {
  background: white; border-radius: 12px; padding: 22px 20px; text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); border-top: 4px solid #c0392b;
}
.risk-card svg { width: 46px; height: auto; margin-bottom: 10px; }
.risk-card h3 { font-size: 14.5px; color: #c0392b; margin-bottom: 6px; }
.risk-card p { font-size: 13px; color: #666; line-height: 1.5; margin: 0; }
.risk-outro { color: #1a5276; font-weight: 600; text-align: center; margin: 0; }
.risk-fact-callout {
  margin: 18px auto 0; max-width: 640px; padding: 12px 16px; background: #eaf2fa; border-left: 4px solid #1a5276;
  border-radius: 4px; font-size: 13px; color: #1a5276; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
}

.steps-row { display: flex; align-items: stretch; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.step {
  flex: 1; min-width: 200px; max-width: 260px; text-align: center;
  background: white; border-radius: 12px; padding: 26px 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: #1a5276; color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
  margin: 0 auto 14px;
}
.step h3 { font-size: 16px; color: #1a5276; margin-bottom: 6px; }
.step p { font-size: 13px; color: #666; line-height: 1.5; }
.step-arrow { font-size: 24px; color: #aed0ea; display: flex; align-items: center; }

.role-panels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 30px;
}
.role-panel {
  text-align: left; padding: 30px 26px; background: white; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); border-top: 4px solid #1a5276;
  display: flex; flex-direction: column;
}
.role-panel-icon { width: 42px; height: 42px; margin-bottom: 14px; }
.role-panel-icon svg { width: 100%; height: 100%; }
.role-panel h3 { font-size: 17px; color: #1a5276; margin-bottom: 10px; }
.role-panel p { font-size: 13.5px; color: #666; line-height: 1.6; flex-grow: 1; margin-bottom: 16px; }
.role-panel-cta {
  color: #1a5276; font-weight: 700; font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px; transition: gap 0.15s;
}
.role-panel-cta:hover { gap: 8px; text-decoration: none; }

@media (max-width: 700px) {
  .steps-row { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}

.chat-box {
  background: white; border: 1px solid #ddd; border-radius: 8px;
  padding: 16px; height: 440px; overflow-y: auto; margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { display: flex; flex-direction: column; max-width: 70%; }
.chat-mine { align-self: flex-end; align-items: flex-end; }
.chat-theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 14px; white-space: pre-wrap; word-break: break-word;
}
.chat-mine .chat-bubble { background: #1a5276; color: white; border-bottom-right-radius: 4px; }
.chat-theirs .chat-bubble { background: #eef1f4; color: #222; border-bottom-left-radius: 4px; }
.chat-meta { font-size: 11px; color: #999; margin-top: 3px; }
.chat-empty { color: #999; text-align: center; margin-top: 40px; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-box {
  background: white; border-radius: 10px; padding: 24px;
  width: 400px; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.modal-box h3 { margin: 0 0 16px; color: #1a5276; }
.modal-box label { display: block; font-size: 12px; color: #666; margin-top: 10px; }
.modal-box input {
  width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px;
  font-size: 14px; margin-top: 2px;
}

.folder-picker-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.folder-chip {
  padding: 6px 14px; border: 1.5px solid #cfd8e3; border-radius: 20px;
  font-size: 13px; cursor: pointer; color: #444; background: #f7f9fb;
  transition: background 0.15s, border-color 0.15s;
}
.folder-chip:hover { border-color: #1a5276; }
.folder-chip.selected { background: #1a5276; color: white; border-color: #1a5276; }
.folder-chip-empty { font-size: 13px; color: #999; margin: 4px 0; }

.folder-card { background: white; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }

.stats-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stats-card {
  background: white; border: 1px solid #ddd; border-radius: 10px; padding: 20px;
  text-align: center;
}
.stats-number { font-size: 30px; font-weight: 700; color: #1a5276; }
.stats-label { font-size: 13px; color: #555; margin-top: 4px; font-weight: 600; }
.stats-sublabel { font-size: 11px; color: #999; margin-top: 4px; }

.bar-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px;
}
.bar-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-chart-bar { width: 100%; max-width: 26px; background: #1a5276; border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-chart-label { font-size: 10px; color: #999; margin-top: 6px; }

.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hbar-label { width: 130px; flex-shrink: 0; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { flex: 1; height: 10px; background: #eef1f4; border-radius: 5px; overflow: hidden; }
.hbar-fill { height: 100%; background: #1a5276; border-radius: 5px; }
.hbar-count { width: 30px; text-align: right; font-size: 12px; color: #666; font-weight: 600; }
.folder-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; user-select: none; }
.folder-header:hover { background: #f7f9fb; }
.folder-arrow { font-size: 11px; color: #888; width: 12px; }
.folder-name { font-weight: 600; color: #1a5276; flex: 1; }
.folder-count { background: #eaf2fa; color: #1a5276; border-radius: 10px; padding: 1px 9px; font-size: 12px; }
.folder-files { border-top: 1px solid #eee; }
.folder-file-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f2f2f2; flex-wrap: wrap; }
.doc-type-badge {
  background: #eaf2fa; color: #1a5276; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; flex-shrink: 0;
}
.folder-file-row:last-child { border-bottom: none; }
.file-name { flex: 1; font-size: 14px; min-width: 140px; }
.file-date { font-size: 12px; color: #999; }
.file-actions { display: flex; gap: 6px; }
.file-actions a, .file-actions button { padding: 5px 10px; font-size: 12px; text-decoration: none; }
.folder-header a { text-decoration: none; padding: 4px 10px; font-size: 12px; }

.chat-input-row { display: flex; gap: 8px; }
.chat-input-row textarea {
  flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 6px;
  font-family: inherit; font-size: 14px; resize: vertical; min-height: 44px;
}
