/* Company Tracking – refreshed theme */

.main--company {
  max-width: 1280px;
  padding: 2rem 2rem;
  margin-left: auto;
  margin-right: auto;
}

.company-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.company-content {
  flex: 1;
  min-width: 0;
}

.company-sidebar {
  width: 48px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
  padding: 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover, #1d4ed8) 100%);
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.08);
  transition: width 0.25s ease, padding 0.2s ease, border-radius 0.2s ease;
  overflow: hidden;
}

.company-sidebar--expanded {
  width: 300px;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-sidebar__tab {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.95);
  padding: 0;
  pointer-events: none;
  color: #fff;
}

.company-sidebar:not(.company-sidebar--expanded) .company-sidebar__tab {
  display: block;
}

.company-sidebar__header {
  padding: 1rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
}

.company-sidebar--expanded .company-sidebar__header {
  padding: 0 0 0.75rem;
}

.company-sidebar__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.company-sidebar:not(.company-sidebar--expanded) .company-sidebar__toggle {
  color: #fff;
  justify-content: center;
}

.company-sidebar:not(.company-sidebar--expanded) .company-sidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.company-sidebar--expanded .company-sidebar__toggle:hover {
  background: var(--color-bg);
}

.company-sidebar__toggle-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.company-sidebar--expanded .company-sidebar__toggle-icon {
  transform: rotate(135deg);
}

.company-sidebar__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.company-sidebar:not(.company-sidebar--expanded) .company-sidebar__title {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.2s ease, opacity 0.15s ease;
}

.company-sidebar--expanded .company-sidebar__title {
  max-width: 20em;
  opacity: 1;
}

.company-sidebar:not(.company-sidebar--expanded) .company-sidebar__header {
  padding: 1rem 0.75rem;
  justify-content: center;
}

.company-sidebar:not(.company-sidebar--expanded) .company-sidebar__toggle {
  justify-content: center;
}

.company-sidebar:not(.company-sidebar--expanded) .tomorrow-list {
  display: none;
}

.tomorrow-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tomorrow-card {
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.tomorrow-card__company {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tomorrow-card__company a {
  color: var(--color-accent);
  text-decoration: none;
}

.tomorrow-card__company a:hover {
  text-decoration: underline;
}

.tomorrow-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.tomorrow-card__type {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.tomorrow-card__prepare {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  padding-left: 1.1rem;
}

.tomorrow-card__prepare li {
  margin-bottom: 0.2rem;
}

.tomorrow-empty {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .company-layout {
    flex-direction: column;
  }

  .company-sidebar {
    width: 100%;
    position: static;
  }
}

/* Hero block */
.company-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-hero-tint) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease;
}

.company-hero:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

.company-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.company-hero__subtitle {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.company-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.company-hero__actions .btn--schedule-link {
  text-decoration: none;
}

.btn--add {
  flex-shrink: 0;
  padding: 0.65rem 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.btn--add:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Status tabs – pill/segmented */
.company-list-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.company-list-toolbar__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.company-list-toolbar__search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.company-list-toolbar__search:focus {
  outline: none;
  border-color: var(--color-accent);
}

.company-list-toolbar__search::placeholder {
  color: var(--color-text-muted);
}

.company-list-toolbar__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.company-list-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.company-list-toolbar__filter-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.filter-chip {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-chip.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.filter-select {
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.company-list-toolbar__view {
  display: flex;
  gap: 0.25rem;
}

.view-toggle {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
}

.view-toggle:hover,
.view-toggle.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.company-card-view {
  margin-top: 1rem;
}

.company-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.company-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.company-card__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-accent);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.company-card__name:hover {
  text-decoration: underline;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pill--interview { background: #fef08a; color: #a16207; }
.status-pill--rejected { background: #ffddd2; color: #9a3b2b; }
.status-pill--offer { background: #bbf7d0; color: #166534; }
.status-pill--pending { background: #e0e7ff; color: #3730a3; }
.status-pill--default { background: var(--color-bg); color: var(--color-text-muted); }

.company-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.company-card__next {
  font-size: 0.9rem;
  color: var(--color-text);
}

.company-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 0.25rem;
}

.company-card__link:hover {
  text-decoration: underline;
}

.company-list-empty .btn {
  margin-top: 0.75rem;
  display: inline-block;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tab {
  flex: 1;
  min-width: fit-content;
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

.tab.tab--active {
  color: #fff;
  background: var(--color-accent);
}

.tab.tab--active:hover {
  background: var(--color-accent-hover);
}

.company-list-loading {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.company-list-loading.hidden {
  display: none !important;
}

.company-error-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.company-error-banner.hidden {
  display: none !important;
}

.company-error-banner__dismiss {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.8;
}

.company-error-banner__dismiss:hover {
  opacity: 1;
}

/* Table container */
.company-table-hint {
  display: none;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
@media (max-width: 768px) {
  .company-table-hint {
    display: block;
  }
}
.table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--shadow);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  padding: 1rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.company-table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-to-study-muted);
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.company-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.company-table__sort:hover {
  text-decoration: underline;
}

.company-table__sort::after {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: 0.15em;
  opacity: 0.5;
}

.company-table__sort[aria-sort="ascending"]::after {
  opacity: 1;
  transform: rotate(135deg);
}

.company-table__sort[aria-sort="descending"]::after {
  opacity: 1;
  transform: rotate(-45deg);
}

.company-table tbody tr {
  transition: background 0.2s ease;
}

.company-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.company-table tbody tr:hover {
  background: var(--color-to-study-muted);
}

.company-table tbody tr:last-child td {
  border-bottom: none;
}

.company-table .company-name-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.company-role-cell {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.company-table .company-name-link:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.company-name-cell {
  position: sticky;
  left: 0;
  padding-left: 1.5rem;
  background: var(--color-surface);
  z-index: 1;
  box-shadow: 2px 0 0 var(--color-border);
}

.company-table tbody tr:nth-child(even) .company-name-cell {
  background: rgba(0, 0, 0, 0.02);
}

.company-table tbody tr:hover .company-name-cell {
  background: var(--color-to-study-muted);
}

.company-pulse {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: company-pulse 1.5s ease-in-out infinite;
}

@keyframes company-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { opacity: 0.9; box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}


.next-deadline-cell {
  font-size: 0.875rem;
  color: var(--color-text);
}

.stage-cell {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.stage-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}

.stage-cta:hover {
  text-decoration: underline;
}

.company-list-empty {
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.company-list-empty p {
  margin: 0;
  font-size: 1rem;
}

/* Status badges – consistent palette */
.table-status {
  display: inline-block;
  padding: 0.35em 0.75em;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Follow up / Provide availability – active pending (light purple/blue) */
.table-status--pending {
  background: #e0e7ff;
  color: #3730a3;
}

/* Interviewing – vibrant yellow/gold */
.table-status--interview {
  background: #fef08a;
  color: #a16207;
}

/* Offer accepted – vibrant green */
.table-status--offer {
  background: #bbf7d0;
  color: #166534;
}

/* Rejected – softer muted coral (not error red) */
.table-status--rejected {
  background: #ffddd2;
  color: #9a3b2b;
}

/* Default / other – neutral */
.table-status--default {
  background: var(--color-to-study-muted);
  color: var(--color-to-study);
}

/* Forms – Paper & Ink (bento card) */
.company-form {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.company-form:hover {
  box-shadow: var(--shadow-md);
}

.company-form h3 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* Section headings (Timeline / Contacts) */
.company-form .form-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.25rem;
}

.company-form .form-section-title:first-of-type {
  margin-top: 0;
}

.company-form .form-section-hint,
.company-form .form-field-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: block;
}

.company-form .form-section-hint {
  margin-bottom: 0.5rem;
}

/* Add company modal */
.company-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.company-modal.hidden {
  display: none !important;
}

.company-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  cursor: default;
}

.company-modal__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius);
}

.company-modal .company-form--add {
  margin-top: 0;
}

.form-grid {
  display: grid;
  gap: 1rem 2rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .company-form .form-section-title {
    grid-column: 1 / -1;
  }
}

.form-grid .form-row {
  margin-bottom: 0;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Ghost inputs: no background, 1px bottom border, blue glow on focus */
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-focus);
  border-radius: 0;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 0 0 transparent;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent), 0 2px 8px -2px rgba(37, 99, 235, 0.35);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

#add-status,
#edit-status {
  font-size: 0.9rem;
}

.required {
  color: #dc2626;
}

.company-form-error {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.company-form-error.hidden {
  display: none !important;
}

.company-form-success {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: var(--color-mastered-muted);
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.company-form-success.hidden {
  display: none !important;
}

.form-actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-actions--top {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Buttons */
.btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: background 0.15s, box-shadow 0.15s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: var(--color-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: #c5d0da;
}

.btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* Detail view */
.company-detail-header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.company-detail-header .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0;
  font-weight: 500;
}

.company-detail-header__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.detail-loading {
  padding: 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.rounds-title {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.rounds-current {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.rounds-summary {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.rounds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.company-form__section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
  color: var(--color-text);
}

.company-form__section-heading:first-child {
  margin-top: 0;
}

.edit-form-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.edit-form-tab {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
}

.edit-form-tab:hover {
  color: var(--color-text);
}

.edit-form-tab.edit-form-tab--active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.edit-form-panel {
  display: block;
}

.edit-form-panel.edit-form-panel--hidden {
  display: none;
}

.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.rounds-list::before {
  content: '';
  position: absolute;
  left: 1.4rem;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--color-border);
  border-radius: 1px;
  z-index: 0;
}

.round-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  max-width: 720px;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.round-row__header {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.round-row__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.round-row__toggle:hover {
  color: var(--color-text);
}

.round-row__chevron {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 0.15rem;
}

.round-row--collapsed .round-row__chevron {
  transform: rotate(-135deg);
  margin-bottom: 0;
  margin-top: 0.2rem;
}

.round-row__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.round-row__header-meta {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.round-row__status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.round-row__status--scheduled {
  background: var(--color-to-study-muted, #f0f0f0);
  color: var(--color-text-muted, #666);
}

.round-row__status--completed {
  background: var(--color-success-muted, #e6f4ea);
  color: var(--color-success, #1e7e34);
}

.round-row__body {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.round-row--collapsed .round-row__body {
  display: none;
}

.round-row__when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
}

.round-row__when .round-type-other-wrap {
  grid-column: 1 / -1;
}

.round-row__when .round-completed-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.round-row__notes {
  margin-top: 0.75rem;
}

.round-row__notes label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.round-completed-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
}

.round-completed-label .round-completed {
  margin: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 3px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.round-row__when label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.round-row .round-type-select {
  max-width: 280px;
  padding: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border-focus);
  border-radius: var(--radius);
  color: var(--color-text);
}

.round-type-other-wrap .round-type-other {
  margin-top: 0.25rem;
  width: 100%;
  max-width: 280px;
  padding: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid var(--color-border-focus);
  border-radius: var(--radius);
}

.round-row .round-number {
  width: 80px;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-focus);
  border-radius: 0;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.round-row .round-number:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}

.round-scheduled-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.round-row .round-scheduled-date,
.round-row .round-scheduled-time {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border-focus);
  border-radius: 0;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.round-row .round-scheduled-date {
  min-width: 140px;
}

.round-row .round-scheduled-time {
  min-width: 100px;
}

.round-row .round-scheduled-date:focus,
.round-row .round-scheduled-time:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
  box-shadow: 0 1px 0 0 var(--color-accent);
}

.round-notes-toolbar {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}

.round-notes-toolbar__btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--color-to-study-muted);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  cursor: pointer;
}

.round-notes-toolbar__btn:hover {
  background: var(--color-border);
}

.round-row .round-what-was-asked.round-notes-editor {
  width: 100%;
  min-height: 80px;
  padding: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: inherit;
  background: var(--color-surface);
  border: 1px solid var(--color-border-focus);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.round-row .round-what-was-asked.round-notes-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--color-text-muted);
}

.round-row .round-what-was-asked.round-notes-editor:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.round-row .round-what-was-asked.round-notes-editor ul {
  margin: 0.5rem 0 0 1.25rem;
  padding-left: 0;
}

.round-remove {
  flex-shrink: 0;
}

.error {
  color: #dc2626;
  padding: 1rem;
}

.company-view.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .tabs {
    flex-wrap: wrap;
  }
  .tab {
    min-width: calc(50% - 4px);
  }
}
