body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: #20232a;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  min-height: 100vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #0056d6;
  text-align: center;
}

.nav {
  text-align: center;
  margin-bottom: 2rem;
}

.nav a {
  display: inline-block;
  margin: 0 1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #0056d6;
  border: 1px solid #0056d6;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav a.is-active {
  background-color: #0056d6;
  color: white;
}

.nav a:hover {
  background-color: #0056d6;
  color: white;
}

.evidence-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.evidence-subnav button {
  margin: 0;
  padding: 0.45rem 1rem;
  border: 1px solid #0056d6;
  border-radius: 4px;
  background: #fff;
  color: #0056d6;
  cursor: pointer;
  font: inherit;
}

.evidence-subnav button.is-active {
  background-color: #0056d6;
  color: #fff;
}

.evidence-subnav button:hover {
  background-color: #0056d6;
  color: #fff;
}

.content {
  padding: 1rem;
}

.account-status {
  margin: -1rem 0 1.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d9e6;
  border-radius: 4px;
  background: #f9fbff;
  color: #4b5563;
  font-size: 0.95rem;
  text-align: center;
}

.account-status--signed-in {
  color: #20232a;
}

.account-status__logout {
  margin-left: 0.75rem;
  color: #0056d6;
  font-weight: 600;
}

.account-status__login {
  margin-left: 0.75rem;
  color: #0056d6;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea,
input[type="file"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d9e6;
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: #0056d6;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background: #0041a3;
}

#message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: 600;
}

.application {
  border: 1px solid #d1d9e6;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
}

.application h3 {
  margin-top: 0;
  color: #0056d6;
}

.application p {
  margin: 0.5rem 0;
}

.application button {
  margin-top: 0.5rem;
}

.unknown-status {
  margin-top: 1rem;
  min-height: 1.5rem;
}


footer {
  text-align: center;
  /* Centers the text horizontally */
  font-size: 1em;
  /* Makes the text larger */
  padding: 1em;
  /* Adds spacing inside the footer */
}
footer a {
  color: #0056d6;
  text-decoration: none;
}
.portal-legal-notice {
  max-width: 42rem;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: left;
  border-top: 1px solid #d0d7de;
  color: #333;
}
.portal-notice-banner {
  max-width: none;
  margin: 0 0 1rem;
  border: 1px solid #d0d7de;
  border-top: 1px solid #d0d7de;
  background: #f6f8fa;
  border-radius: 4px;
}
.portal-legal-notice p {
  margin: 0 0 0.65rem;
}
.portal-legal-notice p:last-child {
  margin-bottom: 0;
}
.container-wide {
  max-width: 1100px;
}

.data-panel {
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid #d1d9e6;
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef3fb;
  color: #0056d6;
}

.data-table tbody tr:nth-child(even) {
  background: #f9fbff;
}

.data-table code {
  font-size: 0.85rem;
}

.detail-panel {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #d1d9e6;
}

.detail-panel.hidden {
  display: none;
}

.metadata-grid {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.metadata-row {
  display: contents;
}

.metadata-row strong {
  color: #4b5563;
}

.metadata-row span {
  word-break: break-word;
}

.action-row {
  margin-top: 1rem;
}

.status-message {
  min-height: 1.25rem;
  margin: 0.75rem 0;
  font-weight: 600;
}

.status-message--info {
  color: #0056d6;
}

.status-message--error {
  color: #b42318;
}

.launch-progress {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #c7d4ea;
  border-radius: 8px;
  background: #f7f9fc;
}

.launch-progress[hidden] {
  display: none;
}

.launch-progress h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #0f2744;
}

.launch-progress-meta {
  margin: 0 0 0.75rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.launch-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.launch-progress-steps li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-top: 1px solid #e2e8f4;
  font-size: 0.95rem;
}

.launch-progress-steps li:first-child {
  border-top: 0;
}

.launch-progress-mark {
  min-width: 1.4rem;
  font-weight: 700;
  color: #64748b;
}

.launch-progress-steps li.is-current .launch-progress-mark {
  color: #0056d6;
}

.launch-progress-steps li.is-done .launch-progress-mark {
  color: #157a3a;
}

.launch-progress-steps li.is-failed .launch-progress-mark {
  color: #b42318;
}

.launch-progress-detail {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.85rem;
  color: #1f2937;
  white-space: pre-wrap;
  word-break: break-word;
}

.uploader-identity {
  margin: 0.5rem 0 1rem;
  color: #4b5563;
  font-size: 0.95rem;
}

.application-actions button + button {
  margin-left: 0.5rem;
}

.approve-expiration-panel {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid #c7d4ea;
  border-radius: 4px;
  background: #f3f7ff;
}

.approve-expiration-panel h4 {
  margin: 0 0 0.75rem;
  color: #0056d6;
}

.approve-expiration-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.approve-expiration-controls label {
  display: block;
  margin-bottom: 0.75rem;
}

.approve-expiration-controls input[type="number"],
.approve-expiration-controls input[type="datetime-local"] {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d1d9e6;
  border-radius: 4px;
  box-sizing: border-box;
}

.ticket-intro {
  margin-bottom: 1rem;
  color: #444;
}

.ticket-panel {
  margin-bottom: 2rem;
}

.ticket-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.ticket-form input[type="text"],
.ticket-form input[type="email"],
.ticket-form input[type="url"],
.ticket-form select,
.ticket-form textarea {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin-top: 0.25rem;
  padding: 0.5rem;
  box-sizing: border-box;
}

.ticket-access-fields {
  padding: 0.75rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.75rem;
}

.ticket-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.ticket-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ticket-card {
  margin-bottom: 1rem;
}

.ticket-actions button + button {
  margin-left: 0.5rem;
}

.ticket-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.ticket-modal-overlay[hidden] {
  display: none;
}

.ticket-modal {
  background: #fff;
  border-radius: 6px;
  max-width: 36rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ticket-modal h2 {
  margin-top: 0;
}

.ticket-modal-hint {
  margin: 0 0 1rem;
  color: #555;
  font-size: 0.95rem;
}

.ticket-modal-blocked {
  margin: 0 0 1rem;
  padding: 0.75rem;
  background: #fff8e6;
  border: 1px solid #e6c200;
  border-radius: 4px;
  color: #664d00;
}

.ticket-close-form label {
  display: block;
  margin-bottom: 0.75rem;
}

.ticket-close-form input,
.ticket-close-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem;
  box-sizing: border-box;
}

.ticket-close-form textarea {
  min-height: 4.5rem;
}

.ticket-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ticket-field-required::after {
  content: ' *';
  color: #c00;
}

.ticket-closure-summary {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
}

.ticket-evidence-upload {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #ddd;
}

.ticket-evidence-file-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.ticket-evidence-file-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.ticket-evidence-file-list .ticket-evidence-file-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.ticket-evidence-file-list button.linkish {
  background: none;
  border: none;
  color: #0056d6;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font: inherit;
}

.ticket-filing-hint {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  background: #f3f6fb;
  border-left: 3px solid #0056d6;
  font-size: 0.92rem;
}

.approve-expiration-hint {
  margin: 0.25rem 0 0.75rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.approve-primary {
  background: #0056d6;
  color: #fff;
  border: none;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

.approve-primary:hover {
  background: #0044aa;
}

.logo {
  float:left;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: #0056d6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.link-button--danger {
  color: #b42318;
  margin-left: 1.25rem;
}