/* L-Brain LIFF — refined business aesthetic
   Typography: Noto Serif JP (display) + Noto Sans JP (body)
   Color: deep navy + warm paper + amber accent
*/
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap');

:root {
  --ink:        #0b1220;
  --ink-soft:   #1f2937;
  --paper:      #f7f4ee;
  --paper-deep: #efeae0;
  --line:       #d8d2c4;
  --amber:      #c2761f;
  --amber-deep: #9a5b14;
  --danger:     #b54040;
  --ok:         #2f7a4d;
  --shadow:     0 1px 2px rgba(11,18,32,.04), 0 8px 24px rgba(11,18,32,.06);
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─────────── Layout ─────────── */
.shell {
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ─────────── Topbar ─────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: -0.02em;
}
.brand__name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.topbar__tenant {
  font-size: 12px;
  color: var(--ink-soft);
  opacity: .7;
  letter-spacing: .04em;
}

/* ─────────── Hero ─────────── */
.hero {
  padding: 22px 4px 6px;
  border-bottom: 1px solid var(--line);
}
.hero__title {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero__title::after {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--amber);
  margin-top: 12px;
}
.hero__sub {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: .75;
}

/* ─────────── Composer ─────────── */
.composer {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.composer:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,18,32,.06), var(--shadow);
}

.composer textarea {
  width: 100%;
  border: none;
  resize: none;
  outline: none;
  font: inherit;
  background: transparent;
  color: var(--ink);
  min-height: 120px;
  font-size: 15px;
  line-height: 1.7;
}
.composer textarea::placeholder { color: #9aa1ad; }

.composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.composer__count {
  font-size: 11px;
  color: #8b93a1;
  font-variant-numeric: tabular-nums;
}

/* ─────────── Buttons ─────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .12s, background .15s, opacity .15s;
}
.btn-primary:hover:not(:disabled) {
  background: #1a2438;
}
.btn-primary:active:not(:disabled) { transform: scale(.97); }
.btn-primary:disabled {
  opacity: .35;
  cursor: not-allowed;
}

/* ─────────── Quick chips ─────────── */
.quick { padding: 4px 2px; }
.quick__label {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-transform: uppercase;
  opacity: .55;
  margin: 0 0 10px;
}
.quick__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.chip:hover {
  background: var(--paper-deep);
  border-color: var(--ink-soft);
}
.chip:active {
  transform: scale(.97);
}

/* ─────────── Status messages ─────────── */
.status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(11,18,32,.25);
  animation: slideUp .3s ease-out;
  z-index: 100;
}
.status[data-type="error"] { background: var(--danger); }
.status[data-type="ok"]    { background: var(--ok); }

@keyframes slideUp {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Sending state */
.sending .composer { opacity: .6; pointer-events: none; }
