* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: #eef0e4;               /* warm paper */
  color: #2b2b28;
  display: flex;
  justify-content: center;
  padding: 24px 12px;
  min-height: 100vh;
}

.paper {
  width: 100%;
  max-width: 460px;
  background:
    repeating-linear-gradient(transparent, transparent 26px, rgba(200,120,60,0.10) 27px),
    #fbf9f2;
  border-radius: 12px;
  box-shadow: 3px 5px 18px rgba(0,0,0,0.12);
  padding: 22px 20px;
  border-top: 6px solid #c9884a;
  position: relative;
}

h1 { font-size: 26px; margin: 4px 0 2px; color: #7a4a1e; }
h2 { font-size: 20px; color: #7a4a1e; }
.lede { color: #6b6358; font-size: 14px; margin: 0 0 16px; font-style: italic; }

label { display: block; font-size: 13px; color: #555; margin: 12px 0 4px; }
input {
  width: 100%; padding: 10px; font-size: 15px; font-family: inherit;
  border: 1px solid #d8cfc0; border-radius: 8px; background: #fffdf6;
}
input:focus { outline: 2px solid #c9884a; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  border: 1px solid #cfa96a; background: transparent; color: #7a4a1e;
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-family: inherit;
  cursor: pointer;
}
.chip.on { background: #c9884a; color: #fff; border-color: #c9884a; }

button.primary {
  width: 100%; padding: 13px; margin: 18px 0 8px; font-size: 16px; font-family: inherit;
  background: #c9884a; color: #fff; border: none; border-radius: 10px; cursor: pointer;
}
button.ghost {
  width: 100%; padding: 11px; margin-top: 10px; font-size: 14px; font-family: inherit;
  background: transparent; color: #7a4a1e; border: 1px solid #cfa96a; border-radius: 10px; cursor: pointer;
}
.fine { color: #9a8f7f; font-size: 12px; }

.cvbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px dashed #cfa96a; background: #fffdf6; border-radius: 8px;
  padding: 10px 12px; cursor: pointer; font-size: 14px; color: #7a4a1e; margin-bottom: 4px;
}
.cvbtn:hover { background: #fbf3e4; }
.cvremove { color: #b0492a; cursor: pointer; font-weight: bold; }
.cvpreview {
  white-space: pre-wrap; background: #fffdf6; border: 1px dashed #d8cfc0;
  border-radius: 6px; padding: 8px; font-size: 11.5px; color: #5a534a;
  max-height: 90px; overflow: auto; margin: 4px 0 6px;
}

.statusbar {
  display: flex; justify-content: space-between; font-size: 15px;
  color: #7a4a1e; font-weight: bold; margin-bottom: 10px;
}
.chat {
  height: 46vh; overflow-y: auto; border: 1px dashed #d8cfc0;
  border-radius: 8px; padding: 10px; background: #fffdf6; margin-bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.msg { padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.45; max-width: 92%; white-space: pre-wrap; }
.msg.ai { background: #f1e7d6; align-self: flex-start; }
.msg.you { background: #dce8d2; align-self: flex-end; white-space: pre-wrap; }
.msg.hint { background: #fff3d6; font-size: 12.5px; color: #8a6d3b; align-self: flex-start; }

.microw { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mic {
  width: 92px; height: 92px; border-radius: 50%; border: none; font-size: 13px;
  background: #e5572e; color: #fff; cursor: pointer; transition: transform .1s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.mic.live { animation: pulse 1.1s infinite; }
.micstate { font-size: 12px; color: #9a8f7f; margin: 0; }
@keyframes pulse { 50% { transform: scale(1.07); background: #f0683d; } }

.report { white-space: pre-wrap; background: #fffdf6; border: 1px dashed #d8cfc0; border-radius: 8px; padding: 12px; font-family: inherit; font-size: 14px; line-height: 1.5; }