/* assets/css/app.css */
:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d8e0ea;
  --brand: #0f766e;
  --brand-2: #0b5a54;
  --ok: #166534;
  --err: #b00020;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1300px 700px at 100% -10%, #dff4f2 0%, var(--bg) 55%, #eef2f8 100%);
  color: var(--text);
  line-height: 1.4;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.topbar__title {
  font-weight: 700;
  font-size: 1rem;
}

.topbar__path,
.topbar__meta {
  color: var(--muted);
  font-size: .82rem;
}

.topbar__right {
  text-align: right;
}

.topbar__user {
  font-weight: 600;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 88px;
}

h1, h2, h3 {
  margin: 0 0 10px;
  line-height: 1.25;
}

h1 { font-size: 1.35rem; }
h2 { font-size: 1.05rem; margin-top: 18px; }

p, ul, table, form, section, article {
  margin-top: 0;
  margin-bottom: 14px;
}

.footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .8);
}

.bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  z-index: 30;
}

.bottomnav__link {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
  font-size: .9rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.bottomnav__link.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.bottomnav__warn {
  color: var(--err);
  font-weight: 700;
  padding: 8px 4px;
  white-space: nowrap;
}

.notice-ok {
  color: var(--ok);
  font-weight: 600;
}

.notice-err {
  color: var(--err);
  font-weight: 600;
}

.input,
.select,
.textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.input:focus,
.select:focus,
.textarea:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(15, 118, 110, .25);
  border-color: var(--brand);
}

.btn,
button,
input[type="submit"] {
  appearance: none;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  border-bottom: 1px solid #e8edf3;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--surface-2);
  font-weight: 700;
}

.cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (max-width: 780px) {
  .content {
    padding: 14px 10px 92px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .topbar {
    padding: 10px 12px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
