:root {
  --navy: #0b3954;
  --navy-dark: #072436;
  --rope: #a9784f;
  --rope-dark: #7a5738;
  --cream: #f7f3ea;
  --white: #ffffff;
  --ink: #1c2b33;
  --success: #2e7d55;
  --error: #b3261e;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Verdana, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.5;
}

a { color: var(--navy); }

.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
}
.brand-ship { width: 42px; height: 34px; }
.site-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-nav a { color: var(--cream); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { text-decoration: underline; }

.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-footer {
  text-align: center;
  color: var(--rope-dark);
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

h1 { font-size: 1.8rem; color: var(--navy); margin-top: 0; }
h2 { font-size: 1.3rem; color: var(--navy); }

.hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.hero img { width: 110px; height: auto; flex-shrink: 0; }
.hero h1 { color: var(--white); margin: 0 0 0.35rem; }
.hero p { margin: 0; color: var(--cream); }

.card {
  background: var(--white);
  border: 1px solid #e2d9c6;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.flash-list { margin-bottom: 1rem; }
.flash {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.flash-success { background: #e3f3ea; color: var(--success); border: 1px solid var(--success); }
.flash-error { background: #fbe9e7; color: var(--error); border: 1px solid var(--error); }

form { display: flex; flex-direction: column; gap: 1rem; }
label { font-weight: 600; display: block; margin-bottom: 0.3rem; }
input[type=text], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.05rem;
  border: 2px solid #cfc3a8;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--rope); border-color: var(--rope); }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; }
.checkbox-row input { width: 22px; height: 22px; }

.btn {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: var(--rope); color: var(--white); }
.btn-secondary:hover { background: var(--rope-dark); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-link { background: none; color: var(--navy); text-decoration: underline; padding: 0.4rem 0; }

.name-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.name-list button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  font-size: 1.15rem;
  background: var(--white);
  border: 2px solid #cfc3a8;
  border-radius: var(--radius);
  cursor: pointer;
}
.name-list button:hover, .name-list button:focus { border-color: var(--navy); background: var(--cream); }
.name-list .flagnr { color: var(--rope-dark); font-weight: 700; margin-right: 0.5rem; }

table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid #e2d9c6; font-size: 0.95rem; }
th { color: var(--navy); }

.status-open { color: var(--success); font-weight: 700; }
.status-closed { color: var(--error); font-weight: 700; }

.link-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: var(--cream);
  border: 2px dashed var(--rope);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin: 1rem 0;
  word-break: break-all;
  font-size: 1rem;
}

.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row > div { flex: 1; min-width: 180px; }

.muted { color: #6b6355; font-size: 0.9rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { flex-direction: column; text-align: center; }
}
