:root {
  --bg: #ffffff;
  --fg: #000000;
  --border: 2px solid #000000;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 20px;
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
}

main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

button {
  background: var(--bg);
  color: var(--fg);
  border: var(--border);
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  outline: none;
}

button:active {
  background: var(--fg);
  color: var(--bg);
}

.status-bar {
  padding: 10px 20px;
  font-size: 12px;
  font-family: monospace;
  border-top: var(--border);
  display: flex;
  justify-content: space-between;
}

.hidden {
  display: none;
}

.view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input, textarea {
  width: 100%;
  border: var(--border);
  padding: 15px;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  outline: none;
}

.nav-back {
  margin-bottom: 10px;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}
